Tests for module 'cond'.
[gnulib.git] / ChangeLog
1 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2
3         * modules/cond-tests: New file.
4         * tests/test-cond.c: New file.
5
6 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7             Bruno Haible  <bruno@clisp.org>
8
9         * modules/cond (Dependencies): Add errno, time.
10         * lib/glthread/cond.h: Include <time.h>.
11         (gl_cond_define, gl_cond_define_initialized): Use the same definition
12         across platforms.
13
14 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15             Bruno Haible  <bruno@clisp.org>
16
17         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
18
19 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20             Bruno Haible  <bruno@clisp.org>
21
22         * modules/tls-tests (Depends-on): Add thread, yield.
23         (configure.ac): Remove all checks.
24         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26         gl_thread_self): Remove definitions. Include glthread/thread.h and
27         glthread/yield.h instead.
28         (test_tls): Pass an additional NULL argument to gl_thread_join.
29
30 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31             Bruno Haible  <bruno@clisp.org>
32
33         * modules/lock-tests (Depends-on): Add thread, yield.
34         (configure.ac): Remove all checks.
35         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37         gl_thread_self): Remove definitions. Include glthread/thread.h and
38         glthread/yield.h instead.
39         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40         additional NULL argument to gl_thread_join.
41
42 2008-09-30  Bruno Haible  <bruno@clisp.org>
43
44         Fix the Win32 implementation of the 'thread' module.
45         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46         pointer type.
47         (gl_thread_self): Invoke gl_thread_self_func.
48         (gl_thread_self_func): New declaration.
49         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50         (do_init_self_key, init_self_key): New functions.
51         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52         Remove some fields.
53         (running_threads, running_lock): Remove variables.
54         (get_current_thread_handle): New function.
55         (gl_thread_self_func, wrapper_func, glthread_create_func,
56         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57         simplified.
58
59 2008-09-30  Bruno Haible  <bruno@clisp.org>
60
61         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
62         files.
63
64 2008-09-30  Jim Meyering  <meyering@redhat.com>
65
66         fts.m4: correct the test for statfs.f_type
67         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
68         when checking for statfs.f_type.
69
70 2008-09-15  Simon Josefsson  <simon@josefsson.org>
71
72         tests: avoid some compiler warnings
73         * tests/test-memchr.c (main): Pass NULL indirectly.
74         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75
76 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
77
78         getdate.y: disallow countable dayshifts like "4 yesterday ago"
79         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
80         exactly specified dayshifts.
81         (dayshift): New rule.
82         (rel): Add dayshift.
83         (relative_time_table) [tomorrow, yesterday, today, now]:
84         Use tDAY_SHIFT in place of tDAY_UNIT.
85         * tests/test-getdate.c: Add tests for now-disallowed countable
86         dayshifts, e.g., "4 yesterday ago".
87
88 2008-09-29  Bruno Haible  <bruno@clisp.org>
89
90         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91         * tests/test-posix_spawn1.in.sh: Renamed from
92         tests/test-posix_spawn.in.sh.
93         * tests/test-posix_spawn2.c: New file.
94         * tests/test-posix_spawn2.in.sh: New file.
95         * modules/posix_spawnp-tests (Files): Update.
96         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
97
98 2008-09-29  Bruno Haible  <bruno@clisp.org>
99
100         Propagate effects of putenv/setenv/unsetenv to child processes.
101         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
102         * lib/pipe.c (create_pipe): Likewise.
103
104 2008-09-29  Bruno Haible  <bruno@clisp.org>
105
106         Enable use of shell scripts as executables in mingw.
107         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
108         run the program as a shell script.
109         * lib/pipe.c (create_pipe): Likewise.
110         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
111         resulting array.
112
113 2008-09-29  Eric Blake  <ebb9@byu.net>
114
115         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
116
117 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
118
119         * doc/posix-functions/accept.texi: Update mingw problems.
120         * doc/posix-functions/bind.texi: Update mingw problems.
121         * doc/posix-functions/close.texi: Update mingw problems.
122         * doc/posix-functions/connect.texi: Update mingw problems.
123         * doc/posix-functions/getpeername.texi: Update mingw problems.
124         * doc/posix-functions/getsockname.texi: Update mingw problems.
125         * doc/posix-functions/getsockopt.texi: Update mingw problems.
126         * doc/posix-functions/ioctl.texi: Update mingw problems.
127         * doc/posix-functions/listen.texi: Update mingw problems.
128         * doc/posix-functions/recv.texi: Update mingw problems.
129         * doc/posix-functions/recvfrom.texi: Update mingw problems.
130         * doc/posix-functions/select.texi: Update mingw problems.
131         * doc/posix-functions/send.texi: Update mingw problems.
132         * doc/posix-functions/sendto.texi: Update mingw problems.
133         * doc/posix-functions/setsockopt.texi: Update mingw problems.
134         * doc/posix-functions/socket.texi: Update mingw problems.
135
136 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
137             Bruno Haible  <bruno@clisp.org>
138
139         * lib/sys_select.in.h: Include sys/time.h.
140         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
141         * modules/sys_select: Depend on sys_time.
142         * tests/test-sys_select.c: Test that sys/select.h defines struct
143         timeval fully.
144
145 2008-09-29  Bruno Haible  <bruno@clisp.org>
146
147         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
148         * lib/sys_select.in.h: Likewise.
149
150 2008-09-29  Bruno Haible  <bruno@clisp.org>
151
152         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
153
154 2008-09-29  Bruno Haible  <bruno@clisp.org>
155
156         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
157         Set LIBSOCKET instead of augmenting LIBS.
158         * modules/sockets (Link): New section.
159         * modules/sockets-tests (test_sockets_LDADD): New variable.
160         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
161         * modules/poll-tests (test_poll_LDADD): New variable.
162         * NEWS: Document the change.
163
164 2008-09-29  Bruno Haible  <bruno@clisp.org>
165
166         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
167         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
168         ARPA_INET_H directly.
169         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
170
171 2008-09-28  Bruno Haible  <bruno@clisp.org>
172
173         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
174         from gl_HEADER_SYS_SOCKET.
175         (gl_HEADER_SYS_SOCKET): Invoke it.
176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
177
178 2008-09-28  Bruno Haible  <bruno@clisp.org>
179
180         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
181         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
182         Needed on OSF/1 4.0.
183
184 2008-09-28  Bruno Haible  <bruno@clisp.org>
185
186         Override open more carefully.
187         * lib/open.c (orig_open): New function.
188         (rpl_open): Use orig_open instead of open.
189         * lib/fcntl.in.h: Add special invocation convention.
190         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
191         (gl_FUNC_OPEN): Invoke it.
192
193         Override freopen more carefully.
194         * lib/freopen.c (orig_freopen): New function.
195         (rpl_freopen): Use orig_freopen instead of freopen.
196         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
197         (gl_FUNC_FREOPEN): Invoke it.
198
199         Override fopen more carefully.
200         * lib/fopen.c (orig_fopen): New function.
201         (rpl_fopen): Use orig_fopen instead of fopen.
202         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
203         (gl_FUNC_FOPEN): Invoke it.
204         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
205
206 2008-09-28  Bruno Haible  <bruno@clisp.org>
207
208         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
209         SIGPIPE.
210
211 2008-09-28  Bruno Haible  <bruno@clisp.org>
212
213         * tests/test-sigaction.c (handler, main): Disable the check whether
214         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
215         glibc systems with LinuxThreads.
216
217 2008-09-28  Bruno Haible  <bruno@clisp.org>
218
219         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
220
221         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
222         with AIX xlc.
223         * lib/fcntl.in.h (open): Likewise.
224         Reported by Rainer Tammer <tammer@tammer.net>.
225
226 2008-09-28  Bruno Haible  <bruno@clisp.org>
227
228         * modules/posix_spawnp-tests: New file.
229         * tests/test-posix_spawn.c: New file.
230         * tests/test-posix_spawn.in.sh: New file.
231
232         New module 'posix_spawnp'.
233         * modules/posix_spawnp: New file.
234         * lib/spawnp.c: New file, from GNU libc with modifications.
235         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
236
237         New module 'posix_spawn'.
238         * modules/posix_spawn: New file.
239         * lib/spawn.c: New file, from GNU libc with modifications.
240         * doc/posix-functions/posix_spawn.texi: Mention the new module.
241
242         New module 'posix_spawnattr_destroy'.
243         * modules/posix_spawnattr_destroy: New file.
244         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
245         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
246         module.
247
248         New module 'posix_spawnattr_setsigmask'.
249         * modules/posix_spawnattr_setsigmask: New file.
250         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
251         modifications.
252         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
253         new module.
254
255         New module 'posix_spawnattr_getsigmask'.
256         * modules/posix_spawnattr_getsigmask: New file.
257         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
258         modifications.
259         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
260         new module.
261
262         New module 'posix_spawnattr_setsigdefault'.
263         * modules/posix_spawnattr_setsigdefault: New file.
264         * lib/spawnattr_setdefault.c: New file, from GNU libc with
265         modifications.
266         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
267         new module.
268
269         New module 'posix_spawnattr_getsigdefault'.
270         * modules/posix_spawnattr_getsigdefault: New file.
271         * lib/spawnattr_getdefault.c: New file, from GNU libc with
272         modifications.
273         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
274         new module.
275
276         New module 'posix_spawnattr_setschedpolicy'.
277         * modules/posix_spawnattr_setschedpolicy: New file.
278         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
279         modifications.
280         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
281         new module.
282
283         New module 'posix_spawnattr_getschedpolicy'.
284         * modules/posix_spawnattr_getschedpolicy: New file.
285         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
286         modifications.
287         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
288         new module.
289
290         New module 'posix_spawnattr_setschedparam'.
291         * modules/posix_spawnattr_setschedparam: New file.
292         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
293         modifications.
294         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
295         new module.
296
297         New module 'posix_spawnattr_getschedparam'.
298         * modules/posix_spawnattr_getschedparam: New file.
299         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
300         modifications.
301         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
302         new module.
303
304         New module 'posix_spawnattr_setpgroup'.
305         * modules/posix_spawnattr_setpgroup: New file.
306         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
307         modifications.
308         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
309         module.
310
311         New module 'posix_spawnattr_getpgroup'.
312         * modules/posix_spawnattr_getpgroup: New file.
313         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
314         modifications.
315         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
316         module.
317
318         New module 'posix_spawnattr_setflags'.
319         * modules/posix_spawnattr_setflags: New file.
320         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
321         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
322         module.
323
324         New module 'posix_spawnattr_getflags'.
325         * modules/posix_spawnattr_getflags: New file.
326         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
327         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
328         module.
329
330         New module 'posix_spawnattr_init'.
331         * modules/posix_spawnattr_init: New file.
332         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
333         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
334         module.
335
336         New module 'posix_spawn_file_actions_destroy'.
337         * modules/posix_spawn_file_actions_destroy: New file.
338         * lib/spawn_faction_destroy.c: New file, from GNU libc with
339         modifications.
340         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
341         the new module.
342
343         New module 'posix_spawn_file_actions_addopen'.
344         * modules/posix_spawn_file_actions_addopen: New file.
345         * lib/spawn_faction_addopen.c: New file, from GNU libc with
346         modifications.
347         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
348         the new module.
349
350         New module 'posix_spawn_file_actions_adddup2'.
351         * modules/posix_spawn_file_actions_adddup2: New file.
352         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
353         modifications.
354         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
355         the new module.
356
357         New module 'posix_spawn_file_actions_addclose'.
358         * modules/posix_spawn_file_actions_addclose: New file.
359         * lib/spawn_faction_addclose.c: New file, from GNU libc with
360         modifications.
361         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
362         the new module.
363
364         New module 'posix_spawn_file_actions_init'.
365         * modules/posix_spawn_file_actions_init: New file.
366         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
367         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
368         new module.
369
370         New module 'posix_spawn-internal'.
371         * modules/posix_spawn-internal: New file.
372         * lib/spawn_int.h: New file, from GNU libc with modifications.
373         * lib/spawni.c: New file, from GNU libc with modifications.
374         * m4/posix_spawn.m4: New file.
375
376         New module 'spawn'.
377         * modules/spawn: New file.
378         * lib/spawn.in.h: New file, from GNU libc with modifications.
379         * m4/spawn_h.m4: New file.
380         * doc/posix-headers/spawn.texi: Mention the new module.
381
382 2008-09-28  Bruno Haible  <bruno@clisp.org>
383
384         * modules/sched-tests: New file.
385         * tests/test-sched.c: New file.
386
387         New module 'sched'.
388         * modules/sched: New file.
389         * lib/sched.in.h: New file.
390         * m4/sched_h.m4: New file.
391         * doc/posix-headers/sched.texi: Mention the new module.
392
393 2008-09-27  Eric Blake  <ebb9@byu.net>
394
395         Fix previous patch, and tweak references to $0.
396         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
397         (func_version, func_gnulib_dir): Don't call this program
398         gnulib-tool.
399         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
400         with using $0 in function.
401         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
402         (func_fatal_error): Reuse the name the user invoked us with.
403
404 2008-09-27  Bruno Haible  <bruno@clisp.org>
405
406         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
407         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
408         (gl_ICONV_H): Not here.
409         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
410         instead of assigning ICONV_H directly.
411
412         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
414         WCHAR_H directly.
415
416 2008-09-27  Bruno Haible  <bruno@clisp.org>
417
418         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
419         * modules/arpa_inet (Depends-on): Add link-warning.
420         (Makefile.am): Insert the definition of GL_LINK-WARNING.
421         * modules/unistd (Makefile.am): Likewise.
422
423 2008-09-26  Bruno Haible  <bruno@clisp.org>
424
425         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
426         variables.
427         (func_version): Essentially copied from gnulib-tool.
428         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
429         func_readlink): Copied from gnulib-tool.
430
431 2008-09-26  Bruno Haible  <bruno@clisp.org>
432
433         * gnulib-tool (func_version): Change directory to $gnulib_dir before
434         invoking git-version-gen.
435
436 2008-09-26  Bruno Haible  <bruno@clisp.org>
437
438         * posix-modules: Update to directory names changed on 2008-01-19.
439         Remove commas in output before splitting into words. No more need to
440         avoid 'ftruncate' since 2007-02-19.
441
442 2008-09-26  Bruno Haible  <bruno@clisp.org>
443
444         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
445
446 2008-09-26  Bruno Haible  <bruno@clisp.org>
447
448         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
449         * modules/fwriteerror (Depends-on): Add errno.
450
451 2008-09-26  Bruno Haible  <bruno@clisp.org>
452
453         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
454         * tests/test-vc-list-files-cvs.sh: Likewise.
455
456 2008-09-26  Bruno Haible  <bruno@clisp.org>
457
458         * doc/posix-headers/sys_resource.texi: Reorder items.
459
460 2008-09-26  Jim Meyering  <meyering@redhat.com>
461
462         fts: tweak inode comparison function
463         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
464         inode numbers, as documented.
465
466         fts: sort dirent entries on inode number before traversing
467         This avoids a quadratic, seek-related performance penalty when
468         operating on a directory containing many entries (measurable at 10k;
469         3.5 hours at 2 million entries with a cold cache) on certain types
470         of file systems, including ext3 and ext4, but not tmpfs.
471         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
472         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
473         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
474         (fs_handles_readdir_ordered_dirents_efficiently): New function.
475         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
476         (fts_build): Set the stat.st_ino member from D_INO.
477         If it is likely to be useful, sort dirent entries on inode number.
478
479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
480         and the struct statfs.f_type member.
481         * modules/fts (Depends-on): Add d-ino.
482
483 2008-09-26  Bruno Haible  <bruno@clisp.org>
484
485         * modules/sigpipe-die (Depends-on): Add sigpipe.
486
487         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
488         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
489         and GNULIB_STDIO_H_SIGPIPE are set.
490         * lib/stdio-write.c: New file.
491         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
492         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
493         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
494         REPLACE_STDIO_WRITE_FUNCS.
495         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
496         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
497         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
498         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
499         * modules/stdio (Files): Add lib/stdio-write.c.
500         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
501         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
502         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
503         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
504         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
505         REPLACE_FPRINTF_POSIX.
506         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
507         REPLACE_PRINTF_POSIX.
508         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
509         REPLACE_VFPRINTF_POSIX.
510         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
511         REPLACE_VPRINTF_POSIX.
512         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
513         SIGPIPE issue.
514         * doc/posix-functions/fputc.texi: Likewise.
515         * doc/posix-functions/fputs.texi: Likewise.
516         * doc/posix-functions/fwrite.texi: Likewise.
517         * doc/posix-functions/printf.texi: Likewise.
518         * doc/posix-functions/putc.texi: Likewise.
519         * doc/posix-functions/putchar.texi: Likewise.
520         * doc/posix-functions/puts.texi: Likewise.
521         * doc/posix-functions/vfprintf.texi: Likewise.
522         * doc/posix-functions/vprintf.texi: Likewise.
523
524         * modules/safe-write (Depends-on): Add write.
525
526         * modules/sigpipe-tests: New file.
527         * tests/test-sigpipe.c: New file.
528         * tests/test-sigpipe.sh: New file.
529
530         * modules/write: New file.
531         * lib/unistd.in.h: Include <sys/types.h>.
532         (write): New declaration.
533         * lib/write.c: New file.
534         * m4/write.m4: New file.
535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
536         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
537         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
538         GNULIB_WRITE, REPLACE_WRITE.
539         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
540         and the SIGPIPE issue.
541
542         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
543         (raise): New declaration.
544         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
545         (ext_signal): New function.
546         (rpl_raise): New function.
547         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
548         GNULIB_SIGNAL_H_SIGPIPE.
549         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
550         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
551
552         * modules/sigpipe: New file.
553         * m4/sigpipe.m4: New file.
554
555 2008-09-25  Derek Price  <derek@ximbiot.com>
556             Bruno Haible  <bruno@clisp.org>
557
558         * gnulib-tool (func_import): Report all license incompatibilities, not
559         just the first one.
560
561 2008-09-25  Bruno Haible  <bruno@clisp.org>
562
563         * gnulib-tool (func_import): When computing the edits, consider not
564         only the Makefile.ams that exist but also those that will be generated.
565
566 2008-09-25  Simon Josefsson  <simon@josefsson.org>
567
568         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
569         fixes gnulib-tool --test warning about duplicate dependency.
570
571 2008-09-25  Bruno Haible  <bruno@clisp.org>
572
573         * gnulib-tool: Don't ask the user to perform edits in the generated
574         Makefile.ams.
575         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
576         apply to the Makefile.am being generated.
577         (func_emit_tests_Makefile_am): Execute edits that apply to the
578         Makefile.am being generated.
579         (func_import): Setup list of Makefile.am edits before emitting the
580         Makefile.ams, not at the end.
581         (func_create_testdir): Update.
582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
583
584 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
585
586         * gnulib-tool (func_import): Store the --tests-base option in the
587         comment in gnulib-cache.m4.
588
589 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
590
591         * NEWS: Document increased portability that sys_select now provides.
592
593         * lib/sys_select.in.h: Install select wrapper.
594         * lib/sys_socket.in.h: Use more descriptive name when there is no
595         select wrapper.
596         * lib/winsock-select.c: New.
597         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
598         Require gl_HEADER_SYS_SOCKET.
599         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
600         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
601         * tests/test-sys_select.c: Add functional tests.
602
603 2008-09-24  Eric Blake  <ebb9@byu.net>
604
605         open, fopen: close fd leak in last patch
606         * lib/open.c (rpl_open): Close fd before returning error.
607         * lib/fopen.c (rpl_fopen): Close fd before returning error.
608         * doc/posix-functions/open.texi (open): Document that Irix also
609         has the bug.
610         * doc/posix-functions/fopen.texi (fopen): Likewise.
611         Reported by Paolo Bonzini.
612
613 2008-09-24  Bruno Haible  <bruno@clisp.org>
614
615         Ensure that a filename ending in a slash cannot be used to access a
616         non-directory.
617         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
618         to check whether it's really a directory.
619         * lib/fopen.c: Include fcntl.h, unistd.h.
620         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
621         and fdopen().
622         * modules/fopen (Depends-on): Add unistd.
623         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
624         * tests/test-fopen.c (main): Likewise.
625         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
626         * doc/posix-functions/fopen.texi: Likewise.
627         Reported by Eric Blake.
628
629 2008-09-23  Eric Blake  <ebb9@byu.net>
630
631         c-stack: avoid compiler optimizations when provoking overflow
632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
633         recursion harder to optimize, to ensure a stack overflow occurs.
634         * tests/test-c-stack.c (recurse): Likewise.
635         Borrowed from libsigsegv.
636
637         c-stack: work around Irix sigaltstack bug
638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
639         whether sigaltstack uses wrong end of stack_t (copied in part from
640         libsigsegv).
641         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
642         Irix bug, without requiring an over-allocation.
643         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
644         bug.
645
646         fopen: document mingw bug on directories
647         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
648         not allowing a stream visiting a directory, even though reading
649         from such a stream is not portable.
650
651 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
652
653         * lib/poll.c: Rewrite.
654         * modules/poll: Depend on alloca.
655
656 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
657
658         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
659         instead define prototypes for a full set of wrappers.  Ensure
660         that Cygwin does not use the compatibility code, which is only
661         for MinGW.
662         * lib/winsock.c: New.
663         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
664         * modules/sys_socket: Add lib/winsock.c.
665
666         * modules/poll-tests: Add errno and perror.
667         * tests/test-poll.c: Use ioctl, not ioctlsocket.
668
669 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
670
671         * tests/test-poll.c: Downgrade minimum needed Winsock version.
672
673 2008-09-23  Bruno Haible  <bruno@clisp.org>
674
675         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
676         * doc/glibc-functions/*: Likewise.
677
678 2008-09-23  Simon Josefsson  <simon@josefsson.org>
679
680         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
681         success.
682
683 2008-09-22  Eric Blake  <ebb9@byu.net>
684             Bruno Haible  <bruno@clisp.org>
685
686         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
687         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
688         supply %A but mishandle pseudo-NaN.
689         Reported by Simon Josefsson.
690
691 2008-09-21  Bruno Haible  <bruno@clisp.org>
692
693         * tests/test-lock.c (main): Tweak skip message.
694         * tests/test-tls.c (main): Likewise.
695
696 2008-09-21  Bruno Haible  <bruno@clisp.org>
697
698         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
699         whether 'struct sigaction' has sa_sigaction here...
700         (gl_PREREQ_SIG_HANDLER_H): ... not here.
701         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
702
703 2008-09-21  Bruno Haible  <bruno@clisp.org>
704
705         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
706         section.
707         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
708         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
709         the new section.
710         (Support for obsolete systems lacking POSIX:2001): New section.
711         (String handling <string.h>): Move strdup to the new section.
712         Suggested by Simon Josefsson and Paolo Bonzini.
713
714 2008-09-21  Bruno Haible  <bruno@clisp.org>
715
716         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
717         exponents in %e and %g results on 'long double'. Needed for mingw's
718         improved *printf functions.
719         * tests/test-vasprintf-posix.c (test_function): Likewise.
720         * tests/test-snprintf-posix.h (test_function): Likewise.
721         * tests/test-sprintf-posix.h (test_function): Likewise.
722         Reported by Eric Blake.
723
724 2008-09-21  Bruno Haible  <bruno@clisp.org>
725
726         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
727         * tests/test-sprintf-posix.h (test_function): Likewise.
728
729 2008-09-21  Bruno Haible  <bruno@clisp.org>
730
731         * modules/getpass (Depends-on): Add strdup-posix.
732
733         New module 'strdup-posix'.
734         * modules/strdup-posix: New file.
735         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
736         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
738         REPLACE_STRDUP.
739         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
740         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
742         strdup-posix.
743
744         * modules/strdup (Depends-on): Remove malloc-posix.
745
746 2008-09-20  Bruno Haible  <bruno@clisp.org>
747
748         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
749         Wildenhues.
750
751 2008-09-20  Bruno Haible  <bruno@clisp.org>
752
753         Ensure that wint_t gets defined on IRIX 5.3.
754         * lib/wchar.in.h (wint_t): Define if not defined by the system.
755         * lib/wctype.in.h (wint_t): Likewise.
756         (__wctype_wint_t): Remove type.
757         (isw*): Use wint_t instead of __wctype_wint_t.
758         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
759         * modules/wchar (Files): Add m4/wint_t.m4.
760         (Makefile.am): Substitute HAVE_WINT_T.
761         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
762         * tests/test-wctype.c: Check that wint_t is defined.
763         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
764         * doc/posix-headers/wctype.texi: Likewise.
765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
766
767 2008-09-18  Bruno Haible  <bruno@clisp.org>
768
769         * gnulib-tool (func_exit): Update comment.
770
771 2008-09-18  Simon Josefsson  <simon@josefsson.org>
772
773         * modules/getaddrinfo (Depends-on): Remove strdup, this module
774         assumes strdup exists and does not depend on strdup to return
775         ENOMEM on out of memory conditions.
776
777 2008-09-18  Bruno Haible  <bruno@clisp.org>
778
779         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
780         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
781         digits for the exponent.
782
783 2008-09-18  Jim Meyering  <meyering@redhat.com>
784             Bruno Haible  <bruno@clisp.org>
785
786         * lib/vasnprintf.c (decimal_point_char): Define also if
787         NEED_PRINTF_INFINITE_LONG_DOUBLE.
788
789 2008-09-16  Bruno Haible  <bruno@clisp.org>
790         and Eric Blake  <ebb9@byu.net>
791
792         vasnprintf: support Irix 5.3
793         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
794         that mishandle long double infinity.
795         Reported by Tom G. Christensen.
796
797 2008-09-16  Bruno Haible  <bruno@clisp.org>
798
799         * doc/glibc-functions/scandir.texi: Mention the function is missing on
800         Solaris 9.
801         * doc/glibc-functions/alphasort.texi: Likewise.
802         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
803
804 2008-09-16  Jim Meyering  <meyering@redhat.com>
805
806         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
807         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
808         a umask modification leak out of a subshell.  Otherwise, the
809         opensolaris /bin/sh would be accepted and thus cause unwarranted
810         failures in the coreutils test suite.
811
812 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
813
814         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
815         to succeed.
816
817 2008-09-16  Jim Meyering  <meyering@redhat.com>
818
819         avoid spurious test failure when library is built without ACL support
820         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
821         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
822         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
823         * tests/test-copy-acl.sh: Likewise.
824
825 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
826
827         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
828         based on character occurrence counts.
829
830 2008-09-15  Eric Blake  <ebb9@byu.net>
831
832         tests: avoid some compiler warnings
833         * tests/test-memchr.c (main): Pass NULL indirectly.
834         * tests/test-closein.c (main): Avoid unused variable.
835
836 2008-09-15  Bruno Haible  <bruno@clisp.org>
837
838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
839         are missing on OpenBSD 4.0 individually.
840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
841
842 2008-09-15  Bruno Haible  <bruno@clisp.org>
843
844         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
845         * doc/posix-functions/strerror.texi: Mention also Cygwin.
846         * doc/posix-functions/perror.texi: Likewise.
847         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
848         is missing.
849         Reported by Eric Blake.
850
851         * lib/errno.in.h: Use replacement values >= 2000.
852         Reported by Eric Blake.
853
854 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
855
856         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
857         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
858         limit.
859         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
860         compareseq was aborted.
861
862 2008-09-14  Bruno Haible  <bruno@clisp.org>
863
864         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
865         yvec_edit_count.
866         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
867         (fstrcmp_bounded): Simplify result computation accordingly.
868
869 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
870
871         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
872         (fstrcmp): Define in terms of fstrcmp_bounded.
873         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
874         lower_bound argument.
875         Return quickly if the result is certainly < lower_bound.
876         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
877
878 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
879
880         * lib/diffseq.h (EARLY_ABORT): New macro.
881         (compareseq): Change return type to bool. Return true when EARLY_ABORT
882         evaluates to true.
883
884 2008-09-14  Bruno Haible  <bruno@clisp.org>
885
886         * modules/perror-tests: New file.
887         * tests/test-perror.sh: New file.
888         * tests/test-perror.c: New file.
889
890         New module 'perror'.
891         * lib/stdio.in.h (perror): New declaration.
892         * lib/perror.c: New file.
893         * m4/perror.m4: New file.
894         * modules/perror: New file.
895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
896         * doc/posix-functions/perror.texi: Mention the perror module.
897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
898         REPLACE_PERROR.
899         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
900         REPLACE_PERROR.
901
902 2008-09-14  Bruno Haible  <bruno@clisp.org>
903
904         * modules/stdio (Makefile.am): Reorder to match the order in
905         lib/stdio.in.h.
906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
907
908 2008-09-13  Bruno Haible  <bruno@clisp.org>
909
910         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
911
912 2008-09-13  Bruno Haible  <bruno@clisp.org>
913
914         Extend strerror to cover the added errno values.
915         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
916         (rpl_strerror): Provide error messages for the added errno values and
917         for the WSA* values.
918         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
919         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
920         strerror.
921         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
922         * modules/strerror (Depends-on): Add errno.
923         * doc/posix-functions/strerror.texi: Document the change.
924         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
925         and EOVERFLOW.
926
927 2008-09-13  Bruno Haible  <bruno@clisp.org>
928
929         * modules/EOVERFLOW: Remove file.
930         * m4/eoverflow.m4: Remove file.
931         * modules/EOVERFLOW-tests: Remove file.
932         * tests/test-EOVERFLOW.c: Remove file.
933         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
934         * modules/ftell (Depends-on): Likewise.
935         * modules/getdelim (Depends-on): Likewise.
936         * modules/getugroups (Depends-on): Likewise.
937         * modules/poll (Depends-on): Likewise.
938         * modules/snprintf (Depends-on): Likewise.
939         * modules/sprintf-posix (Depends-on): Likewise.
940         * modules/vasnprintf (Depends-on): Likewise.
941         * modules/vasprintf (Depends-on): Likewise.
942         * modules/vfprintf-posix (Depends-on): Likewise.
943         * modules/vsnprintf (Depends-on): Likewise.
944         * modules/vsprintf-posix (Depends-on): Likewise.
945         * modules/xvasprintf (Depends-on): Likewise.
946         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
947         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
948         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
949         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
950         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
951         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
952         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
953         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
954         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
955         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
956         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
957         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
958         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
959         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
960         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
961         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
962         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
963         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
964         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
965         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
966         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
967         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
968         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
969         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
970         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
971         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
972         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
973         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
974         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
975         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
976         * MODULES.html.sh: Remove EOVERFLOW.
977         * NEWS: Mention the change.
978
979 2008-09-13  Bruno Haible  <bruno@clisp.org>
980
981         * modules/errno-tests: New file.
982         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
983
984         * lib/errno.in.h: New file.
985         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
986         * modules/errno: New file.
987         * doc/posix-headers/errno.texi: Update documentation.
988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
989
990 2008-09-13  Bruno Haible  <bruno@clisp.org>
991
992         * tests/test-poll.c: Use #if for native Windows, rather than testing
993         __MSVCRT__.
994
995 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
996             Bruno Haible  <bruno@clisp.org>
997
998         * lib/glob.c: Don't include <pwd.h> on native Windows.
999         (WINDOWS32): New macro.
1000         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1001
1002 2008-09-13  Bruno Haible  <bruno@clisp.org>
1003
1004         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1005         (ETIMEDOUT): Remove macro.
1006         (glthread_cond_timedwait_multithreaded): New declaration.
1007         (glthread_cond_timedwait): Use it.
1008         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1009         (glthread_cond_timedwait_multithreaded): New function.
1010
1011 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1012
1013         * modules/poll-tests: Do not check for io.h.
1014         * tests/test-poll.c: Check for __MSVCRT__ instead.
1015
1016 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1017
1018         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1019         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1020         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1021
1022 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1023
1024         * modules/poll-tests: New.
1025         * tests/test-poll.c: New.
1026
1027 2008-09-12  Eric Blake  <ebb9@byu.net>
1028
1029         frexp: test for NetBSD failure on -0.0
1030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1031         not all, bugs from NetBSD 3.0 have been fixed.
1032         * doc/posix-functions/frexp.texi (frexp): Document bug.
1033         Reported by Thomas Klausner.
1034
1035         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1036         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1037         literal -0.0.
1038         Reported by Jonathan C. Patschke <jp@centtech.com>.
1039
1040 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1041
1042         * lib/glthread/cond.h: Use dummy implementation also if
1043         USE_WIN32_THREADS.
1044
1045 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1046
1047         * modules/fnmatch-posix (License): Change to LGPLv2+.
1048         * modules/fnmatch-gnu (License): Likewise.
1049
1050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1051
1052         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1053
1054 2008-09-11  Jim Meyering  <meyering@redhat.com>
1055
1056         * users.txt: Add gtk-vnc.
1057
1058 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1059
1060         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1061         rotate amounts.
1062
1063         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1064         required for 16-bit and 8-bit rotates.
1065         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1066         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1067         UINT8_MAX instead of hard-coded constants.
1068         Suggested by Paul Eggert.
1069
1070 2008-09-07  Bruno Haible  <bruno@clisp.org>
1071
1072         * tests/test-striconveh.c (main): Check behaviour when converting from
1073         UTF-7.
1074
1075         Make striconveh work better with stateful encodings.
1076         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1077         that iconv does not increment the inptr when returning -1/EINVAL.
1078
1079 2008-09-07  Bruno Haible  <bruno@clisp.org>
1080
1081         * build-aux/config.rpath: Update according to libtool-2.2.6.
1082         * build-aux/config.libpath: Likewise.
1083
1084 2008-09-06  Bruno Haible  <bruno@clisp.org>
1085
1086         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1087         * lib/freadptr.c (freadptr): Likewise.
1088         * lib/freadseek.c (freadptrinc): Likewise.
1089         Reported by Simon Josefsson.
1090
1091 2008-09-06  Bruno Haible  <bruno@clisp.org>
1092
1093         * modules/freadptr (License): Change to LGPLv2+.
1094         * modules/freadseek (License): Likewise.
1095         Suggested by Eric Blake.
1096
1097         * modules/memchr2 (License): Change to LGPLv2+.
1098         Approved by Eric Blake.
1099
1100 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1101             Bruno Haible  <bruno@clisp.org>
1102
1103         Make gnulib-tool work with native 'sed' on AIX.
1104         * gnulib-tool (sed_noop): New variable.
1105         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1106         func_add_or_update, func_create_testdir): Use it to initialize sed
1107         script variables.
1108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1109
1110 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
1111             Bruno Haible  <bruno@clisp.org>
1112
1113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1114         also works after #include directives.
1115
1116 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
1117
1118         getdate.y: reject an out-of-range timezone value
1119         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1120         the range [-24...+24].  When specified with only one or two digits,
1121         * tests/test-getdate.c: Tests for the fix.
1122         * doc/getdate.texi: Document this change.
1123
1124 2008-09-03  Bruno Haible  <bruno@clisp.org>
1125
1126         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1127
1128 2008-09-02  Simon Josefsson  <simon@josefsson.org>
1129
1130         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
1131         <bruce.korb@gmail.com> with ideas from Ben Pfaff
1132         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1133         Blake <ebb9@byu.net>.
1134
1135         * tests/test-bitrotate.c: Add more test vectors.
1136
1137 2008-09-02  Eric Blake  <ebb9@byu.net>
1138
1139         vasnprintf-posix: handle large precision via %.*d
1140         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1141         when handling it ourselves.
1142         * tests/test-vasnprintf-posix.c (test_function): Add test.
1143         * tests/test-snprintf-posix.h (test_function): Likewise.
1144         * tests/test-sprintf-posix.h (test_function): Likewise.
1145         * tests/test-vasprintf-posix.c (test_function): Likewise.
1146         Reported by Alain Guibert.
1147
1148 2008-09-01  Eric Blake  <ebb9@byu.net>
1149
1150         c-stack: make configure-time check more robust
1151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1152         successful sigaction call.
1153         Reported by Tom G. Christensen.
1154
1155 2008-09-01  Bruno Haible  <bruno@clisp.org>
1156
1157         New module 'findprog-lgpl'.
1158         * modules/findprog-lgpl: New file.
1159         * lib/findprog-lgpl.c: New file.
1160         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1161         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1162         to decide whether to use strdup or xstrdup, concatenated_filename or
1163         xconcatenated_filename.
1164
1165 2008-09-01  Bruno Haible  <bruno@clisp.org>
1166
1167         Split module 'concat-filename' into 'concat-filename' (LGPL) and
1168         'xconcat-filename' (GPL).
1169         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1170         (License): Change to LGPLv2+.
1171         * modules/xconcat-filename: New file.
1172         * lib/concat-filename.h (concatenated_filename): Change specification.
1173         (xconcatenated_filename): New declaration.
1174         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1175         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1176         memory situations.
1177         * lib/xconcat-filename.c: New file.
1178         * NEWS: Mention the change.
1179         * lib/findprog.c: Include concat-filename.h, not filename.h.
1180         (find_in_path): Use xconcatenated_filename instead of
1181         concatenated_filename.
1182         * lib/javacomp.c: Include concat-filename.h, not filename.h.
1183         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1184         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1185         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1186         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1187         instead of concatenated_filename.
1188         * lib/javaexec.c: Include concat-filename.h, not filename.h.
1189         (execute_java_class): Use xconcatenated_filename instead of
1190         concatenated_filename.
1191         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1192         * modules/javacomp (Depends-on): Likewise.
1193         * modules/javaexec (Depends-on): Likewise.
1194
1195 2008-09-01  Bruno Haible  <bruno@clisp.org>
1196
1197         Split module 'filename' into 'filename' and 'concat-filename'.
1198         * modules/filename: Keep only lib/filename.h.
1199         (License): Change to LGPLv2+.
1200         * modules/concat-filename: New file, extracted from modules/filename.
1201         * lib/filename.h (concatenated_filename): Remove declaration.
1202         * lib/concat-filename.h: New file, extracted from lib/filename.h.
1203         * lib/concat-filename.c: Include concat-filename.h.
1204         * NEWS: Mention the change.
1205
1206 2008-09-01  Simon Josefsson  <simon@josefsson.org>
1207
1208         * lib/bitrotate.h (rotl8, rotr8): Add.
1209
1210         * modules/bitrotate (configure.ac): Need
1211         AC_REQUIRE([AC_C_INLINE]).
1212         (Description): Mention stdint.h.  Reported by Bruno Haible
1213         <bruno@clisp.org>.
1214
1215         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
1216         Paolo Bonzini <bonzini@gnu.org>.
1217
1218 2008-08-31  Bruno Haible  <bruno@clisp.org>
1219
1220         Assume Solaris specific bi-arch conventions on Solaris systems.
1221         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1222         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1224         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1225         like acl_libdirstem.
1226         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1227         acl_libdirstem.
1228         * NEWS: Mention the change.
1229         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1230
1231 2008-08-31  Jim Meyering  <meyering@redhat.com>
1232
1233         * lib/strftime.h: Add comments describing the two added arguments.
1234
1235         remove duplicate #include directives
1236         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1237         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1238
1239 2008-08-31  Bruno Haible  <bruno@clisp.org>
1240
1241         New module 'sigpipe-die'.
1242         * modules/sigpipe-die: New file.
1243         * lib/sigpipe-die.h: New file.
1244         * lib/sigpipe-die.c: New file.
1245         * MODULES.html.sh (Signal handling): Add sigpipe-die.
1246
1247 2008-08-31  Bruno Haible  <bruno@clisp.org>
1248
1249         Don't override previously installed signal handlers.
1250         * lib/fatal-signal.c (saved_sigactions): New variable.
1251         (uninstall_handlers): Reset the signal to the saved handler, not
1252         to SIG_DFL (except when ignored).
1253         (install_handlers): Save the previous handlers.
1254
1255 2008-08-30  Bruno Haible  <bruno@clisp.org>
1256
1257         * gnulib-tool (func_reset_sigpipe): New function.
1258         (func_get_automake_snippet, func_modules_transitive_closure,
1259         func_import): Invoke it before a join command that reads from stdin,
1260         to avoid "echo: write error: Broken pipe" error messages on stderr.
1261         Reported by Sam Steingold <sds@gnu.org>.
1262
1263 2008-08-30  Bruno Haible  <bruno@clisp.org>
1264
1265         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1266         Code copied from m4/open.m4.
1267         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1268         access and the filename ends in a slash. Code copied from lib/open.c.
1269         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1270         * tests/test-fopen.c (main): Check against bug with trailing slash.
1271
1272 2008-08-29  Bruno Haible  <bruno@clisp.org>
1273
1274         Avoid some "gcc -pedantic" warnings.
1275         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1276         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1277         * lib/dirent.in.h: Likewise.
1278         * lib/fcntl.in.h: Likewise.
1279         * lib/float.in.h: Likewise.
1280         * lib/iconv.in.h: Likewise.
1281         * lib/inttypes.in.h: Likewise.
1282         * lib/locale.in.h: Likewise.
1283         * lib/math.in.h: Likewise.
1284         * lib/netinet_in.in.h: Likewise.
1285         * lib/search.in.h: Likewise.
1286         * lib/signal.in.h: Likewise.
1287         * lib/stdarg.in.h: Likewise.
1288         * lib/stdint.in.h: Likewise.
1289         * lib/stdio.in.h: Likewise.
1290         * lib/stdlib.in.h: Likewise.
1291         * lib/string.in.h: Likewise.
1292         * lib/strings.in.h: Likewise.
1293         * lib/sys_select.in.h: Likewise.
1294         * lib/sys_socket.in.h: Likewise.
1295         * lib/sys_stat.in.h: Likewise.
1296         * lib/sys_time.in.h: Likewise.
1297         * lib/sysexits.in.h: Likewise.
1298         * lib/time.in.h: Likewise.
1299         * lib/unistd.in.h: Likewise.
1300         * lib/wchar.in.h: Likewise.
1301         * lib/wctype.in.h: Likewise.
1302         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1303         * modules/fchdir (Makefile.am): Likewise.
1304         * modules/fcntl (Makefile.am): Likewise.
1305         * modules/float (Makefile.am): Likewise.
1306         * modules/iconv_open (Makefile.am): Likewise.
1307         * modules/inttypes (Makefile.am): Likewise.
1308         * modules/locale (Makefile.am): Likewise.
1309         * modules/math (Makefile.am): Likewise.
1310         * modules/netinet_in (Makefile.am): Likewise.
1311         * modules/search (Makefile.am): Likewise.
1312         * modules/signal (Makefile.am): Likewise.
1313         * modules/stdarg (Makefile.am): Likewise.
1314         * modules/stdint (Makefile.am): Likewise.
1315         * modules/stdio (Makefile.am): Likewise.
1316         * modules/stdlib (Makefile.am): Likewise.
1317         * modules/string (Makefile.am): Likewise.
1318         * modules/strings (Makefile.am): Likewise.
1319         * modules/sys_select (Makefile.am): Likewise.
1320         * modules/sys_socket (Makefile.am): Likewise.
1321         * modules/sys_stat (Makefile.am): Likewise.
1322         * modules/sys_time (Makefile.am): Likewise.
1323         * modules/sysexits (Makefile.am): Likewise.
1324         * modules/time (Makefile.am): Likewise.
1325         * modules/unistd (Makefile.am): Likewise.
1326         * modules/wchar (Makefile.am): Likewise.
1327         * modules/wctype (Makefile.am): Likewise.
1328         Reported by Reuben Thomas <rrt@sc3d.org>.
1329
1330 2008-08-29  Bruno Haible  <bruno@clisp.org>
1331
1332         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
1333         any more.
1334
1335 2008-08-29  Simon Josefsson  <simon@josefsson.org>
1336
1337         * MODULES.html.sh (Misc): Add bitrotate.
1338
1339         * modules/bitrotate: New file.
1340
1341         * lib/bitrotate.h: New file.
1342
1343         * modules/bitrotate-tests: New file.
1344
1345         * tests/test-bitrotate.c: New file.
1346
1347         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
1348         on the bitrotate module.
1349
1350         * lib/arctwo.c: Use new bitrotate module.
1351
1352 2008-08-29  Jim Meyering  <meyering@redhat.com>
1353
1354         bootstrap: merge changes from coreutils
1355         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
1356         of copied files.  Remove a kludge, now that this is fixed.
1357         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
1358         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
1359         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
1360
1361 2008-08-29  Bruno Haible  <bruno@clisp.org>
1362
1363         * MODULES.html.sh: Remove --cvs-urls option.
1364
1365 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
1366
1367         maint.mk: adjust to file name change
1368         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1369
1370 2008-08-28  Jim Meyering  <meyering@redhat.com>
1371
1372         * modules/getndelim2 (License): Relicense to LGPLv2+.
1373         Approved by Richard Stallman for the version of 1995, and by
1374         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1375
1376 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
1377
1378         * lib/getdelim.c (flockfile, funlockfile): Make all of them
1379         dummy if one is not available.  Do not touch them if
1380         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1381         (getc_maybe_unlocked): New.
1382         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1383
1384 2008-08-26  Eric Blake  <ebb9@byu.net>
1385
1386         doc/INSTALL: resync from autoconf
1387         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1388         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1389         moving...
1390         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1391         * INSTALL: Regenerate.
1392         * INSTALL.ISO: New file.
1393         * INSTALL.UTF-8: Likewise.
1394
1395 2008-08-26  Jim Meyering  <meyering@redhat.com>
1396
1397         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1398         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1399         these definitions conditional, so that they may be overridden, too.
1400
1401 2008-08-26  Bruno Haible  <bruno@clisp.org>
1402
1403         Generate INSTALL file variants with prettier quotes.
1404         * doc/Makefile (INSTALL_PRELUDE): New macro.
1405         (INSTALL): Use it.
1406         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1407
1408 2008-08-26  Bruno Haible  <bruno@clisp.org>
1409
1410         Run makeinfo in an English locale.
1411         * doc/Makefile (MAKEINFO): New variable.
1412
1413 2008-08-26  Bruno Haible  <bruno@clisp.org>
1414
1415         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1416         Suggested by Eric Blake.
1417
1418 2008-08-25  Bruno Haible  <bruno@clisp.org>
1419
1420         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
1421
1422 2008-08-25  Eric Blake  <ebb9@byu.net>
1423
1424         c-stack: test that stack overflow can be caught
1425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
1426         that platform allows handling stack overflow; at least OS/2 EMX
1427         has sigaltstack, but crashes before transferring control to
1428         handler on stack overflow.
1429         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
1430         check for HAVE_STACK_OVERFLOW_HANDLING.
1431         Reported by Elbert Pol.
1432
1433 2008-08-25  Bruno Haible  <bruno@clisp.org>
1434
1435         * doc/posix-functions/strftime.texi: Fix description of strftime
1436         module.
1437
1438 2008-08-24  Bruno Haible  <bruno@clisp.org>
1439
1440         * tests/uniwidth/test-uc_width2.c: New file.
1441         * tests/uniwidth/test-uc_width2.sh: New file.
1442         * modules/uniwidth/width-tests (Files): Add the new files.
1443         (TESTS): Add uniwidth/test-uc_width2.sh.
1444         (TESTS_ENVIRONMENT): New variable.
1445         (check_PROGRAMS): Add test-uc_width2.
1446         (test_uc_width2_SOURCES): New variable.
1447
1448         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1449         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1450         not 0x00AB.
1451         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1452
1453 2008-08-22  Eric Blake  <ebb9@byu.net>
1454
1455         test-lock, test-tls: mention why a test is skipped
1456         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1457         skipped.
1458         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1459
1460         count-one-bits: relax license
1461         * modules/count-one-bits (License): Relicense to LGPLv2+.
1462         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1463
1464 2008-08-22  Andreas Schwab  <schwab@suse.de>
1465
1466         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1467         Remove spurious space in assignment.
1468
1469 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1470
1471         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1472         Paul Eggert <eggert@CS.UCLA.EDU>.
1473
1474 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1475
1476         * modules/gettext: Add m4/threadlib.m4.
1477
1478 2008-08-19  Eric Blake  <ebb9@byu.net>
1479
1480         test-c-stack: fix compilation failure on FreeBSD 5.0
1481         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1482         headers before <sys/resource.h>.
1483         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1484         the bug.
1485         Reported by Nelson H. F. Beebe.
1486
1487         strverscmp: migrate from "strverscmp.h" to <string.h>
1488         * modules/string (Makefile.am): Add new hooks.
1489         * modules/strverscmp (Files): Remove strverscmp.h.
1490         (Depends-on): Add string.
1491         (configure.ac): Add indicator.
1492         (Include): Mention new header.
1493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1494         defaults.
1495         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1496         results.
1497         * lib/strverscmp.h: Delete.
1498         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1499         * tests/test-strverscmp.c (includes): Adjust client.
1500         * lib/check-version.c (includes): Likewise.
1501         * NEWS: Document the change.
1502
1503         strverscmp: add unit test
1504         * modules/strverscmp-tests: New file.
1505         * tests/test-strverscmp.c: Likewise.
1506
1507 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1508
1509         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1510         regarding Windows crypto stuff, from Mono.
1511
1512 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1513
1514         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1515         if present, for intel RND.  Return error on failures.
1516
1517 2008-08-18  Ben Pfaff  <blp@gnu.org>
1518
1519         gitlog-to-changelog: give better diagnostic for failed pipe-open
1520         * build-aux/gitlog-to-changelog: Improve error message: suggest
1521         that the version of Git may be too old.
1522
1523 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1524
1525         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1526         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1527
1528 2008-08-18  Bruno Haible  <bruno@clisp.org>
1529
1530         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1531         pthread_in_use().
1532
1533 2008-08-18  Bruno Haible  <bruno@clisp.org>
1534
1535         * lib/glthread/threadlib.c: Include <pthread.h>.
1536
1537 2008-08-18  Bruno Haible  <bruno@clisp.org>
1538
1539         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1540         glthread_recursive_lock_* macros.
1541         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1542         Fix syntax error.
1543
1544 2008-08-18  Bruno Haible  <bruno@clisp.org>
1545
1546         * lib/glthread/thread.c: Avoid forcing a context switch right after
1547         thread creation.
1548
1549 2008-08-17  Bruno Haible  <bruno@clisp.org>
1550
1551         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1552         * lib/glthread/thread.h: Provide Win32 specific implementation.
1553         * modules/thread (Files): Add lib/glthread/thread.c.
1554         (Depends-on): Add lock.
1555         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1556
1557 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1558
1559         New module 'yield'.
1560         * modules/yield: New file.
1561         * lib/glthread/yield.h: New file.
1562         * m4/yield.m4: New file.
1563         * MODULES.html.sh (Multithreading): Add yield.
1564
1565 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1566
1567         New module 'thread'.
1568         * modules/thread: New file.
1569         * lib/glthread/thread.h: New file.
1570         * m4/thread.m4: New file.
1571         * MODULES.html.sh (Multithreading): Add thread.
1572
1573 2008-08-17  Bruno Haible  <bruno@clisp.org>
1574
1575         * lib/glthread/lock.h: Include <stdlib.h> always.
1576         * lib/glthread/tls.h: Likewise.
1577         * lib/glthread/cond.h: Likewise.
1578
1579 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1580
1581         New module 'cond'.
1582         * modules/cond: New file.
1583         * lib/glthread/cond.h: New file.
1584         * lib/glthread/cond.c: New file.
1585         * m4/cond.m4: New file.
1586         * MODULES.html.sh (Multithreading): Add cond.
1587
1588 2008-08-16  Eric Blake  <ebb9@byu.net>
1589
1590         c-stack: fix regression on Irix 5.3 from 2008-06-21
1591         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1592         sa_sigaction...
1593         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1594         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1595         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1596         * modules/signal (Makefile.am): Use the value.
1597         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1598         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1599         * doc/posix-headers/signal.texi (signal.h): Document this
1600         portability issue.
1601         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1602         Reported by Tom G. Christensen.
1603
1604 2008-08-17  Bruno Haible  <bruno@clisp.org>
1605
1606         New module 'threadlib'.
1607         * modules/threadlib: New file.
1608         * lib/glthread/threadlib.c: New file, extracted from
1609         lib/glthread/lock.c.
1610         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1611         functions.
1612         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1613         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1614         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1615         macros.
1616         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1617         (gl_DISABLE_THREADS): Remove macro.
1618         * modules/lock (Files): Remove build-aux/config.rpath.
1619         (Depends-on): Remove havelib. Add threadlib.
1620         (configure.ac-early): Remove section.
1621         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1622         * modules/tls (Depends-on): Remove lock. Add threadlib.
1623         (Link): New section, copied from threadlib.
1624         * MODULES.html.sh (Multithreading): Add threadlib.
1625
1626 2008-08-14  Bruno Haible  <bruno@clisp.org>
1627
1628         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1629         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1630         glthread_rwlock_unlock, glthread_rwlock_destroy,
1631         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1632         glthread_recursive_lock_destroy): Define as macros always.
1633         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1634         glthread_lock_lock.
1635         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1636         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1637         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1638         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1639         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1640         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1641         (glthread_recursive_lock_lock_func): Renamed from
1642         glthread_recursive_lock_lock.
1643         (glthread_recursive_lock_unlock_func): Renamed from
1644         glthread_recursive_lock_unlock.
1645         (glthread_recursive_lock_destroy_func): Renamed from
1646         glthread_recursive_lock_destroy.
1647
1648 2008-08-14  Bruno Haible  <bruno@clisp.org>
1649
1650         * lib/glthread/lock.h: Renamed from lib/lock.h.
1651         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1652         * lib/glthread/tls.h: Renamed from lib/tls.h.
1653         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1654         * lib/fstrcmp.c: Update includes.
1655         * lib/strsignal.c: Update includes.
1656         * modules/lock (Files, Makefile.am): Update.
1657         (Include): Change to "glthread/lock.h".
1658         * modules/tls (Files, Makefile.am): Update.
1659         (Include): Change to "glthread/tls.h".
1660         * tests/test-lock.c: Update includes.
1661         * tests/test-tls.c: Update includes.
1662         * NEWS: Mention the renamed header files.
1663
1664 2008-08-11  Jim Meyering  <meyering@redhat.com>
1665
1666         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1667
1668 2008-08-11  Eric Blake  <ebb9@byu.net>
1669
1670         test-c-stack: avoid C99-ism
1671         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1672         before statement.
1673         Reported by Alain Guibert.
1674
1675 2008-08-10  Jim Meyering  <meyering@redhat.com>
1676
1677         ensure that return value of uinttostr et al are not ignored
1678         * lib/inttostr.h (__GNUC_PREREQ): Define.
1679         (__attribute_warn_unused_result__): Define.
1680         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1681
1682 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1683
1684         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1685         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1686
1687 2008-08-07  Jim Meyering  <meyering@redhat.com>
1688
1689         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1690
1691         * modules/mkstemp (License): Relicense under LGPLv2+.
1692         * modules/tempname (License): Likewise.
1693
1694 2008-08-06  Bruno Haible  <bruno@clisp.org>
1695
1696         * lib/poll.c (poll): Further micro-optimization.
1697
1698 2008-08-06  Jim Meyering  <meyering@redhat.com>
1699
1700         inet_pton.c: use locale-independent tolower
1701         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1702         (inet_pton6): Use c_tolower rather than tolower.
1703         * modules/inet_pton (Depends-on): Add c-ctype.
1704
1705 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1706
1707         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1708         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1709
1710 2008-08-06  Jim Meyering  <meyering@redhat.com>
1711
1712         * modules/inet_pton (License): Relicense under LGPLv2+.
1713
1714 2008-08-03  Bruno Haible  <bruno@clisp.org>
1715
1716         Additional non-aborting API for lock and tls.
1717         * lib/lock.h: Include <errno.h>.
1718         (glthread_lock_init): New macro/function.
1719         (gl_lock_init): Define as wrapper around glthread_lock_init.
1720         (glthread_lock_lock): New macro/function.
1721         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1722         (glthread_lock_unlock): New macro/function.
1723         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1724         (glthread_lock_destroy): New macro/function.
1725         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1726         (glthread_rwlock_init): New macro/function.
1727         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1728         (glthread_rwlock_rdlock): New macro/function.
1729         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1730         (glthread_rwlock_wrlock): New macro/function.
1731         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1732         (glthread_rwlock_unlock): New macro/function.
1733         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1734         (glthread_rwlock_destroy): New macro/function.
1735         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1736         (glthread_recursive_lock_init): New macro/function.
1737         (gl_recursive_lock_init): Define as wrapper around
1738         glthread_recursive_lock_init.
1739         (glthread_recursive_lock_lock): New macro/function.
1740         (gl_recursive_lock_lock): Define as wrapper around
1741         glthread_recursive_lock_lock.
1742         (glthread_recursive_lock_unlock): New macro/function.
1743         (gl_recursive_lock_unlock): Define as wrapper around
1744         glthread_recursive_lock_unlock.
1745         (glthread_recursive_lock_destroy): New macro/function.
1746         (gl_recursive_lock_destroy): Define as wrapper around
1747         glthread_recursive_lock_destroy.
1748         (glthread_once): New macro/function.
1749         (gl_once): Define as wrapper around glthread_once.
1750         Update function declarations.
1751         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1752         glthread_rwlock_init. Return error code.
1753         (glthread_rwlock_rdlock_multithreaded): Renamed from
1754         glthread_rwlock_rdlock. Return error code.
1755         (glthread_rwlock_wrlock_multithreaded): Renamed from
1756         glthread_rwlock_wrlock. Return error code.
1757         (glthread_rwlock_unlock_multithreaded): Renamed from
1758         glthread_rwlock_unlock. Return error code.
1759         (glthread_rwlock_destroy_multithreaded): Renamed from
1760         glthread_rwlock_destroy. Return error code.
1761         (glthread_recursive_lock_init_multithreaded): Renamed from
1762         glthread_recursive_lock_init. Return error code.
1763         (glthread_recursive_lock_lock_multithreaded): Renamed from
1764         glthread_recursive_lock_lock. Return error code.
1765         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1766         glthread_recursive_lock_unlock. Return error code.
1767         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1768         glthread_recursive_lock_destroy. Return error code.
1769         (glthread_once_call): Make static.
1770         (glthread_once_multithreaded): Renamed from glthread_once.
1771         * lib/tls.h: Include <errno.h>.
1772         (glthread_tls_key_init): New macro/function.
1773         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1774         (glthread_tls_set): New macro/function.
1775         (gl_tls_set): Define as wrapper around glthread_tls_set.
1776         (glthread_tls_key_destroy): New macro/function.
1777         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1778         Update function declarations.
1779         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1780         glthread_tls_get.
1781         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1782
1783 2008-08-04  Eric Blake  <ebb9@byu.net>
1784
1785         gnumakefile: use space, not TAB, outside of targets
1786         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1787
1788 2008-08-02  Jim Meyering  <meyering@redhat.com>
1789
1790         getdate.y: avoid locale-dependent date parsing failure
1791         In Turkish locales, getdate would fail to recognize keywords
1792         containing a lowercase "i".  The solution is not to rely on
1793         locale-sensitive case-conversion.
1794         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1795         (lookup_word): Use c_toupper in place of toupper.
1796         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1797         Reported by Vefa Bicakci <bicave@superonline.com> in
1798         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1799         * modules/getdate (Depends-on): Add c-ctype.
1800
1801 2008-08-02  Bruno Haible  <bruno@clisp.org>
1802
1803         * gnulib-tool (func_import): When updating or creating a .gitignore
1804         file, prepend each added line with a slash, and ignore leading slashes
1805         from the existing lines.
1806         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1807
1808 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1809
1810         Portability fix for GNU make 3.79.1.
1811         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1812         versions do not understand.
1813
1814 2008-08-01  Bruno Haible  <bruno@clisp.org>
1815
1816         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1817         * tests/test-isnanf.h (zero): New variable.
1818         (main): Avoid literal -0.0f.
1819         * tests/test-isnand.h (zero): New variable.
1820         (main): Avoid literal -0.0.
1821         * tests/test-isnanl.h (zero): New variable.
1822         (main): Avoid literal -0.0L.
1823         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1824         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1825         -0.0, -0.0L.
1826         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1827         (test_signbitd): Avoid literal -0.0.
1828         (test_signbitl): Avoid literal -0.0L.
1829         * tests/test-ceilf1.c (zero): New variable.
1830         (main): Avoid literal -0.0f.
1831         * tests/test-ceill.c (zero): New variable.
1832         (main): Avoid literal -0.0L.
1833         * tests/test-floorf1.c (zero): New variable.
1834         (main): Avoid literal -0.0f.
1835         * tests/test-floorl.c (zero): New variable.
1836         (main): Avoid literal -0.0L.
1837         * tests/test-roundf1.c (zero): New variable.
1838         (main): Avoid literal -0.0f.
1839         * tests/test-round1.c (zero): New variable.
1840         (main): Avoid literal -0.0.
1841         * tests/test-roundl.c (zero): New variable.
1842         (main): Avoid literal -0.0L.
1843         * tests/test-truncf1.c (zero): New variable.
1844         (main): Avoid literal -0.0f.
1845         * tests/test-trunc1.c (zero): New variable.
1846         (main): Avoid literal -0.0.
1847         * tests/test-truncl.c (zero): New variable.
1848         (main): Avoid literal -0.0L.
1849         * tests/test-frexp.c (zero): New variable.
1850         (main): Avoid literal -0.0.
1851         * tests/test-frexpl.c (zero): New variable.
1852         (main): Avoid literal -0.0L.
1853         * tests/test-ldexpl.c (zero): New variable.
1854         (main): Avoid literal -0.0L.
1855         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1856         (zerod, zerol): New variables.
1857         (test_function): Avoid literals -0.0, -0.0L.
1858         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1859         (zerod, zerol): New variables.
1860         (test_function): Avoid literals -0.0, -0.0L.
1861         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1862         (zerod, zerol): New variables.
1863         (test_function): Avoid literals -0.0, -0.0L.
1864         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1865         (zerod, zerol): New variables.
1866         (test_function): Avoid literals -0.0, -0.0L.
1867         * tests/test-strtod.c (zero): New variable.
1868         (main): Avoid literal -0.0.
1869         Reported by Jonathan C. Patschke <jp@centtech.com>.
1870
1871 2008-07-31  Jim Meyering  <meyering@redhat.com>
1872
1873         sha256.h: correct definition of SHA224_DIGEST_SIZE
1874         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1875         Reported by Paulie Pena IV <paulie4@gmail.com>.
1876         Define as 224 / 8, rather than as a literal.
1877         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1878         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1879         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1880
1881 2008-07-31  Bruno Haible  <bruno@clisp.org>
1882
1883         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1884         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1885         Reported by Jonathan Patschke <jp@centtech.com>.
1886
1887 2008-07-31  Bruno Haible  <bruno@clisp.org>
1888
1889         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1890         Reported by Paolo Bonzini <bonzini@gnu.org>.
1891
1892 2008-07-30  Eric Blake  <ebb9@byu.net>
1893
1894         test-strtod: allow compilation without -lm
1895         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1896         Reported by Dennis Clarke <blastwave@gmail.com>.
1897
1898 2008-07-28  Jim Meyering  <meyering@redhat.com>
1899
1900         bootstrap: work also when there are no .po files in po/
1901         * build-aux/bootstrap (update_po_files): Complete the change
1902         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1903
1904 2008-07-27  Jim Meyering  <meyering@redhat.com>
1905
1906         * users.txt: Add zile.
1907
1908 2008-07-26  Ben Pfaff  <blp@gnu.org>
1909
1910         Add missing dependencies on new m4/exponent[fdl].m4 files.
1911         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1912         * modules/isnand-nolibm: Add m4/exponentd.m4.
1913         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1914         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1915         m4/isnan[fdl].m4, because the macros actually used moved.
1916         Reported by Jim Meyering.
1917
1918 2008-07-14  Ben Pfaff  <blp@gnu.org>
1919
1920         Add isinf module.
1921         * lib/isinf.c: New file.
1922         * lib/math.in.h: Define isinf macro if we have decided to replace
1923         it.
1924         * m4/isinf.m4: New file.
1925         * m4/math_h.m4: Initialize and substitute variables for isinf
1926         module.
1927         * modules/isinf: New file.
1928         * modules/isinf-tests: New file.
1929         * modules/math: Add substitutions for new module.
1930         * tests/test-isinf.c: New file.
1931         * doc/posix-functions/isinf.texi: Mention new module.
1932         * MODULES.html.sh: Mention new module.
1933
1934 2008-07-14  Ben Pfaff  <blp@gnu.org>
1935
1936         Factor out some macros for use by additional modules.
1937         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1938         exponentf.m4.
1939         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1940         exponentd.m4.
1941         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1942         file exponentl.m4.
1943         * m4/exponentf.m4: New file.
1944         * m4/exponentd.m4: New file.
1945         * m4/exponentl.m4: New file.
1946         * modules/isnanf: Use new file m4/exponentf.m4.
1947         * modules/isnand: Use new file m4/exponentd.m4.
1948         * modules/isnanl: Use new file m4/exponentl.m4.
1949
1950 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1951
1952         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1953         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1954         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1955         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1956
1957         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1958         readlink on platforms without PATH_MAX.
1959
1960 2008-07-21  Eric Blake  <ebb9@byu.net>
1961
1962         Warn, not fail, on stale version.
1963         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1964
1965         Don't allow installation with stale devel version number.
1966         * top/GNUmakefile (_is-install-target): New macro.
1967         (_curr-ver): Forbid installation with stale version number.
1968
1969 2008-07-20  Bruno Haible  <bruno@clisp.org>
1970
1971         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1972         TESTS_ENVIRONMENT.
1973         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1974
1975 2008-07-20  Bruno Haible  <bruno@clisp.org>
1976
1977         * lib/c-stack.h (c_stack_action): Add documentation.
1978         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1979
1980 2008-07-20  Bruno Haible  <bruno@clisp.org>
1981
1982         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1983         * modules/readlink (License): Likewise.
1984
1985 2008-07-17  Eric Blake  <ebb9@byu.net>
1986
1987         * modules/c-stack (Link): Fix typo.
1988
1989         Make c-stack use libsigsegv, when available.
1990         * modules/c-stack (Depends-on): Add libsigsegv.
1991         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1992         needed.
1993         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1994         (segv_handler, overflow_handler, c_stack_action)
1995         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1996         implementation when libsigsegv is available, but only when using
1997         the library is necessary.
1998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1999         comment, explaining why XSI check fails on Linux.
2000         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2001         * tests/test-c-stack2.sh: Tweak skip message.
2002         * NEWS: Document new link-time requirements.
2003
2004 2008-07-16  Eric Blake  <ebb9@byu.net>
2005
2006         c-stack: Expose false positives when not using libsigsegv.
2007         * modules/c-stack-tests (Files): Expand test.
2008         * tests/test-c-stack.c (main): Add means to conditionally trigger
2009         non-overflow SIGSEGV.
2010         * tests/test-c-stack2.sh: New file.
2011
2012 2008-07-14  Bruno Haible  <bruno@clisp.org>
2013
2014         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2015         Reported by Eric Blake.
2016
2017 2008-07-14  Sam Steingold  <sds@gnu.org>
2018             Bruno Haible  <bruno@clisp.org>
2019
2020         New module libsigsegv.
2021         * modules/libsigsegv: New file.
2022         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2023         modifications.
2024         * MODULES.html.sh (Signal handling): New section.
2025
2026 2008-07-14  Bruno Haible  <bruno@clisp.org>
2027
2028         * modules/unictype/ctype-* (Description): Add the word "function".
2029         Improves the resulting doc in MODULES.html.
2030
2031 2008-07-12  Ben Pfaff  <blp@gnu.org>
2032
2033         Add longlong module.
2034         * modules/longlong: New file.
2035
2036 2008-07-12  Bruno Haible  <bruno@clisp.org>
2037
2038         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2039         to empty.
2040
2041 2008-07-10  Ben Pfaff  <blp@gnu.org>
2042
2043         Add isnan module.
2044         * doc/posix-functions/isnan.texi: Mention new module.
2045         * lib/math.in.h: Define isnan macro if we have decided to replace
2046         it.
2047         * m4/isnan.m4: New file.
2048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2049         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2050         also.
2051         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2052         redundancy.
2053         * m4/math_h.m4: Initialize and substitute variables for isnan
2054         module.
2055         * modules/isnan: New file.
2056         * modules/isnan-tests: New file.
2057         * modules/math: Add substitutions for new module.
2058         * tests/test-isnan.c: New file.
2059         * MODULES.html.sh: Mention new module.
2060
2061 2008-07-10  Ben Pfaff  <blp@gnu.org>
2062
2063         Add isnanf module.
2064         * lib/isnanf.m4: New file.
2065         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2066         (gl_HAVE_ISNANF_IN_LIBM): New macro.
2067         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2068         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2069         * modules/isnanf: New file.
2070         * modules/isnanf-tests: New file.
2071         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2072         files.
2073         * tests/test-isnanf-nolibm.c: factored most of its contents into
2074         new file tests/test-isnanf.h.
2075         * tests/test-isnanf.h: New file.
2076         * tests/test-isnanf.c: New file.
2077         * MODULES.html.sh: Mention new module.
2078         * doc/glibc-functions/isnanf.texi: Mention new module.
2079
2080 2008-07-10  Ben Pfaff  <blp@gnu.org>
2081
2082         Add isnand module.
2083         * lib/isnand.h: New file.
2084         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2085         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2086         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2087         functionality also.
2088         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2089         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2090         (gl_HAVE_ISNAND_IN_LIBM): New macro.
2091         * modules/isnand: New file.
2092         * modules/isnand-tests: New file.
2093         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2094         files.
2095         * tests/test-isnand-nolibm.c: factored most of its contents into
2096         new file tests/test-isnand.h.
2097         * tests/test-isnand.h: New file.
2098         * tests/test-isnand.c: New file.
2099         * MODULES.html.sh: Mention new module.
2100
2101 2008-07-10  Ben Pfaff  <blp@gnu.org>
2102
2103         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2104         * lib/isnand.h: Rename lib/isnand-nolibm.h.
2105         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2106         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2107         * modules/isnanf-nolibm: Update references to renamed files.
2108         * modules/isnand-nolibm: Likewise.
2109         * modules/isnanf-nolibm-tests: Likewise.
2110         * modules/isnand-nolibm-tests: Likewise.
2111         * lib/frexp.c: Likewise.
2112         * lib/isfinite.c: Likewise.
2113         * lib/signbitd.c: Likewise.
2114         * lib/signbitf.c: Likewise.
2115         * lib/vasnprintf.c: Likewise.
2116         * tests/test-ceilf1.c: Likewise.
2117         * tests/test-ceilf2.c: Likewise.
2118         * tests/test-floorf1.c: Likewise.
2119         * tests/test-floorf2.c: Likewise.
2120         * tests/test-frexp.c: Likewise.
2121         * tests/test-round1.c: Likewise.
2122         * tests/test-round2.c: Likewise.
2123         * tests/test-roundf1.c: Likewise.
2124         * tests/test-strtod.c: Likewise.
2125         * tests/test-trunc1.c: Likewise.
2126         * tests/test-trunc2.c: Likewise.
2127         * tests/test-truncf1.c: Likewise.
2128         * tests/test-truncf2.c: Likewise.
2129         * NEWS: Mention the renamed header files.
2130
2131 2008-07-11  Jim Meyering  <meyering@redhat.com>
2132
2133         vc-list-files: make the last-resort awk code more portable
2134         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2135         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2136         does not support it.
2137
2138 2008-07-10  Eric Blake  <ebb9@byu.net>
2139
2140         Work with tar's bootstrap.
2141         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2142         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2143         an m4 comment.
2144
2145 2008-07-09  Jim Meyering  <meyering@redhat.com>
2146
2147         posix-shell.m4: fix typo that made this test malfunction
2148         * m4/posix-shell.m4: Remove capitalization in variable name.
2149
2150 2008-07-08  Bruno Haible  <bruno@clisp.org>
2151
2152         * m4/onceonly.m4: Update comments.
2153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2154
2155 2008-07-04  Jim Meyering  <meyering@redhat.com>
2156
2157         * users.txt: Add vc-dwim.
2158         (bison, coreutils): Use the gitweb URL.
2159
2160 2008-07-03  Jim Meyering  <meyering@redhat.com>
2161
2162         * users.txt: Add libffcall.  From Sam Steingold.
2163
2164 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
2165
2166         getdate.y: do not ignore TZ with relative day, month or year offset
2167         * lib/getdate.y (get_date): Move the tz-handling block to follow the
2168         relative-date-handling, since otherwise, the latter would clobber the
2169         sole output (an updated Start value) of the tz-handling block.
2170         * tests/test-getdate.c: Tests for the fix
2171
2172 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2173
2174         Recognize 'foo_LIBRARIES += libgnu.a'.
2175         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2176         makefile snippet has already specified an installation location,
2177         also using '+='.
2178
2179 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
2180
2181         getdate.y: factor out common actions
2182         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2183         Use them in place of open-coded actions.
2184
2185 2008-07-01  Simon Josefsson  <simon@josefsson.org>
2186
2187         Add self-test for getdate module.
2188         * modules/getdate-tests: New file.
2189         * tests/test-getdate.c: New file.
2190
2191 2008-06-29  Bruno Haible  <bruno@clisp.org>
2192
2193         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2194         .gitignore.
2195         Reported by Sylvain Beucler <beuc@beuc.net>.
2196
2197 2008-06-29  Bruno Haible  <bruno@clisp.org>
2198
2199         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2200         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2201
2202 2008-06-29  Bruno Haible  <bruno@clisp.org>
2203
2204         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2205         EXTRA_DIST.
2206         Reported by Sylvain Beucler <beuc@beuc.net>.
2207
2208 2008-06-26  Jim Meyering  <meyering@redhat.com>
2209
2210         make several modules depend on the "open" module
2211         This provides slightly increased consistency when opening-for-write
2212         the name of a non-directory spelled with a trailing slash.
2213         * modules/chdir-safer: Likewise.
2214         * modules/chown: Likewise.
2215         * modules/clean-temp: Likewise.
2216         * modules/copy-file: Likewise.
2217         * modules/fchdir: Likewise.
2218         * modules/fcntl-safer: Likewise.
2219         * modules/pipe: Likewise.
2220         * modules/utime: Likewise.
2221         Prompted by Eric Blake and Bruno Haible.
2222
2223 2008-06-24  Andreas Schwab  <schwab@suse.de>
2224
2225         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2226         literals can be used as initializers for global variables.
2227
2228 2008-06-23  Eric Blake  <ebb9@byu.net>
2229
2230         Make gnulib-cache.m4 easier to diff.
2231         * gnulib-tool (func_import): Allow newlines when reading cached
2232         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2233
2234 2008-06-23  Bruno Haible  <bruno@clisp.org>
2235
2236         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2237         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2238         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2239         m4/signalblocking.m4.
2240         (gl_PREREQ_SIGACTION): Don't invoke it.
2241         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2242         gl_PREREQ_SIG_HANDLER_H.
2243         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2244         Don't check for sigaction here.
2245
2246 2008-06-23  Bruno Haible  <bruno@clisp.org>
2247
2248         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2249         (install_handlers): Don't set the SA_RESETHAND flag.
2250
2251 2008-06-23  Bruno Haible  <bruno@clisp.org>
2252
2253         * m4/sigaction.m4: Comment fixes.
2254         * lib/signal.in.h: Likewise.
2255
2256 2008-06-23  Eric Blake  <ebb9@byu.net>
2257
2258         Fix typo.
2259         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2260
2261         Avoid SA_ namespace.
2262         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2263         Reported by Ralf Wildenhues.
2264
2265         Avoid test failure due to SA_RESTORER.
2266         * tests/test-sigaction.c (SA_MASK): New macro.
2267         (main): Avoid failing due to extension flags being set.
2268         Reported by Jim Meyering.
2269
2270         Revert use of sig-handler.h in sigprocmask.c.
2271         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2272         it requires the existence of struct sigaction.
2273         * lib/sigprocmask.c (handler_t): Restore typedef.
2274         (rpl_signal, old_handlers): Use local type.
2275
2276 2008-06-22  Bruno Haible  <bruno@clisp.org>
2277
2278         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2279         conditionally.
2280         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2281
2282 2008-06-22  Bruno Haible  <bruno@clisp.org>
2283
2284         * doc/posix-functions/siginterrupt.texi: Move note.
2285
2286         * lib/signal.in.h (SA_RESTART): New macro.
2287         * lib/sigaction.c: Update comment.
2288
2289         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2290
2291         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2292         (gl_PREREQ_SIGPROCMASK): Invoke it.
2293         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2294
2295         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2296
2297         * lib/sigprocmask.c: Update a comment.
2298
2299 2008-06-21  Eric Blake  <ebb9@byu.net>
2300
2301         Use sigaction module rather than signal().
2302         * modules/c-stack (Depends-on): Add sigaction.
2303         * modules/fatal-signal (Depends-on): Likewise.
2304         * modules/nanosleep (Depends-on): Likewise.
2305         * modules/sigprocmask (Files): Add sig-handler.h.
2306         * modules/sigaction (Files): Likewise.
2307         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2308         Eggert.
2309         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2310         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2311         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2312         (init_fatal_signals): Likewise.
2313         * lib/nanosleep.c (rpl_nanosleep): Likewise.
2314         (siginterrupt): Delete fallback.
2315         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2316         instead.
2317         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2318         siginterrupt.
2319
2320         New module sigaction, for mingw.
2321         * modules/sigaction: New module...
2322         * modules/sigaction-tests: ...and its test.
2323         * m4/sigaction.m4: New file.
2324         * lib/sigaction.c: Likewise.
2325         * tests/test-sigaction.c: Likewise.
2326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2327         * modules/signal (Makefile.am): Likewise.
2328         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2329         needed.
2330         * doc/posix-headers/signal.texi (signal.h): Mention provided
2331         types.
2332         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
2333         that sigaction is preferable.
2334         * doc/posix-functions/sigaction.texi (sigaction): Mention new
2335         module.
2336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2337         sigaction.
2338
2339         Improve robustness of sigprocmask by overriding signal.
2340         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
2341         is in use.
2342         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
2343         (SIGKILL, SIGSTOP): Provide fallbacks.
2344         (rpl_signal): Implement.
2345         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
2346         signal can be called inside handlers.
2347
2348         Fix nanosleep module on mingw.
2349         * modules/nanosleep (Depends-on): Add sys_select.
2350         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
2351
2352         Fix licensing of sigprocmask.
2353         * modules/raise (License): Relicense as LGPL.
2354
2355 2008-06-21  Bruno Haible  <bruno@clisp.org>
2356
2357         * lib/propername.c (proper_name_utf8): Don't use the transliterated
2358         result if it contains question marks.
2359         Reported by Michael Geng <linux@michaelgeng.de>.
2360
2361 2008-06-19  Bruno Haible  <bruno@clisp.org>
2362
2363         Fix CVS-ism.
2364         * doc/gnulib.texi: Include updated-stamp.texi.
2365         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
2366         (updated-stamp.texi): New rule.
2367         (gnulib.info): Depend on it.
2368         * doc/.gitignore: Add updated-stamp.texi.
2369         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2370
2371 2008-06-19  Bruno Haible  <bruno@clisp.org>
2372
2373         * doc/Makefile (gnulib.info): Update and simplify dependencies.
2374         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2375
2376 2008-06-19  Eric Blake  <ebb9@byu.net>
2377
2378         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2379         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2380         Reported by Stepan Kasal.
2381
2382 2008-06-18  Bruno Haible  <bruno@clisp.org>
2383
2384         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2385         Reported by Eric Blake.
2386
2387 2008-06-18  Eric Blake  <ebb9@byu.net>
2388
2389         Work around cygwin 1.5.25 strsignal bug.
2390         * tests/test-strsignal.c: Allow for const char *.
2391         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2392
2393 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2394
2395         * users.txt: Update URL to article and add author/date
2396         information.
2397
2398 2008-06-17  Bruno Haible  <bruno@clisp.org>
2399
2400         New macro gl_DISABLE_THREADS.
2401         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2402         if the user did not pass --enable-threads or --disable-threads option.
2403         (gl_DISABLE_THREADS): New macro.
2404         Reported by Eric Blake <ebb9@byu.net>.
2405
2406 2008-06-17  Bruno Haible  <bruno@clisp.org>
2407
2408         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2409         when the macro ignores it.
2410         Based on a patch by Eric Blake <ebb9@byu.net>.
2411
2412 2008-06-17  Bruno Haible  <bruno@clisp.org>
2413
2414         * modules/tls (License): Change to LGPLv2+.
2415         Reported by Eric Blake.
2416
2417 2008-06-17  Eric Blake  <ebb9@byu.net>
2418
2419         Simplify c-stack prerequisites.
2420         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
2421         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
2422         no longer requires <ucontext.h> to exist.  Optimize setrlimit
2423         check.
2424         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
2425         <sys/resource.h>.
2426
2427         Move c-stack test into testsuite.
2428         * modules/c-stack-tests: New file.
2429         * lib/c-stack.c [DEBUG]: Move test program...
2430         * tests/test-c-stack.c: ...into this new file.  Skip rather than
2431         fail test if sigaltstack is lacking.
2432         * tests/test-c-stack.sh: New driver file.
2433
2434 2008-06-16  Eric Blake  <ebb9@byu.net>
2435
2436         Use raise module consistently.
2437         * modules/fatal-signal (Depends-on): Add raise.
2438         * modules/sigprocmask (Depends-on): Likewise.
2439         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
2440         * lib/sigprocmask.c (sigprocmask): Likewise.
2441         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2442         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2443
2444         Fix compliance bug in sigpending.
2445         * lib/sigprocmask.c (sigpending): Return pending array via
2446         parameter, not return value.
2447
2448 2008-06-14  Eric Blake  <ebb9@byu.net>
2449
2450         Improve obstack-printf test code.
2451         * tests/test-obstack-printf.c (test_function): Fix comment, and
2452         simplify usage of obstack_* in macros.  Add a test for coverage.
2453         Reported by Bruno Haible.
2454
2455 2008-06-14  Bruno Haible  <bruno@clisp.org>
2456
2457         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2458         array size as a constant, not as a const variable.
2459         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2460         AC_USE_SYSTEM_EXTENSIONS.
2461         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2462         Test whether the obstack_printf function actually exists.
2463         * modules/obstack-printf (Depends-on): Add extensions.
2464         (Include): Remove obstack.h.
2465         * modules/obstack-printf-posix (Depends-on): Add extensions.
2466         (Include): Remove obstack.h.
2467
2468 2008-06-13  Eric Blake  <ebb9@byu.net>
2469
2470         Add obstack-printf and obstack-printf-posix modules.
2471         * modules/obstack-printf: New file.
2472         * modules/obstack-printf-posix: Likewise.
2473         * MODULES.html.sh (Misc): Mention them.
2474         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2475         Likewise.
2476         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2477         Likewise.
2478         * modules/stdio (Makefile.am): Accomodate new modules.
2479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2480         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2481         Declare.
2482         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2483         functions.
2484         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2485         (gl_REPLACE_OBSTACK_PRINTF): New macros
2486         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2487         * tests/test-obstack-printf.c: New file.
2488         * modules/obstack-printf-tests: Likewise.
2489         * modules/obstack-printf-posix-tests: Likewise.
2490
2491 2008-06-11  Bruno Haible  <bruno@clisp.org>
2492
2493         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2494         * lib/open.c: Include errno.h.
2495         (open): Fail when attempting to write to a file that has a trailing
2496         slash.
2497         * tests/test-open.c (main): Test against trailing slash bug.
2498         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2499
2500 2008-06-10  Bruno Haible  <bruno@clisp.org>
2501
2502         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2503         for $? to work inside the trap command, with various /bin/sh-s.
2504         * tests/test-vc-list-files-cvs.sh: Likewise.
2505
2506 2008-06-10  Bruno Haible  <bruno@clisp.org>
2507
2508         * lib/acl-internal.h: Don't include gettext.h here.
2509         * lib/set-mode-acl.c: Include gettext.h here.
2510         * lib/copy-acl.c: Likewise.
2511
2512 2008-06-10  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2515         * lib/wait-process.c (wait_subprocess): Likewise.
2516         * lib/execute.h (execute): Add termsigp argument.
2517         * lib/execute.c (execute): Likewise.
2518         * lib/csharpcomp.c (compile_csharp_using_pnet,
2519         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2520         * lib/csharpexec.c (execute_csharp_using_pnet,
2521         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2522         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2523         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2524         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2525         is_jikes_present): Update.
2526         * lib/javaexec.c (execute_java_class): Update.
2527         * lib/javaversion.c (execute_and_read_line): Update.
2528         * NEWS: Document the changes.
2529         Reported by Eric Blake.
2530
2531 2008-06-10  Eric Blake  <ebb9@byu.net>
2532
2533         Add missing include.
2534         * tests/test-strstr.c (includes): Add <signal.h>.
2535         * tests/test-strcasestr.c (includes): Likewise.
2536         * tests/test-memmem.c (includes): Likewise.
2537
2538 2008-06-10  Bruno Haible  <bruno@clisp.org>
2539
2540         * lib/wait-process.c (wait_subprocess): Add an assertion.
2541
2542 2008-06-10  Bruno Haible  <bruno@clisp.org>
2543
2544         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2545
2546 2008-06-10  Bruno Haible  <bruno@clisp.org>
2547
2548         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2549         using alarm().
2550         * tests/test-strcasestr.c (main): Likewise.
2551         * tests/test-strstr.c (main): Likewise.
2552
2553 2008-06-09  Bruno Haible  <bruno@clisp.org>
2554
2555         Work around the Solaris 10 ACE ACLs ABI change.
2556         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2557         declare if ACL_NO_TRIVIAL is present.
2558         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2559         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2560         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2561         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2562         define if ACL_NO_TRIVIAL is present.
2563         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2564         and use the current ABI.
2565         (file_has_acl): Use same #if condition as elsewhere.
2566         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2567         in use, and use the current ABI.
2568         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2569         Reported by Jim Meyering.
2570
2571 2008-06-09  Eric Blake  <ebb9@byu.net>
2572
2573         Work around environments that (stupidly) ignore SIGALRM.
2574         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2575         before using alarm().
2576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2578         Reported by Ian Beckwith <ianb@erislabs.net>.
2579
2580         Produce autobuild blurb earlier in log.
2581         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2582
2583 2008-06-09  Jim Meyering  <meyering@redhat.com>
2584         and Ondřej Vašík  <ovasik@redhat.com>
2585
2586         utimens.c: correct kernel bug work-around
2587         Ondřej Vašík found that the invalid return value of 280 indicates
2588         failure, not success, and the kernel bug we're trying to work
2589         around affects not just the utimensat call, but also the fallback
2590         futimens call.
2591         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2592         not success.
2593         [HAVE_FUTIMENS]: Use the same work-around, here.
2594
2595 2008-06-09  Jim Meyering  <meyering@redhat.com>
2596
2597         add more guards around definition of ACE_-related code
2598         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2599         ALLOW and ACE_OWNER are also defined.
2600
2601 2008-06-08  Bruno Haible  <bruno@clisp.org>
2602
2603         * lib/acl-internal.h: Add me as co-author.
2604         * lib/file-has-acl.c: Likewise.
2605         * lib/set-mode-acl.c: Likewise.
2606         * lib/copy-acl.c: Likewise.
2607
2608 2008-06-08  Bruno Haible  <bruno@clisp.org>
2609
2610         Add support for AIX ACLs.
2611         * lib/acl-internal.h (acl_nontrivial): New declaration.
2612         * lib/file-has-acl.c (acl_nontrivial): New function.
2613         (file_has_acl): Add implementation using AIX 4 ACL API.
2614         * lib/set-mode-acl.c (qset_acl): Likewise.
2615         * lib/copy-acl.c (qcopy_acl): Likewise.
2616
2617 2008-06-08  Bruno Haible  <bruno@clisp.org>
2618
2619         Add support for HP-UX ACLs.
2620         * lib/acl-internal.h (acl_nontrivial): New declaration.
2621         * lib/file-has-acl.c (acl_nontrivial): New function.
2622         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2623         * lib/set-mode-acl.c (qset_acl): Likewise.
2624         * lib/copy-acl.c (qcopy_acl): Likewise.
2625
2626 2008-06-08  Bruno Haible  <bruno@clisp.org>
2627
2628         Add support for Cygwin ACLs.
2629         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2630         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2631         the chmod_or_fchmod call.
2632         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2633
2634 2008-06-08  Bruno Haible  <bruno@clisp.org>
2635
2636         Fix bug with setuid modes in Solaris 10+ code.
2637         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2638         succeeded, when the mode contains some special bits.
2639
2640 2008-06-08  Bruno Haible  <bruno@clisp.org>
2641
2642         Add support for Solaris 7..10 ACLs.
2643         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2644         declarations.
2645         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2646         functions.
2647         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2648         * lib/set-mode-acl.c (qset_acl): Likewise.
2649         * lib/copy-acl.c (qcopy_acl): Likewise.
2650
2651 2008-06-08  Bruno Haible  <bruno@clisp.org>
2652
2653         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2654         declaration.
2655         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2656         (acl_access_nontrivial): Remove MacOS X case.
2657         (file_has_acl): Use acl_extended_nontrivial.
2658         * lib/copy-acl.c (qcopy_acl): Likewise.
2659
2660 2008-06-08  Bruno Haible  <bruno@clisp.org>
2661
2662         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2663
2664 2008-06-08  Jim Meyering  <meyering@redhat.com>
2665
2666         * modules/acl (Maintainer): Add Bruno Haible.
2667
2668 2008-06-07  Bruno Haible  <bruno@clisp.org>
2669
2670         Improve support for Tru64 ACLs.
2671         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2672         ACL on OSF/1.
2673
2674 2008-06-07  Bruno Haible  <bruno@clisp.org>
2675
2676         Add support for MacOS X ACLs.
2677         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2678         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2679         * lib/set-mode-acl.c (qset_acl): Likewise.
2680         * lib/copy-acl.c (qcopy_acl): Likewise.
2681
2682 2008-06-07  Bruno Haible  <bruno@clisp.org>
2683
2684         Fix memory leak introduced on 2008-05-22.
2685         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2686         use.
2687
2688 2008-06-07  Bruno Haible  <bruno@clisp.org>
2689
2690         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2691         to construct an empty ACL.
2692
2693 2008-06-07  Bruno Haible  <bruno@clisp.org>
2694
2695         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2696         precisely.
2697         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2698
2699 2008-06-07  Bruno Haible  <bruno@clisp.org>
2700
2701         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2702         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2703
2704 2008-06-07  Bruno Haible  <bruno@clisp.org>
2705
2706         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2707         regardless of POSIX.
2708         * doc/posix-functions/_longjmp.texi: Likewise.
2709         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2710         SystemV platform in this case.
2711
2712 2008-06-06  Eric Blake  <ebb9@byu.net>
2713
2714         Document abort() bugs.
2715         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2716
2717         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2718         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2719         sigsetjmp.
2720         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2721         siglongjmp, but only as a macro.
2722         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2723         is obsolete.
2724         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2725
2726         Tweak documentation to cover cygwin argz bugs.
2727         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2728         argz bug fix; no code change needed since no cygwin releases
2729         occurred between the last fix and the bug being tested.
2730         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2731         module and recently fixed cygwin bugs.
2732         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2733         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2734         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2735         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2736         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2737         Likewise.
2738         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2739         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2740         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2741         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2742         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2743         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2744         Likewise.
2745
2746         Avoid gcc warning on cygwin.
2747         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2748         !ACL_NO_TRIVIAL]: Avoid unused variable.
2749
2750 2008-06-05  Eric Blake  <ebb9@byu.net>
2751
2752         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2753         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2754         git-version-gen fails to come up with a version.
2755         Reported by Simon Josefsson.
2756
2757 2008-06-05  Jim Meyering  <meyering@redhat.com>
2758             Paul Eggert  <eggert@cs.ucla.edu>
2759
2760         utimens.c: work around a probable Linux kernel bug
2761         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2762         appears to be a kernel bug that causes utimensat to return 280
2763         instead of 0, indicating success.
2764
2765 2008-06-04  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2768         2008-06-01 commit.
2769
2770 2008-06-04  Bruno Haible  <bruno@clisp.org>
2771
2772         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2773         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2774         (file_has_acl): Use it. Save errno afterwards.
2775         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2776
2777 2008-06-03  Bruno Haible  <bruno@clisp.org>
2778
2779         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2780         draft code. Simplify #ifs.
2781         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2782         Put Solaris code after POSIX-draft code. Fix comments regarding
2783         Solaris 10, HP-UX. Mention Cygwin.
2784         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2785
2786 2008-06-03  Eric Blake  <ebb9@byu.net>
2787
2788         Provide fallback for older kernels.
2789         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2790         Provide runtime fallback if kernel lacks support.
2791         Reported by Mike Frysinger.
2792
2793 2008-06-02  Bruno Haible  <bruno@clisp.org>
2794
2795         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2796         it exists.
2797
2798 2008-06-02  Bruno Haible  <bruno@clisp.org>
2799
2800         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2801         * lib/copy-acl.c (qcopy_acl): Update comment.
2802
2803 2008-06-02  Bruno Haible  <bruno@clisp.org>
2804
2805         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2806         like ACL APIs.
2807
2808 2008-06-02  Bruno Haible  <bruno@clisp.org>
2809
2810         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2811         * tests/test-set-mode-acl.sh: Likewise.
2812         * tests/test-copy-acl.sh: Likewise.
2813         * tests/test-copy-file.sh: Likewise.
2814
2815 2008-06-02  Bruno Haible  <bruno@clisp.org>
2816
2817         * tests/test-file-has-acl.sh: Remove unused code.
2818
2819 2008-06-01  Bruno Haible  <bruno@clisp.org>
2820
2821         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2822         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2823         messages.
2824         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2825
2826 2008-06-01  Bruno Haible  <bruno@clisp.org>
2827
2828         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2829         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2830         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2831         APIs.
2832         * modules/acl-tests (configure.ac): Remove tests now contained in
2833         m4/acl.m4.
2834
2835 2008-06-02  Jim Meyering  <meyering@redhat.com>
2836
2837         announce-gen: use a better key-server host name
2838         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2839         it may be more consistently reliable.  Suggested by Werner Koch
2840         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2841
2842 2008-06-01  Bruno Haible  <bruno@clisp.org>
2843
2844         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2845         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2846
2847 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2848
2849         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2850
2851 2008-06-01  Bruno Haible  <bruno@clisp.org>
2852
2853         New ACL tests.
2854         * tests/test-file-has-acl.sh: New file.
2855         * tests/test-file-has-acl.c: New file.
2856         * tests/test-set-mode-acl.sh: New file.
2857         * tests/test-set-mode-acl.c: New file.
2858         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2859         * tests/test-copy-acl.c: New file.
2860         * modules/acl-tests: New file, based on modules/copy-file-tests.
2861         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2862         (Depends-on): Add acl-tests.
2863         (configure.ac): Remove checks.
2864         (Makefile.am): Don't create test-sameacls program here any more.
2865
2866 2008-06-01  Bruno Haible  <bruno@clisp.org>
2867
2868         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2869         * tests/test-sameacls.c: Include progname.h.
2870         (main): Invoke set_program_name. Portability fixes for MacOS X,
2871         Solaris, HP-UX.
2872
2873 2008-06-01  Bruno Haible  <bruno@clisp.org>
2874
2875         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2876         function.
2877         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2878
2879 2008-06-01  Bruno Haible  <bruno@clisp.org>
2880
2881         * modules/rpmatch (Depends-on): Add strdup.
2882
2883 2008-06-01  Bruno Haible  <bruno@clisp.org>
2884
2885         * lib/pipe.c: Include unistd-safer.h.
2886         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2887         * modules/pipe (Depends-on): Add unistd-safer.
2888
2889 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2890
2891         * modules/autobuild (configure.ac): Call AB_INIT.
2892
2893 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2894
2895         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2896         Suggested by Bruno Haible <bruno@clisp.org>.
2897
2898 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2899
2900         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2901         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2902         <bruno@clisp.org>.
2903
2904 2008-05-29  Eric Blake  <ebb9@byu.net>
2905
2906         Prefer new POSIX 200x interfaces over futimesat.
2907         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2908         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2909         when available.
2910         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2911
2912 2008-05-28  Bruno Haible  <bruno@clisp.org>
2913
2914         * modules/stpcpy (License): Change to LGPLv2+.
2915         Requested by David Lutterkort <dlutter@redhat.com>.
2916
2917 2008-05-27  Bruno Haible  <bruno@clisp.org>
2918
2919         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2920         current mingw.
2921         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2922
2923 2008-05-27  Bruno Haible  <bruno@clisp.org>
2924
2925         * modules/iconv_open (Link): New section, from module 'iconv'.
2926         * modules/striconv (Link): Likewise.
2927         * modules/striconveh (Link): Likewise.
2928         * modules/xstriconv (Link): Likewise.
2929         * modules/unicodeio (Link): Likewise.
2930         * modules/propername (Link): Likewise.
2931         Reported by Jim Meyering.
2932
2933 2008-05-26  Jim Meyering  <meyering@redhat.com>
2934
2935         sha256: do not artificially restrict buffer length to be < 2^32
2936         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2937         uint32_t to size_t.
2938         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2939         to match.
2940
2941         avoid unaligned access errors, e.g., on sparc
2942         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2943         direct access through a possibly-unaligned uint64* pointer.
2944         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2945         direct access through a possibly-unaligned uint32* pointer.
2946         Prompted by this patch from Tom "spot" Callaway:
2947         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2948
2949         sha512.c: fix typo in comment
2950         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2951
2952 2008-05-25  Bruno Haible  <bruno@clisp.org>
2953
2954         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2955         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2956         (Makefile.am): Update lib_SOURCES.
2957
2958 2008-05-25  Bruno Haible  <bruno@clisp.org>
2959
2960         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2961
2962 2008-05-25  Jim Meyering  <meyering@redhat.com>
2963
2964         useless-if-before-free: freed expr may have white-space differences
2965         * build-aux/useless-if-before-free: Recognize cases in which the
2966         freed expression differs from the tested one in embedded white
2967         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2968         $1 was used, so we can't make any regexp shy.  Improved tests now
2969         detect this.
2970
2971         useless-if-before-free: accept white space in the expression.
2972         * build-aux/useless-if-before-free: For now, any white space
2973         in the expression must be identical in the free argument.
2974
2975         useless-if-before-free: efficiency tweak
2976         * build-aux/useless-if-before-free: Make the expression-matching
2977         regexp "shy".
2978         Make the *outer* regexp shy, not the expr-matching one.
2979
2980         update code-in-comment to accept cast of free arg
2981         * build-aux/useless-if-before-free: Update regexp.
2982
2983 2008-05-25  Bruno Haible  <bruno@clisp.org>
2984
2985         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2986         * modules/copy-file-tests (Files, Makefile.am): Update.
2987         * tests/test-copy-file.c (func_test_copy): Update.
2988
2989 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2990
2991         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2992
2993 2008-05-23  Bruno Haible  <bruno@clisp.org>
2994
2995         Improve support for ACLs on OSF/1.
2996         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2997         Remove fallback for unknown flavors of ACLs.
2998
2999 2008-05-22  Bruno Haible  <bruno@clisp.org>
3000
3001         Add support for ACLs on OSF/1.
3002         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3003         replacements.
3004         (acl_free_text): New macro fallback.
3005         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3006         acl_free.
3007         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3008         acl_free_text function. Require AC_C_INLINE.
3009
3010 2008-05-22  Bruno Haible  <bruno@clisp.org>
3011
3012         Make copy_acl work on MacOS X 10.5.
3013         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3014         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3015         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3016         If MODE_INSIDE_ACL, don't assume that every system has the same text
3017         representation for ACLs as FreeBSD.
3018         * lib/copy-acl.c (copy_acl): Add support for platforms with
3019         !MODE_INSIDE_ACL.
3020         * lib/file-has-acl.c (file_has_acl): Likewise.
3021         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3022         FreeBSD, MacOS X, or IRIX, respectively.
3023
3024 2008-05-22  Bruno Haible  <bruno@clisp.org>
3025
3026         * lib/acl.h: Don't include <sys/acl.h>.
3027         (GETACLCNT): Move fallback to lib/acl-internal.h.
3028         * lib/acl-internal.h: Include <sys/acl.h> here.
3029         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3030
3031 2008-05-22  Bruno Haible  <bruno@clisp.org>
3032
3033         Split off copy_acl function to separate file.
3034         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3035         * lib/acl.c (copy_acl): Moved function to separate file.
3036         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3037         * modules/acl (Files): Add lib/copy-acl.c.
3038         (Makefiles.am): Augment lib_SOURCES.
3039
3040 2008-05-22  Bruno Haible  <bruno@clisp.org>
3041
3042         * modules/copy-file-tests: New file.
3043         * tests/test-copy-file.sh: New file.
3044         * tests/test-copy-file.c: New file.
3045         * tests/test-copy-file-sameacls.c: New file.
3046
3047 2008-05-22  Eric Blake  <ebb9@byu.net>
3048
3049         Avoid gcc warning.
3050         * tests/test-memcmp.c (main): Pass NULL indirectly.
3051
3052 2008-05-21  Bruno Haible  <bruno@clisp.org>
3053
3054         Add reference doc about ACLs.
3055         * doc/acl-resources.txt: New file.
3056         * doc/acl-cygwin.txt: New file.
3057
3058 2008-05-21  Bruno Haible  <bruno@clisp.org>
3059
3060         Avoid one more warning from gcc.
3061         * lib/vasnprintf.c (IF_LINT): Update comments.
3062         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3063
3064 2008-05-21  Jim Meyering  <meyering@redhat.com>
3065
3066         avoid a warning from gcc
3067         * lib/vasnprintf.c (IF_LINT): Define.
3068         (scale10_round_decimal_long_double):
3069         Use it to avoid a "may be used uninitialized" warning.
3070         (scale10_round_decimal_double): Likewise.
3071
3072 2008-05-21  Simon Josefsson  <simon@josefsson.org>
3073
3074         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3075         declared.
3076
3077 2008-05-20  Bruno Haible  <bruno@clisp.org>
3078
3079         * tests/test-memcmp.c (main): Test also the sign of the result. Test
3080         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3081
3082 2008-05-20  Simon Josefsson  <simon@josefsson.org>
3083
3084         * modules/memcmp-tests: New file.
3085         * tests/test-memcmp.c: New file.
3086
3087 2008-05-19  Bruno Haible  <bruno@clisp.org>
3088
3089         * modules/propername (Notice, configure.ac): Put quoted "..." into
3090         --keyword option.
3091         * lib/propername.h: Update comments accordingly.
3092         Reported by Eric Blake.
3093
3094 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
3095
3096         * modules/getpass-gnu (Depends-on): Add fseeko.
3097
3098 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3099
3100         * modules/base64-tests: New file.
3101
3102 2008-05-19  Bo Borgerson <gigabo@gmail.com>
3103
3104         * lib/base64.c (base64_decode_ctx): If a decode context structure
3105         was passed in use it to ignore newlines.  If a context structure
3106         was _not_ passed in, continue to treat newlines as garbage (this
3107         is the historical behavior).  Formerly base64_decode.
3108         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3109         takes a decode context structure.
3110         * lib/base64.h (base64_decode): Macro for four-argument calls.
3111         (base64_decode_alloc): Likewise.
3112         * lib/base64.c (base64_decode_ctx): If a decode context structure
3113         was passed in use it to ignore newlines.  If a context structure
3114         was _not_ passed in, continue to treat newlines as garbage (this
3115         is the historical behavior).  Formerly base64_decode.
3116         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3117         takes a decode context structure.
3118         * lib/base64.h (base64_decode): Macro for four-argument calls.
3119         (base64_decode_alloc): Likewise.
3120
3121 2008-05-19  Jim Meyering  <meyering@redhat.com>
3122
3123         avoid a warning from gcc
3124         * lib/trim.c (IF_LINT): Define.
3125         (trim2): Use it to avoid a "may be used uninitialized" warning.
3126
3127         Fix doc typo.
3128         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3129
3130 2008-05-19  Bruno Haible  <bruno@clisp.org>
3131
3132         * doc/glibc-functions/getpass.texi: Document limits of other
3133         implementations.
3134
3135 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3136             Bruno Haible <bruno@clisp.org>
3137
3138         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3139
3140 2008-05-18  Bruno Haible  <bruno@clisp.org>
3141
3142         * modules/propername: New file, from GNU gettext.
3143         * lib/propername.h: New file, from GNU gettext.
3144         * lib/propername.c: New file, from GNU gettext.
3145         * MODULES.html.sh (Internationalization functions): Add propername.
3146
3147 2008-05-16  Jim Meyering  <meyering@redhat.com>
3148             Bruno Haible  <bruno@clisp.org>
3149
3150         Avoid some warnings from "gcc -Wshadow".
3151         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3152
3153 2008-05-15  Eric Blake  <ebb9@byu.net>
3154
3155         Extend previous patch to cygwin 1.7.0.
3156         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3157         fast implementation in cygwin >= 1.7.0.
3158         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3160
3161 2008-05-15  Bruno Haible  <bruno@clisp.org>
3162
3163         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3164         implementation in glibc >= 2.9.
3165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3167
3168 2008-05-15  Bruno Haible  <bruno@clisp.org>
3169
3170         * MODULES.html.sh (Internationalization functions): Remove linebreak.
3171         (Unicode string functions): Add unilbrk/*.
3172         Reported by Karl Berry.
3173
3174 2008-05-15  Eric Blake  <ebb9@byu.net>
3175
3176         Fix violation of <stdbool.h> replacement in regex.
3177         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3178         * lib/regexec.c (re_search_internal): Likewise.
3179         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3180
3181 2008-05-15  Jim Meyering  <meyering@redhat.com>
3182
3183         avoid distracting test output when git or cvs is not found
3184         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3185         * tests/test-vc-list-files-git.sh: Likewise.
3186
3187 2008-05-15  Eric Blake  <ebb9@byu.net>
3188
3189         Glibc finally accepted the memmem speedup code, bugzilla #5514.
3190         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3191         glibc version.
3192         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3193         * doc/posix-functions/strstr.texi (strstr): Likewise.
3194         * lib/str-two-way.h (MAX): Sychronize with glibc.
3195
3196 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
3197
3198         * lib/regcomp.c (optimize_utf8): Add a note on why we test
3199         opr.ctx_type.
3200         (calc_first): Initialize constraint field.
3201         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3202         Fix grammar.
3203         (duplicate_node): Merge constraint field for all node types.
3204         (calc_eclosure_iter): Look at constraint field for all node types.
3205         * lib/regex_internal.c (create_cd_newstate): Don't look at
3206         opr.ctx_type.
3207
3208 2008-05-14  Bruno Haible  <bruno@clisp.org>
3209
3210         Help GCC to do better code generation.
3211         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3212         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3213         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3214         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3215         Declare with attribute 'malloc' if supported.
3216
3217 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
3218
3219         use "echo STR|wc -c" rather than unportable "expr length STR"
3220         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3221         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3222
3223 2008-05-14  Jim Meyering  <meyering@redhat.com>
3224
3225         use dd ibs=$n count=1 ... rather than less-portable head -c$n
3226         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3227         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3228         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3229         via Collin Lasse.
3230
3231 2008-05-14  Eric Blake  <ebb9@byu.net>
3232
3233         Avoid quadratic growth in gl_LIBSOURCES.
3234         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3235         Suggested by Bruno Haible.
3236
3237         Test xmemdup0.
3238         * modules/xmemdup0-tests: New file.
3239         * tests/test-xmemdup0.c: Likewise.
3240
3241 2008-05-13  Eric Blake  <ebb9@byu.net>
3242
3243         Split xmemdup0 into its own module.
3244         * modules/xmemdup0: New file.
3245         * lib/xmemdup0.h: Likewise.
3246         * lib/xmemdup0.c: Likewise.
3247         * MODULES.html.sh (Memory management functions): Add xmemdup0.
3248         * lib/xalloc.h (xmemdup0): Remove.
3249         * lib/xmalloc.c (xmemdup0): Likewise.
3250
3251 2008-05-13  Eric Blake  <ebb9@byu.net>
3252             Bruno Haible  <bruno@clisp.org>
3253
3254         Reduce number of forks required during autoconf.
3255         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3256         and gl_LIBSOURCES_DIR.
3257         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3258         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3259         m4_syscmd per file.
3260         <m4_foreach_w>: Move...
3261         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3262
3263 2008-05-13  Eric Blake  <ebb9@byu.net>
3264
3265         * gnulib-tool: Fix various comment typos.
3266
3267 2008-05-12  Bruno Haible  <bruno@clisp.org>
3268
3269         Tailor the linebreaking algorithm.
3270         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3271
3272 2008-05-12  Bruno Haible  <bruno@clisp.org>
3273
3274         Update to Unicode 5.0.0.
3275         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3276         LBP_JV, LBP_JT. Redistribute values.
3277         (unilbrk_table): Change size.
3278         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3279         Unicode TR#14 rev. 22.
3280         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3281         LBP_JV, LBP_JT. Redistribute values.
3282         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3283         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3284         Update.
3285         * lib/unilbrk/lbrkprop1.h: Regenerated.
3286         * lib/unilbrk/lbrkprop2.h: Regenerated.
3287         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3288         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3289         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3290         Likewise.
3291         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3292         Likewise.
3293         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3294         result.
3295         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3296         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3297         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3298         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3299         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3300         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3301
3302 2008-05-11  Bruno Haible  <bruno@clisp.org>
3303
3304         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3305
3306 2008-05-11  Bruno Haible  <bruno@clisp.org>
3307
3308         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3309         * modules/unilbrk/gen-lbrk: New file.
3310
3311 2008-05-11  Bruno Haible  <bruno@clisp.org>
3312
3313         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3314         * m4/sha512.m4 (gl_SHA512): Likewise.
3315
3316 2008-05-11  Jim Meyering  <meyering@redhat.com>
3317
3318         New modules: crypto/sha256, crypto/sha512 (from coreutils)
3319         * modules/crypto/sha256: New file.
3320         * modules/crypto/sha512: Likewise.
3321         * lib/sha256.c: Likewise.
3322         * lib/sha256.h: Likewise.
3323         * lib/sha512.c: Likewise.
3324         * lib/sha512.h: Likewise.
3325         * lib/u64.h: Likewise.
3326         * m4/sha256.m4: Likewise.
3327         * m4/sha512.m4: Likewise.
3328         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3329
3330 2008-05-10  Bruno Haible  <bruno@clisp.org>
3331
3332         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
3333         (Input/Output <stdio.h>): Add xprintf.
3334         (Signal handling <signal.h>): Add strsignal.
3335         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
3336         (Core language properties): Add func.
3337         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
3338         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
3339         strings.
3340         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
3341         (Input/output): New section.
3342         (File system functions): Add openat-die, stat-macros.
3343         (Networking functions): Add sockets.
3344         (Unicode string functions): Add unictype/*.
3345         (Support for building libraries and executables): Add gperf.
3346         (Support for building documentation): Add agpl-3.0.
3347         (Misc): Add nocrash.
3348
3349 2008-05-10  Bruno Haible  <bruno@clisp.org>
3350
3351         * modules/unictype/gen-ctype: New file.
3352
3353 2008-05-10  Jim Meyering  <meyering@redhat.com>
3354
3355         Make chdir-safer.c more efficient on a system with no symlinks.
3356         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
3357         also if ELOOP is zero.  Suggested by Bruno Haible.
3358
3359         Make chdir-safer.c slightly safer.
3360         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
3361         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
3362
3363         Avoid compile failure on systems without ELOOP (like mingw).
3364         * lib/chdir-safer.c (ELOOP): Define if not already defined.
3365         Reported by Bruno Haible.
3366
3367 2008-05-10  Bruno Haible  <bruno@clisp.org>
3368
3369         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3370         (is_utf8_encoding): Use a case-insensitive comparison.
3371         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3372         streq.
3373
3374 2008-05-10  Bruno Haible  <bruno@clisp.org>
3375
3376         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3377         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3378         * lib/unilbrk/ulc-common.h (iconv_string_length,
3379         iconv_string_keeping_offsets): Remove declarations.
3380         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3381         Don't include <iconv.h>, streq.h, xsize.h.
3382         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3383         conversion.
3384         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3385         <iconv.h>, streq.h, xsize.h.
3386         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3387         conversion.
3388         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3389         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3390         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3391         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3392
3393 2008-05-10  Bruno Haible  <bruno@clisp.org>
3394
3395         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3396         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3397
3398         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3399         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3400
3401         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3402         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3403
3404         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3405         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3406
3407         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3408         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3409
3410         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3411         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3412
3413         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3414         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3415
3416         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3417         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3418
3419 2008-05-10  Bruno Haible  <bruno@clisp.org>
3420
3421         Split up 'linebreak' module.
3422         * lib/unilbrk.h: New file, based on lib/linebreak.h.
3423         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
3424         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
3425         modifications.
3426         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
3427         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
3428         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
3429         lib/linebreak.c.
3430         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
3431         lib/linebreak.c.
3432         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
3433         lib/linebreak.c.
3434         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
3435         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
3436         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
3437         lib/linebreak.c.
3438         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
3439         lib/linebreak.c.
3440         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
3441         lib/linebreak.c.
3442         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3443         lib/linebreak.c.
3444         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3445         lib/linebreak.c.
3446         * modules/unilbrk/base: New file.
3447         * modules/unilbrk/tables: New file.
3448         * modules/unilbrk/u8-possible-linebreaks: New file.
3449         * modules/unilbrk/u16-possible-linebreaks: New file.
3450         * modules/unilbrk/u32-possible-linebreaks: New file.
3451         * modules/unilbrk/ulc-common: New file.
3452         * modules/unilbrk/ulc-possible-linebreaks: New file.
3453         * modules/unilbrk/u8-width-linebreaks: New file.
3454         * modules/unilbrk/u16-width-linebreaks: New file.
3455         * modules/unilbrk/u32-width-linebreaks: New file.
3456         * modules/unilbrk/ulc-width-linebreaks: New file.
3457         * lib/linebreak.h: Remove file.
3458         * lib/linebreak.c: Remove file.
3459         * m4/linebreak.m4: Remove file.
3460         * modules/linebreak: Remove file.
3461         * NEWS: Mention the changes.
3462
3463 2008-05-09  Eric Blake  <ebb9@byu.net>
3464
3465         Add xmemdup0.
3466         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3467         implementation.
3468         * lib/xmalloc.c (xmemdup0): New C implementation.
3469
3470 2008-05-08  Bruno Haible  <bruno@clisp.org>
3471
3472         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3473
3474 2008-05-07  Eric Blake  <ebb9@byu.net>
3475
3476         Support cross-compilation of <wctype.h>.
3477         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3478         AC_CACHE_CHECK.
3479
3480 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3481
3482         * build-aux/vc-list-files: Add support for bzr.
3483
3484 2008-05-03  Jim Meyering  <meyering@redhat.com>
3485
3486         avoid failed assertion with tight malloc
3487         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3488
3489 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3490
3491         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3492         are needed from arpa/inet.h.
3493         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3494         Reported by Bruno Haible.
3495
3496 2008-05-02  Jim Meyering  <meyering@redhat.com>
3497
3498         avoid compilation error on FreeBSD 6
3499         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3500
3501 2008-05-01  Jim Meyering  <meyering@redhat.com>
3502
3503         useless-if-before-free: correct --help's exit status description
3504         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3505         for one or more matches, etc.  Reported by Bruno Haible.
3506
3507         vc-list-files: make the stand-alone gnulib test work
3508         * modules/vc-list-files-tests (configure.ac):
3509         Define and AC_SUBST abs_aux_dir.
3510         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3511         $(abs_top_srcdir) to each script and having each of them
3512         duplicate the work of setting PATH, set PATH here, using
3513         the new variable, abs_aux_dir instead.
3514         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3515         * tests/test-vc-list-files-git.sh: Likewise.
3516         Reported by Bruno Haible.
3517
3518 2008-05-01  Bruno Haible  <bruno@clisp.org>
3519
3520         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3521         reallocation. Rename 'done' to 'found_delimiter'.
3522
3523 2008-05-01  Jim Meyering  <meyering@redhat.com>
3524
3525         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3526         * build-aux/vc-list-files: Use `...`, not $(...).
3527
3528 2008-04-30  Jim Meyering  <meyering@redhat.com>
3529
3530         add tests for vc-list-files
3531         * modules/vc-list-files-tests: New module.
3532         * tests/test-vc-list-files-cvs.sh: New file.
3533         * tests/test-vc-list-files-git.sh: New file.
3534
3535         avoid a warning from gcc
3536         * lib/getndelim2.c (IF_LINT): Define.
3537         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3538
3539         vc-list-files: work properly with build-aux/cvsu, too
3540         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3541         to all cvs-based clauses.
3542
3543         vc-list-files: work properly in the CVS+awk case, too
3544         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3545
3546         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3547         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3548         take more than one file argument, so .  Add quotes, just in case $dir
3549         ever contains a shell meta-character.  Prompted by Soren Hansen in
3550         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3551
3552 2008-04-29  Eric Blake  <ebb9@byu.net>
3553
3554         Optimize getndelim2 to use block operations when possible.
3555         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3556         freadseek, and memchr2.
3557         * lib/getndelim2.c (getndelim2): Use them for block reads.
3558
3559 2008-04-29  Bruno Haible  <bruno@clisp.org>
3560
3561         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3562         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3563         * modules/inet_ntop (Depends-on): Add extensions.
3564         * modules/inet_pton (Depends-on): Likewise.
3565         Reported by Simon Josefsson.
3566
3567 2008-04-29  Jim Meyering  <meyering@redhat.com>
3568
3569         When the is more than one match in a block, match all of them.
3570         * build-aux/useless-if-before-free: Iterate through each block
3571         until there are no more matches.
3572
3573         Fix broken useless-if-before-free script.
3574         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3575         the expression to match cast of argument to free-like function.
3576
3577 2008-04-29  Eric Blake  <ebb9@byu.net>
3578
3579         Use new header.
3580         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3581
3582 2008-04-29  Jim Meyering  <meyering@redhat.com>
3583
3584         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3585         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3586         by gnulib to exist and to declare e.g., inet_ntop.
3587         Don't include "inet_ntop.h", now removed.
3588
3589         * m4/arpa_inet_h.m4: Remove trailing blanks.
3590
3591 2008-04-29  Eric Blake  <ebb9@byu.net>
3592
3593         Silence valgrind on safe reads beyond potential array bounds.
3594         * lib/rawmemchr.valgrind: New file.
3595         * lib/strchrnul.valgrind: Likewise.
3596         * modules/rawmemchr (Files): Distribute new file.
3597         * modules/strchrnul (Files): Likewise.
3598         Suggested by Bruno Haible.
3599
3600 2008-04-29  Bruno Haible  <bruno@clisp.org>
3601
3602         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3603         (inet_ntop, inet_pton): Change portability warning's wording.
3604         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3605         Invoke gl_CHECK_NEXT_HEADERS.
3606         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3607         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3608         set ARPA_INET_H.
3609         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3610         * modules/arpa_inet (Description): No longer only for systems that
3611         lack it.
3612         (Depends-on): Add include_next.
3613         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3614         HAVE_ARPA_INET_H.
3615
3616 2008-04-29  Jim Meyering  <meyering@redhat.com>
3617
3618         * modules/mkdir (License): Re-license as LGPLv2+.
3619
3620 2008-04-29  Bruno Haible  <bruno@clisp.org>
3621
3622         * modules/rawmemchr (Maintainer): Set to Eric.
3623         * modules/strchrnul (Maintainer): Likewise.
3624
3625 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3626
3627         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3628         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3629
3630         * modules/arpa_inet (arpa/inet.h): Use them.
3631
3632 2008-04-28  Eric Blake  <ebb9@byu.net>
3633
3634         Test getndelim2.
3635         * modules/getndelim2-tests: New file.
3636         * tests/test-getndelim2.c: Likewise.
3637         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3638         stream.
3639         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3640
3641         * MODULES.html.sh: Document new module.
3642
3643 2008-04-20  Bruno Haible  <bruno@clisp.org>
3644
3645         * lib/c-stack.c (die): Use raise.
3646         * modules/c-stack (Depends-on): Add raise.
3647
3648 2008-04-28  Bruno Haible  <bruno@clisp.org>
3649
3650         Expect rpmatch to be declared.
3651         * lib/yesno.c (rpmatch): Remove declaration.
3652
3653         Declare rpmatch.
3654         * lib/stdlib.in.h (rpmatch): New declaration.
3655         * lib/rpmatch.c: Include <stdlib.h> first.
3656         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3657         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3659         HAVE_RPMATCH.
3660         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3661         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3662         (Include): Set to <stdlib.h>.
3663         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3664         HAVE_RPMATCH.
3665         * NEWS: Document the change.
3666
3667 2008-04-28  Bruno Haible  <bruno@clisp.org>
3668
3669         Change rpmatch to use nl_langinfo when appropriate.
3670         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3671         (N_): New macro.
3672         (localized_pattern): New function/macro.
3673         (try): Remove match, nomatch arguments. Copy the pattern into safe
3674         memory before caching it.
3675         (rpmatch): Use localized_pattern. Add translator comments.
3676         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3677         Suggested by Eric Blake.
3678         * modules/rpmatch (Depends-on): Add stdbool.
3679
3680 2008-04-28  Eric Blake  <ebb9@byu.net>
3681
3682         Add rawmemchr module, matching glibc.
3683         * modules/string (Makefile.am): New indicator.
3684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3685         * lib/string.in.h (rawmemchr): Declare when appropriate.
3686         * modules/rawmemchr: New file.
3687         * m4/rawmemchr.m4: Likewise.
3688         * lib/rawmemchr.c: Likewise.
3689         * modules/rawmemchr-tests: Likewise.
3690         * tests/test-rawmemchr.c: Likewise.
3691         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3692         module.
3693         * modules/strchrnul (Depends-on): Add rawmemchr.
3694         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3695
3696         Whitespace cleanup.
3697         * tests/test-strchrnul.c: Reindent.
3698         * lib/strchrnul.c: Likewise.
3699
3700         Optimize and test strchrnul.
3701         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3702         * modules/strchrnul-tests: New file.
3703         * tests/test-strchrnul.c: Likewise.
3704
3705         Remove intprops dependency.
3706         * modules/memchr (Depends-on): Remove intprops.
3707         * modules/memrchr (Depends-on): Likewise.
3708         * modules/memchr2 (Depends-on): Likewise.
3709         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3710         * lib/memrchr.c (__memrchr): Likewise.
3711         * lib/memrchr2.c (memchr2): Likewise.
3712         Reported by Simon Josefsson.
3713
3714 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3715
3716         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3717         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3718
3719 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3720
3721         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3722
3723         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3724
3725         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3726
3727         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3728         declarations.
3729         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3730
3731         * m4/inet_pton.m4: Don't check for header files.
3732
3733         * m4/inet_ntop.m4: Don't check for header files.
3734
3735 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3736
3737         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3738         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3739         trigger for cygwin).
3740         Reported by Bruno Haible  <bruno@clisp.org>.
3741
3742 2008-04-28  Bruno Haible  <bruno@clisp.org>
3743
3744         * doc/posix-functions/strdup.texi: Mention mingw problem.
3745
3746 2008-04-27  Bruno Haible  <bruno@clisp.org>
3747
3748         * modules/stat-time-tests (Depends-on): Add sleep.
3749         * tests/test-stat-time.c (force_unlink): New function.
3750         (cleanup): Use it.
3751         (test_mtime): Remove the ctime related tests.
3752         (test_ctime): New function, containing the ctime related tests.
3753         (main): Call test_ctime, except on native Windows platforms.
3754
3755 2008-04-27  Bruno Haible  <bruno@clisp.org>
3756
3757         * lib/rpmatch.c (rpmatch): Add some comments.
3758         Reported by James Youngman <jay@gnu.org>.
3759
3760 2008-04-27  Bruno Haible  <bruno@clisp.org>
3761
3762         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3763         quiet NaNs.
3764
3765 2008-04-27  Bruno Haible  <bruno@clisp.org>
3766
3767         Make test-yesno.sh work on mingw.
3768         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3769         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3770         (main): Set stdin to binary mode.
3771         * modules/yesno-tests (Depends-on): Add binary-io.
3772
3773 2008-04-27  Bruno Haible  <bruno@clisp.org>
3774
3775         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3776         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3777         argument that lie outside the IEEE 854 domain.
3778         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3779         (gl_ISFINITE): Use it.
3780         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3781
3782 2008-04-27  Bruno Haible  <bruno@clisp.org>
3783
3784         Allow local renaming in config.h.
3785         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3786
3787 2008-04-27  Bruno Haible  <bruno@clisp.org>
3788
3789         * lib/memchr.c (__memchr): Change type of 'i'.
3790         * lib/memchr2.c (memchr2): Likewise.
3791
3792 2008-04-26  Eric Blake  <ebb9@byu.net>
3793         and Bruno Haible  <bruno@clisp.org>
3794
3795         Optimize and test memrchr.
3796         * modules/memrchr (Depends-on): Add intprops.
3797         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3798         * modules/memrchr-tests: New file.
3799         * tests/test-memrchr.c: New file.
3800
3801 2008-04-26  Bruno Haible  <bruno@clisp.org>
3802
3803         Add tentative support for DragonFly BSD.
3804         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3805         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3806         fp.
3807         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3808         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3809         * lib/fpurge.c (fpurge): Likewise.
3810         * lib/freadable.c (freaadable): Likewise.
3811         * lib/freadahead.c (freadahead): Likewise.
3812         * lib/freading.c (freading): Likewise.
3813         * lib/freadptr.c (freadptr): Likewise.
3814         * lib/freadseek.c (freadptrinc): Likewise.
3815         * lib/fseeko.c (fseeko): Likewise.
3816         * lib/fseterr.c (fseterr): Likewise.
3817         * lib/fwritable.c (fwritable): Likewise.
3818         * lib/fwriting.c (fwriting): Likewise.
3819
3820 2008-04-26  Bruno Haible  <bruno@clisp.org>
3821
3822         * lib/stdio-impl.h: New file.
3823         * lib/fbufmode.c: Include stdio-impl.h.
3824         (fbufmode): Use fp_, remove redundant #defines.
3825         * lib/fflush.c: Include stdio-impl.h.
3826         (clear_ungetc_buffer): Remove redundant #defines.
3827         * lib/fpurge.c: Include stdio-impl.h.
3828         (fpurge): Remove redundant #defines.
3829         * lib/freadable.c: Include stdio-impl.h.
3830         (freadable): Remove redundant #defines.
3831         * lib/freadahead.c: Include stdio-impl.h.
3832         (freadahead): Remove redundant #defines.
3833         * lib/freading.c: Include stdio-impl.h.
3834         (freading): Remove redundant #defines.
3835         * lib/freadptr.c: Include stdio-impl.h.
3836         (freadptr): Remove redundant #defines.
3837         * lib/freadseek.c: Include stdio-impl.h.
3838         (freadptrinc): Remove redundant #defines.
3839         * lib/fseeko.c: Include stdio-impl.h.
3840         (rpl_fseeko): Remove redundant #defines.
3841         * lib/fseterr.c: Include stdio-impl.h.
3842         (fseterr): Remove redundant #defines.
3843         * lib/fwritable.c: Include stdio-impl.h.
3844         (fwritable: Remove redundant #defines.
3845         * lib/fwriting.c: Include stdio-impl.h.
3846         (fwriting): Remove redundant #defines.
3847         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3848         * modules/fflush (Files): Likewise.
3849         * modules/fpurge (Files): Likewise.
3850         * modules/freadable (Files): Likewise.
3851         * modules/freadahead (Files): Likewise.
3852         * modules/freading (Files): Likewise.
3853         * modules/freadptr (Files): Likewise.
3854         * modules/freadseek (Files): Likewise.
3855         * modules/fseeko (Files): Likewise.
3856         * modules/fseterr (Files): Likewise.
3857         * modules/fwritable (Files): Likewise.
3858         * modules/fwriting (Files): Likewise.
3859
3860 2008-04-26  Bruno Haible  <bruno@clisp.org>
3861
3862         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3863         restore_seek_optimization, update_fpos_cache): New functions, extracted
3864         from rpl_fflush.
3865         (rpl_fflush): Use them.
3866         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3867         (gl_REPLACE_FFLUSH): Use it.
3868
3869 2008-04-26  Bruno Haible  <bruno@clisp.org>
3870
3871         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3872         on Solaris.
3873         * tests/test-xstrtoimax.sh: Likewise.
3874         * tests/test-xstrtoumax.sh: Likewise.
3875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3876
3877 2008-04-26  Bruno Haible  <bruno@clisp.org>
3878
3879         * modules/memchr-tests: New file.
3880         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3881
3882 2008-04-26  Eric Blake  <ebb9@byu.net>
3883             Bruno Haible  <bruno@clisp.org>
3884
3885         * lib/memchr.c: Include intprops.h.
3886         (__memchr): Optimize parallel detection of matching bytes. Rename local
3887         variables. Add explanatory comments.
3888
3889 2008-04-26  Bruno Haible  <bruno@clisp.org>
3890
3891         Fix module 'memchr', broken since 2000-10-28.
3892         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3893
3894 2008-04-26  Bruno Haible  <bruno@clisp.org>
3895
3896         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3897         comments.
3898
3899 2008-04-25  Eric Blake  <ebb9@byu.net>
3900
3901         Use native fstatat on cygwin 1.7.0.
3902         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3903         first.
3904
3905 2008-04-23  Eric Blake  <ebb9@byu.net>
3906
3907         Improve memchr2 performance.
3908         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3909         NUL bytes.
3910         * modules/memchr2 (Depends-on): Use intprops.h.
3911
3912 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3913
3914         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3915         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3916         <blp@cs.stanford.edu>.
3917
3918 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3919
3920         * lib/arpa_inet.in.h: New file.
3921
3922         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3923         (Makefile.am): Sed in substitute header file.
3924
3925         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3926         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3927
3928         * modules/inet_ntop (configure.ac): Use
3929         gl_ARPA_INET_MODULE_INDICATOR.
3930
3931         * modules/inet_pton (configure.ac): Use
3932         gl_ARPA_INET_MODULE_INDICATOR.
3933
3934 2008-04-22  Jim Meyering  <meyering@redhat.com>
3935
3936         * modules/verify (License): Re-license as LGPLv2+.
3937
3938 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3939
3940         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3941         parameter to void* as per POSIX standard (MinGW uses char*).
3942
3943 2008-04-21  Bruno Haible  <bruno@clisp.org>
3944
3945         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3946         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3947         Define to replacements if REPLACE_ISWCNTRL is 1.
3948         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3949         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3950         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3951         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3952         what it fixes.
3953         * doc/posix-functions/iswalpha.texi: Likewise.
3954         * doc/posix-functions/iswblank.texi: Likewise.
3955         * doc/posix-functions/iswcntrl.texi: Likewise.
3956         * doc/posix-functions/iswdigit.texi: Likewise.
3957         * doc/posix-functions/iswgraph.texi: Likewise.
3958         * doc/posix-functions/iswlower.texi: Likewise.
3959         * doc/posix-functions/iswprint.texi: Likewise.
3960         * doc/posix-functions/iswpunct.texi: Likewise.
3961         * doc/posix-functions/iswspace.texi: Likewise.
3962         * doc/posix-functions/iswupper.texi: Likewise.
3963         * doc/posix-functions/iswxdigit.texi: Likewise.
3964         Reported by Alain Guibert.
3965
3966 2008-04-21  Bruno Haible  <bruno@clisp.org>
3967
3968         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3969         Patch by Alain Guibert.
3970
3971 2008-04-21  Bruno Haible  <bruno@clisp.org>
3972
3973         Fix test failures on mingw.
3974         * tests/test-xstrtol.c (print_no_progname): New function.
3975         (main): Install it in error_print_progname hook.
3976         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3977         * tests/test-xstrtoimax.sh: Likewise.
3978         * tests/test-xstrtoumax.sh: Likewise.
3979
3980 2008-04-21  Bruno Haible  <bruno@clisp.org>
3981
3982         Fix test failure on mingw.
3983         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3984
3985 2008-04-21  Bruno Haible  <bruno@clisp.org>
3986
3987         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3988         Actually assign a value.
3989
3990 2008-04-20  Bruno Haible  <bruno@clisp.org>
3991
3992         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3993         take 2.
3994         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3995         'canonicalize-lgpl' module is also used.
3996         * lib/canonicalize-lgpl.c: Undo last change.
3997         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3998
3999 2008-04-20  Bruno Haible  <bruno@clisp.org>
4000
4001         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4002         config.h. Provide _mkdir based fallback for mingw.
4003         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4004         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4005         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4006         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4007         rather than defining mkdir in config.h.
4008         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4009         (gl_SYS_STAT_H_DEFAULTS): New macro.
4010         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4011         HAVE_IO_H any more.
4012         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4013         HAVE_DECL_MKDIR and HAVE_IO_H.
4014
4015 2008-04-20  Bruno Haible  <bruno@clisp.org>
4016
4017         * lib/isapipe.c: Port to native Windows platforms.
4018
4019 2008-04-20  Bruno Haible  <bruno@clisp.org>
4020
4021         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4022
4023 2008-04-21  Eric Blake  <ebb9@byu.net>
4024
4025         Work around preprocessors that don't handle UINTMAX_MAX.
4026         * lib/memchr2.c (memchr2): Avoid embedded #if.
4027         Reported by Alain Guibert, fix suggested by Bruno Haible.
4028
4029 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4030
4031         * doc/posix-functions/strftime.texi (strftime): Explain better
4032         Windows incompatibility.  Suggested by Micah Cowan
4033         <micah@cowan.name>.
4034
4035 2008-04-20  Bruno Haible  <bruno@clisp.org>
4036
4037         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4038         unistr/u8-mblen.
4039
4040 2008-04-20  Bruno Haible  <bruno@clisp.org>
4041
4042         Fix test failure on platforms with non-GNU iconv.
4043         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4044         (U_TO_U8): Use it, rather than u16_to_u8.
4045         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4046         units at the end of the input string.
4047         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4048
4049 2008-04-20  Bruno Haible  <bruno@clisp.org>
4050
4051         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4052         when the resulting length is 0.
4053         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4054
4055 2008-04-20  Bruno Haible  <bruno@clisp.org>
4056
4057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4058         works.
4059         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4060
4061 2008-04-20  Bruno Haible  <bruno@clisp.org>
4062
4063         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4064         * modules/tsearch-tests (configure.ac): Test for initstate function.
4065
4066 2008-04-20  Bruno Haible  <bruno@clisp.org>
4067
4068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4069         for nlink_t if missing.
4070         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4071
4072 2008-04-19  Bruno Haible  <bruno@clisp.org>
4073
4074         Work around snprintf bug on Linux libc5.
4075         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4077         gl_SNPRINTF_SIZE1.
4078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4079         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4080         that test failed.
4081         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4082         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4083         * modules/snprintf (Files): Add m4/printf.m4.
4084         * modules/vsnprintf (Files): Likewise.
4085         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4086         * doc/posix-functions/vsnprintf.texi: Likewise.
4087
4088 2008-04-19  Bruno Haible  <bruno@clisp.org>
4089
4090         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4091         from 0.0058 to less than 10^-7.
4092
4093 2008-04-19  Bruno Haible  <bruno@clisp.org>
4094
4095         Fix rounding when a precision is given.
4096         * lib/vasnprintf.c (is_borderline): New function.
4097         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4098         9...9x.
4099         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4100         %e, %g.
4101         * tests/test-vasprintf-posix.c (test_function): Likewise.
4102         * tests/test-snprintf-posix.h (test_function): Likewise.
4103         * tests/test-sprintf-posix.h (test_function): Likewise.
4104         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4105         * tests/test-printf-posix.h (test_function): Likewise.
4106         * tests/test-printf-posix.output: Update.
4107         Reported by John Darrington <john@darrington.wattle.id.au> via
4108         Ben Pfaff <blp@cs.stanford.edu>.
4109
4110 2008-04-18  Simon Josefsson  <simon@josefsson.org>
4111
4112         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4113         Suggested by Bruno Haible <bruno@clisp.org>.
4114
4115 2008-04-17  Bruno Haible  <bruno@clisp.org>
4116
4117         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4118         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4119         implementation.
4120         Patch by Bruce Merry <bmerry@gmail.com>.
4121
4122 2008-04-17  Simon Josefsson  <simon@josefsson.org>
4123
4124         * doc/posix-functions/strftime.texi (strftime): Mention that %e
4125         doesn't work under Windows.
4126
4127 2008-04-16  Bruno Haible  <bruno@clisp.org>
4128
4129         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4130         New macros.
4131         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4132         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4133         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4134         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4135         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4136         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4137         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4138         macros.
4139         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4140         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4141         Northern Sotho, Uighur.
4142
4143 2008-04-16  Bruno Haible  <bruno@clisp.org>
4144
4145         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4146         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4147         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4148         Reported by Daniel Bergström <daniel@octocode.com>.
4149
4150 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
4151             Bruno Haible  <bruno@clisp.org>
4152
4153         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4154         function.
4155         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4156         New functions, mostly extracted from gl_locale_name_default.
4157         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4158
4159 2008-04-16  Eric Blake  <ebb9@byu.net>
4160
4161         Adjust strtod detection to catch glibc 2.7 bug.
4162         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4163         Reported by John Gatewood Ham.
4164
4165 2008-04-16  Bruno Haible  <bruno@clisp.org>
4166
4167         Add tentative support for Linux libc5.
4168         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4169         * lib/fpurge.c (fpurge): Likewise.
4170         * lib/freadable.c (freadable): Likewise.
4171         * lib/freadahead.c (freadahead): Likewise.
4172         * lib/freading.c (freading): Likewise.
4173         * lib/freadptr.c (freadptr): Likewise.
4174         * lib/freadseek.c (freadptrinc): Likewise.
4175         * lib/fseeko.c (rpl_fseeko): Likewise.
4176         * lib/fseterr.c (fseterr): Likewise.
4177         * lib/fwritable.c (fwritable): Likewise.
4178         * lib/fwriting.c (fwriting): Likewise.
4179         Reported by Alain Guibert <alguibert+bts@free.fr>.
4180
4181 2008-04-15  Bruno Haible  <bruno@clisp.org>
4182
4183         * modules/mathl (configure.ac): Define module indicator.
4184
4185 2008-04-15  Bruno Haible  <bruno@clisp.org>
4186
4187         * lib/logl.c (logl): Remove unused variables.
4188
4189 2008-04-15  Bruno Haible  <bruno@clisp.org>
4190
4191         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4192         fails.
4193
4194 2008-04-15  Bruno Haible  <bruno@clisp.org>
4195
4196         * lib/trim.c (trim2): Fix argument of isspace() macro.
4197
4198 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
4199
4200         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4201         to 0.
4202         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4203
4204 2008-04-14  Bruno Haible  <bruno@clisp.org>
4205
4206         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4207         AC_LANG_PROGRAM argument.
4208         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4209         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4211         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4212         * m4/math_h.m4 (gl_MATH_H): Likewise.
4213         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4215         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4216         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4217         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4218         * m4/regex.m4 (gl_REGEX): Likewise.
4219         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4220         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4223         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4224         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4227
4228 2008-04-14  Jim Meyering  <meyering@redhat.com>
4229
4230         test-strtod: fix typos: s/abs/fabs/
4231         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4232
4233 2008-04-13  Bruno Haible  <bruno@clisp.org>
4234
4235         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4236         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4237         module is also used and while not building the reloc-wrapper.
4238
4239 2008-04-13  Bruno Haible  <bruno@clisp.org>
4240
4241         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4242
4243 2008-04-13  Bruno Haible  <bruno@clisp.org>
4244
4245         Fix AIX compilation failure introduced on 2008-04-02.
4246         * tests/test-frexp.c (exp): Undefine before redefining.
4247         * tests/test-frexpl.c (exp): Likewise.
4248
4249 2008-04-13  Bruno Haible  <bruno@clisp.org>
4250
4251         Work around a HP-UX stdio bug.
4252         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4253         * tests/test-ftello.c (main): Likewise.
4254         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4255         * doc/posix-functions/ftello.texi: Likewise.
4256
4257 2008-04-13  Bruno Haible  <bruno@clisp.org>
4258
4259         Make test-signbit pass on HP-UX/hppa.
4260         * tests/test-signbit.c (minus_zerol): New variable.
4261         (test_signbitl): Use it.
4262
4263 2008-04-13  Bruno Haible  <bruno@clisp.org>
4264
4265         Make truncl work on OSF/1 4.0.
4266         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4267         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4268         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4270         HAVE_DECL_TRUNCL.
4271         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4272         HAVE_DECL_TRUNCL.
4273         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4274
4275 2008-04-13  Bruno Haible  <bruno@clisp.org>
4276
4277         * lib/unictype.h: Remove trailing comma from enumeration definitions.
4278
4279 2008-04-13  Bruno Haible  <bruno@clisp.org>
4280
4281         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4282         expression, so as to avoid HP-UX 11 cc compiler bug.
4283
4284 2008-04-13  Bruno Haible  <bruno@clisp.org>
4285
4286         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4287
4288 2008-04-13  Bruno Haible  <bruno@clisp.org>
4289
4290         * lib/git-merge-changelog.c: Remove empty declaration outside of
4291         functions.
4292
4293 2008-04-13  Bruno Haible  <bruno@clisp.org>
4294
4295         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4296
4297 2008-04-13  Bruno Haible  <bruno@clisp.org>
4298
4299         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4300         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4301         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4302         also if it exists but lacks definitions of the SHUT_* macros.
4303         * modules/sys_socket (Description): Update.
4304         Reported by Elbert Pol <e.pol@chello.nl>.
4305
4306 2008-04-13  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/localcharset.c (OS2): Don't redefine if already defined.
4309         Reported by Elbert Pol <e.pol@chello.nl>.
4310
4311 2008-04-13  Bruno Haible  <bruno@clisp.org>
4312
4313         * lib/binary-io.h [__EMX__]: Include <io.h>.
4314         Reported by Elbert Pol <e.pol@chello.nl>.
4315
4316 2008-04-12  Bruno Haible  <bruno@clisp.org>
4317
4318         * lib/fpucw.h: Enable the definitions also for x86_64.
4319         Needed for NetBSD/x86_64.
4320         Reported by Thomas Klausner <tk@giga.or.at>.
4321
4322 2008-04-12  Bruno Haible  <bruno@clisp.org>
4323
4324         * tests/test-strtod.c: Include isnand.h.
4325         (main): Use isnand instead of isnan.
4326         Reported by Jim Meyering.
4327
4328 2008-04-12  Bruno Haible  <bruno@clisp.org>
4329
4330         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4331         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4332
4333 2008-04-12  Jim Meyering  <meyering@redhat.com>
4334
4335         * m4/math_h.m4 (gl_MATH_H): Fix typos.
4336
4337 2008-04-12  Bruno Haible  <bruno@clisp.org>
4338
4339         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
4340         Reported by Elbert Pol <e.pol@chello.nl>.
4341
4342 2008-04-12  Eric Blake  <ebb9@byu.net>
4343
4344         Work around Solaris 10 math.h bug.
4345         * m4/math_h.m4 (gl_MATH_H): Check for bug.
4346         (gl_MATH_H_DEFAULTS): Set up default.
4347         * modules/math (Makefile.am): Replace new indicators.
4348         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
4349         * tests/test-math.c (main): Test this.
4350         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
4351         * doc/posix-headers/math.texi (math.h): Mention bug.
4352         Reported by Nelson H. F. Beebe and Jim Meyering.
4353
4354 2008-04-11  Bruno Haible  <bruno@clisp.org>
4355
4356         Adapt to future versions of Apple GCC.
4357         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
4358         Reported by Peter O'Gorman <peter@pogma.com>.
4359
4360 2008-04-11  Bruno Haible  <bruno@clisp.org>
4361
4362         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
4363
4364 2008-04-11  Bruno Haible  <bruno@clisp.org>
4365
4366         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4367
4368         * modules/getaddrinfo-tests (Makefile.am): Define
4369         test_getaddrinfo_LDADD.
4370
4371 2008-04-11  Bruno Haible  <bruno@clisp.org>
4372
4373         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4374         (init): Fix syntax error.
4375         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4376         is declared.
4377
4378 2008-04-11  Bruno Haible  <bruno@clisp.org>
4379
4380         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4381         * modules/glob (Depends-on): Add stdbool.
4382
4383 2008-04-11  Bruno Haible  <bruno@clisp.org>
4384
4385         * lib/trim.c: Include <string.h>.
4386
4387 2008-04-11  Eric Blake  <ebb9@byu.net>
4388
4389         Avoid compile failure on OS/2.
4390         * lib/regex_internal.h (internal_function): Disable optimization
4391         on OS/2 (__EMX__), where it caused compiler error.
4392         Reported by Elbert Pol.
4393
4394 2008-04-11  Bruno Haible  <bruno@clisp.org>
4395
4396         Flush the standard error stream before aborting. Needed on mingw.
4397         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4398         * tests/test-array_list.c (ASSERT): Likewise.
4399         * tests/test-array_oset.c (ASSERT): Likewise.
4400         * tests/test-avltree_list.c (ASSERT): Likewise.
4401         * tests/test-avltree_oset.c (ASSERT): Likewise.
4402         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4403         * tests/test-binary-io.c (ASSERT): Likewise.
4404         * tests/test-byteswap.c (ASSERT): Likewise.
4405         * tests/test-c-ctype.c (ASSERT): Likewise.
4406         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4407         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4408         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4409         * tests/test-c-strstr.c (ASSERT): Likewise.
4410         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4411         * tests/test-canonicalize.c (ASSERT): Likewise.
4412         * tests/test-carray_list.c (ASSERT): Likewise.
4413         * tests/test-ceilf1.c (ASSERT): Likewise.
4414         * tests/test-ceilf2.c (ASSERT): Likewise.
4415         * tests/test-ceill.c (ASSERT): Likewise.
4416         * tests/test-count-one-bits.c (ASSERT): Likewise.
4417         * tests/test-fbufmode.c (ASSERT): Likewise.
4418         * tests/test-fflush2.c (ASSERT): Likewise.
4419         * tests/test-floorf1.c (ASSERT): Likewise.
4420         * tests/test-floorf2.c (ASSERT): Likewise.
4421         * tests/test-floorl.c (ASSERT): Likewise.
4422         * tests/test-fopen.c (ASSERT): Likewise.
4423         * tests/test-fpending.c (ASSERT): Likewise.
4424         * tests/test-fprintf-posix.c (ASSERT): Likewise.
4425         * tests/test-fpurge.c (ASSERT): Likewise.
4426         * tests/test-freadable.c (ASSERT): Likewise.
4427         * tests/test-freadahead.c (ASSERT): Likewise.
4428         * tests/test-freading.c (ASSERT): Likewise.
4429         * tests/test-freadptr.c (ASSERT): Likewise.
4430         * tests/test-freadptr2.c (ASSERT): Likewise.
4431         * tests/test-freadseek.c (ASSERT): Likewise.
4432         * tests/test-freopen.c (ASSERT): Likewise.
4433         * tests/test-frexp.c (ASSERT): Likewise.
4434         * tests/test-frexpl.c (ASSERT): Likewise.
4435         * tests/test-fseek.c (ASSERT): Likewise.
4436         * tests/test-fseeko.c (ASSERT): Likewise.
4437         * tests/test-fstrcmp.c (ASSERT): Likewise.
4438         * tests/test-ftell.c (ASSERT): Likewise.
4439         * tests/test-ftello.c (ASSERT): Likewise.
4440         * tests/test-func.c (ASSERT): Likewise.
4441         * tests/test-fwritable.c (ASSERT): Likewise.
4442         * tests/test-fwriting.c (ASSERT): Likewise.
4443         * tests/test-getdelim.c (ASSERT): Likewise.
4444         * tests/test-getline.c (ASSERT): Likewise.
4445         * tests/test-i-ring.c (ASSERT): Likewise.
4446         * tests/test-iconv-utf.c (ASSERT): Likewise.
4447         * tests/test-iconv.c (ASSERT): Likewise.
4448         * tests/test-isfinite.c (ASSERT): Likewise.
4449         * tests/test-isnand.c (ASSERT): Likewise.
4450         * tests/test-isnanf.c (ASSERT): Likewise.
4451         * tests/test-isnanl.h (ASSERT): Likewise.
4452         * tests/test-ldexpl.c (ASSERT): Likewise.
4453         * tests/test-linked_list.c (ASSERT): Likewise.
4454         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4455         * tests/test-localename.c (ASSERT): Likewise.
4456         * tests/test-lseek.c (ASSERT): Likewise.
4457         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4458         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4459         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4460         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4461         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4462         * tests/test-mbschr.c (ASSERT): Likewise.
4463         * tests/test-mbscspn.c (ASSERT): Likewise.
4464         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4465         * tests/test-mbspbrk.c (ASSERT): Likewise.
4466         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4467         * tests/test-mbsrchr.c (ASSERT): Likewise.
4468         * tests/test-mbsspn.c (ASSERT): Likewise.
4469         * tests/test-mbsstr1.c (ASSERT): Likewise.
4470         * tests/test-mbsstr2.c (ASSERT): Likewise.
4471         * tests/test-mbsstr3.c (ASSERT): Likewise.
4472         * tests/test-memchr2.c (ASSERT): Likewise.
4473         * tests/test-memmem.c (ASSERT): Likewise.
4474         * tests/test-open.c (ASSERT): Likewise.
4475         * tests/test-printf-frexp.c (ASSERT): Likewise.
4476         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4477         * tests/test-printf-posix.c (ASSERT): Likewise.
4478         * tests/test-quotearg.c (ASSERT): Likewise.
4479         * tests/test-rbtree_list.c (ASSERT): Likewise.
4480         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4481         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4482         * tests/test-round1.c (ASSERT): Likewise.
4483         * tests/test-roundf1.c (ASSERT): Likewise.
4484         * tests/test-roundl.c (ASSERT): Likewise.
4485         * tests/test-signbit.c (ASSERT): Likewise.
4486         * tests/test-sleep.c (ASSERT): Likewise.
4487         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4488         * tests/test-snprintf.c (ASSERT): Likewise.
4489         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4490         * tests/test-stat-time.c (ASSERT): Likewise.
4491         * tests/test-strcasestr.c (ASSERT): Likewise.
4492         * tests/test-strerror.c (ASSERT): Likewise.
4493         * tests/test-striconv.c (ASSERT): Likewise.
4494         * tests/test-striconveh.c (ASSERT): Likewise.
4495         * tests/test-striconveha.c (ASSERT): Likewise.
4496         * tests/test-strsignal.c (ASSERT): Likewise.
4497         * tests/test-strstr.c (ASSERT): Likewise.
4498         * tests/test-strtod.c (ASSERT): Likewise.
4499         * tests/test-trunc1.c (ASSERT): Likewise.
4500         * tests/test-trunc2.c (ASSERT): Likewise.
4501         * tests/test-truncf1.c (ASSERT): Likewise.
4502         * tests/test-truncf2.c (ASSERT): Likewise.
4503         * tests/test-truncl.c (ASSERT): Likewise.
4504         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4505         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4506         * tests/test-vasnprintf.c (ASSERT): Likewise.
4507         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4508         * tests/test-vasprintf.c (ASSERT): Likewise.
4509         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4510         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4511         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4512         * tests/test-vsnprintf.c (ASSERT): Likewise.
4513         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4514         * tests/test-wcwidth.c (ASSERT): Likewise.
4515         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4516         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4517         * tests/test-xvasprintf.c (ASSERT): Likewise.
4518         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4519         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4520         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4521         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4522         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4523         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4524         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4525         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4526         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4527         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4528         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4529         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4530         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4531         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4532         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4533         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4534         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4535         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4536         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4537         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4538         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4539         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4540         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4541         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4542         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4543         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4544         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4545         * tests/unictype/test-combining.c (ASSERT): Likewise.
4546         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4547         * tests/unictype/test-digit.c (ASSERT): Likewise.
4548         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4549         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4550         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4551         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4552         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4553         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4554         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4555         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4556         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4557         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4558         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4559         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4560         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4561         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4562         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4563         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4564         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4565         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4566         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4567         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4568         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4569         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4570         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4571         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4572         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4573         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4574         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4575         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4576         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4577         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4578         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4579         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4580         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4581         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4582         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4583         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4584         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4585         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4586         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4587         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4588         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4589         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4590         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4591         Reported by Eric Blake.
4592
4593 2008-04-11  Bruno Haible  <bruno@clisp.org>
4594
4595         * lib/wchar.in.h: Tweak comment.
4596
4597 2008-04-11  Bruno Haible  <bruno@clisp.org>
4598
4599         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4600         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4601         gl_COMMON.
4602         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4603
4604 2008-04-11  Bruno Haible  <bruno@clisp.org>
4605
4606         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4607
4608 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4609
4610         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4611         of attempting to use non-existing /dev/*random.  Based on patch
4612         from Adam Strzelecki <ono@java.pl> in
4613         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4614
4615 2008-04-08  Bruno Haible  <bruno@clisp.org>
4616
4617         Add tentative support for emx+gcc.
4618         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4619         * lib/fpurge.c (fpurge): Likewise.
4620         * lib/freadable.c (freadable): Likewise.
4621         * lib/freadahead.c (freadahead): Likewise.
4622         * lib/freading.c (freading): Likewise.
4623         * lib/freadptr.c (freadptr): Likewise.
4624         * lib/freadseek.c (freadptrinc): Likewise.
4625         * lib/fseeko.c (rpl_fseeko): Likewise.
4626         * lib/fseterr.c (fseterr): Likewise.
4627         * lib/fwritable.c (fwritable): Likewise.
4628         * lib/fwriting.c (fwriting): Likewise.
4629         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4630
4631 2008-04-09  Eric Blake  <ebb9@byu.net>
4632
4633         Avoid some autoconf warnings.
4634         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4635         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4636         * m4/afs.m4 (gl_AFS): Likewise.
4637         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4638         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4639         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4640         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4641         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4642         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4643         (AC_CHECK_DECLS_ONCE): Likewise.
4644         Rename file...
4645         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4646         gnulib-tool requires autoconf 2.59 or better.
4647         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4648
4649 2008-04-08  Eric Blake  <ebb9@byu.net>
4650
4651         Use 'git describe --match' if present (added in git 1.5.5).
4652         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4653         if possible.
4654
4655 2008-04-08  Bruno Haible  <bruno@clisp.org>
4656
4657         Add tentative support for OpenServer.
4658         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4659         _ptr, _cnt.
4660         * lib/fpurge.c (fpurge): Likewise.
4661         * lib/freadable.c (freadable): Likewise.
4662         * lib/freadahead.c (freadahead): Likewise.
4663         * lib/freading.c (freading): Likewise.
4664         * lib/freadptr.c (freadptr): Likewise.
4665         * lib/freadseek.c (freadptrinc): Likewise.
4666         * lib/fseeko.c (rpl_fseeko): Likewise.
4667         * lib/fseterr.c (fseterr): Likewise.
4668         * lib/fwritable.c (fwritable): Likewise.
4669         * lib/fwriting.c (fwriting): Likewise.
4670         Reported by Roger Cornelius <rac@tenzing.org> and
4671         Brian K. White <brian@aljex.com>.
4672
4673 2008-04-06  Jim Meyering  <meyering@redhat.com>
4674
4675         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4676
4677 2008-04-06  Bruno Haible  <bruno@clisp.org>
4678
4679         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4680         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4681         * tests/test-printf-posix.sh: Likewise.
4682         * tests/test-vfprintf-posix.sh: Likewise.
4683         * tests/test-vprintf-posix.sh: Likewise.
4684         * tests/test-xprintf-posix.sh: Likewise.
4685
4686 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4687
4688         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4689         hide error from 'ls', needed on OS/2.
4690         Report by Elbert Pol <elbert.pol@gmail.com>.
4691
4692 2008-04-04  Eric Blake  <ebb9@byu.net>
4693
4694         Make test-fseeko.c failures meaningful.
4695         * tests/test-fseeko.c: Print line number on failure.
4696         * tests/test-fseek.c: Likewise.
4697         Reported by Nelson H. F. Beebe.
4698
4699         Improve strtod bug detection check.
4700         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4701         required for Solaris 10.
4702         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4703
4704 2008-04-04  Bruno Haible  <bruno@clisp.org>
4705
4706         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4707         by m4/setenv.m4.
4708
4709 2008-04-03  Eric Blake  <ebb9@byu.net>
4710
4711         Ensure sane .version contents.
4712         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4713         version string.
4714         * build-aux/git-version-gen: Improve documentation.
4715
4716         Make GNU make output nicer.
4717         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4718         MAKECMDGOALS to enforce message for all command line targets.  Set
4719         srcdir for use in maint.mk.
4720
4721         Another maintainer tweak.
4722         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4723         a target that regenerates version.
4724
4725 2008-04-03  Jim Meyering  <meyering@redhat.com>
4726
4727         vc-list-files: don't cause coreutils "make po-check" failure
4728         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4729
4730 2008-04-03  Eric Blake  <ebb9@byu.net>
4731
4732         Allow VPATH usage of vc-list-files.
4733         * build-aux/vc-list-files (scriptversion): Add timestamp.
4734         (options): Add --help, --version, -C.
4735         (CVS): Support installed cvsu.
4736
4737 2008-04-02  Bruno Haible  <bruno@clisp.org>
4738
4739         Avoid some "statement with no effect" warnings from gcc.
4740         * tests/test-wctype.c (main): Explicitly ignore unused values.
4741         Reported by Jim Meyering.
4742
4743 2008-04-02  Jim Meyering  <meyering@redhat.com>
4744
4745         Avoid some warnings from "gcc -Wshadow".
4746         * tests/test-frexp.c (exp): Define to a different identifier.
4747         * tests/test-frexpl.c (exp): Likewise.
4748
4749 2008-04-03  Jim Meyering  <meyering@redhat.com>
4750
4751         bootstrap: remove dangling *.[ch] symlinks from lib
4752         * build-aux/bootstrap [dangling symlink removal]: Move find's
4753         -depth option to precede all others, to avoid a warning.
4754         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4755
4756 2008-04-02  Bruno Haible  <bruno@clisp.org>
4757
4758         Avoid some warnings from "gcc -Wshadow".
4759         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4760         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4761         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4762         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4763         Reported by Jim Meyering.
4764
4765 2008-04-01  Bruno Haible  <bruno@clisp.org>
4766
4767         Fix test to work on IRIX 6.5 with cc.
4768         * tests/test-math.c (numeric_equal): New function.
4769         (main): Use it.
4770
4771 2008-04-01  Bruno Haible  <bruno@clisp.org>
4772
4773         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4774
4775 2008-04-01  Bruno Haible  <bruno@clisp.org>
4776
4777         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4778         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4779         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4780         (Depends-on): Remove math.
4781
4782         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4783         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4784         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4785         (Depends-on): Remove math.
4786
4787         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4789         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4790         (Depends-on): Remove math.
4791         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4792         (Depends-on): Remove math.
4793
4794         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4795         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4796         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4797         (Depends-on): Remove math.
4798         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4799         (Depends-on): Remove math.
4800
4801         * tests/test-round1.c: Include nan.h.
4802         (main): Use NaNd instead of NAN.
4803         * modules/round-tests (Files): Add tests/nan.h.
4804
4805         * tests/test-trunc1.c: Include nan.h.
4806         (main): Use NaNd instead of NAN.
4807         * modules/trunc-tests (Files): Add tests/nan.h.
4808
4809         * tests/test-roundf1.c: Include nan.h.
4810         (main): Use NaNf instead of NAN.
4811         * modules/roundf-tests (Files): Add tests/nan.h.
4812
4813         * tests/test-truncf1.c: Include nan.h.
4814         (main): Use NaNf instead of NAN.
4815         * modules/truncf-tests (Files): Add tests/nan.h.
4816
4817         * tests/test-ceilf1.c: Include nan.h.
4818         (main): Use NaNf instead of NAN.
4819         * modules/ceilf-tests (Files): Add tests/nan.h.
4820
4821         * tests/test-floorf1.c: Include nan.h.
4822         (main): Use NaNf instead of NAN.
4823         * modules/floorf-tests (Files): Add tests/nan.h.
4824
4825         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4826         (main): Use NaNf instead of NAN.
4827         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4828
4829         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4830         (main): Use NaNd instead of NAN.
4831         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4832
4833         * tests/test-frexp.c: Include nan.h.
4834         (main): Use NaNd instead of NAN.
4835         * modules/frexp-tests (Files): Add tests/nan.h.
4836
4837         * lib/isnan.c: Don't include <math.h>.
4838         (FUNC): Don't use NAN macro.
4839         * modules/isnand-nolibm (Depends-on): Remove math.
4840         * modules/isnanf-nolibm (Depends-on): Remove math.
4841         * modules/isnanl (Depends-on): Remove math.
4842         * modules/isnanl-nolibm (Depends-on): Remove math.
4843
4844         * tests/nan.h: New file.
4845
4846 2008-04-01  Eric Blake  <ebb9@byu.net>
4847
4848         Fix typos.
4849         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4850         values to be the right type.
4851
4852         For now, cater to gnulib strtod inaccuracies.
4853         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4854         fractional results.  While not as nice from a QoI perspective, it
4855         is a quicker patch than correctly implementing decimal to binary
4856         rounding.
4857
4858 2008-03-31  Eric Blake  <ebb9@byu.net>
4859
4860         Guarantee a definition of NAN.
4861         * lib/math.in.h (NAN): Define if missing.
4862         * tests/test-math.c (main): Test it.
4863         * doc/posix-headers/math.texi (math.h): Document this.
4864         * lib/isnan.c (rpl_isnand): Use it.
4865         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4866         * tests/test-floorf1.c (NaN): Likewise.
4867         * tests/test-frexp.c (NaN): Likewise.
4868         * tests/test-isnand.c (NaN): Likewise.
4869         * tests/test-isnanf.c (NaN): Likewise.
4870         * tests/test-round1.c (NaN): Likewise.
4871         * tests/test-roundf1.c (NaN): Likewise.
4872         * tests/test-snprintf-posix.h (NaN): Likewise.
4873         * tests/test-sprintf-posix.h (NaN): Likewise.
4874         * tests/test-trunc1.c (NaN): Likewise.
4875         * tests/test-truncf1.c (NaN): Likewise.
4876         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4877         * tests/test-vasprintf-posix.c (NaN): Likewise.
4878         * modules/isnand-nolibm (Depends-on): Add math.
4879         * modules/isnanf-nolibm (Depends-on): Likewise.
4880         * modules/isnanl (Depends-on): Likewise.
4881         * modules/isnanl-nolibm (Depends-on): Likewise.
4882         * modules/snprintf-posix-tests (Depends-on): Likewise.
4883         * modules/sprintf-posix-tests (Depends-on): Likewise.
4884         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4885         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4886         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4887         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4888
4889 2008-03-31  Bruno Haible  <bruno@clisp.org>
4890
4891         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4892         * doc/posix-functions/strtod.texi: Likewise.
4893
4894 2008-03-31  Bruno Haible  <bruno@clisp.org>
4895
4896         * tests/test-strtod.c (main): Don't use C99 syntax.
4897
4898 2008-03-31  Bruno Haible  <bruno@clisp.org>
4899
4900         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4901         Reported by Eric Blake.
4902
4903 2008-03-31  Jim Meyering  <meyering@redhat.com>
4904
4905         Don't compare actual signbit return values.
4906         * tests/test-strtod.c (main): Rather, compare only their
4907         zero/non-zero nature.
4908
4909 2008-03-31  Eric Blake  <ebb9@byu.net>
4910
4911         More strtod documentation.
4912         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4913         failures as distinct bugs.
4914
4915 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4916
4917         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4918         Problem reported by Erik Benada in
4919         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4920
4921 2008-03-30  Bruno Haible  <bruno@clisp.org>
4922
4923         * tests/test-strtod.c: Add comments about which assertion fails on which
4924         platform.
4925         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4926
4927 2008-03-30  Eric Blake  <ebb9@byu.net>
4928
4929         Test signbit behavior on zeros.
4930         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4931         (test_signbitd, test_signbitl): Likewise.
4932
4933         More strtod touchups.
4934         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4935         sign of negative underflow, for now.  Use .5, not .1.
4936         * doc/posix-functions/strtod.texi (strtod): Mention these
4937         limitations.
4938         Reported by Jim Meyering.
4939
4940 2008-03-30  Bruno Haible  <bruno@clisp.org>
4941
4942         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4943         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4944
4945 2008-03-30  Bruno Haible  <bruno@clisp.org>
4946
4947         Avoid failure when attempting to return empty iconv results on some
4948         platforms.
4949         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4950         allocation, don't report ENOMEM when the resulting string is empty.
4951
4952 2008-03-30  Bruno Haible  <bruno@clisp.org>
4953
4954         Fix buffer overrun.
4955         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4956         Don't consider the width for tmp_length. Check count against tmp_length
4957         before doing the padding. Ensure enough allocation during padding.
4958
4959 2008-03-30  Eric Blake  <ebb9@byu.net>
4960
4961         strtod touchups.
4962         * lib/strtod.c (strtod): Avoid compiler warnings.
4963         Reported by Jim Meyering.
4964
4965 2008-03-30  Bruno Haible  <bruno@clisp.org>
4966
4967         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4968         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4969         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4970         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4971         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4972         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4973         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4974         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4975
4976         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4977         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4978         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4979         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4980         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4981         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4982         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4983         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4984
4985         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4986         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4987         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4988         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4989         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4990         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4991         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4992         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4993
4994         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4995         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4996
4997         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4998         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4999
5000         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5001         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5002
5003         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5005         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5006
5007         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5009         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5010
5011         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5013         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5014
5015         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5017         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5018
5019         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5020         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5022         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5023         (Depends-on): Add EOVERFLOW.
5024         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5025         (Depends-on): Add EOVERFLOW.
5026         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5027         (Depends-on): Add EOVERFLOW.
5028         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5029         (Depends-on): Add EOVERFLOW.
5030         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5031         (Depends-on): Add EOVERFLOW.
5032         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5033         (Depends-on): Add EOVERFLOW.
5034         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5035         (Depends-on): Add EOVERFLOW.
5036         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5037         (Depends-on): Add EOVERFLOW.
5038
5039         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5041         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5042
5043         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5044         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5045         * modules/snprintf (Depends-on): Add EOVERFLOW.
5046
5047         * lib/poll.c (EOVERFLOW): Remove fallback.
5048         * modules/poll (Depends-on): Add EOVERFLOW.
5049
5050         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5051         * modules/getugroups (Depends-on): Add EOVERFLOW.
5052
5053         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5054         * modules/getdelim (Depends-on): Add EOVERFLOW.
5055
5056         * lib/ftell.c (EOVERFLOW): Remove fallback.
5057         * modules/ftell (Depends-on): Add EOVERFLOW.
5058
5059         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5061         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5062
5063         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5064
5065         * modules/EOVERFLOW-tests: New file.
5066         * tests/test-EOVERFLOW.c: New file.
5067
5068         * modules/EOVERFLOW: New file.
5069         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5070
5071 2008-03-30  Bruno Haible  <bruno@clisp.org>
5072
5073         Fix bug introduced on 2007-06-10.
5074         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5075         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5076
5077 2008-03-30  Bruno Haible  <bruno@clisp.org>
5078
5079         Improve freadseek's efficiency after ungetc.
5080         * lib/freadseek.c: Include freadahead.h.
5081         (freadptrinc): New function, extracted from freadseek.
5082         (freadseek): Use it in a loop. Use freadahead to determine the number
5083         of loop iterations.
5084         * modules/freadseek (Depends-on): Add freadahead.
5085         (configure.ac): Require AC_C_INLINE.
5086
5087 2008-03-30  Bruno Haible  <bruno@clisp.org>
5088
5089         * lib/freadseek.c (freadseek): Don't ignore the return value of
5090         freadptr.
5091
5092 2008-03-29  Eric Blake  <ebb9@byu.net>
5093
5094         Add hex float support.
5095         * modules/strtod (Depends-on): Add c-ctype.
5096         (Link): Mention POW_LIB.
5097         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
5098         whitespace between 'e' and exponent.
5099         * tests/test-strtod.c (main): Enable hex float tests.
5100         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5101         now provides.
5102
5103         Document various strtod bugs, with some fixes.
5104         * doc/posix-functions/strtod.texi (strtod): Document bugs with
5105         "-0x", "inf", "nan", and hex constants.
5106         * doc/posix-functions/atof.texi (atof): Likewise.
5107         * modules/stdlib (Makefile.am): Support strtod.
5108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5109         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5110         detect additional strtod bugs.
5111         * lib/stdlib.in.h (rpl_strtod): Add declarations.
5112         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
5113         bool where appropriate.  Parse 'inf' and 'nan'.
5114         * tests/test-strtod.c: New file.
5115         * modules/strtod (Depends-on): Add stdbool, stdlib.
5116         (configure.ac): Turn on module indicator.
5117         * modules/strtod-tests: New module.
5118
5119 2008-03-29  Eric Blake  <ebb9@byu.net>
5120
5121         Fix ftell on mingw.
5122         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5123         * modules/ftell-tests (Depends-on): Add binary-io.
5124         * modules/ftello-tests (Depends-on): Likewise.
5125         * tests/test-ftell.c (main): Enhance test to cover behavior after
5126         ungetc.  Enforce binary mode.
5127         * tests/test-ftello.c (main): Likewise.
5128
5129         Pass test-freadseek on cygwin.
5130         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5131         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5132         ungetc buffer.
5133
5134         * tests/test-fflush2.c (main): Fix typo.
5135
5136 2008-03-29  Bruno Haible  <bruno@clisp.org>
5137
5138         * tests/test-fflush2.c (main): Temporarily disable the contents of
5139         this test.
5140         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5141         Reported by Eric Blake.
5142
5143 2008-03-28  Simon Josefsson  <simon@josefsson.org>
5144
5145         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5146         (GC_SHA224_DIGEST_SIZE): Add.
5147
5148         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5149         (gc_hash_digest_length): Likewise.
5150         (gc_hash_buffer): Likewise.
5151
5152 2008-03-25  Bruno Haible  <bruno@clisp.org>
5153
5154         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5155         detail which gettext release to use.
5156         Reported by Simon Josefsson.
5157
5158 2008-03-26  Jim Meyering  <meyering@redhat.com>
5159
5160         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5161         * modules/gnumakefile (clean-GNUmakefile): Also, use
5162         test ... && ... || : syntax rather than if-then ... fi.
5163
5164         gnumakefile: Don't double-quote-expand $(VPATH) value.
5165         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5166
5167 2008-03-24  Eric Blake  <ebb9@byu.net>
5168
5169         Alter GNUmakefile to install into top directory.
5170         * modules/maintainer-makefile: Split, and add dependency...
5171         * modules/gnumakefile: to this new module.
5172         * build-aux/GNUmakefile: Move...
5173         * top/GNUmakefile: ...here.
5174         * build-aux/maint.mk: Move...
5175         * top/maint.mk: ...here.
5176         * MODULES.html.sh (Support for maintaining...): Document new
5177         module.
5178
5179 2008-03-23  Bruno Haible  <bruno@clisp.org>
5180
5181         * gnulib-tool: New options --vc-files, --no-vc-files.
5182         (func_usage): Document them.
5183         (vc_files): New variable.
5184         (func_import): Consider vc_files.
5185         (func_create_testdir): Set vc_files to empty.
5186         Suggested by Jim Meyering and Karl Berry.
5187
5188 2008-03-23  Bruno Haible  <bruno@clisp.org>
5189
5190         Fix regex compilation error on HP-UX 11.
5191         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5192         * modules/regex (Files): Add m4/mbstate_t.m4.
5193         Reported by Ton Voon <ton.voon@altinity.com>.
5194
5195 2008-03-23  Bruno Haible  <bruno@clisp.org>
5196
5197         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5198
5199 2008-03-23  Eric Blake  <ebb9@byu.net>
5200             Bruno Haible  <bruno@clisp.org>
5201
5202         Install files from top/ in the destination directory.
5203         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5204         augmentation also for the files from top/.
5205         (func_import, func_create_testdir): Rewrite file names:
5206         top/filename -> filename.
5207
5208 2008-03-23  Bruno Haible  <bruno@clisp.org>
5209
5210         Tweak "gnulib --version" output.
5211         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5212
5213 2008-03-23  Bruno Haible  <bruno@clisp.org>
5214
5215         Tweak "gnulib --version" output.
5216         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5217         rather than contents of ChangeLog, when possible.
5218
5219 2008-03-21  Eric Blake  <ebb9@byu.net>
5220
5221         More --version tweaks.
5222         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
5223         date of last ChangeLog entry.
5224
5225 2008-03-21  Jim Meyering  <meyering@redhat.com>
5226
5227         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5228
5229 2008-03-20  Eric Blake  <ebb9@byu.net>
5230
5231         VPATH fix.
5232         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5233
5234 2008-03-20  Simon Josefsson  <simon@josefsson.org>
5235
5236         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
5237         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
5238
5239 2008-03-20  Eric Blake  <ebb9@byu.net>
5240
5241         Sync GNUmakefile with coreutils.
5242         * build-aux/GNUmakefile (have-Makefile): Rename...
5243         (_have-Makefile): ...to this, for namespace consideration.
5244         (GNUmakefile.cfg): Include, if present.
5245         (_autoreconf): Define a default.
5246         (_is-dist-target): New rule for rebuilds to pick up intra-release
5247         version.
5248         (maint-cfg.mk): Rename...
5249         (cfg.mk): ...to this.
5250
5251 2008-03-18  Jim Meyering  <meyering@redhat.com>
5252
5253         New script and module: mktempd
5254         * MODULES.html.sh (maint+release support): Add mktempd.
5255         * build-aux/mktempd: New file.
5256         * modules/mktempd: New file.
5257
5258 2008-03-15  Jim Meyering  <meyering@redhat.com>
5259
5260         Undo last change.
5261         * lib/sha1.c, lib/md5.c: 63 != ~63.
5262         Reported by Andreas Schwab.
5263
5264         sha1.c, md5.c: Hoist a redundant expression.
5265         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5266         "ctx->buflen" only once, before calling *_process_block.
5267         * lib/md5.c (md5_process_bytes): Likewise.
5268
5269 2008-03-14  Eric Blake  <ebb9@byu.net>
5270
5271         Bump copyright year in files generated by gnulib-tool.
5272         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5273         gnulib-tool, rather than hard-coding it.
5274
5275         Fix 'gnulib-tool --version' output to work with git.
5276         * gnulib-tool (func_gnulib_dir): New function, extracted from...
5277         (startup): ...here.
5278         (func_version): Use it to invoke git-version-gen, rather than
5279         relying on CVS keyword expansion.  Modernize wording.
5280         (cvsdatestamp, last_checkin_date, version): Kill unused
5281         variables.
5282
5283 2008-03-12  Jim Meyering  <meyering@redhat.com>
5284
5285         Recognize optional cast of the argument to free.
5286         * build-aux/useless-if-before-free: Update regexps.
5287
5288         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5289
5290 2008-03-11  Bruno Haible  <bruno@clisp.org>
5291
5292         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5293         by a single package.
5294         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5295         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5296         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5297         Reported by Sam Steingold <sds@gnu.org>.
5298
5299 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5300
5301         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5302         repositories.
5303
5304 2008-03-11  Bruno Haible  <bruno@clisp.org>
5305
5306         Avoid conflicts between local macro definitions.
5307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5308         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5309
5310 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
5311             Bruno Haible  <bruno@clisp.org>
5312
5313         Make va_copy work with some version of xlc on AIX 5.1.
5314         * lib/stdarg.in.h: New file.
5315         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5316         On AIX, use a <stdarg.h> file substitute.
5317         * modules/stdarg (Files): Add lib/stdarg.in.h.
5318         (Depends-on): Add include_next.
5319         (Makefile.am): Build a stdarg.h substitute if requested.
5320         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5321
5322 2008-03-10  Bruno Haible  <bruno@clisp.org>
5323
5324         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5325         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5326         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5327
5328 2008-03-10  Bruno Haible  <bruno@clisp.org>
5329
5330         * modules/stdlib (Depends-on): Add include_next, remove
5331         absolute-header.
5332
5333 2008-03-09  Bruno Haible  <bruno@clisp.org>
5334
5335         * lib/freadahead.h (freadahead): Document more precisely.
5336         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
5337         the sum of both buffer sizes.
5338         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
5339         * NEWS: Document the change.
5340
5341 2008-03-09  Bruno Haible  <bruno@clisp.org>
5342
5343         Extend freadptr to return also the buffer size.
5344         * lib/freadptr.h (freadptr): Add sizep argument.
5345         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
5346         (freadptr): Add sizep argument. Determine buffer size like freadahead
5347         does.
5348         * tests/test-freadptr.c: Don't include freadahead.h.
5349         (main): Adapt for new calling convention of freadptr.
5350         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
5351         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
5352         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
5353         tests/test-freadptr2.sh.
5354         (Depends): Remove freadahead.
5355         (TESTS): Add test-freadptr2.sh.
5356         (check_PROGRAMS): Add test-freadptr2.
5357
5358 2008-03-09  Bruno Haible  <bruno@clisp.org>
5359
5360         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
5361         Report and solution by Simon Josefsson.
5362
5363 2008-03-06  Bruno Haible  <bruno@clisp.org>
5364
5365         Make fflush after ungetc work on BSD platforms.
5366         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5367         * tests/test-fflush2.c: New file.
5368         * tests/test-fflush2.sh: New file.
5369         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5370         tests/test-fflush2.c.
5371         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5372         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5373
5374 2008-03-06  Eric Blake  <ebb9@byu.net>
5375
5376         Likewise for ftello.
5377         * modules/ftello (Dependencies): Add extensions.
5378         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5379
5380 2008-03-06  Bruno Haible  <bruno@clisp.org>
5381
5382         * modules/fseeko (Dependencies): Add extensions.
5383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5384         Needed on glibc systems.
5385
5386 2008-03-06  Bruno Haible  <bruno@clisp.org>
5387
5388         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5389         email address.
5390         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5391
5392 2008-03-06  Bruno Haible  <bruno@clisp.org>
5393
5394         * users.txt: Add libgnupdf.
5395
5396 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5397
5398         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5399         (Header File Substitutes, Function Substitutes,
5400         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5401         (Build robot for gnulib): Fix typo.
5402
5403 2008-03-06  Bruno Haible  <bruno@clisp.org>
5404
5405         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5406         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5407
5408 2008-03-06  Bruno Haible  <bruno@clisp.org>
5409
5410         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5411         * doc/gnulib.texi: Include it.
5412
5413 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5414
5415         * modules/func (License): Change license to unlimited; there was
5416         no LGPL parts in the module anyway.
5417
5418 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5419
5420         * modules/__func__: Renamed to modules/func.
5421         * modules/__func__-tests: Renamed to modules/func-tests.
5422         * tests/test-__func__.c: Renamed to tests/test-func.c.
5423         * m4/__func__.m4: Renamed to m4/func.m4.
5424         * doc/gnulib.texi (__func__): Section renamed to func.
5425         Suggested by Eric Blake <ebb9@byu.net>.
5426
5427 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5428
5429         * doc/gnulib.texi (__func__): Use C99 terminology when talking
5430         about __func__.  Make example self-contained.  Suggested by Eric
5431         Blake <ebb9@byu.net>.
5432
5433         * tests/test-__func__.c (main): Avoid extraneous () around __func.
5434         Suggested by Eric Blake <ebb9@byu.net>.
5435
5436 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5437
5438         * modules/__func__: New file.
5439         * modules/__func__-tests: New file.
5440         * tests/test-__func__.c: New file.
5441         * m4/__func__.m4: New file.
5442         * doc/gnulib.texi (__func__): Document __func__ module.
5443
5444 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5445
5446         * modules/byteswap (License): Re-license as LGPLv2+.
5447
5448 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5449
5450         * doc/Makefile: Add pdf target.
5451
5452 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5453
5454         * modules/inline (License): Use 'unlimited', since there are only
5455         *.m4 files in this module.
5456
5457 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5458             Bruno Haible  <bruno@clisp.org>
5459
5460         Add support for HP C 7.1 on OpenVMS 8.3.
5461         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5462
5463 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5464
5465         Update VMS specifics.
5466         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5467
5468 2008-03-02  Jim Meyering  <meyering@redhat.com>
5469
5470         Remove the last dependency on the "free" module.
5471         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5472         Reported by Bob Proulx.
5473
5474         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5475
5476         Remove useless "if" tests before free.  Deprecate "free" module.
5477         * doc/posix-functions/free.texi: Mention that this
5478         module is no longer useful.
5479         * modules/free (Notice): Say this module is obsolete.
5480         * modules/readutmp (Depends-on): Remove free.
5481         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5482         * lib/putenv.c (putenv): Likewise.
5483         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5484         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5485         * tests/test-c-strcasestr.c (main): Likewise.
5486         * tests/test-c-strstr.c (main): Likewise.
5487         * tests/test-mbscasestr1.c (main): Likewise.
5488         * tests/test-mbscasestr2.c (main): Likewise.
5489         * tests/test-mbsstr1.c (main): Likewise.
5490         * tests/test-mbsstr2.c (main): Likewise.
5491         * tests/test-memmem.c (main): Likewise.
5492         * tests/test-strcasestr.c (main): Likewise.
5493         * tests/test-striconv.c (main): Likewise.
5494         * tests/test-striconveh.c (main): Likewise.
5495         * tests/test-striconveha.c (main): Likewise.
5496         * tests/test-strstr.c (main): Likewise.
5497
5498         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5499
5500         bootstrap: sync from coreutils again
5501         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5502
5503 2008-03-01  Jim Meyering  <meyering@redhat.com>
5504
5505         bootstrap: sync from coreutils
5506         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5507         also when the target doesn't exist.
5508
5509 2008-03-01  Eric Blake  <ebb9@byu.net>
5510
5511         Fix bugs in last patch.
5512         * lib/memchr2.c (memchr2): Fix typo.
5513         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5514         extension.
5515         Reported by Bruce Korb.
5516
5517         New module 'memchr2'.
5518         * modules/memchr2: New file.
5519         * modules/memchr2-tests: Likewise.
5520         * lib/memchr2.h: Likewise.
5521         * lib/memchr2.c: Likewise, based on memchr.c.
5522         * tests/test-memchr2.c: New test.
5523         * MODULES.html.sh (String handling): Add memchr2.
5524
5525 2008-02-29  Bruno Haible  <bruno@clisp.org>
5526
5527         * modules/freadseek-tests: New file.
5528         * tests/test-freadseek.sh: New file.
5529         * tests/test-freadseek.c: New file.
5530
5531         New module 'freadseek'.
5532         * modules/freadseek: New file.
5533         * lib/freadseek.h: New file.
5534         * lib/freadseek.c: New file.
5535         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5536
5537 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5538
5539         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5540         wydawca.
5541
5542         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5543         program_invocation_name and program_invocation_short_name are
5544         present.
5545
5546 2008-02-28  Bruno Haible  <bruno@clisp.org>
5547
5548         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5549         * tests/test-freadptr.sh: Also test non-seekable stdin.
5550
5551 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5552
5553         * build-aux/bootstrap (source_base, m4_base)
5554         (doc_base, tests_base): New variables.
5555         (gnulib_tool_options): Do not hardcode base directories, use
5556         the above variables instead.
5557
5558 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5559
5560         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5561
5562 2008-02-28  Bruno Haible  <bruno@clisp.org>
5563
5564         * modules/freadptr-tests: New file.
5565         * tests/test-freadptr.sh: New file.
5566         * tests/test-freadptr.c: New file.
5567
5568         New module 'freadptr'.
5569         * modules/freadptr: New file.
5570         * lib/freadptr.h: New file.
5571         * lib/freadptr.c: New file.
5572         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5573
5574 2008-02-26  Karl Berry  <karl@freefriends.org>
5575
5576         Sync from Libtool:
5577         * libltdl/argz.c (argz_add, argz_count): New functions.
5578         * libltdl/argz.in.h: Declare them.
5579         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5580
5581 2008-02-22  Bruno Haible  <bruno@clisp.org>
5582
5583         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5584         is a pointer type.  Needed for HP-UX 10.
5585         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5586         * doc/posix-functions/gmtime_r.texi: Likewise.
5587         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5588
5589 2008-02-24  Bruno Haible  <bruno@clisp.org>
5590
5591         * modules/environ-tests: New file.
5592         * tests/test-environ.c: New file.
5593
5594         New module 'environ'.
5595         * modules/environ: New file.
5596         * lib/unistd.in.h (environ): New declaration.
5597         * m4/environ.m4: New file.
5598         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5599         after use.
5600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5601         HAVE_DECL_ENVIRON.
5602         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5603         HAVE_DECL_ENVIRON.
5604         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5605         wrong claim that 'environ' is missing on some systems.
5606         * modules/execute (Depends-on): Add environ.
5607         * lib/execute.c (environ): Remove fallback declaration.
5608         * modules/pipe (Depends-on): Add environ.
5609         * lib/pipe.c (environ): Remove fallback declaration.
5610         * modules/setenv (Depends-on): Add environ.
5611         * lib/setenv.c (environ): Remove fallback declaration.
5612         * modules/unsetenv (Depends-on): Add environ.
5613         * lib/unsetenv.c (environ): Remove fallback declaration.
5614         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5615         m4/environ.m4.
5616         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5617         (gl_PREREQ_UNSETENV): Likewise.
5618
5619 2008-02-24  Bruno Haible  <bruno@clisp.org>
5620
5621         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5622
5623 2008-02-20  Bob Proulx  <bob@proulx.com>
5624
5625         Enable use of older two part flavor 'git describe'.
5626         * build-aux/git-version-gen: If using the older two part flavor of
5627         git version then recreate the third part now present in the
5628         newer three part flavor of git describe.
5629
5630 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5631
5632         * lib/fts.c (fts_build): Typo correction to comment.
5633
5634 2008-02-17  Bruno Haible  <bruno@clisp.org>
5635
5636         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5637         generating no-op conflicts.
5638
5639 2008-02-17  Bruno Haible  <bruno@clisp.org>
5640
5641         Speed up by 10%.
5642         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5643         result_entries, rather than an index-based loop.
5644
5645 2008-02-17  Bruno Haible  <bruno@clisp.org>
5646
5647         Speed up by 25%.
5648         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5649         'hashcode_cached'.
5650         (entry_create): New function.
5651         (entry_hashcode): Use the cached hashcode if possible.
5652         (read_changelog_file, try_split_merged_entry): Use entry_create.
5653
5654 2008-02-17  Bruno Haible  <bruno@clisp.org>
5655
5656         Speed up from O(n^2) to O(n) for long ChangeLog files.
5657         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5658         (read_changelog_file): Change implementation of entries_reversed list
5659         to rbtreehash.
5660         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5661
5662 2008-02-17  Bruno Haible  <bruno@clisp.org>
5663
5664         New option --split-merged-entry.
5665         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5666         (find_paragraph_end, try_split_merged_entry): New functions.
5667         (long_options): Add option --split-merged-entry.
5668         (usage): Document option --split-merged-entry.
5669         (main): Implement option --split-merged-entry.
5670         Reported by Eric Blake.
5671
5672 2008-02-17  Bruno Haible  <bruno@clisp.org>
5673
5674         * lib/git-merge-changelog.c: Include c-strstr.h.
5675         (main): Support the "git pull --rebase" situation.
5676         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5677         Reported by Eric Blake.
5678
5679 2008-02-16  Eric Blake  <ebb9@byu.net>
5680
5681         Avoid doubling \ in common case of "c-maybe" quoting style.
5682         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5683         eliding outer quotes.
5684         * lib/quotearg.h: Document this.
5685         * tests/test-quotearg.c (result_strings, inputs, results_g)
5686         (flag_results, locale_results): Test it by adding a new string to
5687         each test group.
5688         (compare_strings): Test new string.
5689
5690 2008-02-13  Eric Blake  <ebb9@byu.net>
5691
5692         Avoid trigraph quoting in default output.
5693         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5694         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5695         unless explicitly requested.
5696         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5697
5698 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5699
5700         Don't rely on signed integer overflowing to negative value.
5701         * lib/getugroups.c (getugroups): Include <limits.h>.
5702         Instead, compare against INT_MAX, and increment only if the test passes.
5703
5704 2008-02-13  Jim Meyering  <meyering@redhat.com>
5705         and Eric Blake  <ebb9@byu.net>
5706
5707         Avoid shadowing warning and compile errors on Linux.
5708         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5709         forwarding macros on Linux.
5710         (dcgettext): Define a stub, for Linux.
5711         (results_g, main): Avoid warnings.
5712
5713 2008-02-12  Eric Blake  <ebb9@byu.net>
5714
5715         Silence warning in last patch.
5716         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5717
5718         Quotearg part 4: add tests, fix c-maybe colon quoting.
5719         * lib/quotearg.h: Improve documentation.
5720         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5721         escapes when adding outer quotes.  When quoting trigraphs, use
5722         valid C notation.  When quoting NUL, omit extra characters if next
5723         character is not digit.  Alter prototype.
5724         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5725         callers.
5726         * modules/quotearg-tests: New module.
5727         * tests/test-quotearg.c: New test.
5728
5729 2008-02-07  Eric Blake  <ebb9@byu.net>
5730
5731         Quotearg part 3: add flag to control outer quote elision.
5732         * lib/quotearg.h (c_maybe_quoting_style): New style.
5733         (enum quoting_flags): Better documentation of flags.
5734         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5735         c-maybe style.
5736         (quotearg_buffer_restyled): Handle new flag to elide outer
5737         quotes.
5738
5739         Quotearg part 2: add flag that can control NUL elision.
5740         * lib/quotearg.h (set_quoting_flags): New prototype.
5741         * lib/quotearg.c (struct quoting_options): Add flag field.
5742         (set_quoting_flags): New function.
5743         (quotearg_buffer_restyled): Add flags parameter.
5744         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5745         (quotearg_n_options): Set the flag, since length cannot be
5746         returned.
5747         (quoting_options_from_style): Default flags correctly.
5748
5749         Quotearg part 1: more wrappers, restore quotearg_char state.
5750         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5751         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5752         (quotearg_colon_mem): New wrappers.
5753         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5754         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5755         functions.
5756         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5757         (quotearg_colon_mem): New functions.
5758
5759 2008-02-11  Bruno Haible  <bruno@clisp.org>
5760
5761         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5762         library in the current directory: it does not work with parallel make.
5763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5764
5765 2008-02-11  Bruno Haible  <bruno@clisp.org>
5766
5767         * .gitattributes: New file.
5768
5769 2008-02-11  Jim Meyering  <meyering@redhat.com>
5770
5771         useless-if-before-free: Fix reversed exit values.
5772         * build-aux/useless-if-before-free: Use correct values
5773         for EXIT_MATCH and EXIT_NO_MATCH.
5774
5775         * build-aux/useless-if-before-free: Close stdout carefully.
5776
5777 2008-02-10  Bruno Haible  <bruno@clisp.org>
5778
5779         New module 'git-merge-changelog'.
5780         * modules/git-merge-changelog: New file.
5781         * lib/git-merge-changelog.c: New file.
5782
5783 2008-02-10  Jim Meyering  <meyering@redhat.com>
5784
5785         useless-if-before-free: New option: --list (-l).
5786
5787         useless-if-before-free: Don't exit immediately upon open failure.
5788         * build-aux/useless-if-before-free: Exit 2 for errors.
5789         Upon failure to open a file, don't exit immediately.
5790         Rather, just warn and continue with any remaining files.
5791
5792 2008-02-10  Bruno Haible  <bruno@clisp.org>
5793
5794         New abstract list operation 'node_set_value'.
5795         * lib/gl_list.h (gl_list_node_set_value): New function.
5796         (struct gl_list_implementation): New field node_set_value.
5797         * lib/gl_list.c (gl_list_node_set_value): New function.
5798         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5799         (gl_array_list_implementation): Update.
5800         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5801         (gl_carray_list_implementation): Update.
5802         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5803         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5804         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5805         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5806         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5807         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5808         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5809         Update.
5810         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5811         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5812         (gl_sublist_list_implementation): Update.
5813
5814 2008-02-10  Bruno Haible  <bruno@clisp.org>
5815
5816         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5817         Needed when ELEMENT is #defined to 'some_type *'.
5818
5819 2008-02-10  Jim Meyering  <meyering@redhat.com>
5820
5821         New script and module: useless-if-before-free
5822         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5823         * build-aux/useless-if-before-free: New file.
5824         * modules/useless-if-before-free: New file.
5825
5826         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5827
5828         xstrtol_error: Fix typo.
5829         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5830         s/exit_failure/exit_status/.
5831
5832 2008-02-09  Jim Meyering  <meyering@redhat.com>
5833
5834         New script and module: gitlog-to-changelog
5835         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5836         * modules/gitlog-to-changelog: New file.
5837         * build-aux/gitlog-to-changelog: New file.
5838
5839 2008-02-08  Jim Meyering  <meyering@redhat.com>
5840
5841         Avoid two "parameter unused" warnings.
5842         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5843         Mark "st" as used.
5844
5845         Use "git COMMAND", not "git-COMMAND".
5846         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5847         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5848         * build-aux/git-version-gen: Use "git status", not "git-status".
5849
5850 2008-02-07  Bruno Haible  <bruno@clisp.org>
5851
5852         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5853         Avoids a crash on Windows Vista.
5854         Reported by Adam Strzelecki <ono@java.pl> via
5855         Simon Josefsson <simon@josefsson.org>.
5856
5857 2008-02-06  Bruno Haible  <bruno@clisp.org>
5858
5859         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5860         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5861         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5863         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5864         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5865         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5866         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5867         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5868         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5874         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5875         left-adjust flag.
5876         * tests/test-snprintf-posix.h (test_function): Likewise.
5877         * tests/test-sprintf-posix.h (test_function): Likewise.
5878         * tests/test-vasprintf-posix.c (test_function): Likewise.
5879         * doc/posix-functions/fprintf.texi: Update.
5880         * doc/posix-functions/printf.texi: Update.
5881         * doc/posix-functions/snprintf.texi: Update.
5882         * doc/posix-functions/sprintf.texi: Update.
5883         * doc/posix-functions/vfprintf.texi: Update.
5884         * doc/posix-functions/vprintf.texi: Update.
5885         * doc/posix-functions/vsnprintf.texi: Update.
5886         * doc/posix-functions/vsprintf.texi: Update.
5887         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5888
5889 2008-02-06  Bruno Haible  <bruno@clisp.org>
5890
5891         Fix bug introduced on 2008-01-26.
5892         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5893
5894 2008-02-06  Bruno Haible  <bruno@clisp.org>
5895
5896         Fix bug introduced on 2007-06-10.
5897         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5898         !NEED_PRINTF_FLAG_ZERO.
5899
5900 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5901
5902         getloadavg: use libperfstat on AIX5
5903         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5904
5905 2008-02-03  Bruno Haible  <bruno@clisp.org>
5906
5907         * lib/diffseq.h: Add comments about required #includes.
5908         Reported by Michael Biggs <gnulib@doubleplum.net>.
5909
5910 2008-02-01  Bruno Haible  <bruno@clisp.org>
5911
5912         * users.txt: Add gnuit.
5913
5914 2008-01-31  Bruno Haible  <bruno@clisp.org>
5915
5916         * lib/md4.c (set_uint32): Mark as inline.
5917         * lib/md5.c (set_uint32): Likewise.
5918         * lib/sha1.c (set_uint32): Likewise.
5919         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5920         * m4/md5.m4 (gl_MD5): Likewise.
5921         * m4/sha1.m4 (gl_SHA1): Likewise.
5922
5923 2008-01-31  Jim Meyering  <meyering@redhat.com>
5924
5925         Use "sizeof VAR", rather than a literal "4".
5926         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5927         * lib/md4.c (md4_read_ctx): Likewise.
5928         * lib/sha1.c (sha1_read_ctx): Likewise.
5929
5930 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5931
5932         * tests/test-sha1.c: New file, based on test-md5.c.
5933
5934         * modules/crypto/sha1-tests: New file.
5935
5936 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5937
5938         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5939
5940 2008-01-31  Jim Meyering  <meyering@redhat.com>
5941
5942         Prefer "sizeof v" over the equivalent "4".
5943         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5944         * lib/md5.c (set_uint32): Likewise.
5945         * lib/sha1.c (set_uint32): Likewise.
5946
5947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5948
5949         * lib/sha1.c (set_uint32): Mark function as static.
5950
5951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5952
5953         md2: clarify comments to say that alignment is not required.
5954         * lib/md2.h: Remove warning about alignment in comment.
5955         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5956         never been required.
5957
5958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5959
5960         md4: adapt alignment constraint fix from sha1.
5961         * lib/md4.c (set_uint32): New function, from sha1.c
5962         (md4_read_ctx): Use it.
5963         (md4_finish_ctx): Doc fix.
5964         * lib/md4.h: Doc fix.
5965
5966 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5967
5968         md5: adapt alignment constraint fix from sha1.
5969         * lib/md5.c (set_uint32): New function, from sha1.c
5970         (md5_read_ctx): Use it.
5971         (md5_finish_ctx): Doc fix.
5972         * lib/md5.h: Doc fix.
5973
5974 2008-01-30  Peter Palfrader  <weasel@debian.org>
5975
5976         sha1: remove the result buffer alignment constraint
5977         * lib/sha1.c (set_uint32): New function.
5978         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5979         constraint.
5980         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5981         * lib/sha1.h: Likewise.
5982
5983 2008-01-30  Andreas Schwab  <schwab@suse.de>
5984             Bruno Haible  <bruno@clisp.org>
5985
5986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5987         correct definition of LDBL_MIN_EXP.
5988
5989 2008-01-30  Karl Berry  <karl@gnu.org>
5990
5991         * config/srclist-update: try to preserve x bit on updates.
5992         * config/srclistvars.sh: update for karl.
5993
5994 2008-01-29  Jim Meyering  <meyering@redhat.com>
5995
5996         vasnprintf.c: Avoid warning about unused label
5997         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5998         "overflow" label definition and associated code with the
5999         same cpp condition that guards the sole use of that label.
6000
6001 2008-01-26  Bruno Haible  <bruno@clisp.org>
6002
6003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6004         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6005         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6006         * lib/isnanl-nolibm.h (isnanl): Likewise.
6007         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6008
6009 2008-01-26  Bruno Haible  <bruno@clisp.org>
6010
6011         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6012         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6013
6014 2008-01-26  Bruno Haible  <bruno@clisp.org>
6015
6016         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6017         GCC >= 4.0 built-in.
6018         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6019
6020 2008-01-26  Bruno Haible  <bruno@clisp.org>
6021
6022         Rename isnan, applicable to 'double' only, to isnand.
6023         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6024         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6025         (configure.ac): Update.
6026         (Include): Replace "isnan.h" with "isnand.h".
6027         * m4/isnand.m4: Renamed from m4/isnan.m4.
6028         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6029         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6030         instead of isnan.c.
6031         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6032         instead of HAVE_ISNAN_IN_LIBC.
6033         (isnand): Renamed from isnan.
6034         * lib/isnand.c: New file.
6035         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6036         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6037         (Makefile.am): Update.
6038         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6039         Include isnand.h instead of isnan.h.
6040         (main): Test isnand instead of isnan.
6041         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6042         isnan-nolibm.
6043         * modules/frexp (Depends-on): Likewise.
6044         * modules/frexp-tests (Depends-on): Likewise.
6045         * modules/frexp-nolibm (Depends-on): Likewise.
6046         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6047         * modules/isfinite (Depends-on): Likewise.
6048         * modules/round-tests (Depends-on): Likewise.
6049         * modules/signbit (Depends-on): Likewise.
6050         * modules/signbit-tests (Depends-on): Likewise.
6051         * modules/snprintf-posix (Depends-on): Likewise.
6052         * modules/sprintf-posix (Depends-on): Likewise.
6053         * modules/trunc-tests (Depends-on): Likewise.
6054         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6055         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6056         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6057         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6058         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6059         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6060         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6061         * modules/vasnprintf-posix (Depends-on): Likewise.
6062         * modules/vasprintf-posix (Depends-on): Likewise.
6063         * modules/vfprintf-posix (Depends-on): Likewise.
6064         * modules/vsnprintf-posix (Depends-on): Likewise.
6065         * modules/vsprintf-posix (Depends-on): Likewise.
6066         * lib/frexp.c: Include isnand.h instead of isnan.h.
6067         (ISNAN): Set to isnand instead of isnan.
6068         * lib/isfinite.c: Include isnand.h instead of isnan.h.
6069         (gl_isfinited): Use isnand instead of isnan.
6070         * lib/signbitd.c: Include isnand.h instead of isnan.h.
6071         (gl_signbitd): Use isnand instead of isnan.
6072         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6073         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6074         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6075         (main): Use isnand instead of isnan.
6076         * tests/test-round1.c: Include isnand.h.
6077         (main): Use isnand instead of isnan.
6078         * tests/test-round2.c: Include isnand.h instead of isnan.h.
6079         (ISNAN): Set to isnand instead of isnan.
6080         * tests/test-trunc1.c: Include isnand.h.
6081         (main): Use isnand instead of isnan.
6082         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6083         (equal): Use isnand instead of isnan.
6084         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6085         isnand-nolibm.
6086         * NEWS: Mention the change.
6087
6088 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6089             Bruno Haible  <bruno@clisp.org>
6090
6091         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6092         the GCC builtins for signbits are present and set
6093         REPLACE_SIGNBIT_USING_GCC if so.
6094         * lib/math.in.h (signbit): Define using GCC builtins if
6095         REPLACE_SIGNBIT_USING_GCC is set.
6096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6097         REPLACE_SIGNBIT_USING_GCC.
6098         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6099
6100 2008-01-25  Jim Meyering  <meyering@redhat.com>
6101
6102         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
6103         * lib/poll.c: Include <config.h>, not "config.h".
6104         * tests/test-getaddrinfo.c: Likewise.
6105
6106 2008-01-25  Simon Josefsson  <simon@josefsson.org>
6107
6108         * modules/sockets-tests: New file.
6109
6110 2008-01-24  Simon Josefsson  <simon@josefsson.org>
6111
6112         * modules/sockets: New module, can be used to call WSA_Startup and
6113         WSA_Cleanup when needed.
6114
6115         * lib/sockets.h, lib/sockets.c: New files.
6116
6117         * m4/sockets.m4: New file.
6118
6119         * tests/test-sockets.c: New file.
6120
6121 2008-01-19  Bruno Haible  <bruno@clisp.org>
6122
6123         * doc/posix-headers: Renamed from doc/headers.
6124         * doc/posix-functions: Renamed from doc/functions.
6125         * doc/gnulib.texi: Update.
6126
6127 2008-01-19  Bruno Haible  <bruno@clisp.org>
6128
6129         * doc/glibc-functions/strcasestr.texi: Include contents of
6130         doc/functions/strcasestr.texi, fixing the list of platforms.
6131         * doc/functions/strcasestr.texi: Remove file.
6132
6133 2008-01-19  Bruno Haible  <bruno@clisp.org>
6134
6135         * doc/glibc-functions/memmem.texi: Include contents of
6136         doc/functions/memmem.texi.
6137         * doc/functions/memmem.texi: Remove file.
6138
6139 2008-01-18  Bruno Haible  <bruno@clisp.org>
6140
6141         * doc/glibc-functions/*.texi: New files.
6142         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6143         to use the new files.
6144
6145 2008-01-17  Bruno Haible  <bruno@clisp.org>
6146
6147         * tests/test-gethostname.c (main): Fix printf statement.
6148
6149 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6150
6151         * modules/gethostname-tests: New file.
6152
6153         * tests/test-gethostname.c: New file.
6154
6155 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6156
6157         * lib/gethostname.c: Include string.h unconditionally, strncpy is
6158         used by the UNAME case.  Reported by Bruno Haible
6159         <bruno@clisp.org>.
6160
6161 2008-01-17  Eric Blake  <ebb9@byu.net>
6162
6163         Convert c-strcasestr to be more efficient.
6164         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6165         (Depends-on): Add c-strcase, remove malloca, strnlen.
6166         * tests/test-c-strcasestr.c (main): Enhance test.
6167         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6168
6169 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6170
6171         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6172         Use it in creating po/Makevars.
6173
6174 2008-01-15  Simon Josefsson  <simon@josefsson.org>
6175
6176         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6177         Applications that requires it should initialize libgcrypt
6178         manually.
6179
6180 2008-01-16  Simon Josefsson  <simon@josefsson.org>
6181
6182         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6183
6184 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6185
6186         Fix problem with getdate on mingw32 reported by Simon Josefsson
6187         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6188         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6189         tzname", when deciding whether to declare tzname.
6190         * lib/strftime.c (tzname): Likewise.
6191
6192 2008-01-15  Bruno Haible  <bruno@clisp.org>
6193
6194         Work around a MacOS X 10.5 bug in frexpl().
6195         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6196         * doc/functions/frexpl.texi: Document the bug.
6197         Reported by Elias Pipping <pipping@gentoo.org>.
6198
6199 2008-01-14  Eric Blake  <ebb9@byu.net>
6200
6201         Touch up previous patch.
6202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6203         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6204
6205         Convert strcasestr module to use Two-Way algorithm.
6206         * modules/strcasestr-simple: New module, based on the old
6207         strcasestr, but with Two-Way rather than KMP.
6208         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6209         * lib/string.in.h (rpl_strcasestr): Declare.
6210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6211         performance.
6212         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6213         * modules/string (Makefile.am): Support strcasestr.
6214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6215         * modules/strcasestr-tests (Depends-on): Check for alarm.
6216         * tests/test-strcasestr.c: Augment test.
6217         * lib/str-two-way.h: Clean up stray macro.
6218         * NEWS: Document new module.
6219         * MODULES.html.sh (string handling): Likewise.
6220         * doc/functions/strcasestr.texi: New file.
6221         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
6222         here, since it is not a POSIX function.
6223
6224 2008-01-14  Colin Watson  <cjwatson@debian.org>
6225             Bruno Haible  <bruno@clisp.org>
6226
6227         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6228         works fine; if not, set REPLACE_STRSIGNAL.
6229         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6231         REPLACE_STRSIGNAL.
6232         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6233         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6234         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6235
6236 2008-01-14  Bruno Haible  <bruno@clisp.org>
6237
6238         * modules/strsignal (Include): Change to <string.h>.
6239
6240 2008-01-14  Colin Watson  <cjwatson@debian.org>
6241
6242         * modules/argp (Notice): Add a notice recommending to change
6243         XGETTEXT_OPTIONS.
6244         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6245
6246 2008-01-13  Colin Watson  <cjwatson@debian.org>
6247
6248         * modules/strsignal-tests: New file.
6249         * tests/test-strsignal.c: New file.
6250
6251         * lib/strsignal.c: New file, from glibc with modifications.
6252         * lib/siglist.h: New file, from glibc with modifications.
6253         * lib/string.in.h (strsignal): New declaration.
6254         * m4/strsignal.m4: New file.
6255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6256         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6257         * modules/strsignal: New file.
6258         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6259         HAVE_DECL_STRSIGNAL.
6260
6261 2008-01-13  Bruno Haible  <bruno@clisp.org>
6262
6263         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6264         locale encoding is not ASCII. Needed for OpenBSD 4.0.
6265         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6266         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6267
6268 2008-01-13  Bruno Haible  <bruno@clisp.org>
6269
6270         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6271         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6272         * lib/argp.h (__attribute__): Likewise.
6273         * lib/c-stack.c (__attribute__): Likewise.
6274         * lib/error.h (__attribute__): Likewise.
6275         * lib/fts.c (__attribute__): Likewise.
6276         * lib/openat.h (__attribute__): Likewise.
6277         * lib/stdio.in.h (__attribute__): Likewise.
6278         * lib/string.in.h (__attribute__): Likewise.
6279         * lib/utimens.c (__attribute__): Likewise.
6280         * lib/vasnprintf.h (__attribute__): Likewise.
6281         * lib/xalloc.h (__attribute__): Likewise.
6282         * lib/xprintf.h (__attribute__): Likewise.
6283         * lib/xstrtol.h (__attribute__): Likewise.
6284         * lib/xvasprintf.h (__attribute__): Likewise.
6285
6286 2008-01-12  Bruno Haible  <bruno@clisp.org>
6287
6288         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6289         * doc/glibc-headers/a.out.texi: New file.
6290         * doc/glibc-headers/aliases.texi: New file.
6291         * doc/glibc-headers/alloca.texi: New file.
6292         * doc/glibc-headers/ar.texi: New file.
6293         * doc/glibc-headers/argp.texi: New file.
6294         * doc/glibc-headers/argz.texi: New file.
6295         * doc/glibc-headers/byteswap.texi: New file.
6296         * doc/glibc-headers/crypt.texi: New file.
6297         * doc/glibc-headers/endian.texi: New file.
6298         * doc/glibc-headers/envz.texi: New file.
6299         * doc/glibc-headers/err.texi: New file.
6300         * doc/glibc-headers/error.texi: New file.
6301         * doc/glibc-headers/execinfo.texi: New file.
6302         * doc/glibc-headers/fpu_control.texi: New file.
6303         * doc/glibc-headers/fstab.texi: New file.
6304         * doc/glibc-headers/fts.texi: New file.
6305         * doc/glibc-headers/getopt.texi: New file.
6306         * doc/glibc-headers/ieee754.texi: New file.
6307         * doc/glibc-headers/ifaddrs.texi: New file.
6308         * doc/glibc-headers/libintl.texi: New file.
6309         * doc/glibc-headers/mcheck.texi: New file.
6310         * doc/glibc-headers/mntent.texi: New file.
6311         * doc/glibc-headers/obstack.texi: New file.
6312         * doc/glibc-headers/paths.texi: New file.
6313         * doc/glibc-headers/printf.texi: New file.
6314         * doc/glibc-headers/pty.texi: New file.
6315         * doc/glibc-headers/resolv.texi: New file.
6316         * doc/glibc-headers/shadow.texi: New file.
6317         * doc/glibc-headers/sysexits.texi: New file.
6318         * doc/glibc-headers/ttyent.texi: New file.
6319
6320 2008-01-12  Jim Meyering  <meyering@redhat.com>
6321
6322         announce-gen: emit Gnulib's git-based version string.
6323         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6324         New option --gnulib-version=V, where V is expected to be
6325         the output of running git describe in the gnulib directory.
6326         (get_tool_versions): Request feedback on xdelta.  I suspect it's
6327         not useful, and plan to stop publishing an xdelta file with each
6328         coreutils release.
6329
6330         * build-aux/announce-gen: Also check for lzma-compressed files.
6331
6332 2008-01-11  Bruno Haible  <bruno@clisp.org>
6333
6334         * tests/test-memmem.c (main): Increase maximum allowed time.
6335         * tests/test-strstr.c (main): Likewise.
6336
6337 2008-01-11  Bruno Haible  <bruno@clisp.org>
6338
6339         * doc/functions/memmem.texi: Add more precisions about platforms.
6340         * doc/functions/strstr.texi: Likewise.
6341
6342 2008-01-10  Eric Blake  <ebb9@byu.net>
6343
6344         * m4/strstr.m4: Delete cruft from copy-n-paste.
6345         Reported by Bruno Haible.
6346
6347 2008-01-10  Bruno Haible  <bruno@clisp.org>
6348
6349         Make c-strstr rely on strstr.
6350         * lib/c-strstr.c: Don't include str-kmp.h.
6351         (c_strstr): Define in terms of strstr.
6352         * modules/c-strstr (Files): Remove lib/str-kmp.h.
6353         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
6354
6355 2008-01-10  Bruno Haible  <bruno@clisp.org>
6356
6357         * doc/gnulib.texi (String Functions in C Locale): New section.
6358         * doc/c-ctype.texi: New file.
6359         * doc/c-strcase.texi: New file.
6360         * doc/c-strcaseeq.texi: New file.
6361         * doc/c-strcasestr.texi: New file.
6362         * doc/c-strstr.texi: New file.
6363         * doc/c-strtod.texi: New file.
6364         * doc/c-strtold.texi: New file.
6365
6366 2008-01-10  Eric Blake  <ebb9@byu.net>
6367
6368         * lib/relocatable.h: Fix a comment.
6369
6370 2008-01-10  Eric Blake  <ebb9@byu.net>
6371
6372         Share two-way algorithm.
6373         * lib/str-two-way.h: New file, merged from...
6374         * lib/memmem.c: ...here...
6375         * lib/strstr.c: ...and here.
6376         * modules/memmem (Files): Use it.
6377         * modules/strstr (Files): Likewise.
6378
6379         Avoid quadratic strstr implementations.
6380         * lib/strstr.c: New file.
6381         * m4/strstr.m4: Likewise.
6382         * modules/strstr: Likewise.
6383         * modules/strstr-tests: Likewise.
6384         * tests/test-strstr.c: Likewise.
6385         * lib/string.in.h (rpl_strstr): Declare.
6386         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6388         * modules/string (Makefile.am): Likewise.
6389         * MODULES.html.sh (string handling): Mention new module.
6390         * doc/functions/strstr.texi (strstr): Document the bug.
6391
6392 2008-01-10  Bruno Haible  <bruno@clisp.org>
6393
6394         * lib/relocatable.h (relocate): State whether result is freshly
6395         allocated or not.
6396         * lib/relocatable.c (relocate): Return a freshly allocated string
6397         instead of a pointer to a privately held string.
6398         Reported by Sylvain Beucler <beuc@gnu.org>.
6399
6400 2008-01-10  Colin Watson  <cjwatson@debian.org>
6401
6402         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6403         s/S_ISNLK/S_ISLNK/.
6404
6405 2008-01-09  Bruno Haible  <bruno@clisp.org>
6406
6407         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6408         and other files.
6409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6410         if it's only a guess.
6411         * modules/memmem: Simplify by depending on memmem-simple.
6412
6413 2008-01-09  Bruno Haible  <bruno@clisp.org>
6414
6415         Work around OpenBSD 4.0 tdelete() bug.
6416         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6417         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6418         macros and don't redefine the enum values.
6419         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
6420         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
6421         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
6422
6423 2008-01-09  Bruno Haible  <bruno@clisp.org>
6424
6425         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
6426         (main): Don't perform the tests if setlocale did not install a UTF-8
6427         locale. Needed on OpenBSD 4.0.
6428         * modules/wcwidth-tests (Depends-on): Add localcharset.
6429
6430 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6431
6432         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
6433         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
6434         * NEWS: announce this.
6435         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
6436
6437 2008-01-09  Simon Josefsson  <simon@josefsson.org>
6438         and Eric Blake  <ebb9@byu.net>
6439
6440         Add memmem-simple module.
6441         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6442         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6443         * modules/memmem-simple: New file.
6444         * modules/memmem (Description): Tweak.
6445         * MODULES.html.sh (string handling): Mention new module.
6446         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6447         addressed by memmem-simple.
6448         * NEWS: Document the difference.
6449
6450 2008-01-09  Eric Blake  <ebb9@byu.net>
6451
6452         Give gcc some memmem optimization hints.
6453         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6454         (strcasestr): Declare as pure.
6455         * modules/memmem (Maintainer): Claim my implementation.
6456
6457 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6458
6459         Support AIX 6.1 and higher.
6460         * build-aux/config.libpath: Likewise.
6461         * build-aux/config.rpath: Likewise.
6462
6463 2008-01-08  Jim Meyering  <meyering@redhat.com>
6464             Bruno Haible  <bruno@clisp.org>
6465
6466         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6467         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6468         Reported by Peter Fales in
6469         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6470
6471 2008-01-08  Bruno Haible  <bruno@clisp.org>
6472
6473         * modules/unictype/category-of (Depends-on): Add
6474         unictype/category-none.
6475         * modules/unictype/category-and-tests (Depends-on): Add
6476         unictype/category-{L,N,Lu,Nd}.
6477         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6478         * modules/unictype/category-or-tests (Depends-on): Add
6479         unictype/category-{L,N}.
6480         * modules/unictype/category-name-tests (Depends-on): Add
6481         unictype/category-{Z,Nl}.
6482         Reported by Simon Josefsson.
6483
6484 2008-01-08  Bruno Haible  <bruno@clisp.org>
6485
6486         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6487         convention better.
6488         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6489         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6490         Reported by Peter Miller <millerp@canb.auug.org.au>.
6491
6492 2008-01-08  Eric Blake  <ebb9@byu.net>
6493
6494         Rewrite memmem to guarantee linear complexity without malloc.
6495         * lib/memmem.c (memmem): Use Two-Way rather than
6496         Knuth-Morris-Pratt, to allow O(1) space usage.
6497         (critical_factorization, two_way_short_needle)
6498         (two_way_long_needle): New functions.
6499         (knuth_morris_pratt): Delete.
6500         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6501         Add stdint.
6502         * tests/test-memmem.c (main): Add tests for periodic needle and
6503         sublinear performance.
6504         * doc/functions/memmem.texi (memmem): Document other deficiencies
6505         in cygwin and older glibc.
6506
6507 2008-01-08  Bruno Haible  <bruno@clisp.org>
6508
6509         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6510         augmentation.
6511
6512 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6513
6514         Add a configure time option: --disable-acl.
6515         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6516         AC_ARG_ENABLE(acl).
6517
6518 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6519
6520         * tests/test-localename.c: Don't include obsolete "setenv.h".
6521
6522         * modules/localename-tests (Depends-on): Need unsetenv.
6523
6524 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6525
6526         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6527
6528 2008-01-06  Colin Watson  <cjwatson@debian.org>
6529
6530         * users.txt: Add man-db.
6531
6532 2008-01-07  Bruno Haible  <bruno@clisp.org>
6533
6534         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6535         previous section name.
6536
6537 2008-01-07  Bruno Haible  <bruno@clisp.org>
6538
6539         * lib/progname.c (set_program_name): Don't strip off a leading
6540         "lt-" prefix outside a .libs directory.
6541         Suggested by Paul Eggert.
6542
6543 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6544             Bruno Haible  <bruno@clisp.org>
6545
6546         Improve memory cleanup in 'relocatable' module.
6547         * lib/relocatable.h (compute_curr_prefix): Change return type to
6548         'char *'.
6549         * lib/relocatable.c (compute_curr_prefix): Change return type to
6550         'char *'. Free curr_installdir after use.
6551         (relocate): Free curr_prefix_better after use.
6552         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6553
6554 2008-01-01  Bruno Haible  <bruno@clisp.org>
6555
6556         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6557         failure on older glibc systems.
6558         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6559
6560 2008-01-05  Eric Blake  <ebb9@byu.net>
6561
6562         Avoid quadratic system memmem.
6563         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6564         Reported by Ralf Wildenhues.
6565
6566         Fix memmem test for mingw.
6567         * modules/memmem-tests (configure.ac): Check for alarm.
6568         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6569         it.
6570         * doc/functions/memmem.texi: New file.
6571         * doc/gnulib.texi (Function Substitutes): Add memmem.
6572         Reported by Bruno Haible.
6573
6574 2008-01-04  Bruno Haible  <bruno@clisp.org>
6575
6576         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6577         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6578         gl_HEADER_STRING_H_DEFAULTS.
6579
6580 2008-01-04  Eric Blake  <ebb9@byu.net>
6581
6582         Shorten duration of memmem test.
6583         * tests/test-memmem.c (main): Use alarm to declare failure if test
6584         is taking too long.
6585         Reported by Ralf Wildenhues.
6586
6587 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6588
6589         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6590         string, needed by strerror.
6591
6592 2008-01-03  Colin Watson  <cjwatson@debian.org>
6593             Bruno Haible  <bruno@clisp.org>
6594
6595         * doc/gnulib-tool.texi (Localization): New section.
6596
6597 2008-01-02  Bruno Haible  <bruno@clisp.org>
6598
6599         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6600         variables to 'unsigned char *' type.
6601         Reported by Paul Eggert.
6602
6603 2008-01-02  Jim Meyering  <jim@meyering.net>
6604
6605         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6606
6607 2007-12-31  Jim Meyering  <jim@meyering.net>
6608
6609         Avoid use of private FTS type name.
6610         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6611
6612 2007-12-30  Karl Berry  <karl@gnu.org>
6613
6614         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6615         work around defect in Texinfo and/or the standalone Info browser.
6616
6617 2007-12-30  Bruno Haible  <bruno@clisp.org>
6618
6619         Unify 5 copies of the KMP code.
6620         * lib/str-kmp.h: New file.
6621         * lib/c-strcasestr.c: Include str-kmp.h.
6622         (knuth_morris_pratt): Remove function.
6623         (c_strcasestr): Update.
6624         * lib/c-strstr.c: Include str-kmp.h.
6625         (knuth_morris_pratt): Remove function.
6626         (c_strcasestr): Update.
6627         * lib/mbscasestr.c: Include str-kmp.h.
6628         (knuth_morris_pratt_unibyte): Remove function.
6629         * lib/mbsstr.c: Include str-kmp.h.
6630         (knuth_morris_pratt_unibyte): Remove function.
6631         * lib/strcasestr.c: Include str-kmp.h.
6632         (knuth_morris_pratt): Remove function.
6633         (strcasestr): Update.
6634         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6635         * modules/c-strstr (Files): Likewise.
6636         * modules/mbscasestr (Files): Likewise.
6637         * modules/mbsstr (Files): Likewise.
6638         * modules/strcasestr (Files): Likewise.
6639         Suggested by Paul Eggert.
6640
6641 2007-12-30  Bruno Haible  <bruno@clisp.org>
6642
6643         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6644         defined.
6645
6646 2007-12-30  Bruno Haible  <bruno@clisp.org>
6647
6648         * lib/xmalloca.h: Include xalloc.h.
6649         (xnmalloca): New macro.
6650
6651 2007-12-30  Bruno Haible  <bruno@clisp.org>
6652
6653         * lib/malloca.h (nmalloca): New macro.
6654         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6655         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6656         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6657         knuth_morris_pratt_multibyte): Likewise.
6658         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6659         knuth_morris_pratt_multibyte): Likewise.
6660         * lib/memmem.c (knuth_morris_pratt): Likewise.
6661         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6662
6663 2007-12-25  Bruno Haible  <bruno@clisp.org>
6664
6665         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6666         * lib/glob.c: Don't include openat.h.
6667         (link_exists2_p): Add back the code that deals with the
6668         !GLOB_ALTDIRFUNC case.
6669         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6670         let it do the filename concatenation.
6671         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6672         * modules/glob (Depends-on): Remove openat.
6673
6674 2007-12-31  Bruno Haible  <bruno@clisp.org>
6675
6676         * modules/dirfd (License): Change to LGPLv2+.
6677         Approved by Jim Meyering.
6678
6679 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6682         when multiplying M by sizeof (size_t).
6683
6684 2007-12-10  Martin Lambers  <marlam@marlam.de>
6685
6686         Override getpagesize on mingw.
6687         * lib/getpagesize.c: New file.
6688         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6689         * modules/getpagesize (Files): Add lib/getpagesize.c.
6690         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6692         REPLACE_GETPAGESIZE.
6693         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6694
6695 2007-12-25  Bruno Haible  <bruno@clisp.org>
6696
6697         * modules/localcharset (Notice): New field.
6698         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6699         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6700
6701 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6702             Bruno Haible  <bruno@clisp.org>
6703
6704         Avoid using the syntax symbol() in formatted documentation.
6705         * MODULES.html.sh (func_module): When replacing symbol() with a
6706         hyperlink, remove the parentheses. Show an error if some remain.
6707         Recognize and render the '...' syntax.
6708         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6709         Rework. Add paragraph about GCC's inlining.
6710         * doc/alloca.texi: Likewise.
6711         * doc/error.texi: Remove parentheses from symbol reference.
6712         * doc/gnulib-intro.texi: Likewise.
6713         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6714         * modules/fnmatch (Description): Reword to say "the ... function".
6715         * modules/full-read (Description): Likewise.
6716         * modules/full-write (Description): Likewise.
6717         * modules/safe-read (Description): Likewise.
6718         * modules/safe-write (Description): Likewise.
6719         * modules/strchrnul (Description): Likewise.
6720         * modules/trim (Description): Likewise.
6721         * modules/error (Description): Remove parentheses from symbol
6722         references.
6723         * modules/verror (Description): Likewise.
6724         Reported by Karl Berry.
6725
6726 2007-12-25  Bruno Haible  <bruno@clisp.org>
6727
6728         Fixup after 2007-10-16 commit.
6729         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6730
6731 2007-12-24  Bruno Haible  <bruno@clisp.org>
6732
6733         Make --enable-relocatable work with DESTDIR.
6734         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6735         to compute installdir from destprog.
6736         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6737         also set the RELOC_DESTDIR variable.
6738         Reported by Левашев Иван <octagram@bluebottle.com>.
6739
6740 2007-12-24  Bruno Haible  <bruno@clisp.org>
6741
6742         Fix link error due to xalloc_die().
6743         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6744         of xreadlink.
6745         * lib/relocwrapper.c: Update comments.
6746         * build-aux/install-reloc: Remove xreadlink.c from file list.
6747         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6748         xreadlink.c.
6749         Reported by Левашев Иван <octagram@bluebottle.com>.
6750
6751 2007-12-24  Bruno Haible  <bruno@clisp.org>
6752
6753         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6754         * lib/setenv.h: Remove file.
6755         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6756         lib/setenv.h.
6757         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6758         (Depends-on): Add stdlib.
6759         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6760         gl_FUNC_UNSETENV.
6761         (Include): Replace setenv.h with <stdlib.h>.
6762         * modules/unsetenv: New file.
6763         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6764         * lib/unsetenv.c: Include <stdlib.h> first.
6765         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6766         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6767         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6768         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6769         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6770         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6772         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6773         * doc/functions/unsetenv.texi: Update.
6774         * modules/xsetenv (Depends-on): Add unsetenv.
6775         * modules/getdate (Depends-on): Likewise.
6776         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6777         * lib/xsetenv.c: Don't include setenv.h.
6778         * lib/getdate.y: Likewise.
6779         * lib/relocwrapper.c: Likewise.
6780         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6781         (Depends-on): Add stdlib.
6782         * NEWS: Mention the changes.
6783         Reported by Левашев Иван <octagram@bluebottle.com>.
6784
6785 2007-12-23  Bruno Haible  <bruno@clisp.org>
6786
6787         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6788         indentation.
6789
6790 2007-12-23  Bruno Haible  <bruno@clisp.org>
6791
6792         * lib/c-strcasestr.c: Add more comments.
6793         * lib/c-strstr.c: Likewise.
6794         * lib/mbscasestr.c: Likewise.
6795         * lib/mbsstr.c: Likewise.
6796         * lib/strcasestr.c: Likewise.
6797         * lib/memmem.c: Likewise.
6798
6799 2007-12-23  Bruno Haible  <bruno@clisp.org>
6800
6801         * tests/test-memmem.c: Include <string.h> first.
6802
6803 2007-12-22  Bruno Haible  <bruno@clisp.org>
6804
6805         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6806         the contents of $testsbase.
6807         Reported by Ralf Wildenhues.
6808
6809 2007-12-22  Bruno Haible  <bruno@clisp.org>
6810
6811         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6812         two variables local_ldadd_before, local_ldadd_last.
6813
6814 2007-12-20  Eric Blake  <ebb9@byu.net>
6815
6816         Work around circular library issue when cross-compiling.
6817         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6818         that progname.o does not need to pull in rpl_memcmp.
6819
6820 2007-12-19  Eric Blake  <ebb9@byu.net>
6821
6822         Fix memmem to avoid O(n^2) worst-case complexity.
6823         * lib/memmem.c (knuth_morris_pratt): New function.
6824         (memmem): Use it if first few naive iterations fail.
6825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6826         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6827         * modules/memchr (License): Likewise.
6828         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6829         malloca.
6830         * tests/test-memmem.c: Rewrite, borrowing ideas from
6831         test-mbsstr1.c; the old version wouldn't even compile!
6832         * modules/memmem-tests: New file.
6833         * lib/string.in.h (rpl_memmem): Add declaration.
6834         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6836         REPLACE_MEMMEM.
6837
6838 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6841         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6842         before any system include files, and undef after them all.  This
6843         should fix a problem on VMS reported by John E. Malmberg in
6844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6845
6846 2007-12-17  Eric Blake  <ebb9@byu.net>
6847
6848         Revert addition of verify, for BSD/OS.
6849         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6850         can't handle large files, for the sake of obsolete platforms.
6851         * modules/fseeko (Depends-on): Remove verify.
6852         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6853         * doc/functions/ftello.texi (ftello): Likewise.
6854         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6855         Reported by Larry Jones.
6856
6857 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6858
6859         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6860         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6861
6862 2007-12-17  Jim Meyering  <meyering@redhat.com>
6863
6864         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6865         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6866         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6867         * modules/getcwd (Depends-on): Add openat.
6868         Reported by Petr Salinger.
6869
6870 2007-12-17  Bruno Haible  <bruno@clisp.org>
6871
6872         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6873         avoid a segmentation fault of the configure test on x86_64 systems.
6874
6875 2007-12-15  Jim Meyering  <meyering@redhat.com>
6876
6877         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6878
6879 2007-12-13  Eric Blake  <ebb9@byu.net>
6880
6881         Another fseek test.
6882         * tests/test-fseek.c (main): Also test ungetc handling.
6883         * tests/test-fseeko.c (main): Likewise.
6884         * modules/fseeko (Depends-on): Add verify.
6885         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6886         large.
6887         Reported by Larry Jones.
6888
6889         Fix fseeko on mingw.
6890         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6891         seek.
6892
6893         Beef up fseek tests.
6894         * tests/test-fseek.c (main): Also test eof handling.
6895         * tests/test-fseeko.c (main): Likewise.
6896         Reported by Larry Jones.
6897
6898 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6899
6900         Fix fseeko on BSD-based platforms.
6901         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6902         successful seek.
6903
6904 2007-12-12  Eric Blake  <ebb9@byu.net>
6905
6906         Allow circular dependency of separate libtests.a
6907         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6908         when use_libtests.
6909
6910 2007-12-11  Eric Blake  <ebb9@byu.net>
6911
6912         Fix bug with -0.0L in previous patch.
6913         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6914         * tests/test-isnan.c (main): Also test on zeroes.
6915         * tests/test-isnanf.c (main): Likewise.
6916         * tests/test-isnanl.h (main): Likewise.
6917
6918         Detect pseudo-denormals on x86 even when cross-compiling.
6919         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6920         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6921         invalid bit patterns that happen to satisfy ==.
6922
6923         Avoid link failures with separate libtests.a.
6924         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6925         last, to satisfy circular dependencies.
6926
6927 2007-12-11  Eric Blake  <ebb9@byu.net>
6928         and Bruno Haible  <bruno@clisp.org>
6929
6930         Fix OpenBSD 4.0 <float.h> handling of long double.
6931         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6932         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6933         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6934
6935 2007-12-11  Jim Meyering  <meyering@redhat.com>
6936
6937         * users.txt: Add libvirt.
6938
6939         Support versions of autoconf prior to 2.59c.
6940         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6941         if it is not already defined.
6942
6943 2007-12-09  Bruno Haible  <bruno@clisp.org>
6944
6945         Let 'gnulib-tool --import' collect sources needed for the tests in
6946         tests/ rather than in lib/.
6947         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6948         argument. If true, add rules to generate libtests.a, and put libtests.a
6949         into $(LDADD). Consider source files in subdirectories and set
6950         uses_subdirs.
6951         (func_emit_initmacro_start, func_emit_initmacro_end,
6952         func_emit_initmacro_done): Pass all arguments explicitly.
6953         (func_import): Determine two module lists main_modules,
6954         testsrelated_modules. Determine use_libtests. Determine two variables
6955         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6956         instead of just sed_transform_lib_file. Determine two variables
6957         main_files and testsrelated_files. Compute 'files' as the union of
6958         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6959         func_add_or_update. In the generated gnulib-comp.m4, collect the
6960         object files for tests/ in different variables than those for lib/.
6961         Substitute LIBTESTS_LIBDEPS.
6962         (func_create_testdir): Combine the uses_subdirs results from
6963         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6964
6965 2007-12-09  Bruno Haible  <bruno@clisp.org>
6966
6967         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6968         the build-aux directory.
6969
6970 2007-12-09  Bruno Haible  <bruno@clisp.org>
6971
6972         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6973         introduced on 2006-09-09.
6974
6975 2007-12-07  Jim Meyering  <meyering@redhat.com>
6976
6977         Let these macros work also with autoconf-2.59.
6978         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6979         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6981
6982 2007-12-06  Jim Meyering  <meyering@redhat.com>
6983
6984         Avoid a configure-time syntax error in gl_FUNC_ACL.
6985         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6986         function in each branch, before testing the cache variable.
6987
6988 2007-12-04  Eric Blake  <ebb9@byu.net>
6989
6990         Make scripts executable.
6991         * build-aux/config.guess: Add execute permissions.
6992         * build-aux/config.sub: Likewise.
6993         * build-aux/gendocs.sh: Likewise.
6994
6995         Fix frexp on mingw.
6996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6997         cross-compiling.
6998         * doc/functions/frexp.texi (frexp): Document the bug.
6999
7000         Make cygwin fseeko check more reliable.
7001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7002         version numbers, rather than unrelated feature check.
7003         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7004         * doc/functions/ftello.texi (ftello): Likewise.
7005         Reported by Bruno Haible.
7006
7007         * m4/strerror.m4: Bump version number.
7008
7009 2007-12-03  Bruno Haible  <bruno@clisp.org>
7010
7011         * doc/functions/mprotect.texi: Mention the mingw problem.
7012
7013 2007-12-03  Eric Blake  <ebb9@byu.net>
7014
7015         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7016         REPLACE_STRERROR is initialized before this macro.
7017
7018 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7019
7020         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7021         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7022         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7023         put -lsec in even for programs other than 'ls'.  This fixes a problem
7024         for gettext reported by Bruno Haible in
7025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7026         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7027         Add support for Solaris 10.  This isn't efficient, but should get the
7028         job done for now.
7029
7030 2007-12-03  James Youngman  <jay@gnu.org>
7031
7032         * doc/regexprops-generic.texi: change "an close-group" to "a
7033         close-group" and "illegal" to "not allowed".
7034
7035 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7036
7037         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7038         pr_byname.h. Needed for the rare case when the maintainer has done
7039         "make maintainer-clean" in the source directory and then attempts a
7040         build outside the source directory.
7041         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7042         scripts_byname.h.
7043
7044 2007-12-02  Martin Lambers <marlam@marlam.de>
7045             Bruno Haible  <bruno@clisp.org>
7046
7047         * lib/getpagesize.h: Remove file.
7048         * lib/unistd.in.h: Include declaration of getpagesize here.
7049         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7050         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7051         HAVE_SYS_PARAM_H.
7052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7053         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7054         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7055         (Depends-on): Add unistd.
7056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7057         (Include): Use <unistd.h> instead of getpagesize.h.
7058         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7059         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7060         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7061         gl_GETPAGESIZE invocation, already handled by module dependency.
7062         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7063
7064 2007-12-02  Bruno Haible  <bruno@clisp.org>
7065
7066         * modules/strings-tests: New file.
7067         * tests/test-strings.c: New file.
7068
7069         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7070         * lib/strings.in.h: New file.
7071         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7072         * m4/strings_h.m4: New file.
7073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7074         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7075         * modules/strings: New file.
7076         * modules/string (Makefile.am): Update.
7077         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7078         Reported by Karl Berry.
7079
7080 2007-12-01  Eric Blake  <ebb9@byu.net>
7081
7082         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7083         accomodate fix in cygwin 1.5.25.
7084
7085 2007-12-01  Jim Meyering  <meyering@redhat.com>
7086
7087         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7088         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7089         that would inhibit utf8-optimization of a regexp containing line-
7090         or buffer-anchors, e.g., `^', `$'.
7091
7092 2007-11-30  Bruno Haible  <bruno@clisp.org>
7093
7094         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7095         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7096         glthread_recursive_lock_init.
7097         * lib/lock.c (glthread_recursive_lock_init)
7098         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7099         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7100
7101 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7102
7103         New function qset_acl, like set_acl but with syscall semantics.
7104         * lib/acl.h (qset_acl): New decl.
7105         * lib/acl.c (qset_acl): New function.
7106         (set_acl): Use new function.  Use more-consistent diagnostics.
7107
7108 2007-11-28  Jim Meyering  <meyering@redhat.com>
7109
7110         * modules/physmem (License): Change from GPL to LGPLv2+.
7111
7112 2007-11-26  Bruno Haible  <bruno@clisp.org>
7113
7114         * lib/vasnprintf.c (decode_long_double): Don't abort if the
7115         'long double' type has excess precision.
7116         Reported by Jim Meyering in
7117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7118
7119 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7120
7121         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7122         Sync from <http://gnu.org/licenses>.
7123         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7124         with license text from same location.
7125         * doc/maintain.texi, doc/standards.texi:  Sync from
7126         <http://savannah.gnu.org/projects/gnustandards>.
7127
7128 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
7129         and Jim Meyering  <meyering@redhat.com>
7130
7131         Adjust getdate' grammar to accept a slightly more regular language.
7132         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7133         Before, the former was rejected.
7134         * lib/getdate.y (digits_to_date_time): New function, factored
7135         out of ...
7136         (number): ...here.  Just call digits_to_date_time.
7137         (hybrid): New non-terminal to handle an <unsigned number,
7138         signed relative offset> sequence consistently.
7139
7140 2007-11-18  Jim Meyering  <meyering@redhat.com>
7141
7142         Pull my changes from coreutils:
7143         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7144         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7145         use of $gnulib_tool_option_extras, so that it's separated from the
7146         preceding argument.
7147
7148         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7149         * build-aux/bootstrap (cp_mark_as_generated): Create any required
7150         parent destination directories before copying a file into place.
7151
7152 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7153
7154         bootstrap: work also with 4-argument variant of AC_INIT
7155         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7156
7157 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7158
7159         Port test-getaddrinfo to Solaris.
7160         Problem reported by Bruno Haible in
7161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7162         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7163         explanation of setting 'hints'.
7164         Don't reject an implementation merely because it returns EAI_SERVICE.
7165         (EAI_SERVICE): Define to 0 if not defined.
7166
7167 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7168
7169         The license of gnu-make and posix-shell is now "GPLed build tool".
7170         * modules/gnu-make (License): Likewise.
7171         * modules/posix-shell (License): Likewise.
7172
7173         New module posix-shell, for determining a POSIX shell
7174         or perhaps something that is close enough to a POSIX shell.
7175         * m4/posix-shell.m4: New file.
7176         * modules/posix-shell: New file.
7177
7178         * MODULES.html.sh: Mention new module.
7179
7180         New module gnu-make, for determining whether we're using GNU Make.
7181         * m4/gnu-make.m4: New file.
7182         * modules/gnu-make: New file.
7183         * MODULES.html.sh: Mention new module.
7184
7185 2007-11-14  Jim Meyering  <meyering@redhat.com>
7186
7187         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7188         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7189         use this macro to create a function _definition_.
7190         Remove useless "#undef ARGMATCH_DIE".
7191
7192 2007-11-14  Bruno Haible  <bruno@clisp.org>
7193
7194         * lib/config.charset: Update for OpenBSD 4.1.
7195         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7196
7197 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7198
7199         Document 64-bit #if problems in stdint.texi.
7200         * doc/headers/stdint.texi (stdint.h): Mention problems with
7201         64-bit-#if, and how to work around them.
7202
7203         Don't insist on 'long long int' support in the preprocessor.  It
7204         breaks too many things.  For example, PRIdMAX still uses a 'long
7205         long int' format with the latest Sun compiler, even though
7206         HAVE_LONG_LONG_INT isn't defined due to that compiler's
7207         preprocessor problem.  This causes the latest coreutils to dump
7208         core on Solaris 10 sparc with the Sun C compiler.
7209         Instead, fix the 2007-10-16 problem in a different way, by evaluating
7210         the troublesome expressions at configure-time, not at #if-time.
7211         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7212         preprocessor.
7213         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7214         compile-time C checks, done at 'configure'-time.
7215         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7216         * modules/inttypes (Makefile): Substitute the new symbols that
7217         gl_INTTYPES_H now generates.
7218         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7219
7220 2007-11-12  Bruno Haible  <bruno@clisp.org>
7221
7222         Tests for Unicode character classification functions.
7223
7224         * modules/unictype/bidicategory-byname-tests: New file.
7225         * modules/unictype/bidicategory-name-tests: New file.
7226         * modules/unictype/bidicategory-of-tests: New file.
7227         * modules/unictype/bidicategory-test-tests: New file.
7228         * modules/unictype/block-list-tests: New file.
7229         * modules/unictype/block-of-tests: New file.
7230         * modules/unictype/block-test-tests: New file.
7231         * modules/unictype/category-C-tests: New file.
7232         * modules/unictype/category-Cc-tests: New file.
7233         * modules/unictype/category-Cf-tests: New file.
7234         * modules/unictype/category-Cn-tests: New file.
7235         * modules/unictype/category-Co-tests: New file.
7236         * modules/unictype/category-Cs-tests: New file.
7237         * modules/unictype/category-L-tests: New file.
7238         * modules/unictype/category-Ll-tests: New file.
7239         * modules/unictype/category-Lm-tests: New file.
7240         * modules/unictype/category-Lo-tests: New file.
7241         * modules/unictype/category-Lt-tests: New file.
7242         * modules/unictype/category-Lu-tests: New file.
7243         * modules/unictype/category-M-tests: New file.
7244         * modules/unictype/category-Mc-tests: New file.
7245         * modules/unictype/category-Me-tests: New file.
7246         * modules/unictype/category-Mn-tests: New file.
7247         * modules/unictype/category-N-tests: New file.
7248         * modules/unictype/category-Nd-tests: New file.
7249         * modules/unictype/category-Nl-tests: New file.
7250         * modules/unictype/category-No-tests: New file.
7251         * modules/unictype/category-P-tests: New file.
7252         * modules/unictype/category-Pc-tests: New file.
7253         * modules/unictype/category-Pd-tests: New file.
7254         * modules/unictype/category-Pe-tests: New file.
7255         * modules/unictype/category-Pf-tests: New file.
7256         * modules/unictype/category-Pi-tests: New file.
7257         * modules/unictype/category-Po-tests: New file.
7258         * modules/unictype/category-Ps-tests: New file.
7259         * modules/unictype/category-S-tests: New file.
7260         * modules/unictype/category-Sc-tests: New file.
7261         * modules/unictype/category-Sk-tests: New file.
7262         * modules/unictype/category-Sm-tests: New file.
7263         * modules/unictype/category-So-tests: New file.
7264         * modules/unictype/category-Z-tests: New file.
7265         * modules/unictype/category-Zl-tests: New file.
7266         * modules/unictype/category-Zp-tests: New file.
7267         * modules/unictype/category-Zs-tests: New file.
7268         * modules/unictype/category-and-not-tests: New file.
7269         * modules/unictype/category-and-tests: New file.
7270         * modules/unictype/category-byname-tests: New file.
7271         * modules/unictype/category-name-tests: New file.
7272         * modules/unictype/category-none-tests: New file.
7273         * modules/unictype/category-of-tests: New file.
7274         * modules/unictype/category-or-tests: New file.
7275         * modules/unictype/category-test-withtable-tests: New file.
7276         * modules/unictype/combining-class-tests: New file.
7277         * modules/unictype/ctype-alnum-tests: New file.
7278         * modules/unictype/ctype-alpha-tests: New file.
7279         * modules/unictype/ctype-blank-tests: New file.
7280         * modules/unictype/ctype-cntrl-tests: New file.
7281         * modules/unictype/ctype-digit-tests: New file.
7282         * modules/unictype/ctype-graph-tests: New file.
7283         * modules/unictype/ctype-lower-tests: New file.
7284         * modules/unictype/ctype-print-tests: New file.
7285         * modules/unictype/ctype-punct-tests: New file.
7286         * modules/unictype/ctype-space-tests: New file.
7287         * modules/unictype/ctype-upper-tests: New file.
7288         * modules/unictype/ctype-xdigit-tests: New file.
7289         * modules/unictype/decimal-digit-tests: New file.
7290         * modules/unictype/digit-tests: New file.
7291         * modules/unictype/mirror-tests: New file.
7292         * modules/unictype/numeric-tests: New file.
7293         * modules/unictype/property-alphabetic-tests: New file.
7294         * modules/unictype/property-ascii-hex-digit-tests: New file.
7295         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7296         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7297         * modules/unictype/property-bidi-block-separator-tests: New file.
7298         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7299         * modules/unictype/property-bidi-common-separator-tests: New file.
7300         * modules/unictype/property-bidi-control-tests: New file.
7301         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7302         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7303         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7304         * modules/unictype/property-bidi-european-digit-tests: New file.
7305         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7306         * modules/unictype/property-bidi-left-to-right-tests: New file.
7307         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7308         * modules/unictype/property-bidi-other-neutral-tests: New file.
7309         * modules/unictype/property-bidi-pdf-tests: New file.
7310         * modules/unictype/property-bidi-segment-separator-tests: New file.
7311         * modules/unictype/property-bidi-whitespace-tests: New file.
7312         * modules/unictype/property-byname-tests: New file.
7313         * modules/unictype/property-combining-tests: New file.
7314         * modules/unictype/property-composite-tests: New file.
7315         * modules/unictype/property-currency-symbol-tests: New file.
7316         * modules/unictype/property-dash-tests: New file.
7317         * modules/unictype/property-decimal-digit-tests: New file.
7318         * modules/unictype/property-default-ignorable-code-point-tests: New file.
7319         * modules/unictype/property-deprecated-tests: New file.
7320         * modules/unictype/property-diacritic-tests: New file.
7321         * modules/unictype/property-extender-tests: New file.
7322         * modules/unictype/property-format-control-tests: New file.
7323         * modules/unictype/property-grapheme-base-tests: New file.
7324         * modules/unictype/property-grapheme-extend-tests: New file.
7325         * modules/unictype/property-grapheme-link-tests: New file.
7326         * modules/unictype/property-hex-digit-tests: New file.
7327         * modules/unictype/property-hyphen-tests: New file.
7328         * modules/unictype/property-id-continue-tests: New file.
7329         * modules/unictype/property-id-start-tests: New file.
7330         * modules/unictype/property-ideographic-tests: New file.
7331         * modules/unictype/property-ids-binary-operator-tests: New file.
7332         * modules/unictype/property-ids-trinary-operator-tests: New file.
7333         * modules/unictype/property-ignorable-control-tests: New file.
7334         * modules/unictype/property-iso-control-tests: New file.
7335         * modules/unictype/property-join-control-tests: New file.
7336         * modules/unictype/property-left-of-pair-tests: New file.
7337         * modules/unictype/property-line-separator-tests: New file.
7338         * modules/unictype/property-logical-order-exception-tests: New file.
7339         * modules/unictype/property-lowercase-tests: New file.
7340         * modules/unictype/property-math-tests: New file.
7341         * modules/unictype/property-non-break-tests: New file.
7342         * modules/unictype/property-not-a-character-tests: New file.
7343         * modules/unictype/property-numeric-tests: New file.
7344         * modules/unictype/property-other-alphabetic-tests: New file.
7345         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
7346         * modules/unictype/property-other-grapheme-extend-tests: New file.
7347         * modules/unictype/property-other-id-continue-tests: New file.
7348         * modules/unictype/property-other-id-start-tests: New file.
7349         * modules/unictype/property-other-lowercase-tests: New file.
7350         * modules/unictype/property-other-math-tests: New file.
7351         * modules/unictype/property-other-uppercase-tests: New file.
7352         * modules/unictype/property-paired-punctuation-tests: New file.
7353         * modules/unictype/property-paragraph-separator-tests: New file.
7354         * modules/unictype/property-pattern-syntax-tests: New file.
7355         * modules/unictype/property-pattern-white-space-tests: New file.
7356         * modules/unictype/property-private-use-tests: New file.
7357         * modules/unictype/property-punctuation-tests: New file.
7358         * modules/unictype/property-quotation-mark-tests: New file.
7359         * modules/unictype/property-radical-tests: New file.
7360         * modules/unictype/property-sentence-terminal-tests: New file.
7361         * modules/unictype/property-soft-dotted-tests: New file.
7362         * modules/unictype/property-space-tests: New file.
7363         * modules/unictype/property-terminal-punctuation-tests: New file.
7364         * modules/unictype/property-test-tests: New file.
7365         * modules/unictype/property-titlecase-tests: New file.
7366         * modules/unictype/property-unassigned-code-value-tests: New file.
7367         * modules/unictype/property-unified-ideograph-tests: New file.
7368         * modules/unictype/property-uppercase-tests: New file.
7369         * modules/unictype/property-variation-selector-tests: New file.
7370         * modules/unictype/property-white-space-tests: New file.
7371         * modules/unictype/property-xid-continue-tests: New file.
7372         * modules/unictype/property-xid-start-tests: New file.
7373         * modules/unictype/property-zero-width-tests: New file.
7374         * modules/unictype/scripts-tests: New file.
7375         * modules/unictype/syntax-c-ident-tests: New file.
7376         * modules/unictype/syntax-c-whitespace-tests: New file.
7377         * modules/unictype/syntax-java-ident-tests: New file.
7378         * modules/unictype/syntax-java-whitespace-tests: New file.
7379         * tests/unictype/test-bidi_byname.c: New file.
7380         * tests/unictype/test-bidi_name.c: New file.
7381         * tests/unictype/test-bidi_of.c: New file.
7382         * tests/unictype/test-bidi_test.c: New file.
7383         * tests/unictype/test-block_list.c: New file.
7384         * tests/unictype/test-block_of.c: New file.
7385         * tests/unictype/test-block_test.c: New file.
7386         * tests/unictype/test-categ_and.c: New file.
7387         * tests/unictype/test-categ_and_not.c: New file.
7388         * tests/unictype/test-categ_byname.c: New file.
7389         * tests/unictype/test-categ_name.c: New file.
7390         * tests/unictype/test-categ_none.c: New file.
7391         * tests/unictype/test-categ_of.c: New file.
7392         * tests/unictype/test-categ_or.c: New file.
7393         * tests/unictype/test-categ_test_withtable.c: New file.
7394         * tests/unictype/test-combining.c: New file.
7395         * tests/unictype/test-decdigit.c: New file.
7396         * tests/unictype/test-digit.c: New file.
7397         * tests/unictype/test-mirror.c: New file.
7398         * tests/unictype/test-numeric.c: New file.
7399         * tests/unictype/test-pr_byname.c: New file.
7400         * tests/unictype/test-pr_test.c: New file.
7401         * tests/unictype/test-predicate-part1.h: New file.
7402         * tests/unictype/test-predicate-part2.h: New file.
7403         * tests/unictype/test-scripts.c: New file.
7404         * tests/unictype/test-sy_c_ident.c: New file.
7405         * tests/unictype/test-sy_java_ident.c: New file.
7406
7407         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7408         for Unicode 5.0.0.
7409         * tests/unictype/test-categ_Cc.c: Likewise.
7410         * tests/unictype/test-categ_Cf.c: Likewise.
7411         * tests/unictype/test-categ_Cn.c: Likewise.
7412         * tests/unictype/test-categ_Co.c: Likewise.
7413         * tests/unictype/test-categ_Cs.c: Likewise.
7414         * tests/unictype/test-categ_L.c: Likewise.
7415         * tests/unictype/test-categ_Ll.c: Likewise.
7416         * tests/unictype/test-categ_Lm.c: Likewise.
7417         * tests/unictype/test-categ_Lo.c: Likewise.
7418         * tests/unictype/test-categ_Lt.c: Likewise.
7419         * tests/unictype/test-categ_Lu.c: Likewise.
7420         * tests/unictype/test-categ_M.c: Likewise.
7421         * tests/unictype/test-categ_Mc.c: Likewise.
7422         * tests/unictype/test-categ_Me.c: Likewise.
7423         * tests/unictype/test-categ_Mn.c: Likewise.
7424         * tests/unictype/test-categ_N.c: Likewise.
7425         * tests/unictype/test-categ_Nd.c: Likewise.
7426         * tests/unictype/test-categ_Nl.c: Likewise.
7427         * tests/unictype/test-categ_No.c: Likewise.
7428         * tests/unictype/test-categ_P.c: Likewise.
7429         * tests/unictype/test-categ_Pc.c: Likewise.
7430         * tests/unictype/test-categ_Pd.c: Likewise.
7431         * tests/unictype/test-categ_Pe.c: Likewise.
7432         * tests/unictype/test-categ_Pf.c: Likewise.
7433         * tests/unictype/test-categ_Pi.c: Likewise.
7434         * tests/unictype/test-categ_Po.c: Likewise.
7435         * tests/unictype/test-categ_Ps.c: Likewise.
7436         * tests/unictype/test-categ_S.c: Likewise.
7437         * tests/unictype/test-categ_Sc.c: Likewise.
7438         * tests/unictype/test-categ_Sk.c: Likewise.
7439         * tests/unictype/test-categ_Sm.c: Likewise.
7440         * tests/unictype/test-categ_So.c: Likewise.
7441         * tests/unictype/test-categ_Z.c: Likewise.
7442         * tests/unictype/test-categ_Zl.c: Likewise.
7443         * tests/unictype/test-categ_Zp.c: Likewise.
7444         * tests/unictype/test-categ_Zs.c: Likewise.
7445         * tests/unictype/test-ctype_alnum.c: Likewise.
7446         * tests/unictype/test-ctype_alpha.c: Likewise.
7447         * tests/unictype/test-ctype_blank.c: Likewise.
7448         * tests/unictype/test-ctype_cntrl.c: Likewise.
7449         * tests/unictype/test-ctype_digit.c: Likewise.
7450         * tests/unictype/test-ctype_graph.c: Likewise.
7451         * tests/unictype/test-ctype_lower.c: Likewise.
7452         * tests/unictype/test-ctype_print.c: Likewise.
7453         * tests/unictype/test-ctype_punct.c: Likewise.
7454         * tests/unictype/test-ctype_space.c: Likewise.
7455         * tests/unictype/test-ctype_upper.c: Likewise.
7456         * tests/unictype/test-ctype_xdigit.c: Likewise.
7457         * tests/unictype/test-decdigit.h: Likewise.
7458         * tests/unictype/test-digit.h: Likewise.
7459         * tests/unictype/test-numeric.h: Likewise.
7460         * tests/unictype/test-pr_alphabetic.c: Likewise.
7461         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7462         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7463         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7464         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7465         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7466         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7467         * tests/unictype/test-pr_bidi_control.c: Likewise.
7468         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7469         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7470         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7471         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7472         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7473         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7474         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7475         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7476         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7477         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7478         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7479         * tests/unictype/test-pr_combining.c: Likewise.
7480         * tests/unictype/test-pr_composite.c: Likewise.
7481         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7482         * tests/unictype/test-pr_dash.c: Likewise.
7483         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7484         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7485         * tests/unictype/test-pr_deprecated.c: Likewise.
7486         * tests/unictype/test-pr_diacritic.c: Likewise.
7487         * tests/unictype/test-pr_extender.c: Likewise.
7488         * tests/unictype/test-pr_format_control.c: Likewise.
7489         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7490         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7491         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7492         * tests/unictype/test-pr_hex_digit.c: Likewise.
7493         * tests/unictype/test-pr_hyphen.c: Likewise.
7494         * tests/unictype/test-pr_id_continue.c: Likewise.
7495         * tests/unictype/test-pr_id_start.c: Likewise.
7496         * tests/unictype/test-pr_ideographic.c: Likewise.
7497         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7498         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7499         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7500         * tests/unictype/test-pr_iso_control.c: Likewise.
7501         * tests/unictype/test-pr_join_control.c: Likewise.
7502         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7503         * tests/unictype/test-pr_line_separator.c: Likewise.
7504         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7505         * tests/unictype/test-pr_lowercase.c: Likewise.
7506         * tests/unictype/test-pr_math.c: Likewise.
7507         * tests/unictype/test-pr_non_break.c: Likewise.
7508         * tests/unictype/test-pr_not_a_character.c: Likewise.
7509         * tests/unictype/test-pr_numeric.c: Likewise.
7510         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7511         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7512         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7513         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7514         * tests/unictype/test-pr_other_id_start.c: Likewise.
7515         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7516         * tests/unictype/test-pr_other_math.c: Likewise.
7517         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7518         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7519         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7520         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7521         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7522         * tests/unictype/test-pr_private_use.c: Likewise.
7523         * tests/unictype/test-pr_punctuation.c: Likewise.
7524         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7525         * tests/unictype/test-pr_radical.c: Likewise.
7526         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7527         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7528         * tests/unictype/test-pr_space.c: Likewise.
7529         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7530         * tests/unictype/test-pr_titlecase.c: Likewise.
7531         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7532         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7533         * tests/unictype/test-pr_uppercase.c: Likewise.
7534         * tests/unictype/test-pr_variation_selector.c: Likewise.
7535         * tests/unictype/test-pr_white_space.c: Likewise.
7536         * tests/unictype/test-pr_xid_continue.c: Likewise.
7537         * tests/unictype/test-pr_xid_start.c: Likewise.
7538         * tests/unictype/test-pr_zero_width.c: Likewise.
7539         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7540         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7541
7542 2007-11-12  Bruno Haible  <bruno@clisp.org>
7543
7544         Unicode character classification functions.
7545         * lib/unictype.h: New file.
7546         * modules/unictype/base: New file.
7547         * modules/unictype/category-L: New file.
7548         * modules/unictype/category-Lu: New file.
7549         * modules/unictype/category-Ll: New file.
7550         * modules/unictype/category-Lt: New file.
7551         * modules/unictype/category-Lm: New file.
7552         * modules/unictype/category-Lo: New file.
7553         * modules/unictype/category-M: New file.
7554         * modules/unictype/category-Mn: New file.
7555         * modules/unictype/category-Mc: New file.
7556         * modules/unictype/category-Me: New file.
7557         * modules/unictype/category-N: New file.
7558         * modules/unictype/category-Nd: New file.
7559         * modules/unictype/category-Nl: New file.
7560         * modules/unictype/category-No: New file.
7561         * modules/unictype/category-P: New file.
7562         * modules/unictype/category-Pc: New file.
7563         * modules/unictype/category-Pd: New file.
7564         * modules/unictype/category-Ps: New file.
7565         * modules/unictype/category-Pe: New file.
7566         * modules/unictype/category-Pi: New file.
7567         * modules/unictype/category-Pf: New file.
7568         * modules/unictype/category-Po: New file.
7569         * modules/unictype/category-S: New file.
7570         * modules/unictype/category-Sm: New file.
7571         * modules/unictype/category-Sc: New file.
7572         * modules/unictype/category-Sk: New file.
7573         * modules/unictype/category-So: New file.
7574         * modules/unictype/category-Z: New file.
7575         * modules/unictype/category-Zs: New file.
7576         * modules/unictype/category-Zl: New file.
7577         * modules/unictype/category-Zp: New file.
7578         * modules/unictype/category-C: New file.
7579         * modules/unictype/category-Cc: New file.
7580         * modules/unictype/category-Cf: New file.
7581         * modules/unictype/category-Cs: New file.
7582         * modules/unictype/category-Co: New file.
7583         * modules/unictype/category-Cn: New file.
7584         * modules/unictype/category-or: New file.
7585         * modules/unictype/category-of: New file.
7586         * modules/unictype/category-test: New file.
7587         * modules/unictype/category-test-withtable: New file.
7588         * modules/unictype/category-byname: New file.
7589         * modules/unictype/category-none: New file.
7590         * modules/unictype/category-and: New file.
7591         * modules/unictype/category-and-not: New file.
7592         * modules/unictype/category-name: New file.
7593         * modules/unictype/combining-class: New file.
7594         * modules/unictype/category-all: New file.
7595         * modules/unictype/bidicategory-all: New file.
7596         * modules/unictype/bidicategory-byname: New file.
7597         * modules/unictype/bidicategory-name: New file.
7598         * modules/unictype/bidicategory-of: New file.
7599         * modules/unictype/bidicategory-test: New file.
7600         * modules/unictype/decimal-digit: New file.
7601         * modules/unictype/digit: New file.
7602         * modules/unictype/numeric: New file.
7603         * modules/unictype/mirror: New file.
7604         * modules/unictype/property-white-space: New file.
7605         * modules/unictype/property-alphabetic: New file.
7606         * modules/unictype/property-other-alphabetic: New file.
7607         * modules/unictype/property-not-a-character: New file.
7608         * modules/unictype/property-default-ignorable-code-point: New file.
7609         * modules/unictype/property-other-default-ignorable-code-point: New
7610         file.
7611         * modules/unictype/property-deprecated: New file.
7612         * modules/unictype/property-logical-order-exception: New file.
7613         * modules/unictype/property-variation-selector: New file.
7614         * modules/unictype/property-private-use: New file.
7615         * modules/unictype/property-unassigned-code-value: New file.
7616         * modules/unictype/property-uppercase: New file.
7617         * modules/unictype/property-other-uppercase: New file.
7618         * modules/unictype/property-lowercase: New file.
7619         * modules/unictype/property-other-lowercase: New file.
7620         * modules/unictype/property-titlecase: New file.
7621         * modules/unictype/property-soft-dotted: New file.
7622         * modules/unictype/property-id-start: New file.
7623         * modules/unictype/property-other-id-start: New file.
7624         * modules/unictype/property-id-continue: New file.
7625         * modules/unictype/property-other-id-continue: New file.
7626         * modules/unictype/property-xid-start: New file.
7627         * modules/unictype/property-xid-continue: New file.
7628         * modules/unictype/property-pattern-white-space: New file.
7629         * modules/unictype/property-pattern-syntax: New file.
7630         * modules/unictype/property-join-control: New file.
7631         * modules/unictype/property-grapheme-base: New file.
7632         * modules/unictype/property-grapheme-extend: New file.
7633         * modules/unictype/property-other-grapheme-extend: New file.
7634         * modules/unictype/property-grapheme-link: New file.
7635         * modules/unictype/property-bidi-control: New file.
7636         * modules/unictype/property-bidi-left-to-right: New file.
7637         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7638         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7639         * modules/unictype/property-bidi-european-digit: New file.
7640         * modules/unictype/property-bidi-eur-num-separator: New file.
7641         * modules/unictype/property-bidi-eur-num-terminator: New file.
7642         * modules/unictype/property-bidi-arabic-digit: New file.
7643         * modules/unictype/property-bidi-common-separator: New file.
7644         * modules/unictype/property-bidi-block-separator: New file.
7645         * modules/unictype/property-bidi-segment-separator: New file.
7646         * modules/unictype/property-bidi-whitespace: New file.
7647         * modules/unictype/property-bidi-non-spacing-mark: New file.
7648         * modules/unictype/property-bidi-boundary-neutral: New file.
7649         * modules/unictype/property-bidi-pdf: New file.
7650         * modules/unictype/property-bidi-embedding-or-override: New file.
7651         * modules/unictype/property-bidi-other-neutral: New file.
7652         * modules/unictype/property-hex-digit: New file.
7653         * modules/unictype/property-ascii-hex-digit: New file.
7654         * modules/unictype/property-ideographic: New file.
7655         * modules/unictype/property-unified-ideograph: New file.
7656         * modules/unictype/property-radical: New file.
7657         * modules/unictype/property-ids-binary-operator: New file.
7658         * modules/unictype/property-ids-trinary-operator: New file.
7659         * modules/unictype/property-zero-width: New file.
7660         * modules/unictype/property-space: New file.
7661         * modules/unictype/property-non-break: New file.
7662         * modules/unictype/property-iso-control: New file.
7663         * modules/unictype/property-format-control: New file.
7664         * modules/unictype/property-dash: New file.
7665         * modules/unictype/property-hyphen: New file.
7666         * modules/unictype/property-punctuation: New file.
7667         * modules/unictype/property-line-separator: New file.
7668         * modules/unictype/property-paragraph-separator: New file.
7669         * modules/unictype/property-quotation-mark: New file.
7670         * modules/unictype/property-sentence-terminal: New file.
7671         * modules/unictype/property-terminal-punctuation: New file.
7672         * modules/unictype/property-currency-symbol: New file.
7673         * modules/unictype/property-math: New file.
7674         * modules/unictype/property-other-math: New file.
7675         * modules/unictype/property-paired-punctuation: New file.
7676         * modules/unictype/property-left-of-pair: New file.
7677         * modules/unictype/property-combining: New file.
7678         * modules/unictype/property-composite: New file.
7679         * modules/unictype/property-decimal-digit: New file.
7680         * modules/unictype/property-numeric: New file.
7681         * modules/unictype/property-diacritic: New file.
7682         * modules/unictype/property-extender: New file.
7683         * modules/unictype/property-ignorable-control: New file.
7684         * modules/unictype/property-test: New file.
7685         * modules/unictype/property-byname: New file.
7686         * modules/unictype/property-all: New file.
7687         * modules/unictype/scripts: New file.
7688         * modules/unictype/scripts-all: New file.
7689         * modules/unictype/block-of: New file.
7690         * modules/unictype/block-test: New file.
7691         * modules/unictype/block-list: New file.
7692         * modules/unictype/block-all: New file.
7693         * modules/unictype/syntax-c-whitespace: New file.
7694         * modules/unictype/syntax-java-whitespace: New file.
7695         * modules/unictype/syntax-c-ident: New file.
7696         * modules/unictype/syntax-java-ident: New file.
7697         * modules/unictype/ctype-alnum: New file.
7698         * modules/unictype/ctype-alpha: New file.
7699         * modules/unictype/ctype-cntrl: New file.
7700         * modules/unictype/ctype-digit: New file.
7701         * modules/unictype/ctype-graph: New file.
7702         * modules/unictype/ctype-lower: New file.
7703         * modules/unictype/ctype-print: New file.
7704         * modules/unictype/ctype-punct: New file.
7705         * modules/unictype/ctype-space: New file.
7706         * modules/unictype/ctype-upper: New file.
7707         * modules/unictype/ctype-xdigit: New file.
7708         * modules/unictype/ctype-blank: New file.
7709         * lib/unictype/bidi_byname.c: New file.
7710         * lib/unictype/bidi_name.c: New file.
7711         * lib/unictype/bidi_of.c: New file.
7712         * lib/unictype/bidi_test.c: New file.
7713         * lib/unictype/bitmap.h: New file.
7714         * lib/unictype/block_test.c: New file.
7715         * lib/unictype/blocks.c: New file.
7716         * lib/unictype/categ_C.c: New file.
7717         * lib/unictype/categ_Cc.c: New file.
7718         * lib/unictype/categ_Cf.c: New file.
7719         * lib/unictype/categ_Cn.c: New file.
7720         * lib/unictype/categ_Co.c: New file.
7721         * lib/unictype/categ_Cs.c: New file.
7722         * lib/unictype/categ_L.c: New file.
7723         * lib/unictype/categ_Ll.c: New file.
7724         * lib/unictype/categ_Lm.c: New file.
7725         * lib/unictype/categ_Lo.c: New file.
7726         * lib/unictype/categ_Lt.c: New file.
7727         * lib/unictype/categ_Lu.c: New file.
7728         * lib/unictype/categ_M.c: New file.
7729         * lib/unictype/categ_Mc.c: New file.
7730         * lib/unictype/categ_Me.c: New file.
7731         * lib/unictype/categ_Mn.c: New file.
7732         * lib/unictype/categ_N.c: New file.
7733         * lib/unictype/categ_Nd.c: New file.
7734         * lib/unictype/categ_Nl.c: New file.
7735         * lib/unictype/categ_No.c: New file.
7736         * lib/unictype/categ_P.c: New file.
7737         * lib/unictype/categ_Pc.c: New file.
7738         * lib/unictype/categ_Pd.c: New file.
7739         * lib/unictype/categ_Pe.c: New file.
7740         * lib/unictype/categ_Pf.c: New file.
7741         * lib/unictype/categ_Pi.c: New file.
7742         * lib/unictype/categ_Po.c: New file.
7743         * lib/unictype/categ_Ps.c: New file.
7744         * lib/unictype/categ_S.c: New file.
7745         * lib/unictype/categ_Sc.c: New file.
7746         * lib/unictype/categ_Sk.c: New file.
7747         * lib/unictype/categ_Sm.c: New file.
7748         * lib/unictype/categ_So.c: New file.
7749         * lib/unictype/categ_Z.c: New file.
7750         * lib/unictype/categ_Zl.c: New file.
7751         * lib/unictype/categ_Zp.c: New file.
7752         * lib/unictype/categ_Zs.c: New file.
7753         * lib/unictype/categ_and.c: New file.
7754         * lib/unictype/categ_and_not.c: New file.
7755         * lib/unictype/categ_byname.c: New file.
7756         * lib/unictype/categ_name.c: New file.
7757         * lib/unictype/categ_none.c: New file.
7758         * lib/unictype/categ_of.c: New file.
7759         * lib/unictype/categ_or.c: New file.
7760         * lib/unictype/categ_test.c: New file.
7761         * lib/unictype/combining.c: New file.
7762         * lib/unictype/ctype_alnum.c: New file.
7763         * lib/unictype/ctype_alpha.c: New file.
7764         * lib/unictype/ctype_blank.c: New file.
7765         * lib/unictype/ctype_cntrl.c: New file.
7766         * lib/unictype/ctype_digit.c: New file.
7767         * lib/unictype/ctype_graph.c: New file.
7768         * lib/unictype/ctype_lower.c: New file.
7769         * lib/unictype/ctype_print.c: New file.
7770         * lib/unictype/ctype_punct.c: New file.
7771         * lib/unictype/ctype_space.c: New file.
7772         * lib/unictype/ctype_upper.c: New file.
7773         * lib/unictype/ctype_xdigit.c: New file.
7774         * lib/unictype/decdigit.c: New file.
7775         * lib/unictype/digit.c: New file.
7776         * lib/unictype/identsyntaxmap.h: New file.
7777         * lib/unictype/mirror.c: New file.
7778         * lib/unictype/numeric.c: New file.
7779         * lib/unictype/pr_alphabetic.c: New file.
7780         * lib/unictype/pr_ascii_hex_digit.c: New file.
7781         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7782         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7783         * lib/unictype/pr_bidi_block_separator.c: New file.
7784         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7785         * lib/unictype/pr_bidi_common_separator.c: New file.
7786         * lib/unictype/pr_bidi_control.c: New file.
7787         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7788         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7789         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7790         * lib/unictype/pr_bidi_european_digit.c: New file.
7791         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7792         * lib/unictype/pr_bidi_left_to_right.c: New file.
7793         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7794         * lib/unictype/pr_bidi_other_neutral.c: New file.
7795         * lib/unictype/pr_bidi_pdf.c: New file.
7796         * lib/unictype/pr_bidi_segment_separator.c: New file.
7797         * lib/unictype/pr_bidi_whitespace.c: New file.
7798         * lib/unictype/pr_byname.c: New file.
7799         * lib/unictype/pr_byname.gperf: New file.
7800         * lib/unictype/pr_combining.c: New file.
7801         * lib/unictype/pr_composite.c: New file.
7802         * lib/unictype/pr_currency_symbol.c: New file.
7803         * lib/unictype/pr_dash.c: New file.
7804         * lib/unictype/pr_decimal_digit.c: New file.
7805         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7806         * lib/unictype/pr_deprecated.c: New file.
7807         * lib/unictype/pr_diacritic.c: New file.
7808         * lib/unictype/pr_extender.c: New file.
7809         * lib/unictype/pr_format_control.c: New file.
7810         * lib/unictype/pr_grapheme_base.c: New file.
7811         * lib/unictype/pr_grapheme_extend.c: New file.
7812         * lib/unictype/pr_grapheme_link.c: New file.
7813         * lib/unictype/pr_hex_digit.c: New file.
7814         * lib/unictype/pr_hyphen.c: New file.
7815         * lib/unictype/pr_id_continue.c: New file.
7816         * lib/unictype/pr_id_start.c: New file.
7817         * lib/unictype/pr_ideographic.c: New file.
7818         * lib/unictype/pr_ids_binary_operator.c: New file.
7819         * lib/unictype/pr_ids_trinary_operator.c: New file.
7820         * lib/unictype/pr_ignorable_control.c: New file.
7821         * lib/unictype/pr_iso_control.c: New file.
7822         * lib/unictype/pr_join_control.c: New file.
7823         * lib/unictype/pr_left_of_pair.c: New file.
7824         * lib/unictype/pr_line_separator.c: New file.
7825         * lib/unictype/pr_logical_order_exception.c: New file.
7826         * lib/unictype/pr_lowercase.c: New file.
7827         * lib/unictype/pr_math.c: New file.
7828         * lib/unictype/pr_non_break.c: New file.
7829         * lib/unictype/pr_not_a_character.c: New file.
7830         * lib/unictype/pr_numeric.c: New file.
7831         * lib/unictype/pr_other_alphabetic.c: New file.
7832         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7833         * lib/unictype/pr_other_grapheme_extend.c: New file.
7834         * lib/unictype/pr_other_id_continue.c: New file.
7835         * lib/unictype/pr_other_id_start.c: New file.
7836         * lib/unictype/pr_other_lowercase.c: New file.
7837         * lib/unictype/pr_other_math.c: New file.
7838         * lib/unictype/pr_other_uppercase.c: New file.
7839         * lib/unictype/pr_paired_punctuation.c: New file.
7840         * lib/unictype/pr_paragraph_separator.c: New file.
7841         * lib/unictype/pr_pattern_syntax.c: New file.
7842         * lib/unictype/pr_pattern_white_space.c: New file.
7843         * lib/unictype/pr_private_use.c: New file.
7844         * lib/unictype/pr_punctuation.c: New file.
7845         * lib/unictype/pr_quotation_mark.c: New file.
7846         * lib/unictype/pr_radical.c: New file.
7847         * lib/unictype/pr_sentence_terminal.c: New file.
7848         * lib/unictype/pr_soft_dotted.c: New file.
7849         * lib/unictype/pr_space.c: New file.
7850         * lib/unictype/pr_terminal_punctuation.c: New file.
7851         * lib/unictype/pr_test.c: New file.
7852         * lib/unictype/pr_titlecase.c: New file.
7853         * lib/unictype/pr_unassigned_code_value.c: New file.
7854         * lib/unictype/pr_unified_ideograph.c: New file.
7855         * lib/unictype/pr_uppercase.c: New file.
7856         * lib/unictype/pr_variation_selector.c: New file.
7857         * lib/unictype/pr_white_space.c: New file.
7858         * lib/unictype/pr_xid_continue.c: New file.
7859         * lib/unictype/pr_xid_start.c: New file.
7860         * lib/unictype/pr_zero_width.c: New file.
7861         * lib/unictype/scripts.c: New file.
7862         * lib/unictype/sy_c_ident.c: New file.
7863         * lib/unictype/sy_c_whitespace.c: New file.
7864         * lib/unictype/sy_java_ident.c: New file.
7865         * lib/unictype/sy_java_whitespace.c: New file.
7866
7867         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7868         Unicode 5.0.0.
7869         * lib/unictype/blocks.h: Likewise.
7870         * lib/unictype/categ_C.h: Likewise.
7871         * lib/unictype/categ_Cc.h: Likewise.
7872         * lib/unictype/categ_Cf.h: Likewise.
7873         * lib/unictype/categ_Cn.h: Likewise.
7874         * lib/unictype/categ_Co.h: Likewise.
7875         * lib/unictype/categ_Cs.h: Likewise.
7876         * lib/unictype/categ_L.h: Likewise.
7877         * lib/unictype/categ_Ll.h: Likewise.
7878         * lib/unictype/categ_Lm.h: Likewise.
7879         * lib/unictype/categ_Lo.h: Likewise.
7880         * lib/unictype/categ_Lt.h: Likewise.
7881         * lib/unictype/categ_Lu.h: Likewise.
7882         * lib/unictype/categ_M.h: Likewise.
7883         * lib/unictype/categ_Mc.h: Likewise.
7884         * lib/unictype/categ_Me.h: Likewise.
7885         * lib/unictype/categ_Mn.h: Likewise.
7886         * lib/unictype/categ_N.h: Likewise.
7887         * lib/unictype/categ_Nd.h: Likewise.
7888         * lib/unictype/categ_Nl.h: Likewise.
7889         * lib/unictype/categ_No.h: Likewise.
7890         * lib/unictype/categ_P.h: Likewise.
7891         * lib/unictype/categ_Pc.h: Likewise.
7892         * lib/unictype/categ_Pd.h: Likewise.
7893         * lib/unictype/categ_Pe.h: Likewise.
7894         * lib/unictype/categ_Pf.h: Likewise.
7895         * lib/unictype/categ_Pi.h: Likewise.
7896         * lib/unictype/categ_Po.h: Likewise.
7897         * lib/unictype/categ_Ps.h: Likewise.
7898         * lib/unictype/categ_S.h: Likewise.
7899         * lib/unictype/categ_Sc.h: Likewise.
7900         * lib/unictype/categ_Sk.h: Likewise.
7901         * lib/unictype/categ_Sm.h: Likewise.
7902         * lib/unictype/categ_So.h: Likewise.
7903         * lib/unictype/categ_Z.h: Likewise.
7904         * lib/unictype/categ_Zl.h: Likewise.
7905         * lib/unictype/categ_Zp.h: Likewise.
7906         * lib/unictype/categ_Zs.h: Likewise.
7907         * lib/unictype/categ_of.h: Likewise.
7908         * lib/unictype/combining.h: Likewise.
7909         * lib/unictype/ctype_alnum.h: Likewise.
7910         * lib/unictype/ctype_alpha.h: Likewise.
7911         * lib/unictype/ctype_blank.h: Likewise.
7912         * lib/unictype/ctype_cntrl.h: Likewise.
7913         * lib/unictype/ctype_digit.h: Likewise.
7914         * lib/unictype/ctype_graph.h: Likewise.
7915         * lib/unictype/ctype_lower.h: Likewise.
7916         * lib/unictype/ctype_print.h: Likewise.
7917         * lib/unictype/ctype_punct.h: Likewise.
7918         * lib/unictype/ctype_space.h: Likewise.
7919         * lib/unictype/ctype_upper.h: Likewise.
7920         * lib/unictype/ctype_xdigit.h: Likewise.
7921         * lib/unictype/decdigit.h: Likewise.
7922         * lib/unictype/digit.h: Likewise.
7923         * lib/unictype/mirror.h: Likewise.
7924         * lib/unictype/numeric.h: Likewise.
7925         * lib/unictype/pr_alphabetic.h: Likewise.
7926         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7927         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7928         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7929         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7930         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7931         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7932         * lib/unictype/pr_bidi_control.h: Likewise.
7933         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7934         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7935         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7936         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7937         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7938         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7939         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7940         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7941         * lib/unictype/pr_bidi_pdf.h: Likewise.
7942         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7943         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7944         * lib/unictype/pr_combining.h: Likewise.
7945         * lib/unictype/pr_composite.h: Likewise.
7946         * lib/unictype/pr_currency_symbol.h: Likewise.
7947         * lib/unictype/pr_dash.h: Likewise.
7948         * lib/unictype/pr_decimal_digit.h: Likewise.
7949         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7950         * lib/unictype/pr_deprecated.h: Likewise.
7951         * lib/unictype/pr_diacritic.h: Likewise.
7952         * lib/unictype/pr_extender.h: Likewise.
7953         * lib/unictype/pr_format_control.h: Likewise.
7954         * lib/unictype/pr_grapheme_base.h: Likewise.
7955         * lib/unictype/pr_grapheme_extend.h: Likewise.
7956         * lib/unictype/pr_grapheme_link.h: Likewise.
7957         * lib/unictype/pr_hex_digit.h: Likewise.
7958         * lib/unictype/pr_hyphen.h: Likewise.
7959         * lib/unictype/pr_id_continue.h: Likewise.
7960         * lib/unictype/pr_id_start.h: Likewise.
7961         * lib/unictype/pr_ideographic.h: Likewise.
7962         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7963         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7964         * lib/unictype/pr_ignorable_control.h: Likewise.
7965         * lib/unictype/pr_iso_control.h: Likewise.
7966         * lib/unictype/pr_join_control.h: Likewise.
7967         * lib/unictype/pr_left_of_pair.h: Likewise.
7968         * lib/unictype/pr_line_separator.h: Likewise.
7969         * lib/unictype/pr_logical_order_exception.h: Likewise.
7970         * lib/unictype/pr_lowercase.h: Likewise.
7971         * lib/unictype/pr_math.h: Likewise.
7972         * lib/unictype/pr_non_break.h: Likewise.
7973         * lib/unictype/pr_not_a_character.h: Likewise.
7974         * lib/unictype/pr_numeric.h: Likewise.
7975         * lib/unictype/pr_other_alphabetic.h: Likewise.
7976         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7977         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7978         * lib/unictype/pr_other_id_continue.h: Likewise.
7979         * lib/unictype/pr_other_id_start.h: Likewise.
7980         * lib/unictype/pr_other_lowercase.h: Likewise.
7981         * lib/unictype/pr_other_math.h: Likewise.
7982         * lib/unictype/pr_other_uppercase.h: Likewise.
7983         * lib/unictype/pr_paired_punctuation.h: Likewise.
7984         * lib/unictype/pr_paragraph_separator.h: Likewise.
7985         * lib/unictype/pr_pattern_syntax.h: Likewise.
7986         * lib/unictype/pr_pattern_white_space.h: Likewise.
7987         * lib/unictype/pr_private_use.h: Likewise.
7988         * lib/unictype/pr_punctuation.h: Likewise.
7989         * lib/unictype/pr_quotation_mark.h: Likewise.
7990         * lib/unictype/pr_radical.h: Likewise.
7991         * lib/unictype/pr_sentence_terminal.h: Likewise.
7992         * lib/unictype/pr_soft_dotted.h: Likewise.
7993         * lib/unictype/pr_space.h: Likewise.
7994         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7995         * lib/unictype/pr_titlecase.h: Likewise.
7996         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7997         * lib/unictype/pr_unified_ideograph.h: Likewise.
7998         * lib/unictype/pr_uppercase.h: Likewise.
7999         * lib/unictype/pr_variation_selector.h: Likewise.
8000         * lib/unictype/pr_white_space.h: Likewise.
8001         * lib/unictype/pr_xid_continue.h: Likewise.
8002         * lib/unictype/pr_xid_start.h: Likewise.
8003         * lib/unictype/pr_zero_width.h: Likewise.
8004         * lib/unictype/scripts.h: Likewise.
8005         * lib/unictype/scripts_byname.gperf: Likewise.
8006         * lib/unictype/sy_c_ident.h: Likewise.
8007         * lib/unictype/sy_c_whitespace.h: Likewise.
8008         * lib/unictype/sy_java_ident.h: Likewise.
8009         * lib/unictype/sy_java_whitespace.h: Likewise.
8010
8011         * lib/unictype/Makefile: New file.
8012         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8013         glibc.
8014         * lib/unictype/3level.h: New file, copied from glibc.
8015         * lib/unictype/3levelbit.h: New file.
8016
8017 2007-11-11  Bruno Haible  <bruno@clisp.org>
8018
8019         * modules/gperf: New file.
8020         * modules/iconv_open (Depends-on): Add it.
8021         (Makefile.am): Remove the GPERF definition.
8022
8023 2007-11-11  Bruno Haible  <bruno@clisp.org>
8024
8025         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8026         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8027
8028 2007-11-11  Bruno Haible  <bruno@clisp.org>
8029
8030         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8031         (usage): Remove function.
8032
8033 2007-11-11  Bruno Haible  <bruno@clisp.org>
8034
8035         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8036         gl_FUNC_CEILF_LIBS.
8037         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8038         gl_FUNC_CEIL_LIBS.
8039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8040         gl_FUNC_CEILL_LIBS.
8041         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8042         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8043         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8044
8045 2007-11-11  Bruno Haible  <bruno@clisp.org>
8046
8047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8048         roundf were declared but do not exist on functions.
8049         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8050         roundl were declared but do not exist on functions.
8051         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8052         HAVE_FLOORL_AND_CEILL, respectively.
8053         Needed for Sun C on Solaris 10.
8054
8055 2007-11-11  Bruno Haible  <bruno@clisp.org>
8056
8057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8058         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8059         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8060         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8062         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8063         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8064         HAVE_DECL_ROUNDF.
8065         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8066         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8068         of HAVE_DECL_ROUND*.
8069         * modules/math (Makefile.am): Update.
8070
8071 2007-11-10  Bruno Haible  <bruno@clisp.org>
8072
8073         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8074         ptrdiff_t as m4/intl.m4.
8075
8076 2007-11-10  Jim Meyering  <meyering@redhat.com>
8077
8078         Avoid link failure for the argmatch test.
8079         * tests/test-argmatch.c (usage): Define function to avoid a link
8080         failure: argmatch_die requires a usage function.
8081
8082 2007-11-09  Bruno Haible  <bruno@clisp.org>
8083
8084         * doc/functions/snprintf.texi: Mention BeOS deficiency.
8085         * doc/functions/vsnprintf.texi: Likewise.
8086         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8087         with a size argument < 2.
8088
8089 2007-11-09  Bruno Haible  <bruno@clisp.org>
8090
8091         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8092         buffer. Fixes an inefficiency introduced on 2007-11-03.
8093
8094 2007-11-09  Bruno Haible  <bruno@clisp.org>
8095
8096         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8097         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8098
8099 2007-11-08  Jim Meyering  <meyering@redhat.com>
8100
8101         Change cache variable name prefix "jm_" to "gl_" everywhere.
8102         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8103         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8104         * m4/uptime.m4: s/gl_/jm_/
8105
8106 2007-11-07  Bruno Haible  <bruno@clisp.org>
8107
8108         Update to GNU gettext 0.17.
8109         * m4/intl.m4: Update to GNU gettext 0.17.
8110         * m4/po.m4: Likewise.
8111         * modules/gettext (Files): Remove m4/ulonglong.m4.
8112         (configure.ac): Require gettext infrastructure from version 0.17.
8113
8114 2007-11-06  Bruno Haible  <bruno@clisp.org>
8115
8116         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8117         symbolic values are not defined in a public header.
8118         * lib/freadable.c (freadable) [QNX]: Likewise.
8119         * lib/freadahead.c (freadahead) [QNX]: Likewise.
8120         * lib/freading.c (freading) [QNX]: Likewise.
8121         * lib/fseterr.c (fseterr) [QNX]: Likewise.
8122         * lib/fwritable.c (fwritable) [QNX]: Likewise.
8123         * lib/fwriting.c (fwriting) [QNX]: Likewise.
8124         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8125         Reported by Alain Magloire.
8126
8127         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8128
8129 2007-11-05  Bruno Haible  <bruno@clisp.org>
8130
8131         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8132         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8133         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8134         Reported by Eric Blake.
8135
8136 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137             Bruno Haible  <bruno@clisp.org>
8138
8139         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8140         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8141         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8142         (malloc): Undefine also before including <stdlib.h>.
8143         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8144         Needed on OSF/1 4.0.
8145
8146 2007-11-05  Jim Meyering  <meyering@redhat.com>
8147
8148         git-version-gen: sync from coreutils.
8149         * build-aux/git-version-gen: Add comments.
8150         Change the first '-' to '.' in the snapshot version string,
8151         e.g., 6.9-377-08144 -> 6.9.377-08144
8152         Remove first parameter.
8153         Don't declare a version "-dirty" merely because a time
8154         stamp has changed.
8155
8156 2007-11-04  Bruno Haible  <bruno@clisp.org>
8157
8158         * lib/lock.h: Protect all macro definitions containing an 'if'
8159         statement through a "do { ... } while (0)".
8160         * lib/tls.h: Likewise.
8161
8162 2007-11-04  Bruno Haible  <bruno@clisp.org>
8163
8164         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8165
8166 2007-11-04  Bruno Haible  <bruno@clisp.org>
8167
8168         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8169         * modules/fprintf-posix (Depends-on): Add nocrash.
8170         * modules/snprintf-posix (Depends-on): Likewise.
8171         * modules/sprintf-posix (Depends-on): Likewise.
8172         * modules/vasnprintf-posix (Depends-on): Likewise.
8173         * modules/vasprintf-posix (Depends-on): Likewise.
8174         * modules/vfprintf-posix (Depends-on): Likewise.
8175         * modules/vsnprintf-posix (Depends-on): Likewise.
8176         * modules/vsprintf-posix (Depends-on): Likewise.
8177         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8178         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8179         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8180         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8181         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8182         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8183         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8184
8185 2007-11-04  Bruno Haible  <bruno@clisp.org>
8186
8187         * modules/nocrash: New file.
8188         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8189         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8190
8191 2007-11-04  Bruno Haible  <bruno@clisp.org>
8192
8193         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8194         precision handling.
8195         * tests/test-vasprintf-posix.c (test_function): Likewise.
8196         * tests/test-snprintf-posix.h (test_function): Likewise.
8197         * tests/test-sprintf-posix.h (test_function): Likewise.
8198
8199         Fix *printf behaviour for large precisions on mingw and BeOS.
8200         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8201         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8203         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8205         gl_PRINTF_PRECISION and test its result. Invoke
8206         gl_PREREQ_VASNPRINTF_PRECISION.
8207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8214         * doc/functions/fprintf.texi: Update.
8215         * doc/functions/printf.texi: Update.
8216         * doc/functions/snprintf.texi: Update.
8217         * doc/functions/sprintf.texi: Update.
8218         * doc/functions/vfprintf.texi: Update.
8219         * doc/functions/vprintf.texi: Update.
8220         * doc/functions/vsnprintf.texi: Update.
8221         * doc/functions/vsprintf.texi: Update.
8222
8223 2007-11-04  Bruno Haible  <bruno@clisp.org>
8224
8225         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8226
8227 2007-11-04  Bruno Haible  <bruno@clisp.org>
8228
8229         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8230         Reported by Sylvain Beucler <beuc@gnu.org>.
8231
8232 2007-11-03  Bruno Haible  <bruno@clisp.org>
8233
8234         * tests/test-fprintf-posix2.sh: New file.
8235         * tests/test-fprintf-posix2.c: New file.
8236         * modules/fprintf-posix-tests (Files): Add them.
8237         (TESTS): Add test-fprintf-posix2.sh.
8238         (configure.ac): Check for getrlimit and setrlimit.
8239         (check_PROGRAMS): Add test-fprintf-posix2.
8240
8241         * tests/test-printf-posix2.sh: New file.
8242         * tests/test-printf-posix2.c: New file.
8243         * modules/printf-posix-tests (Files): Add them.
8244         (TESTS): Add test-printf-posix2.sh.
8245         (configure.ac): Check for getrlimit and setrlimit.
8246         (check_PROGRAMS): Add test-printf-posix2.
8247
8248         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8249         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8250         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8251         (decode_double): New function, copied from decode_long_double.
8252         (scale10_round_decimal_decoded): New function, extracted from
8253         scale10_round_decimal_long_double.
8254         (scale10_round_decimal_long_double): Use it.
8255         (scale10_round_decimal_double): New function.
8256         (floorlog10): New function.
8257         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8259         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8261         gl_PRINTF_ENOMEM and test its result. Invoke
8262         gl_PREREQ_VASNPRINTF_ENOMEM.
8263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8270         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8271         * modules/snprintf-posix (Depends-on): Likewise.
8272         * modules/sprintf-posix (Depends-on): Likewise.
8273         * modules/vasnprintf-posix (Depends-on): Likewise.
8274         * modules/vasprintf-posix (Depends-on): Likewise.
8275         * modules/vfprintf-posix (Depends-on): Likewise.
8276         * modules/vsnprintf-posix (Depends-on): Likewise.
8277         * modules/vsprintf-posix (Depends-on): Likewise.
8278         * doc/functions/fprintf.texi: Update.
8279         * doc/functions/printf.texi: Update.
8280         * doc/functions/snprintf.texi: Update.
8281         * doc/functions/sprintf.texi: Update.
8282         * doc/functions/vfprintf.texi: Update.
8283         * doc/functions/vprintf.texi: Update.
8284         * doc/functions/vsnprintf.texi: Update.
8285         * doc/functions/vsprintf.texi: Update.
8286
8287 2007-11-03  Bruno Haible  <bruno@clisp.org>
8288
8289         * modules/frexp-nolibm-tests: New file.
8290
8291         * modules/frexp-nolibm: New file.
8292         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8293
8294 2007-11-03  Bruno Haible  <bruno@clisp.org>
8295
8296         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8297         value is C99 compliant.
8298         Needed for OSF/1 5.1.
8299
8300 2007-11-03  Bruno Haible  <bruno@clisp.org>
8301
8302         Fix out-of-memory handling of vasnprintf.
8303         * lib/printf-parse.c: Include <errno.h>.
8304         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8305         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8306         is already set.
8307
8308 2007-11-02  Eric Blake  <ebb9@byu.net>
8309
8310         Fix tests on cygwin.
8311         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8312
8313 2007-11-01  Bruno Haible  <bruno@clisp.org>
8314
8315         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8316         warning.
8317         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8318         needed for POSIX compatibility.
8319
8320 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8321
8322         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8323         for compatibility with GNU.
8324
8325 2007-11-01  Bruno Haible  <bruno@clisp.org>
8326
8327         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8328         (putenv): Renamed from rpl_putenv. Change argument type from
8329         'const char *' to 'char *'.
8330         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8331         of defining putenv in config.h, just set REPLACE_PUTENV.
8332         * modules/putenv (Depends-on): Add stdlib.
8333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8334         (Include): Use <stdlib.h>.
8335         * lib/stdlib.in.h (putenv): New declaration.
8336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
8337         REPLACE_PUTENV.
8338         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
8339         REPLACE_PUTENV.
8340         Needed for MacOS X 10.5.0.
8341         Reported by Peter O'Gorman <peter@pogma.com>.
8342
8343 2007-11-01  Jim Meyering  <meyering@redhat.com>
8344
8345         Treat an empty date string exactly like "0".
8346         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
8347         if the remaining date string (to be parsed) is empty, use "0".
8348         Reported by Mischa Molhoek and discussed in this thread:
8349         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
8350
8351 2007-10-31  Bruno Haible  <bruno@clisp.org>
8352
8353         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
8354         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
8355         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
8356         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
8357         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
8358         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
8359
8360 2007-10-31  Bruno Haible  <bruno@clisp.org>
8361
8362         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
8363         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
8364         (AC_TYPE_LONG_LONG_INT): Use it.
8365         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
8366         it as well.
8367         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8368         to m4/longlong.m4.
8369         * modules/stdint (Files): Remove m4/ulonglong.m4.
8370         * modules/strtoull (Files): Use m4/longlong.m4 instead of
8371         m4/ulonglong.m4.
8372         * modules/strtoumax (Files): Likewise.
8373
8374 2007-10-30  Bruno Haible  <bruno@clisp.org>
8375
8376         * modules/xvasprintf-posix: New file.
8377         Suggested by Eric Blake.
8378
8379 2007-10-30  Bruno Haible  <bruno@clisp.org>
8380
8381         * modules/xprintf-posix-tests: New file.
8382         * tests/test-xprintf-posix.sh: New file.
8383         * tests/test-xprintf-posix.c: New file.
8384         * tests/test-xfprintf-posix.c: New file.
8385
8386         * modules/xprintf-posix: New file.
8387
8388 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8389
8390         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8391         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8392         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8393
8394 2007-10-29  Bruno Haible  <bruno@clisp.org>
8395
8396         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8397         contain the special marker '_cv_'.
8398         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8399         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8400         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8401         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8403         Reported by Ralf Wildenhues.
8404
8405 2007-10-29  Bruno Haible  <bruno@clisp.org>
8406
8407         * gnulib-tool (func_import): When --lgpl is not specified, set
8408         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8409         GPLv3.
8410         Reported by Simon Josefsson.
8411
8412 2007-10-28  Bruno Haible  <bruno@clisp.org>
8413
8414         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8415         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8416         HAVE_DECL_ISFINITE.
8417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8418         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8419         HAVE_DECL_ISFINITE.
8420
8421 2007-10-28  Bruno Haible  <bruno@clisp.org>
8422
8423         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
8424         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
8425
8426 2007-10-28  Bruno Haible  <bruno@clisp.org>
8427
8428         Fix link errors with Sun C 5.0 on Solaris 10.
8429         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
8430         function is declared but not present in the compiler's libm.
8431         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8432         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8433         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
8434         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
8435         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
8436         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
8437         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
8438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8439         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
8440         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
8441         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8442         HAVE_DECL_FLOORL.
8443
8444 2007-10-28  Bruno Haible  <bruno@clisp.org>
8445
8446         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8447         gl_FUNC_FLOORL. Cache the result.
8448         (gl_FUNC_FLOORL): Use it.
8449         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8450         gl_FUNC_CEILL. Cache the result.
8451         (gl_FUNC_CEILL): Use it.
8452
8453         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8454         gl_FUNC_FLOOR. Cache the result.
8455         (gl_FUNC_FLOOR): Use it.
8456         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8457         gl_FUNC_CEIL. Cache the result.
8458         (gl_FUNC_CEIL): Use it.
8459
8460         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8461         gl_FUNC_FLOORF. Cache the result.
8462         (gl_FUNC_FLOORF): Use it.
8463         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8464         gl_FUNC_CEILF. Cache the result.
8465         (gl_FUNC_CEILF): Use it.
8466
8467 2007-10-28  Bruno Haible  <bruno@clisp.org>
8468
8469         * gnulib-tool: Allow specifying the LGPL version number through
8470         --lgpl=2 or --lgpl=3.
8471         (func_usage): Document --lgpl with argument.
8472         Handle --lgpl=... arguments.
8473         (func_import): Recognize also gl_LGPL calls with an argument. When
8474         --lgpl=2 is used and the module's license is just LGPL, report an
8475         error. Set sed_transform_lib_file according to the lgpl variable. In
8476         the generated files, use --lgpl or gl_LGPL invocations with argument,
8477         if necessary.
8478         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8479         an LGPv2+ license.
8480         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8481         gl_LGPL macro.
8482
8483 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8484             Bruno Haible  <bruno@clisp.org>
8485
8486         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8487         (u16_uctomb_aux): Likewise.
8488         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8489         !HAVE_INLINE.
8490         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8491
8492 2007-10-28  Bruno Haible  <bruno@clisp.org>
8493
8494         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8495         Invoke AM_GETTEXT_OPTION if it exists.
8496         * modules/vasprintf: Likewise.
8497         * modules/verror: Likewise.
8498         * modules/xprintf: Likewise.
8499         * modules/xvasprintf: Likewise.
8500
8501 2007-10-27  Ben Pfaff  <blp@gnu.org>
8502
8503         * lib/math.in.h: Define isfinite macro and prototypes for
8504         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8505         implementations.
8506         * m4/math_h.m4: New substitutions for isfinite module.
8507         * lib/isfinite.c: New file.
8508         * m4/isfinite.m4: New file.
8509         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8510         * modules/isfinite: New file.
8511         * modules/isfinite-tests: New file.
8512         * tests/tests-isfinite.c: New file.
8513         * doc/functions/isfinite.texi: Mention isfinite module.
8514         * MODULES.html.sh: Mention new module.
8515
8516 2007-10-27  Ben Pfaff  <blp@gnu.org>
8517
8518         Ralf Wildenhues reported that Tru64 4.0D declares the round
8519         functions but does not have definitions.
8520         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8521         cannot be found in any library, set the output variable to
8522         "missing" instead of "".
8523         * m4/round.m4: Also use our substitute if we cannot find round in
8524         any library, even if it is declared.
8525         * m4/roundf.m4: Likewise for roundf.
8526         * m4/roundl.m4: Likewise for roundl.
8527         * lib/math.in.h: Undefine roundf, round, roundl before defining
8528         their replacements, to allow for hypothetical systems where these
8529         may be defined as macros but not available in libraries.
8530
8531 2007-10-27  Bruno Haible  <bruno@clisp.org>
8532
8533         * doc/gnulib.texi: Invoke @firstparagraphindent.
8534         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8535         changes in gnulib.
8536         (Source changes): New section.
8537
8538 2007-10-26  Bruno Haible  <bruno@clisp.org>
8539
8540         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8541         borrowed from autoconf.
8542
8543 2007-10-26  Bruno Haible  <bruno@clisp.org>
8544
8545         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8546         strerror returned the empty string. Needed on HP-UX 11.00.
8547
8548 2007-10-24  Micah Cowan  <micah@cowan.name>
8549
8550         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8551         * build-aux/bootstrap: Remove support for now-unnecessary option,
8552         --cvs-user, and envvars CVS_USER, CVS_RSH.
8553
8554 2007-10-24  Jim Meyering  <meyering@redhat.com>
8555
8556         Avoid diagnostics from sha1sum when there is no cached checksum.
8557         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8558         if the po.s1 file hasn't been created yet.
8559
8560         * build-aux/bootstrap: Sync from coreutils:
8561         2007-10-24  Jim Meyering  <meyering@redhat.com>
8562         Get gnulib from the git repository, not from an obsolete cvs one.
8563         * build-aux/bootstrap: Suggestion from Micah Cowan.
8564         2007-10-04  Jim Meyering  <jim@meyering.net>
8565         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8566         (update_po_files): Work also when there are no .po files in po/.
8567
8568 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8569
8570         * README: Append ".git" to git and cg examples.
8571         Problem reported by Benoit Sigoure.
8572
8573 2007-10-23  Micah Cowan  <micah@cowan.name>
8574
8575         * users.txt: Add wget.
8576
8577 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8578
8579         Fix linking of some unistdio tests on FreeBSD.
8580         * modules/unistdio/u16-vsnprintf-tests
8581         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8582         * modules/unistdio/u16-vsprintf-tests
8583         (test_u16_vsnprintf1_LDADD): Likewise.
8584         * modules/unistdio/u32-vsnprintf-tests
8585         (test_u32_vsnprintf1_LDADD): Likewise.
8586         * modules/unistdio/u32-vsprintf-tests
8587         (test_u32_vsprintf1_LDADD): Likewise.
8588         * modules/unistdio/u8-vsnprintf-tests
8589         (test_u8_vsnprintf1_LDADD): Likewise.
8590         * modules/unistdio/u8-vsprintf-tests
8591         (test_u8_vsprintf1_LDADD): Likewise.
8592         * modules/unistdio/ulc-vsnprintf-tests
8593         (test_ulc_vsnprintf1_LDADD): Likewise.
8594         * modules/unistdio/ulc-vsprintf-tests
8595         (test_ulc_vsprintf1_LDADD): Likewise.
8596
8597         Fix linking of some uniconv tests on FreeBSD.
8598         * modules/uniconv/u16-conv-from-enc-tests
8599         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8600         * modules/uniconv/u16-conv-to-enc-tests
8601         (test_u16_conv_to_enc_LDADD): Likewise.
8602         * modules/uniconv/u16-strconv-from-enc-tests
8603         (test_u16_strconv_from_enc_LDADD): Likewise.
8604         * modules/uniconv/u16-strconv-to-enc-tests
8605         (test_u16_strconv_to_enc_LDADD): Likewise.
8606         * modules/uniconv/u32-conv-from-enc-tests
8607         (test_u32_conv_from_enc_LDADD): Likewise.
8608         * modules/uniconv/u32-conv-to-enc-tests
8609         (test_u32_conv_to_enc_LDADD): Likewise.
8610         * modules/uniconv/u32-strconv-from-enc-tests
8611         (test_u32_strconv_from_enc_LDADD): Likewise.
8612         * modules/uniconv/u32-strconv-to-enc-tests
8613         (test_u32_strconv_to_enc_LDADD): Likewise.
8614         * modules/uniconv/u8-conv-from-enc-tests
8615         (test_u8_conv_from_enc_LDADD): Likewise.
8616         * modules/uniconv/u8-conv-to-enc-tests
8617         (test_u8_conv_to_enc_LDADD): Likewise.
8618         * modules/uniconv/u8-strconv-from-enc-tests
8619         (test_u8_strconv_from_enc_LDADD): Likewise.
8620         * modules/uniconv/u8-strconv-to-enc-tests
8621         (test_u8_strconv_to_enc_LDADD): Likewise.
8622
8623 2007-10-22  Bruno Haible  <bruno@clisp.org>
8624
8625         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8626         size.
8627
8628 2007-10-22  Eric Blake  <ebb9@byu.net>
8629
8630         Tweak x*printf documentation.
8631         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8632         variable name and comments.
8633         Suggested by Bruno Haible.
8634
8635 2007-10-22  Bruno Haible  <bruno@clisp.org>
8636
8637         * lib/acl.c (copy_acl): Fix file name in comment.
8638
8639 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8640
8641         Fix Tru64 problem with stdbool.h.
8642         * lib/stdbool.in.h (false, true):
8643         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8644         Don't declare as an enum in this situation; it runs afoul of Tru64.
8645         Problem reported by Steven M. Schweda in
8646         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8647
8648 2007-10-22  Eric Blake  <ebb9@byu.net>
8649
8650         Also wrap vf?printf.
8651         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8652         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8653         (xvprintf, xvfprintf): New functions.
8654
8655 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8656
8657         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8658         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8659
8660         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8661         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8662
8663 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8664
8665         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8666         by Bruno Haible.
8667
8668 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8669
8670         * lib/getloadavg.c
8671         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8672         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8673
8674         * tests/test-i-ring.c: Work for C89.
8675
8676 2007-10-22  Bruno Haible  <bruno@clisp.org>
8677
8678         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8679         -1u, in preprocessor expression, so that we don't test for the bug
8680         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8682
8683 2007-10-22  Eric Blake  <ebb9@byu.net>
8684
8685         * tests/test-yesno.sh: Silence stderr during test.
8686
8687 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8688
8689         * modules/crypto/gc-camellia: New file.
8690
8691         * m4/gc-camellia.m4: New file.
8692
8693         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8694
8695         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8696
8697 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8698
8699         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8700         --help to stdout.  Reported by sms@antinode.org (Steven
8701         M. Schweda).
8702
8703 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8704
8705         * users.txt: Fix link to libksba.
8706
8707 2007-10-21  Ben Pfaff  <blp@gnu.org>
8708
8709         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8710         round.c roundf implementation that depends on floorf and ceilf to
8711         be tested unconditionally.
8712
8713 2007-10-21  Ben Pfaff  <blp@gnu.org>
8714
8715         * m4/check-libm-func.m4: Removed.
8716         * m4/check-math-lib.m4: New file.
8717         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8718         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8719         definition and lack of AC_LIBOBJ([roundf]).
8720         * m4/roundl.m4: Ditto, and similarly for roundl.
8721         * modules/round: Reference new m4 file.
8722         * modules/roundf: Ditto.
8723         * modules/roundl: Ditto.
8724         * tests/test-round2.c (main): Use ROUND instead of round.
8725         Bug report from Bruno Haible.
8726
8727 2007-10-21  Bruno Haible  <bruno@clisp.org>
8728
8729         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8730         context.
8731
8732 2007-10-21  Bruno Haible  <bruno@clisp.org>
8733
8734         * tests/test-wcwidth.c (main): Allow negative result for some control
8735         characters.
8736
8737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8738         Needed on OSF/1 5.1.
8739
8740 2007-10-21  Bruno Haible  <bruno@clisp.org>
8741
8742         * tests/test-floorf1.c: Include isnanf.h.
8743         (main): Use isnanf() instead of isnan().
8744         * tests/test-ceilf1.c: Include isnanf.h.
8745         (main): Use isnanf() instead of isnan().
8746         * tests/test-truncf1.c: Include isnanf.h.
8747         (main): Use isnanf() instead of isnan().
8748         * tests/test-roundf1.c: Include isnanf.h.
8749         (main): Use isnanf() instead of isnan().
8750
8751 2007-10-21  Eric Blake  <ebb9@byu.net>
8752
8753         * users.txt: Update URL for m4.
8754
8755 2007-10-21  Bruno Haible  <bruno@clisp.org>
8756
8757         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8758
8759 2007-10-21  Bruno Haible  <bruno@clisp.org>
8760
8761         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8762         Git's management files if the CVS files are not present.
8763
8764 2007-10-20  Bruno Haible  <bruno@clisp.org>
8765
8766         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8767         gcc-3.4.x.
8768
8769 2007-10-20  Ben Pfaff  <blp@gnu.org>
8770
8771         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8772         implementations.
8773         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8774         * lib/round.c: New file.
8775         * lib/roundf.c: New file.
8776         * lib/roundl.c: New file.
8777         * m4/round.m4: New file.
8778         * m4/roundf.m4: New file.
8779         * m4/roundl.m4: New file.
8780         * m4/check-libm-func-m4: New file.
8781         * modules/math: Replace round, roundf, roundl related @VARS@ in
8782         math.in.h.
8783         * modules/round: New file.
8784         * modules/round-tests: New file.
8785         * modules/roundf: New file.
8786         * modules/roundf-tests: New file.
8787         * modules/roundl: New file.
8788         * modules/roundl-tests: New file.
8789         * tests/test-round1.c: New file.
8790         * tests/test-round2.c: New file.
8791         * tests/test-roundf1.c: New file.
8792         * tests/test-roundf2.c: New file.
8793         * tests/test-roundl.c: New file.
8794         * doc/functions/round.texi: Mention round module.
8795         * doc/functions/roundf.texi: Mention roundf module.
8796         * doc/functions/roundl.texi: Mention roundl module.
8797         * MODULES.html.sh: Mention new modules.
8798         Thanks to Bruno Haible for suggestions.
8799
8800 2007-10-20  Jim Meyering  <meyering@redhat.com>
8801
8802         * lib/xprintf.c: Include <config.h> unconditionally.
8803
8804         Change xprintf's license to GPL.
8805         * modules/xprintf (License): s/LGPL/GPL/, since this module
8806         depends on modules (exit and exitfail) which are GPL.
8807         Suggestion from Bruno Haible.
8808
8809         xprintf fixes.
8810         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8811         Use a clearer diagnostic.
8812         Patch from Bruno Haible.
8813
8814 2007-10-20  Bruno Haible  <bruno@clisp.org>
8815
8816         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8817         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8819
8820 2007-10-20  Bruno Haible  <bruno@clisp.org>
8821
8822         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8823         precision in the comparison result > x - 1 or similar.
8824         * tests/test-ceilf2.c (correct_result_p): Likewise.
8825         * tests/test-truncf2.c (correct_result_p): Likewise.
8826         * tests/test-trunc2.c (correct_result_p): Likewise.
8827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8828
8829 2007-10-20  Bruno Haible  <bruno@clisp.org>
8830
8831         * modules/ceil: New file.
8832         * m4/ceil.m4: New file.
8833         * doc/functions/ceil.texi: Mention the 'ceil' module.
8834
8835 2007-10-20  Bruno Haible  <bruno@clisp.org>
8836
8837         * modules/floor: New file.
8838         * m4/floor.m4: New file.
8839         * doc/functions/floor.texi: Mention the 'floor' module.
8840
8841 2007-10-20  Bruno Haible  <bruno@clisp.org>
8842
8843         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8844         of %a.
8845         * modules/floorf-tests (Depends-on): Likewise.
8846         * modules/truncf-tests (Depends-on): Likewise.
8847         * modules/trunc-tests (Depends-on): Likewise.
8848         Reported by Ben Pfaff.
8849
8850 2007-10-19  Jim Meyering  <meyering@redhat.com>
8851
8852         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8853         Don't bother testing specific errno values.  Just test ferror.
8854
8855         New module: xprintf
8856         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8857
8858 2007-10-19  Bruno Haible  <bruno@clisp.org>
8859
8860         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8861         syntax.
8862         * modules/javaexec (Makefile.am): Likewise.
8863         * modules/relocatable-prog (Makefile.am): Likewise.
8864         Suggested by Jim Meyering.
8865
8866 2007-10-18  Bruno Haible  <bruno@clisp.org>
8867
8868         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8869         Reported by Jim Meyering.
8870
8871 2007-10-18  Eric Blake  <ebb9@byu.net>
8872
8873         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8874
8875 2007-10-18  Bruno Haible  <bruno@clisp.org>
8876
8877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8878         the format string into writable memory. Needed in Fortify conditions.
8879
8880 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8881             Bruno Haible  <bruno@clisp.org>
8882
8883         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8884         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8885         * modules/trim (Depends-on): Add mbchar.
8886         (configure.ac): Add gl_FUNC_MBRTOWC.
8887         (Makefile.am): Augment lib_SOURCES.
8888
8889 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8890
8891         Modify glob.c to use fstatat and dirfd, to simplify it.
8892         Suggested by Eric Blake.
8893         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8894         Don't include <stdbool.h>; not used.
8895         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8896         (link_exists_p): Simplify implementation, since we can now assume
8897         dirfd and fstatat.
8898         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8899
8900 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8901
8902         * gnulib-tool (func_get_dependencies): Fix sed script to
8903         match only tests.
8904
8905 2007-10-17  Bruno Haible  <bruno@clisp.org>
8906
8907         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8908         allow locale names without encoding suffix.
8909         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8910         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8911
8912 2007-10-16  Bruno Haible  <bruno@clisp.org>
8913
8914         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8915         * lib/getgroups.c (getgroups): Likewise.
8916         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8917
8918 2007-10-16  Bruno Haible  <bruno@clisp.org>
8919
8920         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8921         * modules/malloc-posix (License): Likewise.
8922         * modules/realloc-posix (License): Likewise.
8923         * modules/calloc-posix (License): Likewise.
8924         * modules/intprops (License): Change from GPL to LGPL, with
8925         Paul Eggert's approval.
8926
8927 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8928
8929         Merge glibc changes into lib/glob.c.
8930
8931         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8932         2007-10-15 04:59:03 UTC.  Here are the changes:
8933
8934         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8935
8936         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8937
8938         * lib/glob.c: Add some branch prediction throughout.
8939
8940         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8941
8942         [BZ #5103]
8943         * lib/glob.c (glob): Recognize patterns starting \/.
8944
8945         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8946
8947         [BZ #3996]
8948         * lib/glob.c (attribute_hidden): Define if not defined.
8949         (glob): Unescape dirname, filename or username when needed and not
8950         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8951         is NULL.  Handle unescaped [ in pattern without closing ].
8952         Don't pass GLOB_CHECK down to recursive glob for directories.
8953         (__glob_pattern_type): New function.
8954         (__glob_pattern_p): Implement using __glob_pattern_type.
8955         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8956         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8957         Remove unreachable code.
8958
8959         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8960
8961         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8962         explain why there are no leaks.
8963
8964         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8965
8966         [BZ #3253]
8967         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8968         time, rather allocate increasingly bigger arrays of pointers, if
8969         possible with alloca, if too large with malloc.
8970
8971 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8972
8973         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8974         Problem reported by H.Merijn Brand in
8975         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8976         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8978
8979 2007-10-15  Bruno Haible  <bruno@clisp.org>
8980
8981         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8982         with explicit rpl_ prefix.
8983         * lib/fopen.c (fopen): Likewise.
8984         * lib/freopen.c (freopen): Likewise.
8985         * lib/iconv.c (iconv): Likewise.
8986         * lib/iconv_close.c (iconv_close): Likewise.
8987
8988 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8989
8990         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8991
8992 2007-10-15  Bruno Haible  <bruno@clisp.org>
8993
8994         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8995         <stddef.h> instead of <stdlib.h> since we only need NULL.
8996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8997
8998 2007-10-15  Bruno Haible  <bruno@clisp.org>
8999
9000         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9001         Replace paragraph talking about LIBOBJS.
9002         Reported by Colin Watson <cjwatson@debian.org>.
9003
9004 2007-10-15  Bruno Haible  <bruno@clisp.org>
9005
9006         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9007         <stdlib.h> before using NULL.
9008
9009 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9010
9011         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9012         Reported by Albert Chin <china@thewrittenword.com>.
9013
9014 2007-10-14  Bruno Haible  <bruno@clisp.org>
9015
9016         * modules/iconv_open-utf-tests: New file.
9017         * tests/test-iconv-utf.c: New file.
9018
9019         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9020         * modules/iconv_open-utf: New file.
9021         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9022         (iconv, iconv_close): New declarations.
9023         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9024         be defined.
9025         (iconv_open): Add special handling of conversion between UTF-8 and
9026         UTF-{16,32}{BE,LE}.
9027         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9028         * lib/iconv_close.c: New file.
9029         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9030         gl_FUNC_ICONV_OPEN.
9031         (gl_FUNC_ICONV_OPEN): Use it.
9032         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9033         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9034         and REPLACE_ICONV_UTF.
9035         * modules/iconv_open (Depends-on): Add c-strcase.
9036         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9037         ICONV_CONST.
9038         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9039
9040 2007-10-13  Albert Chin  <china@thewrittenword.com>
9041             Bruno Haible  <bruno@clisp.org>
9042
9043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9044         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9045
9046 2007-10-13  Bruno Haible  <bruno@clisp.org>
9047
9048         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9049         defined, use the ISO C99 inline semantics.
9050         * lib/argp.h (ARGP_EI): Likewise.
9051
9052 2007-10-13  Bruno Haible  <bruno@clisp.org>
9053
9054         Handle 'inline' change in gcc 4.3.0.
9055         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9056         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9057         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9058         argp_fmtstream_point): Disable 'extern' declaration if the function
9059         definition is going to be provided inline.
9060         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9061         semantics, not the ISO C99 inline semantics.
9062         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9063         'extern' declaration if the function definition is going to be provided
9064         inline.
9065         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9066         the GNU C inline semantics, not the ISO C99 inline semantics. With
9067         GCC 4.2, avoid a warning.
9068
9069 2007-10-13  Bruno Haible  <bruno@clisp.org>
9070
9071         * lib/freading.h (freading): Enable the use of __freading for
9072         glibc >= 2.7.
9073         * lib/freading.c (freading): Likewise.
9074
9075 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9078         "warning: C99 inline functions are not supported; using GNU89".
9079
9080 2007-10-12  Bruno Haible  <bruno@clisp.org>
9081
9082         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9083         of 2.
9084         * tests/test-ceilf2.c: New file.
9085         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9086
9087         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9088         * modules/ceilf-tests: Update.
9089
9090 2007-10-12  Bruno Haible  <bruno@clisp.org>
9091
9092         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9093         of 2.
9094         * tests/test-floorf2.c: New file.
9095         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9096
9097         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9098         * modules/floorf-tests: Update.
9099
9100 2007-10-12  Bruno Haible  <bruno@clisp.org>
9101
9102         * tests/test-trunc2.c: New file.
9103         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9104
9105         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9106         * modules/trunc-tests: Update.
9107
9108 2007-10-12  Bruno Haible  <bruno@clisp.org>
9109
9110         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9111         of 2.
9112         * tests/test-truncf2.c: New file.
9113         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9114
9115         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9116         * modules/truncf-tests: Update.
9117
9118 2007-10-11  Eric Blake  <ebb9@byu.net>
9119
9120         Don't claim strerror is broken on Interix.
9121         * doc/functions/strerror.texi (strerror): Known broken systems are
9122         now Solaris 8, and not Interix.
9123         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9124         Interix on cross-compile.
9125         Reported by Martin Koeppe in
9126         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9127
9128 2007-10-11  Bruno Haible  <bruno@clisp.org>
9129
9130         * modules/i-ring-tests: New file.
9131         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9132         instead of assert.
9133
9134 2007-10-11  Bruno Haible  <bruno@clisp.org>
9135
9136         * modules/filenamecat-tests: New file.
9137         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9138         * lib/filenamecat.c: Remove test code.
9139
9140 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9141
9142         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9143
9144         * lib/strerror.c: Include <string.h> always, to test interface,
9145         and to remove the need for the dummy.
9146         Include intprops.h to compute width instead of doing it ourselves
9147         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9148         (strerror): Define it to return NULL if there's no system strerror.
9149         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9150         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
9151         ancient pre-strerror Unix systems well any more.  Saying "unknown
9152         system error" is enough.
9153         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9154         simpler strerror.c implementation.
9155         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9156         Simplify the tests to reflect the simpler strerror implementation.
9157         * modules/strerror (Depends-on): Add intprops.
9158
9159 2007-10-09  Eric Blake  <ebb9@byu.net>
9160
9161         Silence test-fpending.
9162         * modules/fpending-tests (Files): Add wrapper script.
9163         * tests/test-fpending.sh: New file.
9164
9165 2007-10-09  Bruno Haible  <bruno@clisp.org>
9166
9167         * MODULES.html.sh (func_module): Don't create a hyperlink for
9168         function names like 'printf_frexp'.
9169         (Misc): Add crc, memxor.
9170         (Characteristics of floating types): New section.
9171         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9172         isnanf-nolibm, signbit, trunc, truncf, truncl.
9173         (Enhancements for ISO C 99 functions): New subsection Input/output.
9174         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9175         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9176         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9177         (Compatibility checks for POSIX:2001 functions): Add clock-time.
9178         (Enhancements for POSIX:2001 functions): Add chdir-long.
9179         (File system functions): Add areadlink, chdir-safer, read-file.
9180         Remove cycle-check.
9181         (File system as inode set): New section.
9182         (Date and time): Add gethrxtime.
9183         (Multithreading): Add openmp.
9184         (Internationalization functions): Add localename.
9185         (Unicode string functions): Add unistr/u*-mbsnlen.
9186         (Support for maintaining and releasing projects): Add git-version-gen.
9187         (Lone files): Remove directories.
9188
9189 2007-10-08  Ben Pfaff  <blp@gnu.org>
9190
9191         * lib/xmalloca.h: Fix typo in comment.
9192
9193 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9194
9195         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9196         when avoiding problems with integer overflow.  Use a portable test
9197         instead.
9198
9199 2007-10-08  Simon Josefsson  <simon@josefsson.org>
9200
9201         * modules/dummy (License): Change to LGPLv2+.
9202         * modules/float (License): Likewise
9203         * modules/realloc (License): Likewise
9204         * modules/stdlib (License): Likewise
9205
9206 2007-10-07  Bruno Haible  <bruno@clisp.org>
9207
9208         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9209         * floor.c (TWO_MANT_DIG): Likewise.
9210         * ceil.c (TWO_MANT_DIG): Likewise.
9211         Reported by Ben Pfaff.
9212
9213 2007-10-07  Bruno Haible  <bruno@clisp.org>
9214
9215         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9216         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9217         * lib/frexp.c (FUNC): Likewise.
9218         * lib/printf-frexp.h (printf_frexp): Likewise.
9219         * lib/printf-frexpl.h (printf_frexpl): Likewise.
9220         * lib/printf-frexp.c (FUNC): Likewise.
9221         Suggested by Jim Meyering.
9222
9223 2007-10-07  Jim Meyering  <meyering@redhat.com>
9224
9225         Make xnanosleep's integer overflow test more robust.
9226         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9227         so that gcc-4.3.0 doesn't optimize away this test for overflow.
9228
9229 2007-10-07  Bruno Haible  <bruno@clisp.org>
9230
9231         * NEWS: Mention the license change.
9232
9233         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9234         abbreviations in the modules files.
9235
9236         Change copyright notice from GPLv2+ to GPLv3+.
9237         * README: Change copyright notice.
9238         * MODULES.html.sh: Likewise.
9239         * build-aux/bootstrap.conf: Likewise.
9240         * build-aux/config.libpath: Likewise.
9241         * build-aux/csharpcomp.sh.in: Likewise.
9242         * build-aux/csharpexec.sh.in: Likewise.
9243         * build-aux/install-reloc: Likewise.
9244         * build-aux/javacomp.sh.in: Likewise.
9245         * build-aux/javaexec.sh.in: Likewise.
9246         * build-aux/ldd.sh.in: Likewise.
9247         * build-aux/reloc-ldflags: Likewise.
9248         * build-aux/relocatable.sh.in: Likewise.
9249         * build-aux/x-to-1.in: Likewise.
9250         * check-module: Likewise.
9251         * config/srclistvars.sh: Likewise.
9252         * gnulib-tool: Likewise.
9253         * lib/acl-internal.h: Likewise.
9254         * lib/acl.c: Likewise.
9255         * lib/acl.h: Likewise.
9256         * lib/acl_entries.c: Likewise.
9257         * lib/areadlink-with-size.c: Likewise.
9258         * lib/areadlink.c: Likewise.
9259         * lib/areadlink.h: Likewise.
9260         * lib/argmatch.c: Likewise.
9261         * lib/argmatch.h: Likewise.
9262         * lib/argp-ba.c: Likewise.
9263         * lib/argp-eexst.c: Likewise.
9264         * lib/argp-fmtstream.c: Likewise.
9265         * lib/argp-fmtstream.h: Likewise.
9266         * lib/argp-fs-xinl.c: Likewise.
9267         * lib/argp-help.c: Likewise.
9268         * lib/argp-namefrob.h: Likewise.
9269         * lib/argp-parse.c: Likewise.
9270         * lib/argp-pin.c: Likewise.
9271         * lib/argp-pv.c: Likewise.
9272         * lib/argp-pvh.c: Likewise.
9273         * lib/argp-xinl.c: Likewise.
9274         * lib/argp.h: Likewise.
9275         * lib/at-func.c: Likewise.
9276         * lib/atanl.c: Likewise.
9277         * lib/backupfile.c: Likewise.
9278         * lib/backupfile.h: Likewise.
9279         * lib/basename.c: Likewise.
9280         * lib/binary-io.h: Likewise.
9281         * lib/byteswap.in.h: Likewise.
9282         * lib/c-stack.c: Likewise.
9283         * lib/c-stack.h: Likewise.
9284         * lib/c-strcasestr.c: Likewise.
9285         * lib/c-strcasestr.h: Likewise.
9286         * lib/c-strstr.c: Likewise.
9287         * lib/c-strstr.h: Likewise.
9288         * lib/c-strtod.c: Likewise.
9289         * lib/calloc.c: Likewise.
9290         * lib/canon-host.c: Likewise.
9291         * lib/canon-host.h: Likewise.
9292         * lib/canonicalize-lgpl.c: Likewise.
9293         * lib/canonicalize.c: Likewise.
9294         * lib/canonicalize.h: Likewise.
9295         * lib/ceil.c: Likewise.
9296         * lib/ceilf.c: Likewise.
9297         * lib/ceill.c: Likewise.
9298         * lib/chdir-long.c: Likewise.
9299         * lib/chdir-long.h: Likewise.
9300         * lib/chdir-safer.c: Likewise.
9301         * lib/chdir-safer.h: Likewise.
9302         * lib/chown.c: Likewise.
9303         * lib/classpath.c: Likewise.
9304         * lib/classpath.h: Likewise.
9305         * lib/clean-temp.c: Likewise.
9306         * lib/clean-temp.h: Likewise.
9307         * lib/cloexec.c: Likewise.
9308         * lib/close-stream.c: Likewise.
9309         * lib/closein.c: Likewise.
9310         * lib/closein.h: Likewise.
9311         * lib/closeout.c: Likewise.
9312         * lib/closeout.h: Likewise.
9313         * lib/concat-filename.c: Likewise.
9314         * lib/copy-file.c: Likewise.
9315         * lib/copy-file.h: Likewise.
9316         * lib/count-one-bits.h: Likewise.
9317         * lib/crc.c: Likewise.
9318         * lib/crc.h: Likewise.
9319         * lib/creat-safer.c: Likewise.
9320         * lib/csharpcomp.c: Likewise.
9321         * lib/csharpcomp.h: Likewise.
9322         * lib/csharpexec.c: Likewise.
9323         * lib/csharpexec.h: Likewise.
9324         * lib/cycle-check.c: Likewise.
9325         * lib/cycle-check.h: Likewise.
9326         * lib/diacrit.c: Likewise.
9327         * lib/diacrit.h: Likewise.
9328         * lib/diffseq.h: Likewise.
9329         * lib/dirchownmod.c: Likewise.
9330         * lib/dirent.in.h: Likewise.
9331         * lib/dirfd.c: Likewise.
9332         * lib/dirfd.h: Likewise.
9333         * lib/dirname.c: Likewise.
9334         * lib/dirname.h: Likewise.
9335         * lib/dummy.c: Likewise.
9336         * lib/dup-safer.c: Likewise.
9337         * lib/dup2.c: Likewise.
9338         * lib/eealloc.h: Likewise.
9339         * lib/error.c: Likewise.
9340         * lib/error.h: Likewise.
9341         * lib/euidaccess.c: Likewise.
9342         * lib/exclude.c: Likewise.
9343         * lib/exclude.h: Likewise.
9344         * lib/execute.c: Likewise.
9345         * lib/execute.h: Likewise.
9346         * lib/exitfail.c: Likewise.
9347         * lib/exitfail.h: Likewise.
9348         * lib/expl.c: Likewise.
9349         * lib/fatal-signal.c: Likewise.
9350         * lib/fatal-signal.h: Likewise.
9351         * lib/fbufmode.c: Likewise.
9352         * lib/fbufmode.h: Likewise.
9353         * lib/fchdir.c: Likewise.
9354         * lib/fchmodat.c: Likewise.
9355         * lib/fchownat.c: Likewise.
9356         * lib/fcntl--.h: Likewise.
9357         * lib/fcntl-safer.h: Likewise.
9358         * lib/fcntl.in.h: Likewise.
9359         * lib/fd-safer.c: Likewise.
9360         * lib/fflush.c: Likewise.
9361         * lib/file-has-acl.c: Likewise.
9362         * lib/file-set.c: Likewise.
9363         * lib/file-type.c: Likewise.
9364         * lib/file-type.h: Likewise.
9365         * lib/fileblocks.c: Likewise.
9366         * lib/filemode.c: Likewise.
9367         * lib/filemode.h: Likewise.
9368         * lib/filename.h: Likewise.
9369         * lib/filenamecat.c: Likewise.
9370         * lib/filenamecat.h: Likewise.
9371         * lib/findprog.c: Likewise.
9372         * lib/findprog.h: Likewise.
9373         * lib/float.in.h: Likewise.
9374         * lib/floor.c: Likewise.
9375         * lib/floorf.c: Likewise.
9376         * lib/floorl.c: Likewise.
9377         * lib/fopen-safer.c: Likewise.
9378         * lib/fopen.c: Likewise.
9379         * lib/fpending.c: Likewise.
9380         * lib/fpending.h: Likewise.
9381         * lib/fprintf.c: Likewise.
9382         * lib/fprintftime.h: Likewise.
9383         * lib/fpucw.h: Likewise.
9384         * lib/fpurge.c: Likewise.
9385         * lib/fpurge.h: Likewise.
9386         * lib/freadable.c: Likewise.
9387         * lib/freadable.h: Likewise.
9388         * lib/freadahead.c: Likewise.
9389         * lib/freadahead.h: Likewise.
9390         * lib/freading.c: Likewise.
9391         * lib/freading.h: Likewise.
9392         * lib/free.c: Likewise.
9393         * lib/freopen.c: Likewise.
9394         * lib/frexp.c: Likewise.
9395         * lib/frexpl.c: Likewise.
9396         * lib/fseek.c: Likewise.
9397         * lib/fseterr.c: Likewise.
9398         * lib/fseterr.h: Likewise.
9399         * lib/fstatat.c: Likewise.
9400         * lib/fstrcmp.c: Likewise.
9401         * lib/fstrcmp.h: Likewise.
9402         * lib/fsusage.c: Likewise.
9403         * lib/fsusage.h: Likewise.
9404         * lib/ftell.c: Likewise.
9405         * lib/ftello.c: Likewise.
9406         * lib/fts-cycle.c: Likewise.
9407         * lib/fts.c: Likewise.
9408         * lib/fts_.h: Likewise.
9409         * lib/full-read.c: Likewise.
9410         * lib/full-read.h: Likewise.
9411         * lib/full-write.c: Likewise.
9412         * lib/full-write.h: Likewise.
9413         * lib/fwritable.c: Likewise.
9414         * lib/fwritable.h: Likewise.
9415         * lib/fwriteerror.c: Likewise.
9416         * lib/fwriteerror.h: Likewise.
9417         * lib/fwriting.c: Likewise.
9418         * lib/fwriting.h: Likewise.
9419         * lib/gcd.c: Likewise.
9420         * lib/gcd.h: Likewise.
9421         * lib/getcwd.c: Likewise.
9422         * lib/getdate.h: Likewise.
9423         * lib/getdate.y: Likewise.
9424         * lib/getdomainname.c: Likewise.
9425         * lib/getdomainname.h: Likewise.
9426         * lib/getgroups.c: Likewise.
9427         * lib/gethostname.c: Likewise.
9428         * lib/gethrxtime.c: Likewise.
9429         * lib/gethrxtime.h: Likewise.
9430         * lib/getloadavg.c: Likewise.
9431         * lib/getndelim2.c: Likewise.
9432         * lib/getndelim2.h: Likewise.
9433         * lib/getnline.c: Likewise.
9434         * lib/getnline.h: Likewise.
9435         * lib/getopt.c: Likewise.
9436         * lib/getopt.in.h: Likewise.
9437         * lib/getopt1.c: Likewise.
9438         * lib/getopt_int.h: Likewise.
9439         * lib/getpagesize.h: Likewise.
9440         * lib/getsubopt.c: Likewise.
9441         * lib/gettime.c: Likewise.
9442         * lib/getugroups.c: Likewise.
9443         * lib/getugroups.h: Likewise.
9444         * lib/getusershell.c: Likewise.
9445         * lib/gl_anyavltree_list1.h: Likewise.
9446         * lib/gl_anyavltree_list2.h: Likewise.
9447         * lib/gl_anyhash_list1.h: Likewise.
9448         * lib/gl_anyhash_list2.h: Likewise.
9449         * lib/gl_anylinked_list1.h: Likewise.
9450         * lib/gl_anylinked_list2.h: Likewise.
9451         * lib/gl_anyrbtree_list1.h: Likewise.
9452         * lib/gl_anyrbtree_list2.h: Likewise.
9453         * lib/gl_anytree_list1.h: Likewise.
9454         * lib/gl_anytree_list2.h: Likewise.
9455         * lib/gl_anytree_oset.h: Likewise.
9456         * lib/gl_anytreehash_list1.h: Likewise.
9457         * lib/gl_anytreehash_list2.h: Likewise.
9458         * lib/gl_array_list.c: Likewise.
9459         * lib/gl_array_list.h: Likewise.
9460         * lib/gl_array_oset.c: Likewise.
9461         * lib/gl_array_oset.h: Likewise.
9462         * lib/gl_avltree_list.c: Likewise.
9463         * lib/gl_avltree_list.h: Likewise.
9464         * lib/gl_avltree_oset.c: Likewise.
9465         * lib/gl_avltree_oset.h: Likewise.
9466         * lib/gl_avltreehash_list.c: Likewise.
9467         * lib/gl_avltreehash_list.h: Likewise.
9468         * lib/gl_carray_list.c: Likewise.
9469         * lib/gl_carray_list.h: Likewise.
9470         * lib/gl_linked_list.c: Likewise.
9471         * lib/gl_linked_list.h: Likewise.
9472         * lib/gl_linkedhash_list.c: Likewise.
9473         * lib/gl_linkedhash_list.h: Likewise.
9474         * lib/gl_list.c: Likewise.
9475         * lib/gl_list.h: Likewise.
9476         * lib/gl_oset.c: Likewise.
9477         * lib/gl_oset.h: Likewise.
9478         * lib/gl_rbtree_list.c: Likewise.
9479         * lib/gl_rbtree_list.h: Likewise.
9480         * lib/gl_rbtree_oset.c: Likewise.
9481         * lib/gl_rbtree_oset.h: Likewise.
9482         * lib/gl_rbtreehash_list.c: Likewise.
9483         * lib/gl_rbtreehash_list.h: Likewise.
9484         * lib/gl_sublist.c: Likewise.
9485         * lib/gl_sublist.h: Likewise.
9486         * lib/group-member.c: Likewise.
9487         * lib/group-member.h: Likewise.
9488         * lib/hard-locale.c: Likewise.
9489         * lib/hard-locale.h: Likewise.
9490         * lib/hash-pjw.c: Likewise.
9491         * lib/hash-pjw.h: Likewise.
9492         * lib/hash-triple.c: Likewise.
9493         * lib/hash.c: Likewise.
9494         * lib/hash.h: Likewise.
9495         * lib/human.c: Likewise.
9496         * lib/human.h: Likewise.
9497         * lib/i-ring.c: Likewise.
9498         * lib/i-ring.h: Likewise.
9499         * lib/idcache.c: Likewise.
9500         * lib/imaxabs.c: Likewise.
9501         * lib/imaxdiv.c: Likewise.
9502         * lib/inet_pton.c: Likewise.
9503         * lib/inet_pton.h: Likewise.
9504         * lib/intprops.h: Likewise.
9505         * lib/inttostr.c: Likewise.
9506         * lib/inttostr.h: Likewise.
9507         * lib/inttypes.in.h: Likewise.
9508         * lib/isapipe.c: Likewise.
9509         * lib/isdir.c: Likewise.
9510         * lib/isnan.c: Likewise.
9511         * lib/isnan.h: Likewise.
9512         * lib/isnanf.c: Likewise.
9513         * lib/isnanf.h: Likewise.
9514         * lib/isnanl-nolibm.h: Likewise.
9515         * lib/isnanl.c: Likewise.
9516         * lib/isnanl.h: Likewise.
9517         * lib/javacomp.c: Likewise.
9518         * lib/javacomp.h: Likewise.
9519         * lib/javaexec.c: Likewise.
9520         * lib/javaexec.h: Likewise.
9521         * lib/javaversion.c: Likewise.
9522         * lib/javaversion.h: Likewise.
9523         * lib/javaversion.java: Likewise.
9524         * lib/lbrkprop.h: Likewise.
9525         * lib/lchmod.h: Likewise.
9526         * lib/lchown.c: Likewise.
9527         * lib/ldexpl.c: Likewise.
9528         * lib/linebreak.c: Likewise.
9529         * lib/linebreak.h: Likewise.
9530         * lib/linebuffer.c: Likewise.
9531         * lib/linebuffer.h: Likewise.
9532         * lib/locale.in.h: Likewise.
9533         * lib/logl.c: Likewise.
9534         * lib/long-options.c: Likewise.
9535         * lib/long-options.h: Likewise.
9536         * lib/lstat.c: Likewise.
9537         * lib/lstat.h: Likewise.
9538         * lib/math.in.h: Likewise.
9539         * lib/mbchar.c: Likewise.
9540         * lib/mbchar.h: Likewise.
9541         * lib/mbfile.h: Likewise.
9542         * lib/mbiter.h: Likewise.
9543         * lib/mbscasecmp.c: Likewise.
9544         * lib/mbscasestr.c: Likewise.
9545         * lib/mbschr.c: Likewise.
9546         * lib/mbscspn.c: Likewise.
9547         * lib/mbslen.c: Likewise.
9548         * lib/mbsncasecmp.c: Likewise.
9549         * lib/mbsnlen.c: Likewise.
9550         * lib/mbspbrk.c: Likewise.
9551         * lib/mbspcasecmp.c: Likewise.
9552         * lib/mbsrchr.c: Likewise.
9553         * lib/mbssep.c: Likewise.
9554         * lib/mbsspn.c: Likewise.
9555         * lib/mbsstr.c: Likewise.
9556         * lib/mbstok_r.c: Likewise.
9557         * lib/mbswidth.c: Likewise.
9558         * lib/mbswidth.h: Likewise.
9559         * lib/mbuiter.h: Likewise.
9560         * lib/memcasecmp.c: Likewise.
9561         * lib/memcasecmp.h: Likewise.
9562         * lib/memchr.c: Likewise.
9563         * lib/memcmp.c: Likewise.
9564         * lib/memcoll.c: Likewise.
9565         * lib/memcoll.h: Likewise.
9566         * lib/memcpy.c: Likewise.
9567         * lib/memrchr.c: Likewise.
9568         * lib/mkancesdirs.c: Likewise.
9569         * lib/mkdir-p.c: Likewise.
9570         * lib/mkdir-p.h: Likewise.
9571         * lib/mkdir.c: Likewise.
9572         * lib/mkdirat.c: Likewise.
9573         * lib/mkdtemp.c: Likewise.
9574         * lib/mkstemp-safer.c: Likewise.
9575         * lib/mkstemp.c: Likewise.
9576         * lib/modechange.c: Likewise.
9577         * lib/modechange.h: Likewise.
9578         * lib/mountlist.c: Likewise.
9579         * lib/mountlist.h: Likewise.
9580         * lib/mpsort.c: Likewise.
9581         * lib/nanosleep.c: Likewise.
9582         * lib/obstack.c: Likewise.
9583         * lib/obstack.h: Likewise.
9584         * lib/open-safer.c: Likewise.
9585         * lib/open.c: Likewise.
9586         * lib/openat-die.c: Likewise.
9587         * lib/openat-priv.h: Likewise.
9588         * lib/openat-proc.c: Likewise.
9589         * lib/openat.c: Likewise.
9590         * lib/openat.h: Likewise.
9591         * lib/pagealign_alloc.c: Likewise.
9592         * lib/pagealign_alloc.h: Likewise.
9593         * lib/physmem.c: Likewise.
9594         * lib/physmem.h: Likewise.
9595         * lib/pipe-safer.c: Likewise.
9596         * lib/pipe.c: Likewise.
9597         * lib/pipe.h: Likewise.
9598         * lib/posixtm.c: Likewise.
9599         * lib/posixtm.h: Likewise.
9600         * lib/posixver.c: Likewise.
9601         * lib/printf-frexp.c: Likewise.
9602         * lib/printf-frexp.h: Likewise.
9603         * lib/printf-frexpl.c: Likewise.
9604         * lib/printf-frexpl.h: Likewise.
9605         * lib/printf.c: Likewise.
9606         * lib/progname.c: Likewise.
9607         * lib/progname.h: Likewise.
9608         * lib/progreloc.c: Likewise.
9609         * lib/putenv.c: Likewise.
9610         * lib/quote.c: Likewise.
9611         * lib/quote.h: Likewise.
9612         * lib/quotearg.c: Likewise.
9613         * lib/quotearg.h: Likewise.
9614         * lib/raise.c: Likewise.
9615         * lib/readline.c: Likewise.
9616         * lib/readline.h: Likewise.
9617         * lib/readlink.c: Likewise.
9618         * lib/readtokens.c: Likewise.
9619         * lib/readtokens.h: Likewise.
9620         * lib/readtokens0.c: Likewise.
9621         * lib/readtokens0.h: Likewise.
9622         * lib/readutmp.c: Likewise.
9623         * lib/readutmp.h: Likewise.
9624         * lib/realloc.c: Likewise.
9625         * lib/relocwrapper.c: Likewise.
9626         * lib/rename-dest-slash.c: Likewise.
9627         * lib/rename.c: Likewise.
9628         * lib/rmdir.c: Likewise.
9629         * lib/rpmatch.c: Likewise.
9630         * lib/safe-read.c: Likewise.
9631         * lib/safe-read.h: Likewise.
9632         * lib/safe-write.c: Likewise.
9633         * lib/safe-write.h: Likewise.
9634         * lib/same-inode.h: Likewise.
9635         * lib/same.c: Likewise.
9636         * lib/same.h: Likewise.
9637         * lib/save-cwd.c: Likewise.
9638         * lib/save-cwd.h: Likewise.
9639         * lib/savedir.c: Likewise.
9640         * lib/savedir.h: Likewise.
9641         * lib/savewd.c: Likewise.
9642         * lib/savewd.h: Likewise.
9643         * lib/search.in.h: Likewise.
9644         * lib/setenv.c: Likewise.
9645         * lib/setenv.h: Likewise.
9646         * lib/settime.c: Likewise.
9647         * lib/sh-quote.c: Likewise.
9648         * lib/sh-quote.h: Likewise.
9649         * lib/sig2str.c: Likewise.
9650         * lib/sig2str.h: Likewise.
9651         * lib/signal.in.h: Likewise.
9652         * lib/signbitd.c: Likewise.
9653         * lib/signbitf.c: Likewise.
9654         * lib/signbitl.c: Likewise.
9655         * lib/sigprocmask.c: Likewise.
9656         * lib/sincosl.c: Likewise.
9657         * lib/sleep.c: Likewise.
9658         * lib/sprintf.c: Likewise.
9659         * lib/sqrtl.c: Likewise.
9660         * lib/stat-time.h: Likewise.
9661         * lib/stdio--.h: Likewise.
9662         * lib/stdio-safer.h: Likewise.
9663         * lib/stdlib--.h: Likewise.
9664         * lib/stdlib-safer.h: Likewise.
9665         * lib/stdlib.in.h: Likewise.
9666         * lib/stpcpy.c: Likewise.
9667         * lib/stpncpy.c: Likewise.
9668         * lib/strchrnul.c: Likewise.
9669         * lib/strcspn.c: Likewise.
9670         * lib/strerror.c: Likewise.
9671         * lib/strftime.c: Likewise.
9672         * lib/strftime.h: Likewise.
9673         * lib/striconveh.c: Likewise.
9674         * lib/striconveh.h: Likewise.
9675         * lib/striconveha.c: Likewise.
9676         * lib/striconveha.h: Likewise.
9677         * lib/stripslash.c: Likewise.
9678         * lib/strnlen1.c: Likewise.
9679         * lib/strnlen1.h: Likewise.
9680         * lib/strtod.c: Likewise.
9681         * lib/strtoimax.c: Likewise.
9682         * lib/strtok_r.c: Likewise.
9683         * lib/strtol.c: Likewise.
9684         * lib/strtoll.c: Likewise.
9685         * lib/strtoul.c: Likewise.
9686         * lib/strtoull.c: Likewise.
9687         * lib/sysexits.in.h: Likewise.
9688         * lib/tempname.c: Likewise.
9689         * lib/tempname.h: Likewise.
9690         * lib/timespec.h: Likewise.
9691         * lib/tls.c: Likewise.
9692         * lib/tls.h: Likewise.
9693         * lib/tmpdir.c: Likewise.
9694         * lib/tmpdir.h: Likewise.
9695         * lib/tmpfile-safer.c: Likewise.
9696         * lib/tmpfile.c: Likewise.
9697         * lib/trigl.c: Likewise.
9698         * lib/trigl.h: Likewise.
9699         * lib/trim.c: Likewise.
9700         * lib/trim.h: Likewise.
9701         * lib/trunc.c: Likewise.
9702         * lib/truncf.c: Likewise.
9703         * lib/truncl.c: Likewise.
9704         * lib/tsearch.c: Likewise.
9705         * lib/unicodeio.c: Likewise.
9706         * lib/unicodeio.h: Likewise.
9707         * lib/unistd--.h: Likewise.
9708         * lib/unistd-safer.h: Likewise.
9709         * lib/unistdio/ulc-fprintf.c: Likewise.
9710         * lib/unistdio/ulc-vfprintf.c: Likewise.
9711         * lib/unlinkdir.c: Likewise.
9712         * lib/unlinkdir.h: Likewise.
9713         * lib/unlocked-io.h: Likewise.
9714         * lib/unsetenv.c: Likewise.
9715         * lib/userspec.c: Likewise.
9716         * lib/utime.c: Likewise.
9717         * lib/utimecmp.c: Likewise.
9718         * lib/utimecmp.h: Likewise.
9719         * lib/utimens.c: Likewise.
9720         * lib/verify.h: Likewise.
9721         * lib/verror.c: Likewise.
9722         * lib/verror.h: Likewise.
9723         * lib/version-etc-fsf.c: Likewise.
9724         * lib/version-etc.c: Likewise.
9725         * lib/version-etc.h: Likewise.
9726         * lib/vfprintf.c: Likewise.
9727         * lib/vprintf.c: Likewise.
9728         * lib/vsprintf.c: Likewise.
9729         * lib/w32spawn.h: Likewise.
9730         * lib/wait-process.c: Likewise.
9731         * lib/wait-process.h: Likewise.
9732         * lib/wcwidth.c: Likewise.
9733         * lib/write-any-file.c: Likewise.
9734         * lib/xalloc-die.c: Likewise.
9735         * lib/xalloc.h: Likewise.
9736         * lib/xasprintf.c: Likewise.
9737         * lib/xgetcwd.c: Likewise.
9738         * lib/xgetcwd.h: Likewise.
9739         * lib/xgetdomainname.c: Likewise.
9740         * lib/xgetdomainname.h: Likewise.
9741         * lib/xgethostname.c: Likewise.
9742         * lib/xmalloc.c: Likewise.
9743         * lib/xmalloca.c: Likewise.
9744         * lib/xmalloca.h: Likewise.
9745         * lib/xmemcoll.c: Likewise.
9746         * lib/xnanosleep.c: Likewise.
9747         * lib/xreadlink.c: Likewise.
9748         * lib/xreadlink.h: Likewise.
9749         * lib/xsetenv.c: Likewise.
9750         * lib/xsetenv.h: Likewise.
9751         * lib/xstriconv.c: Likewise.
9752         * lib/xstriconv.h: Likewise.
9753         * lib/xstrndup.c: Likewise.
9754         * lib/xstrndup.h: Likewise.
9755         * lib/xstrtod.c: Likewise.
9756         * lib/xstrtod.h: Likewise.
9757         * lib/xstrtol-error.c: Likewise.
9758         * lib/xstrtol.c: Likewise.
9759         * lib/xstrtol.h: Likewise.
9760         * lib/xtime.h: Likewise.
9761         * lib/xvasprintf.c: Likewise.
9762         * lib/xvasprintf.h: Likewise.
9763         * lib/yesno.c: Likewise.
9764         * lib/yesno.h: Likewise.
9765         * posix-modules: Likewise.
9766         * tests/test-alloca-opt.c: Likewise.
9767         * tests/test-arcfour.c: Likewise.
9768         * tests/test-arctwo.c: Likewise.
9769         * tests/test-argmatch.c: Likewise.
9770         * tests/test-argp-2.sh: Likewise.
9771         * tests/test-argp.c: Likewise.
9772         * tests/test-arpa_inet.c: Likewise.
9773         * tests/test-array_list.c: Likewise.
9774         * tests/test-array_oset.c: Likewise.
9775         * tests/test-atexit.c: Likewise.
9776         * tests/test-avltree_list.c: Likewise.
9777         * tests/test-avltree_oset.c: Likewise.
9778         * tests/test-avltreehash_list.c: Likewise.
9779         * tests/test-base64.c: Likewise.
9780         * tests/test-binary-io.c: Likewise.
9781         * tests/test-byteswap.c: Likewise.
9782         * tests/test-c-ctype.c: Likewise.
9783         * tests/test-c-strcasecmp.c: Likewise.
9784         * tests/test-c-strcasestr.c: Likewise.
9785         * tests/test-c-strncasecmp.c: Likewise.
9786         * tests/test-c-strstr.c: Likewise.
9787         * tests/test-canonicalize-lgpl.c: Likewise.
9788         * tests/test-canonicalize.c: Likewise.
9789         * tests/test-carray_list.c: Likewise.
9790         * tests/test-ceilf.c: Likewise.
9791         * tests/test-ceill.c: Likewise.
9792         * tests/test-count-one-bits.c: Likewise.
9793         * tests/test-crc.c: Likewise.
9794         * tests/test-dirname.c: Likewise.
9795         * tests/test-fbufmode.c: Likewise.
9796         * tests/test-fcntl.c: Likewise.
9797         * tests/test-fflush.c: Likewise.
9798         * tests/test-floorf.c: Likewise.
9799         * tests/test-floorl.c: Likewise.
9800         * tests/test-fopen.c: Likewise.
9801         * tests/test-fprintf-posix.c: Likewise.
9802         * tests/test-fprintf-posix.h: Likewise.
9803         * tests/test-fpurge.c: Likewise.
9804         * tests/test-freadable.c: Likewise.
9805         * tests/test-freadahead.c: Likewise.
9806         * tests/test-freading.c: Likewise.
9807         * tests/test-freopen.c: Likewise.
9808         * tests/test-frexp.c: Likewise.
9809         * tests/test-frexpl.c: Likewise.
9810         * tests/test-fseek.c: Likewise.
9811         * tests/test-fseeko.c: Likewise.
9812         * tests/test-fseterr.c: Likewise.
9813         * tests/test-fstrcmp.c: Likewise.
9814         * tests/test-ftell.c: Likewise.
9815         * tests/test-ftello.c: Likewise.
9816         * tests/test-fwritable.c: Likewise.
9817         * tests/test-fwriting.c: Likewise.
9818         * tests/test-getaddrinfo.c: Likewise.
9819         * tests/test-getpass.c: Likewise.
9820         * tests/test-gettimeofday.c: Likewise.
9821         * tests/test-hmac-md5.c: Likewise.
9822         * tests/test-hmac-sha1.c: Likewise.
9823         * tests/test-iconv.c: Likewise.
9824         * tests/test-iconvme.c: Likewise.
9825         * tests/test-inttypes.c: Likewise.
9826         * tests/test-isnan.c: Likewise.
9827         * tests/test-isnanf.c: Likewise.
9828         * tests/test-isnanl-nolibm.c: Likewise.
9829         * tests/test-isnanl.c: Likewise.
9830         * tests/test-isnanl.h: Likewise.
9831         * tests/test-ldexpl.c: Likewise.
9832         * tests/test-linked_list.c: Likewise.
9833         * tests/test-linkedhash_list.c: Likewise.
9834         * tests/test-locale.c: Likewise.
9835         * tests/test-localename.c: Likewise.
9836         * tests/test-lock.c: Likewise.
9837         * tests/test-lseek.c: Likewise.
9838         * tests/test-malloca.c: Likewise.
9839         * tests/test-math.c: Likewise.
9840         * tests/test-mbscasecmp.c: Likewise.
9841         * tests/test-mbscasestr1.c: Likewise.
9842         * tests/test-mbscasestr2.c: Likewise.
9843         * tests/test-mbscasestr3.c: Likewise.
9844         * tests/test-mbscasestr4.c: Likewise.
9845         * tests/test-mbschr.c: Likewise.
9846         * tests/test-mbscspn.c: Likewise.
9847         * tests/test-mbsncasecmp.c: Likewise.
9848         * tests/test-mbspbrk.c: Likewise.
9849         * tests/test-mbspcasecmp.c: Likewise.
9850         * tests/test-mbsrchr.c: Likewise.
9851         * tests/test-mbsspn.c: Likewise.
9852         * tests/test-mbsstr1.c: Likewise.
9853         * tests/test-mbsstr2.c: Likewise.
9854         * tests/test-mbsstr3.c: Likewise.
9855         * tests/test-md5.c: Likewise.
9856         * tests/test-memmem.c: Likewise.
9857         * tests/test-netinet_in.c: Likewise.
9858         * tests/test-open.c: Likewise.
9859         * tests/test-printf-frexp.c: Likewise.
9860         * tests/test-printf-frexpl.c: Likewise.
9861         * tests/test-printf-posix.c: Likewise.
9862         * tests/test-printf-posix.h: Likewise.
9863         * tests/test-rbtree_list.c: Likewise.
9864         * tests/test-rbtree_oset.c: Likewise.
9865         * tests/test-rbtreehash_list.c: Likewise.
9866         * tests/test-read-file.c: Likewise.
9867         * tests/test-rijndael.c: Likewise.
9868         * tests/test-search.c: Likewise.
9869         * tests/test-signbit.c: Likewise.
9870         * tests/test-sleep.c: Likewise.
9871         * tests/test-snprintf-posix.c: Likewise.
9872         * tests/test-snprintf-posix.h: Likewise.
9873         * tests/test-snprintf.c: Likewise.
9874         * tests/test-sprintf-posix.c: Likewise.
9875         * tests/test-sprintf-posix.h: Likewise.
9876         * tests/test-stat-time.c: Likewise.
9877         * tests/test-stdbool.c: Likewise.
9878         * tests/test-stdint.c: Likewise.
9879         * tests/test-stdio.c: Likewise.
9880         * tests/test-stdlib.c: Likewise.
9881         * tests/test-stpncpy.c: Likewise.
9882         * tests/test-strcasestr.c: Likewise.
9883         * tests/test-striconv.c: Likewise.
9884         * tests/test-striconveh.c: Likewise.
9885         * tests/test-striconveha.c: Likewise.
9886         * tests/test-string.c: Likewise.
9887         * tests/test-sys_select.c: Likewise.
9888         * tests/test-sys_socket.c: Likewise.
9889         * tests/test-sys_stat.c: Likewise.
9890         * tests/test-sys_time.c: Likewise.
9891         * tests/test-sysexits.c: Likewise.
9892         * tests/test-time.c: Likewise.
9893         * tests/test-tls.c: Likewise.
9894         * tests/test-trunc.c: Likewise.
9895         * tests/test-truncf.c: Likewise.
9896         * tests/test-truncl.c: Likewise.
9897         * tests/test-unistd.c: Likewise.
9898         * tests/test-vasnprintf-posix.c: Likewise.
9899         * tests/test-vasnprintf-posix2.c: Likewise.
9900         * tests/test-vasnprintf.c: Likewise.
9901         * tests/test-vasprintf-posix.c: Likewise.
9902         * tests/test-vasprintf.c: Likewise.
9903         * tests/test-verify.c: Likewise.
9904         * tests/test-vfprintf-posix.c: Likewise.
9905         * tests/test-vprintf-posix.c: Likewise.
9906         * tests/test-vsnprintf-posix.c: Likewise.
9907         * tests/test-vsnprintf.c: Likewise.
9908         * tests/test-vsprintf-posix.c: Likewise.
9909         * tests/test-wchar.c: Likewise.
9910         * tests/test-wctype.c: Likewise.
9911         * tests/test-wcwidth.c: Likewise.
9912         * tests/test-xstrtol.c: Likewise.
9913         * tests/test-xvasprintf.c: Likewise.
9914         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9915         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9916         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9917         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9918         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9919         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9920         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9921         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9922         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9923         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9924         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9925         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9926         * tests/uniname/test-uninames.c: Likewise.
9927         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9928         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9929         * tests/unistdio/test-u16-printf1.h: Likewise.
9930         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9931         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9932         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9933         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9934         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9935         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9936         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9937         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9938         * tests/unistdio/test-u32-printf1.h: Likewise.
9939         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9940         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9941         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9942         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9943         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9944         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9945         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9946         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9947         * tests/unistdio/test-u8-printf1.h: Likewise.
9948         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9949         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9950         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9951         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9952         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9953         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9954         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9955         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9956         * tests/unistdio/test-ulc-printf1.h: Likewise.
9957         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9958         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9959         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9960         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9961         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9962         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9963         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9964         * tests/uniwidth/test-u16-width.c: Likewise.
9965         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9966         * tests/uniwidth/test-u32-width.c: Likewise.
9967         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9968         * tests/uniwidth/test-u8-width.c: Likewise.
9969         * tests/uniwidth/test-uc_width.c: Likewise.
9970         * config/srclist-update: Likewise.
9971         (fixlicense): Update to GPLv3+.
9972
9973         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9974         * tests/test-tsearch.c: Change copyright notice.
9975
9976         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9977         * lib/c-strcaseeq.h: Change copyright notice.
9978         * lib/streq.h: Likewise.
9979         * lib/uniconv.h: Likewise.
9980         * lib/uniconv/u-conv-from-enc.h: Likewise.
9981         * lib/uniconv/u-conv-to-enc.h: Likewise.
9982         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9983         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9984         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9985         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9986         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9987         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9988         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9989         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9990         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9991         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9992         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9993         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9994         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9995         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9996         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9997         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9998         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9999         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10000         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10001         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10002         * lib/uniname.h: Likewise.
10003         * lib/uniname/uniname.c: Likewise.
10004         * lib/unistdio.h: Likewise.
10005         * lib/unistdio/u-asnprintf.h: Likewise.
10006         * lib/unistdio/u-asprintf.h: Likewise.
10007         * lib/unistdio/u-printf-args.c: Likewise.
10008         * lib/unistdio/u-printf-args.h: Likewise.
10009         * lib/unistdio/u-printf-parse.h: Likewise.
10010         * lib/unistdio/u-snprintf.h: Likewise.
10011         * lib/unistdio/u-sprintf.h: Likewise.
10012         * lib/unistdio/u-vasprintf.h: Likewise.
10013         * lib/unistdio/u-vsnprintf.h: Likewise.
10014         * lib/unistdio/u-vsprintf.h: Likewise.
10015         * lib/unistdio/u16-asnprintf.c: Likewise.
10016         * lib/unistdio/u16-asprintf.c: Likewise.
10017         * lib/unistdio/u16-printf-parse.c: Likewise.
10018         * lib/unistdio/u16-snprintf.c: Likewise.
10019         * lib/unistdio/u16-sprintf.c: Likewise.
10020         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10021         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10022         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10023         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10024         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10025         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10026         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10027         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10028         * lib/unistdio/u16-vasnprintf.c: Likewise.
10029         * lib/unistdio/u16-vasprintf.c: Likewise.
10030         * lib/unistdio/u16-vsnprintf.c: Likewise.
10031         * lib/unistdio/u16-vsprintf.c: Likewise.
10032         * lib/unistdio/u32-asnprintf.c: Likewise.
10033         * lib/unistdio/u32-asprintf.c: Likewise.
10034         * lib/unistdio/u32-printf-parse.c: Likewise.
10035         * lib/unistdio/u32-snprintf.c: Likewise.
10036         * lib/unistdio/u32-sprintf.c: Likewise.
10037         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10038         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10039         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10040         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10041         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10042         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10043         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10044         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10045         * lib/unistdio/u32-vasnprintf.c: Likewise.
10046         * lib/unistdio/u32-vasprintf.c: Likewise.
10047         * lib/unistdio/u32-vsnprintf.c: Likewise.
10048         * lib/unistdio/u32-vsprintf.c: Likewise.
10049         * lib/unistdio/u8-asnprintf.c: Likewise.
10050         * lib/unistdio/u8-asprintf.c: Likewise.
10051         * lib/unistdio/u8-printf-parse.c: Likewise.
10052         * lib/unistdio/u8-snprintf.c: Likewise.
10053         * lib/unistdio/u8-sprintf.c: Likewise.
10054         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10055         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10056         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10057         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10058         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10059         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10060         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10061         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10062         * lib/unistdio/u8-vasnprintf.c: Likewise.
10063         * lib/unistdio/u8-vasprintf.c: Likewise.
10064         * lib/unistdio/u8-vsnprintf.c: Likewise.
10065         * lib/unistdio/u8-vsprintf.c: Likewise.
10066         * lib/unistdio/ulc-asnprintf.c: Likewise.
10067         * lib/unistdio/ulc-asprintf.c: Likewise.
10068         * lib/unistdio/ulc-printf-parse.c: Likewise.
10069         * lib/unistdio/ulc-snprintf.c: Likewise.
10070         * lib/unistdio/ulc-sprintf.c: Likewise.
10071         * lib/unistdio/ulc-vasnprintf.c: Likewise.
10072         * lib/unistdio/ulc-vasprintf.c: Likewise.
10073         * lib/unistdio/ulc-vsnprintf.c: Likewise.
10074         * lib/unistdio/ulc-vsprintf.c: Likewise.
10075         * lib/unistr.h: Likewise.
10076         * lib/unistr/u-cpy-alloc.h: Likewise.
10077         * lib/unistr/u-cpy.h: Likewise.
10078         * lib/unistr/u-endswith.h: Likewise.
10079         * lib/unistr/u-move.h: Likewise.
10080         * lib/unistr/u-set.h: Likewise.
10081         * lib/unistr/u-startswith.h: Likewise.
10082         * lib/unistr/u-stpcpy.h: Likewise.
10083         * lib/unistr/u-stpncpy.h: Likewise.
10084         * lib/unistr/u-strcat.h: Likewise.
10085         * lib/unistr/u-strcpy.h: Likewise.
10086         * lib/unistr/u-strcspn.h: Likewise.
10087         * lib/unistr/u-strdup.h: Likewise.
10088         * lib/unistr/u-strlen.h: Likewise.
10089         * lib/unistr/u-strncat.h: Likewise.
10090         * lib/unistr/u-strncpy.h: Likewise.
10091         * lib/unistr/u-strnlen.h: Likewise.
10092         * lib/unistr/u-strpbrk.h: Likewise.
10093         * lib/unistr/u-strspn.h: Likewise.
10094         * lib/unistr/u-strstr.h: Likewise.
10095         * lib/unistr/u-strtok.h: Likewise.
10096         * lib/unistr/u16-check.c: Likewise.
10097         * lib/unistr/u16-chr.c: Likewise.
10098         * lib/unistr/u16-cmp.c: Likewise.
10099         * lib/unistr/u16-cpy-alloc.c: Likewise.
10100         * lib/unistr/u16-cpy.c: Likewise.
10101         * lib/unistr/u16-endswith.c: Likewise.
10102         * lib/unistr/u16-mblen.c: Likewise.
10103         * lib/unistr/u16-mbsnlen.c: Likewise.
10104         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10105         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10106         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10107         * lib/unistr/u16-mbtouc.c: Likewise.
10108         * lib/unistr/u16-mbtoucr.c: Likewise.
10109         * lib/unistr/u16-move.c: Likewise.
10110         * lib/unistr/u16-next.c: Likewise.
10111         * lib/unistr/u16-prev.c: Likewise.
10112         * lib/unistr/u16-set.c: Likewise.
10113         * lib/unistr/u16-startswith.c: Likewise.
10114         * lib/unistr/u16-stpcpy.c: Likewise.
10115         * lib/unistr/u16-stpncpy.c: Likewise.
10116         * lib/unistr/u16-strcat.c: Likewise.
10117         * lib/unistr/u16-strchr.c: Likewise.
10118         * lib/unistr/u16-strcmp.c: Likewise.
10119         * lib/unistr/u16-strcpy.c: Likewise.
10120         * lib/unistr/u16-strcspn.c: Likewise.
10121         * lib/unistr/u16-strdup.c: Likewise.
10122         * lib/unistr/u16-strlen.c: Likewise.
10123         * lib/unistr/u16-strmblen.c: Likewise.
10124         * lib/unistr/u16-strmbtouc.c: Likewise.
10125         * lib/unistr/u16-strncat.c: Likewise.
10126         * lib/unistr/u16-strncmp.c: Likewise.
10127         * lib/unistr/u16-strncpy.c: Likewise.
10128         * lib/unistr/u16-strnlen.c: Likewise.
10129         * lib/unistr/u16-strpbrk.c: Likewise.
10130         * lib/unistr/u16-strrchr.c: Likewise.
10131         * lib/unistr/u16-strspn.c: Likewise.
10132         * lib/unistr/u16-strstr.c: Likewise.
10133         * lib/unistr/u16-strtok.c: Likewise.
10134         * lib/unistr/u16-to-u32.c: Likewise.
10135         * lib/unistr/u16-to-u8.c: Likewise.
10136         * lib/unistr/u16-uctomb-aux.c: Likewise.
10137         * lib/unistr/u16-uctomb.c: Likewise.
10138         * lib/unistr/u32-check.c: Likewise.
10139         * lib/unistr/u32-chr.c: Likewise.
10140         * lib/unistr/u32-cmp.c: Likewise.
10141         * lib/unistr/u32-cpy-alloc.c: Likewise.
10142         * lib/unistr/u32-cpy.c: Likewise.
10143         * lib/unistr/u32-endswith.c: Likewise.
10144         * lib/unistr/u32-mblen.c: Likewise.
10145         * lib/unistr/u32-mbsnlen.c: Likewise.
10146         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10147         * lib/unistr/u32-mbtouc.c: Likewise.
10148         * lib/unistr/u32-mbtoucr.c: Likewise.
10149         * lib/unistr/u32-move.c: Likewise.
10150         * lib/unistr/u32-next.c: Likewise.
10151         * lib/unistr/u32-prev.c: Likewise.
10152         * lib/unistr/u32-set.c: Likewise.
10153         * lib/unistr/u32-startswith.c: Likewise.
10154         * lib/unistr/u32-stpcpy.c: Likewise.
10155         * lib/unistr/u32-stpncpy.c: Likewise.
10156         * lib/unistr/u32-strcat.c: Likewise.
10157         * lib/unistr/u32-strchr.c: Likewise.
10158         * lib/unistr/u32-strcmp.c: Likewise.
10159         * lib/unistr/u32-strcpy.c: Likewise.
10160         * lib/unistr/u32-strcspn.c: Likewise.
10161         * lib/unistr/u32-strdup.c: Likewise.
10162         * lib/unistr/u32-strlen.c: Likewise.
10163         * lib/unistr/u32-strmblen.c: Likewise.
10164         * lib/unistr/u32-strmbtouc.c: Likewise.
10165         * lib/unistr/u32-strncat.c: Likewise.
10166         * lib/unistr/u32-strncmp.c: Likewise.
10167         * lib/unistr/u32-strncpy.c: Likewise.
10168         * lib/unistr/u32-strnlen.c: Likewise.
10169         * lib/unistr/u32-strpbrk.c: Likewise.
10170         * lib/unistr/u32-strrchr.c: Likewise.
10171         * lib/unistr/u32-strspn.c: Likewise.
10172         * lib/unistr/u32-strstr.c: Likewise.
10173         * lib/unistr/u32-strtok.c: Likewise.
10174         * lib/unistr/u32-to-u16.c: Likewise.
10175         * lib/unistr/u32-to-u8.c: Likewise.
10176         * lib/unistr/u32-uctomb.c: Likewise.
10177         * lib/unistr/u8-check.c: Likewise.
10178         * lib/unistr/u8-chr.c: Likewise.
10179         * lib/unistr/u8-cmp.c: Likewise.
10180         * lib/unistr/u8-cpy-alloc.c: Likewise.
10181         * lib/unistr/u8-cpy.c: Likewise.
10182         * lib/unistr/u8-endswith.c: Likewise.
10183         * lib/unistr/u8-mblen.c: Likewise.
10184         * lib/unistr/u8-mbsnlen.c: Likewise.
10185         * lib/unistr/u8-mbtouc-aux.c: Likewise.
10186         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10187         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10188         * lib/unistr/u8-mbtouc.c: Likewise.
10189         * lib/unistr/u8-mbtoucr.c: Likewise.
10190         * lib/unistr/u8-move.c: Likewise.
10191         * lib/unistr/u8-next.c: Likewise.
10192         * lib/unistr/u8-prev.c: Likewise.
10193         * lib/unistr/u8-set.c: Likewise.
10194         * lib/unistr/u8-startswith.c: Likewise.
10195         * lib/unistr/u8-stpcpy.c: Likewise.
10196         * lib/unistr/u8-stpncpy.c: Likewise.
10197         * lib/unistr/u8-strcat.c: Likewise.
10198         * lib/unistr/u8-strchr.c: Likewise.
10199         * lib/unistr/u8-strcmp.c: Likewise.
10200         * lib/unistr/u8-strcpy.c: Likewise.
10201         * lib/unistr/u8-strcspn.c: Likewise.
10202         * lib/unistr/u8-strdup.c: Likewise.
10203         * lib/unistr/u8-strlen.c: Likewise.
10204         * lib/unistr/u8-strmblen.c: Likewise.
10205         * lib/unistr/u8-strmbtouc.c: Likewise.
10206         * lib/unistr/u8-strncat.c: Likewise.
10207         * lib/unistr/u8-strncmp.c: Likewise.
10208         * lib/unistr/u8-strncpy.c: Likewise.
10209         * lib/unistr/u8-strnlen.c: Likewise.
10210         * lib/unistr/u8-strpbrk.c: Likewise.
10211         * lib/unistr/u8-strrchr.c: Likewise.
10212         * lib/unistr/u8-strspn.c: Likewise.
10213         * lib/unistr/u8-strstr.c: Likewise.
10214         * lib/unistr/u8-strtok.c: Likewise.
10215         * lib/unistr/u8-to-u16.c: Likewise.
10216         * lib/unistr/u8-to-u32.c: Likewise.
10217         * lib/unistr/u8-uctomb-aux.c: Likewise.
10218         * lib/unistr/u8-uctomb.c: Likewise.
10219         * lib/unitypes.h: Likewise.
10220         * lib/uniwidth.h: Likewise.
10221         * lib/uniwidth/cjk.h: Likewise.
10222         * lib/uniwidth/u16-strwidth.c: Likewise.
10223         * lib/uniwidth/u16-width.c: Likewise.
10224         * lib/uniwidth/u32-strwidth.c: Likewise.
10225         * lib/uniwidth/u32-width.c: Likewise.
10226         * lib/uniwidth/u8-strwidth.c: Likewise.
10227         * lib/uniwidth/u8-width.c: Likewise.
10228         * lib/uniwidth/width.c: Likewise.
10229
10230 2007-10-07  Bruno Haible  <bruno@clisp.org>
10231
10232         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10233         The file is still under LGPL (see modules/inttypes).
10234
10235 2007-10-06  Bruno Haible  <bruno@clisp.org>
10236
10237         * modules/trunc (Dependencies): Add 'extensions'.
10238         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10239         Reported by Ben Pfaff <blp@gnu.org>.
10240
10241 2007-10-06  Bruno Haible  <bruno@clisp.org>
10242
10243         * modules/freopen-tests: New file.
10244         * tests/test-freopen.c: New file.
10245
10246         * modules/fopen-tests: New file.
10247         * tests/test-fopen.c: New file.
10248
10249         * modules/fopen: New file.
10250         * lib/fopen.c: New file.
10251         * m4/fopen.m4: New file.
10252         * modules/freopen: New file.
10253         * lib/freopen.c: New file.
10254         * m4/freopen.m4: New file.
10255         * lib/stdio.in.h (fopen, freopen): New declarations.
10256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10257         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10258         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10259         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10260         * doc/functions/fopen.texi: Mention the 'fopen' module.
10261         * doc/functions/freopen.texi: Mention the 'freopen' module.
10262
10263 2007-10-06  Bruno Haible  <bruno@clisp.org>
10264
10265         * modules/open-tests: New file.
10266         * tests/test-open.c: New file.
10267
10268         * modules/open: New file.
10269         * lib/open.c: New file.
10270         * m4/open.m4: New file.
10271         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10272         lib/open.c does.
10273         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10274         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10275         macros.
10276         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10277         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10278         REPLACE_OPEN.
10279         * doc/functions/open.texi: Mention the 'open' module.
10280
10281 2007-10-04  Bruno Haible  <bruno@clisp.org>
10282
10283         * modules/ceill-tests: New file.
10284         * tests/test-ceill.c: New file.
10285
10286         * modules/ceill: New file.
10287         * lib/ceill.c: Replace entire file.
10288         * m4/ceill.m4: New file.
10289         * lib/math.in.h (ceill): Replace declaration.
10290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10291         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10292         * doc/functions/ceill.texi: Mention the 'ceill' module.
10293         * modules/mathl (Files): Remove lib/ceill.c.
10294         (Depends-on): Add ceill.
10295
10296 2007-10-04  Bruno Haible  <bruno@clisp.org>
10297
10298         * modules/ceilf-tests: New file.
10299         * tests/test-ceilf.c: New file.
10300
10301         * modules/ceilf: New file.
10302         * lib/ceil.c: New file.
10303         * lib/ceilf.c: New file.
10304         * m4/ceilf.m4: New file.
10305         * lib/math.in.h (ceilf): New declaration.
10306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10307         HAVE_DECL_CEILF.
10308         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10309         HAVE_DECL_CEILF.
10310         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10311
10312 2007-10-04  Bruno Haible  <bruno@clisp.org>
10313
10314         * modules/floorl-tests: New file.
10315         * tests/test-floorl.c: New file.
10316
10317         * modules/floorl: New file.
10318         * lib/floorl.c: Replace entire file.
10319         * m4/floorl.m4: New file.
10320         * lib/math.in.h (floorl): Replace declaration.
10321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10322         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10323         * doc/functions/floorl.texi: Mention the 'floorl' module.
10324         * modules/mathl (Files): Remove lib/floorl.c.
10325         (Depends-on): Add floorl.
10326
10327 2007-10-04  Bruno Haible  <bruno@clisp.org>
10328
10329         * modules/floorf-tests: New file.
10330         * tests/test-floorf.c: New file.
10331
10332         * modules/floorf: New file.
10333         * lib/floor.c: New file.
10334         * lib/floorf.c: New file.
10335         * m4/floorf.m4: New file.
10336         * lib/math.in.h (floorf): New declaration.
10337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
10338         HAVE_DECL_FLOORF.
10339         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
10340         HAVE_DECL_FLOORF.
10341         * doc/functions/floorf.texi: Mention the 'floorf' module.
10342
10343 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
10344             Bruno Haible  <bruno@clisp.org>
10345
10346         Advertise for the Git server instead of the CVS server.
10347         * doc/gnulib-intro.texi (Steady Development): Mention the Git
10348         repository instead of the CVS one.
10349         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
10350         about all VCS systems generically.
10351         * doc/gnulib.texi (Introduction): Capitalize `Git'.
10352
10353 2007-10-04  Bruno Haible  <bruno@clisp.org>
10354
10355         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
10356         means.
10357         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
10358
10359 2007-10-04  Bruno Haible  <bruno@clisp.org>
10360
10361         * modules/truncl-tests: New file.
10362         * tests/test-truncl.c: New file.
10363
10364         * modules/truncl: New file.
10365         * lib/truncl.c: New file.
10366         * m4/truncl.m4: New file.
10367         * lib/math.in.h (truncl): New declaration.
10368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10369         HAVE_DECL_TRUNCL.
10370         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10371         HAVE_DECL_TRUNCL.
10372         * doc/functions/truncl.texi: Mention the 'truncl' module.
10373
10374 2007-10-04  Bruno Haible  <bruno@clisp.org>
10375
10376         * modules/truncf-tests: New file.
10377         * tests/test-truncf.c: New file.
10378
10379         * modules/truncf: New file.
10380         * lib/trunc.c: Make paramerizable through USE_* macros.
10381         * lib/truncf.c: New file.
10382         * m4/truncf.m4: New file.
10383         * lib/math.in.h (truncf): New declaration.
10384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10385         HAVE_DECL_TRUNCF.
10386         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10387         HAVE_DECL_TRUNCF.
10388         * doc/functions/truncf.texi: Mention the 'truncf' module.
10389
10390 2007-10-03  Bruno Haible  <bruno@clisp.org>
10391
10392         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10393         augmentation also for tests modules.
10394         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10395         * modules/atexit-tests (Makefile.am): Likewise.
10396         * modules/binary-io-tests (Makefile.am): Likewise.
10397         * modules/c-strcase-tests (Makefile.am): Likewise.
10398         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10399         * modules/canonicalize-tests (Makefile.am): Likewise.
10400         * modules/closein-tests (Makefile.am): Likewise.
10401         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10402         * modules/freadahead-tests (Makefile.am): Likewise.
10403         * modules/fseek-tests (Makefile.am): Likewise.
10404         * modules/fseeko-tests (Makefile.am): Likewise.
10405         * modules/ftell-tests (Makefile.am): Likewise.
10406         * modules/ftello-tests (Makefile.am): Likewise.
10407         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10408         * modules/isnanl-tests (Makefile.am): Likewise.
10409         * modules/lseek-tests (Makefile.am): Likewise.
10410         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10411         * modules/mbscasestr-tests (Makefile.am): Likewise.
10412         * modules/mbschr-tests (Makefile.am): Likewise.
10413         * modules/mbscspn-tests (Makefile.am): Likewise.
10414         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10415         * modules/mbspbrk-tests (Makefile.am): Likewise.
10416         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10417         * modules/mbsrchr-tests (Makefile.am): Likewise.
10418         * modules/mbsspn-tests (Makefile.am): Likewise.
10419         * modules/mbsstr-tests (Makefile.am): Likewise.
10420         * modules/printf-posix-tests (Makefile.am): Likewise.
10421         * modules/snprintf-posix-tests (Makefile.am): Likewise.
10422         * modules/sprintf-posix-tests (Makefile.am): Likewise.
10423         * modules/tsearch-tests (Makefile.am): Likewise.
10424         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10425         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10426         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10427         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10428         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10429         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10430         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10431         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10432         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
10433         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
10434         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10435         * modules/xstrtol-tests (Makefile.am): Likewise.
10436         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10437         * modules/yesno-tests (Makefile.am): Likewise.
10438
10439 2007-10-03  Bruno Haible  <bruno@clisp.org>
10440
10441         * modules/trunc-tests: New file.
10442         * tests/test-trunc.c: New file.
10443
10444         * modules/trunc: New file.
10445         * lib/trunc.c: New file.
10446         * m4/trunc.m4: New file.
10447         * lib/math.in.h (trunc): New declaration.
10448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10449         HAVE_DECL_TRUNC.
10450         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10451         HAVE_DECL_TRUNC.
10452         * doc/functions/trunc.texi: Mention the 'trunc' module.
10453
10454 2007-10-03  Bruno Haible  <bruno@clisp.org>
10455
10456         * tests/test-fpending.c: New file, mostly copied
10457         from coreutils/lib/t-fpending.c.
10458         * modules/fpending-tests: New file.
10459
10460 2007-10-03  Bruno Haible  <bruno@clisp.org>
10461
10462         Port the stdio extensions to QNX (untested).
10463         * lib/fseterr.c (fseterr): Add support for QNX.
10464         * lib/fbufmode.c (fbufmode): Likewise.
10465         * lib/freadable.c (freadable): Likewise.
10466         * lib/fwritable.c (fwritable): Likewise.
10467         * lib/freading.c (freading): Likewise.
10468         * lib/fwriting.c (fwriting): Likewise.
10469         * lib/freadahead.c (freadahed): Likewise.
10470         * lib/fpurge.c (fpurge): Likewise.
10471         * lib/fseeko.c (rpl_fseeko): Likewise.
10472
10473 2007-10-03  Bruno Haible  <bruno@clisp.org>
10474             Jim Meyering  <jim@meyering.net>
10475             Eric Blake  <ebb9@byu.net>
10476
10477         * doc/relocatable.texi: Use @command instead of @program.
10478
10479 2007-10-02  Jim Meyering  <jim@meyering.net>
10480
10481         Perform one more "_.h" -> ".in.h" substitution.
10482         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10483         instead of unistd_.h here, too.
10484
10485 2007-10-01  Bruno Haible  <bruno@clisp.org>
10486
10487         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10488         Needed for the alloca-opt module.
10489
10490 2007-09-30  Bruno Haible  <bruno@clisp.org>
10491
10492         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10493         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10494         alloca_.h.
10495         * lib/argz.in.h: Renamed from lib/argz_.h.
10496         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10497         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10498         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10499         byteswap_.h.
10500         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10501         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10502         dirent_.h.
10503         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10504         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10505         fcntl_.h.
10506         * lib/float.in.h: Renamed from lib/float_.h.
10507         * modules/float (Files, Makefile.am): Use float.in.h instead of
10508         float_.h.
10509         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10510         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10511         fnmatch_.h.
10512         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10513         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10514         getopt_.h.
10515         * lib/glob.in.h: Renamed from lib/glob_.h.
10516         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10517         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10518         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10519         iconv_.h.
10520         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10521         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10522         inttypes_.h.
10523         * lib/locale.in.h: Renamed from lib/locale_.h.
10524         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10525         locale_.h.
10526         * lib/math.in.h: Renamed from lib/math_.h.
10527         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10528         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10529         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10530         of netinet_in_.h. Add dependency.
10531         * lib/poll.in.h: Renamed from lib/poll_.h.
10532         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10533         * lib/search.in.h: Renamed from lib/search_.h.
10534         * modules/search (Files, Makefile.am): Use search.in.h instead of
10535         search_.h.
10536         * lib/signal.in.h: Renamed from lib/signal_.h.
10537         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10538         _signal.h.
10539         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10540         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10541         stdbool_.h.
10542         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10543         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10544         stdint_.h.
10545         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10546         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10547         stdio_.h.
10548         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10549         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10550         stdlib_.h.
10551         * lib/string.in.h: Renamed from lib/string_.h.
10552         * modules/string (Files, Makefile.am): Use string.in.h instead of
10553         string_.h.
10554         * doc/gnulib-tool.texi (Initial import): Update.
10555         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10556         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10557         of sys_select_.h. Add dependency.
10558         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10559         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10560         of sys_socket_.h.
10561         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10562         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10563         sys_stat_.h.
10564         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10565         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10566         sys_time_.h.
10567         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10568         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10569         sysexits_.h.
10570         * lib/time.in.h: Renamed from lib/time_.h.
10571         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10572         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10573         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10574         unistd_.h.
10575         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10576         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10577         wchar_.h.
10578         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10579         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10580         wctype_.h.
10581         * build-aux/bootstrap (slurp): Update.
10582         * lib/.cppi-disable: Update.
10583
10584 2007-09-30  Bruno Haible  <bruno@clisp.org>
10585
10586         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10587         Needed on BeOS.
10588
10589 2007-09-30  Bruno Haible  <bruno@clisp.org>
10590
10591         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10592
10593 2007-09-29  Bruno Haible  <bruno@clisp.org>
10594
10595         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10596
10597 2007-09-29  Bruno Haible  <bruno@clisp.org>
10598
10599         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10600         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10601         * build-aux/install-reloc: Compile also areadlink.c.
10602         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10603
10604 2007-09-29  Bruno Haible  <bruno@clisp.org>
10605
10606         * gnulib-tool (func_emit_initmacro_done): Indentation.
10607
10608 2007-09-29  Bruno Haible  <bruno@clisp.org>
10609
10610         * README: Add CVS checkout update instructions.
10611         Info from Bob Proulx <bob@proulx.com>.
10612
10613 2007-09-28  Eric Blake  <ebb9@byu.net>
10614
10615         Provide move-if-change.
10616         * build-aux/move-if-change: New file, based on best practice
10617         rather than any canonical upstream location.
10618
10619 2007-09-28  Jim Meyering  <jim@meyering.net>
10620
10621         Fix canonicalize loop-detection corner case.
10622         Do not attempt to stat the symlink values stored via seen_triple.
10623         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10624         on linux-2.6.18, (but not 2.6.22).
10625         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10626         triple_compare.  The former compares dev,ino,filename, while the latter
10627         would actually stat dirname(filename) when dev and ino were equal.
10628         * lib/hash-triple.c: Install <string.h>.
10629         (STREQ): Define.
10630         (triple_compare_ino_str): New function.
10631         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10632
10633 2007-09-28  Eric Blake  <ebb9@byu.net>
10634
10635         Enforce that AC_REPLACE_FUNCS files exist.
10636         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10637         override check for typos.
10638
10639         Fix test-closein on Solaris 10.
10640         * tests/test-closein.c (main): Don't assume stdin can be inherited
10641         closed on all systems.
10642         * tests/test-closein.sh: Likewise.
10643         Reported by Piotr Tarnowski.
10644
10645 2007-09-28  Jim Meyering  <jim@meyering.net>
10646
10647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10648
10649 2007-09-27  Jim Meyering  <jim@meyering.net>
10650
10651         canonicalize: Avoid a false-positive cycle failure.
10652         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10653         Sort.  Remove cycle-check.
10654         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10655         not cycle-check.h.
10656         (seen_triple): New function.
10657         (canonicalize_filename_mode): Use it instead of cycle-check.
10658         * tests/test-canonicalize.c: Add a test for this bug.
10659         * tests/test-canonicalize.sh: Set up and run the test.
10660
10661         New module, file-set, from coreutils.
10662         * modules/file-set: Define it.
10663         * lib/file-set.c, lib/file-set.h: Implement.
10664
10665         New module, hash-triple, from coreutils.
10666         * modules/hash-triple: Define it.
10667         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10668
10669 2007-09-25  Eric Blake  <ebb9@byu.net>
10670
10671         Fix strerror on Interix.
10672         * lib/string_.h (strerror): Declare replacement.
10673         * doc/functions/strerror.texi (strerror): Document the Interix
10674         shortcoming.
10675         * modules/string (Makefile.am): Support new hooks.
10676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10677         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10678         gl_FUNC_STRERROR_SEPARATE.
10679         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10680         * lib/strerror.c (rpl_strerror): Provide replacement.
10681         * modules/strerror (Depends-on): Add string.
10682         (configure.ac): Detect use of module.
10683         * tests/test-strerror.c: New file.
10684         * modules/strerror-tests: New test module.
10685         * modules/argp (Depends-on): Add strerror.
10686         * modules/error (Depends-on): Likewise.
10687         Reported by Martin Koeppe.
10688
10689 2007-09-24  Bruno Haible  <bruno@clisp.org>
10690
10691         * README: Update git instructions.
10692
10693 2007-09-24  Eric Blake  <ebb9@byu.net>
10694
10695         Revert fpending breakage from 2007-09-08.
10696         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10697         __fpending.c.
10698
10699 2007-09-24  Jim Meyering  <jim@meyering.net>
10700
10701         filenamecat.c: Add a test.
10702         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10703         showing how the function works when DIR is the empty string.
10704
10705 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10706
10707         * tests/test-canonicalize.sh: Turn on executable bit.
10708
10709 2007-09-19  Eric Blake  <ebb9@byu.net>
10710
10711         * README: Update CVS instructions.
10712
10713 2007-09-18  Bruno Haible  <bruno@clisp.org>
10714
10715         * modules/areadlink: New file.
10716         * lib/areadlink.h (areadlink): New declaration.
10717         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10718
10719 2007-09-17  Jim Meyering  <jim@meyering.net>
10720
10721         * lib/savewd.c (ESTALE) [!defined]: Define.
10722         Reported to be required on Interix by Martin Koeppe.
10723
10724 2007-09-17  Bruno Haible  <bruno@clisp.org>
10725
10726         * gnulib-tool (func_version): Use $version.
10727
10728 2007-09-16  Bruno Haible  <bruno@clisp.org>
10729
10730         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10731         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10732         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10733         Reported by Greg Schafer <gschafer@zip.com.au>.
10734
10735 2007-09-15  Bruno Haible  <bruno@clisp.org>
10736
10737         * gnulib-tool (sed): Try a little harder to make bash understand the
10738         alias.
10739         Reported by Bruce Korb <bruce.korb@gmail.com>.
10740
10741 2007-09-13  Eric Blake  <ebb9@byu.net>
10742
10743         * ChangeLog: Remove conflict markers.
10744
10745 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10746
10747         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10748         Reported by Bruno Haible <bruno@clisp.org>.
10749
10750 2007-09-12  Bruno Haible  <bruno@clisp.org>
10751
10752         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10753         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10754         is not defined.
10755
10756 2007-09-12  Eric Blake  <ebb9@byu.net>
10757
10758         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10759         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10760         Autoconf definition.
10761         * modules/euidaccess (Depends-on): Add extensions, for
10762         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10763         * modules/fnmatch (Depends-on): Likewise.
10764         * modules/getaddrinfo (Depends-on): Likewise.
10765         * modules/getdelim (Depends-on): Likewise.
10766         * modules/getline (Depends-on): Likewise.
10767         * modules/getsubopt (Depends-on): Likewise.
10768         * modules/gettext (Depends-on): Likewise.
10769         * modules/group-member (Depends-on): Likewise.
10770         * modules/mbchar (Depends-on): Likewise.
10771         * modules/memmem (Depends-on): Likewise.
10772         * modules/mempcpy (Depends-on): Likewise.
10773         * modules/memrchr (Depends-on): Likewise.
10774         * modules/pagealign_alloc (Depends-on): Likewise.
10775         * modules/readutmp (Depends-on): Likewise.
10776         * modules/stpcpy (Depends-on): Likewise.
10777         * modules/stpncpy (Depends-on): Likewise.
10778         * modules/strchrnul (Depends-on): Likewise.
10779         * modules/strndup (Depends-on): Likewise.
10780         * modules/strsep (Depends-on): Likewise.
10781         * modules/strverscmp (Depends-on): Likewise.
10782         * modules/vasprintf (Depends-on): Likewise.
10783         * modules/wcwidth (Depends-on): Likewise.
10784         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10785         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10786         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10788         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10789         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10790         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10791         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10792         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10793         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10795         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10796         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10797         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10798         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10799         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10800         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10801         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10803         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10806         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10807         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10808         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10810         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10811         so that lock.m4 can be used in gettext without extensions module.
10812
10813 2007-09-11  Bruno Haible  <bruno@clisp.org>
10814
10815         * m4/isc-posix.m4: Remove file.
10816         Suggested by Eric Blake.
10817
10818 2007-09-11  Eric Blake  <ebb9@byu.net>
10819
10820         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10821
10822 2007-09-10  Bruno Haible  <bruno@clisp.org>
10823
10824         * posix-modules: Fix typo in error message.
10825         Reported by Matt <mkraai@beckman.com>.
10826
10827 2007-09-09  Bruno Haible  <bruno@clisp.org>
10828
10829         * doc/functions/getdelim.texi: Update list of platforms lacking the
10830         function.
10831         * doc/functions/getline.texi: Likewise.
10832
10833 2007-09-09  Jim Meyering  <jim@meyering.net>
10834
10835         * lib/hash.c (hash_initialize): Detect calloc failure.
10836         Reported by Bruno Haible.
10837
10838 2007-09-09  Bruno Haible  <bruno@clisp.org>
10839
10840         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10841         malloc or realloc fails.
10842
10843 2007-09-09  Bruno Haible  <bruno@clisp.org>
10844
10845         * modules/getcwd (Depends-on): Add malloc-posix.
10846         * modules/glob (Depends-on): Likewise.
10847         * modules/putenv (Depends-on): Likewise.
10848         * modules/strdup (Depends-on): Likewise.
10849         * modules/getdelim (Depends-on): Add realloc-posix.
10850         * modules/read-file (Depends-on): Likewise.
10851
10852 2007-09-09  Bruno Haible  <bruno@clisp.org>
10853
10854         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10855         (gl_FUNC_MALLOC_POSIX): Require it.
10856         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10857         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10858         * modules/realloc (Files): Add m4/malloc.m4.
10859         * modules/calloc (Files): Likewise.
10860
10861 2007-09-09  Bruno Haible  <bruno@clisp.org>
10862
10863         * modules/malloc-posix: New file.
10864         * modules/malloc (Depends-on): Add malloc-posix.
10865         * lib/malloc.c: Include errno.h.
10866         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10867         and a POSIX-compatible malloc into a single function. Set ENOMEM
10868         when returning NULL.
10869         * m4/malloc.m4: New file.
10870         * doc/functions/malloc.texi: Mention the malloc-posix module.
10871         * lib/stdlib_.h (malloc): New declaration.
10872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10873         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10874         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10875         and HAVE_MALLOC_POSIX.
10876
10877 2007-09-09  Bruno Haible  <bruno@clisp.org>
10878
10879         * modules/realloc-posix: New file.
10880         * modules/realloc (Depends-on): Add realloc-posix.
10881         * lib/realloc.c: Include errno.h.
10882         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10883         and a POSIX-compatible realloc into a single function. Set ENOMEM
10884         when returning NULL.
10885         * m4/realloc.m4: New file.
10886         * doc/functions/realloc.texi: Mention the realloc-posix module.
10887         * lib/stdlib_.h (realloc): New declaration.
10888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10889         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10890         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10891         and HAVE_REALLOC_POSIX.
10892
10893 2007-09-09  Bruno Haible  <bruno@clisp.org>
10894
10895         * modules/calloc-posix: New file.
10896         * modules/calloc (Depends-on): Add calloc-posix.
10897         * lib/calloc.c: Include errno.h.
10898         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10899         and a POSIX-compatible calloc into a single function. Set ENOMEM
10900         when returning NULL.
10901         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10902         * doc/functions/calloc.texi: Mention the calloc-posix module.
10903         * lib/stdlib_.h (calloc): New declaration.
10904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10905         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10906         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10907         and HAVE_CALLOC_POSIX.
10908
10909 2007-09-09  Bruno Haible  <bruno@clisp.org>
10910
10911         Allow for modules to show an arbitrary notice.
10912         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10913         * gnulib-tool: New option --extract-notice.
10914         (func_usage): Document it.
10915         (sed_extract_prog): Update.
10916         (func_get_notice): New function.
10917         (func_modules_notice): New function.
10918         (func_import, func_create_testdir): Invoke it.
10919         Suggested by Jim Meyering.
10920
10921 2007-09-09  Bruno Haible  <bruno@clisp.org>
10922
10923         * gnulib-tool: New options --verbose, --quiet.
10924         (func_usage): Document them.
10925         (verbose): New variable.
10926         (func_execute_command): New function.
10927         (func_import): Don't show the module list and the file list if
10928         $verbose < 0.
10929         (func_create_testdir): Likewise. Use func_execute_command.
10930         (func_create_megatestdir): Use func_execute_command.
10931
10932 2007-09-08  Bruno Haible  <bruno@clisp.org>
10933
10934         * gnulib-tool (func_import): Prefer rsync over wget when available,
10935         for fetching the PO files.
10936
10937 2007-09-08  Bruno Haible  <bruno@clisp.org>
10938
10939         * posix-modules: New file. Portions copied from gnulib-tool.
10940         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10941
10942 2007-09-08  Jim Meyering  <jim@meyering.net>
10943
10944         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10945         * lib/fpending.h: Rename from __fpending.h.
10946         * lib/fpending.c: Rename from __fpending.c.
10947         Include "fpending.h", not "__fpending.h".
10948         * lib/__fpending.h, lib/__fpending.c: Remove files.
10949         * modules/fpending (Files): Reflect new file names.
10950         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10951
10952 2007-09-08  Bruno Haible  <bruno@clisp.org>
10953
10954         * m4/inttypes-h.m4: Remove stub file.
10955
10956 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10957
10958         * doc/headers/stdint.texi: Discuss #include_next issue.
10959
10960 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10963
10964 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10965
10966         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10967         in variable name.
10968
10969 2007-09-03  Jim Meyering  <jim@meyering.net>
10970
10971         New module: git-version-gen.
10972         * modules/git-version-gen: New file.
10973
10974         Import changes from coreutils for bootstrap script.
10975
10976         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10977
10978         bootstrap: uses rsync to download the .po files
10979         * build-aux/bootstrap (po_download_command_format): New global.
10980         (download_po_files): Use rsync.
10981         (update_po_files): Don't remove .po files after download,
10982         so future rsync runs can take advantage of the copies.
10983
10984         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10985
10986         Solve the unnecessary-.po-file-regeneration problem once and for all.
10987         * build-aux/bootstrap (download_po_files): New function, renamed from
10988         get_translations.  Now, downloads, but doesn't update LINGUAS.
10989         (update_po_files): New function.
10990
10991         bootstrap: Ignore more.
10992         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10993         uniwidth to e.g., lib/.gitignore.
10994         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10995
10996         * build-aux/bootstrap: New setting: vc_ignore.
10997         (insert_sorted_if_absent): Create $file if absent.
10998         Adapt to new, possibly empty, list: $vc_ignore.
10999
11000         bootstrap: generate more ignorable names
11001         * build-aux/bootstrap (slurp): When generating ignorable names,
11002         also map .sin to .sed, .gperf to .c, and .y to .c.
11003
11004 2007-09-03  Jim Meyering  <jim@meyering.net>
11005
11006         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11007         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11008
11009 2007-09-02  Bruno Haible  <bruno@clisp.org>
11010
11011         Fix mis-recognition of 'mcs' on QNX 6.
11012         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11013         output contains the string "Mono".
11014         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11015         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11016
11017 2007-09-01  Bruno Haible  <bruno@clisp.org>
11018
11019         Fix collision between uniwidth/* and linebreak modules.
11020         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11021         u32_width): Remove declarations.
11022         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11023         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11024         streq3, streq2, streq1, streq0): Remove functions.
11025         (STREQ): Remove macro.
11026         (is_cjk_encoding): Remove function.
11027         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11028         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11029         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11030         * NEWS: Document the change.
11031
11032 2007-09-01  Bruno Haible  <bruno@clisp.org>
11033
11034         * lib/streq.h: Add double-inclusion guard.
11035
11036 2007-09-01  Karl Berry  <karl@gnu.org>
11037
11038         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11039
11040 2007-08-28  Jim Meyering  <jim@meyering.net>
11041
11042         Rename mreadlink_with_size to areadlink_with_size.
11043         * NEWS: Document the change.
11044         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11045         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11046         * lib/mreadlink.h: Rename this to...
11047         * lib/areadlink.h: ...this.
11048         * modules/mreadlink-with-size: Rename this to...
11049         * modules/areadlink-with-size: ...this.
11050         * lib/canonicalize.c: Reflect the renaming.
11051         * modules/canonicalize: Likewise.
11052
11053 2007-08-26  Bruno Haible  <bruno@clisp.org>
11054
11055         * gnulib-tool (func_import): When deciding which files to remove,
11056         consider also dangling symbolic links.
11057         Reported by Eric Blake.
11058
11059 2007-08-26  Bruno Haible  <bruno@clisp.org>
11060
11061         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11062
11063 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11064
11065         * lib/readline.c: Don't include getline.h, the prototype is now
11066         found in stdio.h.
11067
11068 2007-08-23  Jim Meyering  <jim@meyering.net>
11069
11070         Getdelim touchup.
11071         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11072         around the funlockfile call, since funlockfile never sets errno.
11073         Don't set errno upon failed realloc.
11074
11075 2007-08-22  Eric Blake  <ebb9@byu.net>
11076
11077         Getline touchups.
11078         * lib/getdelim.c (getdelim): Revert regression that required *n to
11079         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
11080         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11081         getdelim, rather than whether implementation is missing.
11082         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11083         * lib/stdio_.h (getline): Also declare if replacement is
11084         required.
11085         * doc/functions/getdelim.texi: New file.
11086         * doc/functions/getline.texi: Likewise.
11087         * doc/gnulib.texi (Function Substitutes): Add new files.
11088         Reported by Bruno Haible.
11089
11090 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
11091
11092         * users.txt: Add Guile.
11093
11094 2007-08-22  Eric Blake  <ebb9@byu.net>
11095
11096         * tests/test-getdelim.c (main): Use remove, not unlink.
11097         * tests/test-getline.c (main): Likewise.
11098
11099         Move getline and getdelim into stdio.h, per POSIX 200x.
11100         * modules/getline (Files): Remove getline.h.
11101         (Depends-on): Add stdio.
11102         (configure.ac): Add module indicator.
11103         * modules/getdelim (Files): Remove getdelim.h.
11104         (Depends-on): Add stdio.
11105         (configure.ac): Add module indicator.
11106         * modules/stdio (Makefile.am): Work with new indicators.
11107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11110         * lib/getdelim.h: Delete.
11111         * lib/getline.h: Delete.
11112         * lib/stdio_.h (getdelim, getline): Declare.
11113         * modules/getdelim-tests: New module.
11114         * modules/getline-tests: Likewise.
11115         * tests/test-getdelim.c: New file.
11116         * tests/test-getline.c: Likewise.
11117         * NEWS: Document the change.
11118         * lib/getline.c: Update choice of header.
11119         * lib/csharpcomp.c: Likewise.
11120         * lib/getpass.c: Likewise.
11121         * lib/javacomp.c: Likewise.
11122         * lib/javaversion.c: Likewise.
11123         * lib/yesno.c: Likewise.
11124         * lib/getdelim.c: Likewise.
11125         (getdelim): Set errno on failure, and avoid memory leak.
11126
11127 2007-08-19  Bruno Haible  <bruno@clisp.org>
11128
11129         * modules/closein (Depends-on): Add freadahead.
11130         * lib/closein.c: Include freadahead.h.
11131         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11132         is zero.
11133
11134 2007-08-19  Bruno Haible  <bruno@clisp.org>
11135
11136         * modules/freadahead-tests: New file.
11137         * tests/test-freadahead.sh: New file.
11138         * tests/test-freadahead.c: New file.
11139
11140         * modules/freadahead: New file.
11141         * lib/freadahead.h: New file.
11142         * lib/freadahead.c: New file.
11143         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11144         fbufmode, fpurge, freadable, fwritable.
11145
11146 2007-08-19  Eric Blake  <ebb9@byu.net>
11147
11148         Test yesno in combination with closein.
11149         * lib/yesno.c (yesno): Document use of stdin.
11150         * modules/yesno-tests (Files): New module.
11151         * tests/test-yesno.c (main): New file.
11152         * tests/test-yesno.sh: Likewise.
11153
11154 2007-08-19  Bruno Haible  <bruno@clisp.org>
11155
11156         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11157         * lib/fseeko.c (rpl_fseeko): Likewise.
11158         * lib/fseterr.c (fseterr): Likewise.
11159
11160 2007-08-19  Bruno Haible  <bruno@clisp.org>
11161
11162         * tests/test-lseek.c (main): Disable a test for BeOS.
11163         * doc/functions/lseek.texi: Document the BeOS bug.
11164
11165 2007-08-19  Bruno Haible  <bruno@clisp.org>
11166             Eric Blake  <ebb9@byu.net>
11167
11168         * lib/lseek.c: Include <sys/stat.h>.
11169         (rpl_lseek): Add workaround code also for Unix platforms.
11170         Needed for BeOS.
11171         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11172         * doc/functions/lseek.texi: Document BeOS definiency.
11173
11174 2007-08-18  Bruno Haible  <bruno@clisp.org>
11175
11176         * modules/fstrcmp-tests: New file.
11177         * tests/test-fstrcmp.c: New file.
11178
11179 2007-08-18  Bruno Haible  <bruno@clisp.org>
11180
11181         * modules/fstrcmp: New file, from GNU gettext with modifications.
11182         * lib/fstrcmp.h: New file, from GNU gettext.
11183         * lib/fstrcmp.c: New file, from GNU gettext.
11184         * MODULES.html.sh (String handling): Add fstrcmp.
11185
11186 2007-08-18  Bruno Haible  <bruno@clisp.org>
11187
11188         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11189         'bool'.
11190         (diag, compareseq): Remove const from the ctxt argument.
11191         (USE_HEURISTIC): Undefine at the end.
11192
11193 2007-08-18  Jim Meyering  <jim@meyering.net>
11194
11195         New file: lib/idcache.h
11196         * NEWS: Mention the addition.
11197         * modules/idcache (Files): Add lib/idcache.h
11198         * lib/idcache.c: Include "idcache.h".
11199         Don't include <sys/types.h>.
11200         Add a FIXME comment.
11201         Move file-scoped "static" declarations to the top.
11202         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
11203
11204 2007-08-17  Bruno Haible  <bruno@clisp.org>
11205         and Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         * MODULES.html.sh: Add diffseq.
11208         * modules/diffseq: New file.
11209         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11210         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11211
11212 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         Import changes from coreutils for bootstrap script.
11215
11216         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         * build-aux/bootstrap (slurp): Work even in environments where
11219         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
11220         current code does not slurp files whose names start with ".", and
11221         this looks like it might be a troublesome area.
11222
11223         2007-07-11  Jim Meyering  <jim@meyering.net>
11224
11225         If there's a GPL vN copyright comment, require that N == 3.
11226
11227         2007-07-08  Jim Meyering  <jim@meyering.net>
11228
11229         Run the coreutils-specific code only if tests/Makefile.am.in exists.
11230         * build-aux/bootstrap (mam_template): Move definition out of loop.
11231
11232         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11233
11234         * build-aux/bootstrap (symlink_to_dir): Rename function from
11235         symlink_to_gnulib.  Add a directory parameter.  Update all
11236         callers.
11237         (cp_mark_as_generated): Also check for -- and link to -- files in
11238         gl/.
11239
11240         2007-07-08  Jim Meyering  <jim@meyering.net>
11241
11242         Adapt to deeper hierarchy in gnulib.
11243         * build-aux/bootstrap (symlink_to_dir): If the destination
11244         directory doesn't exist, create it. This is required at least for
11245         "lib/uniwidth/cjk.h".
11246
11247         2007-05-15  Jim Meyering  <jim@meyering.net>
11248
11249         * build-aux/bootstrap: Now that generated Makefile.am files
11250         are no longer under version control, they must be created at
11251         bootstrap time.
11252
11253 2007-08-14  Ben Pfaff  <blp@gnu.org>
11254
11255         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
11256
11257 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11258
11259         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11260         given the changes below.
11261         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
11262         even on hosts that have padding bits beyond the supported 64.
11263
11264 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11265
11266         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11267         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11268         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
11269         depends on it.
11270         (xstrtol_error): Remove.
11271         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11272         but with a different signature.
11273         (ATTRIBUTE_NORETURN, __attribute__): New macros.
11274         * lib/xstrtol-error.c: Include exitfail.h.
11275         (xstrtol_fatal): New function, with a different signature from the
11276         old xstrtol_error, so that the caller need not worry about passing
11277         in an exit status, or about storage management of the option argument.
11278         (xstrtol_error): Now a static function.  Redo signature to
11279         implement xstrtol_fatal.  Output the correct number of hyphens in
11280         front of the option so that the caller need not worry about
11281         storage management.
11282         (N_): New macro.
11283         (_): Remove; not used now.
11284         * modules/xstrtol: Depend on getopt.
11285         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11286         of old STRTOL_FATAL_ERROR macro.
11287         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11288         of test program.
11289         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11290         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11291
11292 2007-08-08  Eric Blake  <ebb9@byu.net>
11293
11294         * lib/xstrtol-error.c: Add missing include.
11295
11296         Move xstrtol messages into gnulib domain, when --pobase is used.
11297         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11298         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11299         * modules/xstrtol (Files): Distribute new file.
11300         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11301         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11302         * tests/test-xstrtol.c: ...into new file.
11303         * tests/test-xstrtoul.c: Also test xstrtoul.
11304         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11305         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11306         * tests/test-xstrtol.sh: Drive the tests.
11307         * tests/test-xstrtoimax.sh: Likewise.
11308         * tests/test-xstrtoumax.sh: Likewise.
11309         * modules/xstrtol-tests: New module.
11310         * modules/xstrtoimax-tests: Likewise.
11311         * modules/xstrtoumax-tests: Likewise.
11312
11313 2007-08-08  Jim Meyering  <jim@meyering.net>
11314
11315         New function: mfile_name_concat.
11316         * lib/filenamecat.c (mfile_name_concat): New function, just like
11317         file_name_concat, but return NULL upon failure rather than exiting
11318         with a diagnostic.
11319         * lib/filenamecat.h: Declare it.
11320
11321 2007-08-07  Bruno Haible  <bruno@clisp.org>
11322
11323         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11324         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11325         warning from gcc.
11326         Reported by Eric Blake.
11327
11328 2007-08-07  Simon Josefsson  <simon@josefsson.org>
11329
11330         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11331         * modules/crypto/arcfour (License): Likewise.
11332         * modules/crypto/des-tests (License): Likewise.
11333         * modules/crypto/gc-arctwo-tests (License): Likewise.
11334         * modules/crypto/gc-des-tests (License): Likewise.
11335         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
11336         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
11337         * modules/crypto/gc-md2-tests (License): Likewise.
11338         * modules/crypto/gc-md4-tests (License): Likewise.
11339         * modules/crypto/gc-md5-tests (License): Likewise.
11340         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
11341         * modules/crypto/gc-rijndael-tests (License): Likewise.
11342         * modules/crypto/gc-sha1-tests (License): Likewise.
11343         * modules/crypto/gc-tests (License): Likewise.
11344         * modules/crypto/hmac-md5 (License): Likewise.
11345         * modules/crypto/hmac-sha1 (License): Likewise.
11346         * modules/crypto/md2-tests (License): Likewise.
11347         * modules/crypto/md4-tests (License): Likewise.
11348         * modules/crypto/md5 (License): Likewise.
11349         * modules/crypto/rijndael (License): Likewise.
11350         * modules/crypto/sha1 (License): Likewise.
11351         * modules/memxor (License): Likewise.
11352
11353 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11354         and Bruno Haible  <bruno@clisp.org>
11355
11356         * NEWS: Describe interface changes to human, xstrtol.
11357         * lib/human.h: Include <xstrtol.h>.
11358         (human_options): Return enum strtol_error, not int.  Remove
11359         bool arg; take int * instead.
11360         * lib/human.c: Don't include "gettext.h".
11361         (_): Remove; no longer used.
11362         Don't include <xstrtol.h>, since human.h does it.
11363         (human_options): Adjust to abovementioned interface changes.
11364         Do not report error to stderr; that's now the caller's
11365         responsibility.
11366         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11367         interface change.
11368         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11369         Str, Argument_type_string.  All uses changed.  Put " argument"
11370         in diagnostics to make them clearer.  Change wording of suffix
11371         message for clarity.
11372         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11373         Argument_type_string.
11374         (STRTOL_FATAL_WARN): Remove; no longer used.
11375         * modules/human (Depends-on): Remove gettext-h.
11376
11377 2007-08-06  Simon Josefsson  <simon@josefsson.org>
11378
11379         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11380
11381 2007-07-31  Bruno Haible  <bruno@clisp.org>
11382
11383         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11384         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11385         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11386
11387 2007-07-31  Bruno Haible  <bruno@clisp.org>
11388
11389         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11390         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11391
11392 2007-07-30  Bruno Haible  <bruno@clisp.org>
11393
11394         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11395         * modules/c-ctype (License): Likewise.
11396         * modules/c-strcase (License): Likewise.
11397         * modules/check-version (License): Likewise.
11398         * modules/iconv (License): Likewise.
11399         * modules/iconv_open (License): Likewise.
11400         * modules/read-file (License): Likewise.
11401         * modules/striconv (License): Likewise.
11402         * modules/strverscmp (License): Likewise.
11403         * modules/vasprintf (License): Likewise.
11404         * modules/crypto/des (License): Likewise.
11405         * modules/crypto/gc (License): Likewise.
11406         * modules/crypto/gc-arcfour (License): Likewise.
11407         * modules/crypto/gc-arctwo (License): Likewise.
11408         * modules/crypto/gc-des (License): Likewise.
11409         * modules/crypto/gc-hmac-md5 (License): Likewise.
11410         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11411         * modules/crypto/gc-md2 (License): Likewise.
11412         * modules/crypto/gc-md4 (License): Likewise.
11413         * modules/crypto/gc-md5 (License): Likewise.
11414         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11415         * modules/crypto/gc-random (License): Likewise.
11416         * modules/crypto/gc-rijndael (License): Likewise.
11417         * modules/crypto/gc-sha1 (License): Likewise.
11418         * modules/crypto/md2 (License): Likewise.
11419         * modules/crypto/md4 (License): Likewise.
11420
11421 2007-07-30  Jim Meyering  <jim@meyering.net>
11422
11423         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
11424         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
11425         it has valid stat data.  This bug would cause du not to count the
11426         sizes of inaccessible directories.
11427         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
11428         in <http://bugzilla.redhat.com/250077>.
11429
11430 2007-07-25  Peter O'Gorman  <peter@pogma.com>
11431             Bruno Haible  <bruno@clisp.org>
11432
11433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
11434         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
11435         #include_next, gives a diagnostic about it, but reports no error in
11436         the exit code.
11437         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
11438
11439 2007-07-24  Ben Pfaff  <blp@gnu.org>
11440
11441         Improve name: "count-one-bits" is better than "popcount".
11442         * MODULES.html.sh: Update name.
11443         * lib/popcount.h: Renamed lib/count-one-bits.h.
11444         (popcount): Renamed count_one_bits.
11445         (popcountl): Renamed count_one_bits_l.
11446         (popcountll): Renamed count_one_bits_ll.
11447         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11448         * modules/popcount: Renamed module/count-one-bits.
11449         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11450         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11451
11452 2007-07-23  Ben Pfaff  <blp@gnu.org>
11453
11454         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11455         better code generation, and add U to large constants to avoid
11456         warnings, in non-GCC case.
11457         Suggested by Bruno Haible.
11458
11459 2007-07-23  Ben Pfaff  <blp@gnu.org>
11460
11461         * lib/popcount.h: Use verify_true instead of if...abort.
11462         * modules/popcount: Depend on verify module.
11463         Suggested by Jim Meyering.
11464
11465 2007-07-23  Bruno Haible  <bruno@clisp.org>
11466
11467         * gnulib-tool (func_import): Create a .cvsignore file also when the
11468         directory is not yet in CVS but the toplevel directory is. When
11469         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11470         Reported by Karl Berry.
11471
11472 2007-07-22  Ben Pfaff  <blp@gnu.org>
11473
11474         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11475         case.
11476         Suggested by Eric Blake.
11477
11478 2007-07-22  Ben Pfaff  <blp@gnu.org>
11479
11480         New module: popcount.
11481         * MODULES.html.sh: Add popcount.
11482         * modules/popcount: New file.
11483         * modules/popcount-tests: New file.
11484         * tests/test-popcount.c: New file.
11485         * lib/popcount.h: New file.
11486         * m4/popcount.m4: New file.
11487
11488 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11489
11490         * build-aux/announce-gen: Update to GPLv3.
11491
11492         * build-aux/config.guess: Update from config.
11493
11494 2007-07-21  Bruno Haible  <bruno@clisp.org>
11495
11496         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11497         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11498
11499 2007-07-20  Jim Meyering  <jim@meyering.net>
11500
11501         * check-module: Diagnose a self-dependency.
11502
11503 2007-07-19  Bruno Haible  <bruno@clisp.org>
11504
11505         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11506         empty.
11507         Reported by Eric Blake.
11508
11509 2007-07-18  Bruno Haible  <bruno@clisp.org>
11510
11511         * gnulib-tool: New options --po-base, --po-domain.
11512         (func_usage): Document them.
11513         (pobase, po_domain): New variables.
11514         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11515         DEFAULT_TEXT_DOMAIN.
11516         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11517         (func_import): Consider pobase and po_domain. Create a po/ directory.
11518         (func_create_testdir): Set pobase and po_domain to empty.
11519         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11520         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11521
11522 2007-07-18  Bruno Haible  <bruno@clisp.org>
11523
11524         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11525         EXTRA_DIST augmentation for files in build-aux/.
11526
11527 2007-07-16  Bruno Haible  <bruno@clisp.org>
11528
11529         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11530         * modules/getdelim (License): Likewise.
11531
11532 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11533
11534         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11535         * modules/d-type (License): Likewise.
11536         * modules/extensions (License): Likewise.
11537         * modules/fnmatch (License): Likewise.
11538         * modules/fseeko (License): Likewise.
11539         * modules/getaddrinfo (License): Likewise.
11540         * modules/getline (License): Likewise.
11541         * modules/getlogin_r (License): Likewise.
11542         * modules/getpass (License): Likewise.
11543         * modules/gettimeofday (License): Likewise.
11544         * modules/glob (License): Likewise.
11545         * modules/inet_ntop (License): Likewise.
11546         * modules/malloc (License): Likewise.
11547         * modules/malloca (License): Likewise.
11548         * modules/memmem (License): Likewise.
11549         * modules/mempcpy (License): Likewise.
11550         * modules/memset (License): Likewise.
11551         * modules/minmax (License): Likewise.
11552         * modules/mktime (License): Likewise.
11553         * modules/netinet_in (License): Likewise.
11554         * modules/pathmax (License): Likewise.
11555         * modules/poll (License): Likewise.
11556         * modules/regex (License): Likewise.
11557         * modules/snprintf (License): Likewise.
11558         * modules/stdbool (License): Likewise.
11559         * modules/stdint (License): Likewise.
11560         * modules/stdio (License): Likewise.
11561         * modules/strcase (License): Likewise.
11562         * modules/strcasestr (License): Likewise.
11563         * modules/strdup (License): Likewise.
11564         * modules/string (License): Likewise.
11565         * modules/strndup (License): Likewise.
11566         * modules/strnlen (License): Likewise.
11567         * modules/strpbrk (License): Likewise.
11568         * modules/strptime (License): Likewise.
11569         * modules/strsep (License): Likewise.
11570         * modules/sys_select (License): Likewise.
11571         * modules/sys_socket (License): Likewise.
11572         * modules/sys_stat (License): Likewise.
11573         * modules/sys_time (License): Likewise.
11574         * modules/time (License): Likewise.
11575         * modules/time_r (License): Likewise.
11576         * modules/timegm (License): Likewise.
11577         * modules/unistd (License): Likewise.
11578         * modules/vsnprintf (License): Likewise.
11579         * modules/wctype (License): Likewise.
11580
11581 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11582
11583         * modules/argz (License): LGPLv2+.
11584
11585 2007-07-15  Karl Berry  <karl@gnu.org>
11586
11587         * doc/gnulib.texi: revise node structure per new fdl.texi.
11588
11589 2007-07-14  Bruno Haible  <bruno@clisp.org>
11590
11591         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11592         the output file.
11593         * lib/uniname/uninames.h: Regenerated.
11594
11595 2007-07-14  Karl Berry  <karl@gnu.org>
11596
11597         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11598         omitting sectioning and index commands.
11599
11600 2007-07-13  Bruno Haible  <bruno@clisp.org>
11601
11602         New gnulib-tool option --more-symlinks.
11603         * gnulib-tool (func_usage): Document --more-symlinks.
11604         (do_copyrights): New variable.
11605         Recognize option --more-symlinks.
11606         (func_import): Don't add a copyright notice transform to
11607         sed_transform_lib_file if do_copyrights is empty.
11608
11609 2007-07-13  Bruno Haible  <bruno@clisp.org>
11610
11611         * lib/vasnprintf.c (decimal_point_char): Define also if
11612         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11613         && !NEED_PRINTF_DIRECTIVE_A.
11614         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11615         Gary V. Vaughan <gary@gnu.org>.
11616
11617 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11618
11619         * lib/inttypes_.h: Undo previous change, since it was fixed
11620         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11621
11622 2007-07-13  Bruno Haible  <bruno@clisp.org>
11623
11624         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11625         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11626
11627 2007-07-13  Jim Meyering  <jim@meyering.net>
11628
11629         df: Don't fail for Tru64's "file-on-file mount".
11630         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11631         so we fall through and use statfs instead.  Details here:
11632         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11633         Reported by Albert Chin.
11634
11635 2007-07-13  Bruno Haible  <bruno@clisp.org>
11636
11637         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11638         * modules/configmake (License): Likewise.
11639         * modules/gettext (License): Likewise.
11640         * modules/gettext-h (License): Likewise.
11641         * modules/include_next (License): Likewise.
11642         * modules/link-warning (License): Likewise.
11643         * modules/localcharset (License): Likewise.
11644         * modules/localename (License): Likewise.
11645         * modules/lock (License): Likewise.
11646         * modules/relocatable-lib-lgpl (License): Likewise.
11647         * modules/size_max (License): Likewise.
11648         * modules/vasnprintf (License): Likewise.
11649         * modules/wchar (License): Likewise.
11650         * modules/xsize (License): Likewise.
11651
11652 2007-07-13  Bruno Haible  <bruno@clisp.org>
11653
11654         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11655         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11656
11657 2007-07-12  Bruno Haible  <bruno@clisp.org>
11658
11659         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11660         in the modules files.
11661
11662 2007-07-11  Karl Berry  <karl@gnu.org>
11663
11664         * MODULES.html.sh (func_module): use
11665          sed -e '\|^'"${includefile}"'$|d'
11666          instead of /.../d, to avoid errors on $includefile's containing /.
11667
11668 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11669
11670         * gnulib-tool (func_import): Avoid duplication of --avoid
11671         statements
11672         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11673         names to `_' in variable names.
11674
11675 2007-07-10  Eric Blake  <ebb9@byu.net>
11676
11677         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11678         * NEWS: Document this change.
11679
11680 2007-07-08  Bruno Haible  <bruno@clisp.org>
11681
11682         Update to Unicode 5.0.
11683         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11684         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11685         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11686         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11687         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11688         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11689         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11690         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11691         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11692         U+10A3F, U+1D242..U+1D244.
11693         (nonspacing_table_ind): Update.
11694         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11695         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11696
11697 2007-07-08  Bruno Haible  <bruno@clisp.org>
11698
11699         Update to Unicode 5.0.
11700         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11701         code transform. Extend the name index field of unicode_name_to_code and
11702         unicode_code_to_name from 16 to 24 bits.
11703         * lib/uniname/uniname.c (unicode_character_name,
11704         unicode_name_character): Add the range 0x12xxx to the code transform.
11705         * lib/uniname/uninames.h: Regenerated.
11706         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11707
11708 2007-07-07  Bruno Haible  <bruno@clisp.org>
11709
11710         * modules/wcwidth-tests: New file.
11711         * tests/test-wcwidth.c: New file.
11712
11713         Work around MacOS X wcwidth() bug.
11714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11715         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11716         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11717         original wcwidth in non-UTF-8 locales.
11718         * modules/wcwidth (Depends-on): Add localcharset, streq,
11719         uniwidth/width.
11720         * doc/functions/wcwidth.texi: Update.
11721
11722 2007-07-07  Bruno Haible  <bruno@clisp.org>
11723
11724         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11725         (wcwidth): New declaration.
11726         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11727         macros.
11728         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11729         here. Prepare for creating <wchar.h> unconditionally.
11730         * modules/wchar (Depends-on): Add link-warning.
11731         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11732         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11733         * lib/wcwidth.h: Remove file.
11734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11735         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11736         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11737         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11738         (Include): Replace wcwidth.h with <wchar.h>.
11739         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11740         * lib/mbchar.h: Don't include wcwidth.h.
11741         * lib/mbswidth.c: Likewise.
11742         * NEWS: Mention the change.
11743
11744 2007-07-07  Bruno Haible  <bruno@clisp.org>
11745
11746         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11747         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11748         definition with an external declaration.
11749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11750         defined as a function. Remove AC_C_INLINE requirement.
11751         * modules/wcwidth (Files): Add lib/wcwidth.c.
11752         (Makefile.am): Remove redundant statement.
11753
11754 2007-07-07  Bruno Haible  <bruno@clisp.org>
11755
11756         * MODULES.html.sh (Unicode string functions): Add the new modules.
11757
11758         * tests/uniwidth/test-u32-strwidth.c: New file.
11759         * modules/uniwidth/u32-strwidth-tests: New file.
11760
11761         * lib/uniwidth/u32-strwidth.c: New file.
11762         * modules/uniwidth/u32-strwidth: New file.
11763
11764         * tests/uniwidth/test-u16-strwidth.c: New file.
11765         * modules/uniwidth/u16-strwidth-tests: New file.
11766
11767         * lib/uniwidth/u16-strwidth.c: New file.
11768         * modules/uniwidth/u16-strwidth: New file.
11769
11770         * tests/uniwidth/test-u8-strwidth.c: New file.
11771         * modules/uniwidth/u8-strwidth-tests: New file.
11772
11773         * lib/uniwidth/u8-strwidth.c: New file.
11774         * modules/uniwidth/u8-strwidth: New file.
11775
11776         * tests/uniwidth/test-u32-width.c: New file.
11777         * modules/uniwidth/u32-width-tests: New file.
11778
11779         * lib/uniwidth/u32-width.c: New file.
11780         * modules/uniwidth/u32-width: New file.
11781
11782         * tests/uniwidth/test-u16-width.c: New file.
11783         * modules/uniwidth/u16-width-tests: New file.
11784
11785         * lib/uniwidth/u16-width.c: New file.
11786         * modules/uniwidth/u16-width: New file.
11787
11788         * tests/uniwidth/test-u8-width.c: New file.
11789         * modules/uniwidth/u8-width-tests: New file.
11790
11791         * lib/uniwidth/u8-width.c: New file.
11792         * modules/uniwidth/u8-width: New file.
11793
11794         * tests/uniwidth/test-uc_width.c: New file.
11795         * modules/uniwidth/width-tests: New file.
11796
11797         * lib/uniwidth/width.c: New file, from GNU libiconv.
11798         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11799         * modules/uniwidth/width: New file.
11800
11801         * lib/uniwidth.h: New file, from GNU libiconv.
11802         * modules/uniwidth/base: New file.
11803
11804 2007-07-07  Bruno Haible  <bruno@clisp.org>
11805
11806         * lib/uniname.h: New file, from GNU gettext.
11807         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11808         * lib/uniname/uninames.h: New file, from GNU gettext.
11809         * lib/uniname/uniname.c: New file, from GNU gettext.
11810         * tests/uniname/test-uninames.sh: New file.
11811         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11812         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11813         * modules/uniname/base: New file.
11814         * modules/uniname/uniname: New file.
11815         * modules/uniname/uniname-tests: New file.
11816         * MODULES.html.sh (Unicode string functions): Add the new modules.
11817
11818 2007-07-06  Bruno Haible  <bruno@clisp.org>
11819
11820         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11821
11822 2007-07-06  Bruno Haible  <bruno@clisp.org>
11823
11824         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11825         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11826         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11827         include <sys/time.h>.
11828         Reported by Eric Blake.
11829
11830 2007-07-06  Eric Blake  <ebb9@byu.net>
11831
11832         Fix testing canonicalize on cygwin.
11833         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11834         Revert patch from 2007-06-19.
11835         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11836         canonicalize module is also in use.
11837         * tests/test-canonicalize.c: New file.
11838         * tests/test-canonicalize.sh: Likewise.
11839         * modules/canonicalize-tests: Likewise.
11840
11841 2007-07-06  Jim Meyering  <jim@meyering.net>
11842
11843         * lib/getugroups.c (getugroups): Detect getgrent failure.
11844         Adjust comment to reflect reality: this function may return -1.
11845
11846 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11847
11848         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11849         the new TP address.
11850         (usage): Fix typo
11851         (gnulib_mk): New variable.
11852
11853 2007-07-05  Jim Meyering  <jim@meyering.net>
11854
11855         Don't let endgrent clobber errno, no matter how improbable.
11856         * lib/getugroups.c (getugroups): Save and restore errno around
11857         endgrent call.
11858
11859         Close the group DB even when failing with 2^31 or more members.
11860         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11861
11862 2007-07-04  Jim Meyering  <jim@meyering.net>
11863
11864         * lib/getugroups.h: New file.
11865         * lib/getugroups.c: Include "getugroups.h".
11866         Remove uses of "register" keyword.
11867         Move local variable, "cp", down into scope where used.
11868         Give "username" parameter the "const" attribute.
11869         * modules/getugroups (Files): Add lib/getugroups.h
11870
11871 2007-07-04  Karl Berry  <karl@gnu.org>
11872
11873         * MODULES.html.sh (func_all_modules): Complete rename of
11874         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11875
11876 2007-07-02  Bruno Haible  <bruno@clisp.org>
11877
11878         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11879         mode, when inttypes.h comes from gnulib.
11880         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11881
11882 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11883
11884         * NEWS: Mention lgpl module name change.
11885
11886         * modules/lgpl-2.1: Renamed from lgpl.
11887
11888         * NEWS: Mention gpl module name change.
11889
11890         * modules/gpl-3.0: New file, based on gpl-2.0.
11891
11892         * modules/gpl-2.0: Renamed from gpl.
11893
11894         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11895         doc/gpl-2.0.texi.
11896
11897 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11898
11899         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11900         #define __STDC_LIMIT_MACROS temporarily while including
11901         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11902         Problem reported by Joel E. Denny in
11903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11904
11905 2007-07-01  Bruno Haible  <bruno@clisp.org>
11906
11907         * lib/unistdio.h: New file.
11908         * lib/unistdio/u-asnprintf.h: New file.
11909         * lib/unistdio/u-asprintf.h: New file.
11910         * lib/unistdio/u-printf-args.c: New file.
11911         * lib/unistdio/u-printf-args.h: New file.
11912         * lib/unistdio/u-printf-parse.h: New file.
11913         * lib/unistdio/u-snprintf.h: New file.
11914         * lib/unistdio/u-sprintf.h: New file.
11915         * lib/unistdio/u-vasprintf.h: New file.
11916         * lib/unistdio/u-vsnprintf.h: New file.
11917         * lib/unistdio/u-vsprintf.h: New file.
11918         * lib/unistdio/ulc-asnprintf.c: New file.
11919         * lib/unistdio/ulc-asprintf.c: New file.
11920         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11921         * lib/unistdio/ulc-printf-parse.c: New file.
11922         * lib/unistdio/ulc-snprintf.c: New file.
11923         * lib/unistdio/ulc-sprintf.c: New file.
11924         * lib/unistdio/ulc-vasnprintf.c: New file.
11925         * lib/unistdio/ulc-vasprintf.c: New file.
11926         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11927         * lib/unistdio/ulc-vsnprintf.c: New file.
11928         * lib/unistdio/ulc-vsprintf.c: New file.
11929         * lib/unistdio/u8-asnprintf.c: New file.
11930         * lib/unistdio/u8-asprintf.c: New file.
11931         * lib/unistdio/u8-printf-parse.c: New file.
11932         * lib/unistdio/u8-snprintf.c: New file.
11933         * lib/unistdio/u8-sprintf.c: New file.
11934         * lib/unistdio/u8-vasnprintf.c: New file.
11935         * lib/unistdio/u8-vasprintf.c: New file.
11936         * lib/unistdio/u8-vsnprintf.c: New file.
11937         * lib/unistdio/u8-vsprintf.c: New file.
11938         * lib/unistdio/u8-u8-asnprintf.c: New file.
11939         * lib/unistdio/u8-u8-asprintf.c: New file.
11940         * lib/unistdio/u8-u8-snprintf.c: New file.
11941         * lib/unistdio/u8-u8-sprintf.c: New file.
11942         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11943         * lib/unistdio/u8-u8-vasprintf.c: New file.
11944         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11945         * lib/unistdio/u8-u8-vsprintf.c: New file.
11946         * lib/unistdio/u16-asnprintf.c: New file.
11947         * lib/unistdio/u16-asprintf.c: New file.
11948         * lib/unistdio/u16-printf-parse.c: New file.
11949         * lib/unistdio/u16-snprintf.c: New file.
11950         * lib/unistdio/u16-sprintf.c: New file.
11951         * lib/unistdio/u16-vasnprintf.c: New file.
11952         * lib/unistdio/u16-vasprintf.c: New file.
11953         * lib/unistdio/u16-vsnprintf.c: New file.
11954         * lib/unistdio/u16-vsprintf.c: New file.
11955         * lib/unistdio/u16-u16-asnprintf.c: New file.
11956         * lib/unistdio/u16-u16-asprintf.c: New file.
11957         * lib/unistdio/u16-u16-snprintf.c: New file.
11958         * lib/unistdio/u16-u16-sprintf.c: New file.
11959         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11960         * lib/unistdio/u16-u16-vasprintf.c: New file.
11961         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11962         * lib/unistdio/u16-u16-vsprintf.c: New file.
11963         * lib/unistdio/u32-asnprintf.c: New file.
11964         * lib/unistdio/u32-asprintf.c: New file.
11965         * lib/unistdio/u32-printf-parse.c: New file.
11966         * lib/unistdio/u32-snprintf.c: New file.
11967         * lib/unistdio/u32-sprintf.c: New file.
11968         * lib/unistdio/u32-vasnprintf.c: New file.
11969         * lib/unistdio/u32-vasprintf.c: New file.
11970         * lib/unistdio/u32-vsnprintf.c: New file.
11971         * lib/unistdio/u32-vsprintf.c: New file.
11972         * lib/unistdio/u32-u32-asnprintf.c: New file.
11973         * lib/unistdio/u32-u32-asprintf.c: New file.
11974         * lib/unistdio/u32-u32-snprintf.c: New file.
11975         * lib/unistdio/u32-u32-sprintf.c: New file.
11976         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11977         * lib/unistdio/u32-u32-vasprintf.c: New file.
11978         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11979         * lib/unistdio/u32-u32-vsprintf.c: New file.
11980         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11981         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11982         * tests/unistdio/test-ulc-printf1.h: New file.
11983         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11984         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11985         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11986         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11987         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11988         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11989         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11990         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11991         * tests/unistdio/test-u8-asnprintf1.c: New file.
11992         * tests/unistdio/test-u8-asnprintf1.h: New file.
11993         * tests/unistdio/test-u8-printf1.h: New file.
11994         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11995         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11996         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11997         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11998         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11999         * tests/unistdio/test-u8-vasprintf1.c: New file.
12000         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12001         * tests/unistdio/test-u8-vsprintf1.c: New file.
12002         * tests/unistdio/test-u16-asnprintf1.c: New file.
12003         * tests/unistdio/test-u16-asnprintf1.h: New file.
12004         * tests/unistdio/test-u16-printf1.h: New file.
12005         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12006         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12007         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12008         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12009         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12010         * tests/unistdio/test-u16-vasprintf1.c: New file.
12011         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12012         * tests/unistdio/test-u16-vsprintf1.c: New file.
12013         * tests/unistdio/test-u32-asnprintf1.c: New file.
12014         * tests/unistdio/test-u32-asnprintf1.h: New file.
12015         * tests/unistdio/test-u32-printf1.h: New file.
12016         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12017         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12018         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12019         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12020         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12021         * tests/unistdio/test-u32-vasprintf1.c: New file.
12022         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12023         * tests/unistdio/test-u32-vsprintf1.c: New file.
12024         * modules/unistdio/base: New file.
12025         * modules/unistdio/u-printf-args: New file.
12026         * modules/unistdio/ulc-asnprintf: New file.
12027         * modules/unistdio/ulc-asprintf: New file.
12028         * modules/unistdio/ulc-fprintf: New file.
12029         * modules/unistdio/ulc-printf-parse: New file.
12030         * modules/unistdio/ulc-snprintf: New file.
12031         * modules/unistdio/ulc-sprintf: New file.
12032         * modules/unistdio/ulc-vasnprintf: New file.
12033         * modules/unistdio/ulc-vasprintf: New file.
12034         * modules/unistdio/ulc-vfprintf: New file.
12035         * modules/unistdio/ulc-vsnprintf: New file.
12036         * modules/unistdio/ulc-vsprintf: New file.
12037         * modules/unistdio/u8-asnprintf: New file.
12038         * modules/unistdio/u8-asprintf: New file.
12039         * modules/unistdio/u8-printf-parse: New file.
12040         * modules/unistdio/u8-snprintf: New file.
12041         * modules/unistdio/u8-sprintf: New file.
12042         * modules/unistdio/u8-vasnprintf: New file.
12043         * modules/unistdio/u8-vasprintf: New file.
12044         * modules/unistdio/u8-vsnprintf: New file.
12045         * modules/unistdio/u8-vsprintf: New file.
12046         * modules/unistdio/u8-u8-asnprintf: New file.
12047         * modules/unistdio/u8-u8-asprintf: New file.
12048         * modules/unistdio/u8-u8-snprintf: New file.
12049         * modules/unistdio/u8-u8-sprintf: New file.
12050         * modules/unistdio/u8-u8-vasnprintf: New file.
12051         * modules/unistdio/u8-u8-vasprintf: New file.
12052         * modules/unistdio/u8-u8-vsnprintf: New file.
12053         * modules/unistdio/u8-u8-vsprintf: New file.
12054         * modules/unistdio/u16-asnprintf: New file.
12055         * modules/unistdio/u16-asprintf: New file.
12056         * modules/unistdio/u16-printf-parse: New file.
12057         * modules/unistdio/u16-snprintf: New file.
12058         * modules/unistdio/u16-sprintf: New file.
12059         * modules/unistdio/u16-vasnprintf: New file.
12060         * modules/unistdio/u16-vasprintf: New file.
12061         * modules/unistdio/u16-vsnprintf: New file.
12062         * modules/unistdio/u16-vsprintf: New file.
12063         * modules/unistdio/u16-u16-asnprintf: New file.
12064         * modules/unistdio/u16-u16-asprintf: New file.
12065         * modules/unistdio/u16-u16-snprintf: New file.
12066         * modules/unistdio/u16-u16-sprintf: New file.
12067         * modules/unistdio/u16-u16-vasnprintf: New file.
12068         * modules/unistdio/u16-u16-vasprintf: New file.
12069         * modules/unistdio/u16-u16-vsnprintf: New file.
12070         * modules/unistdio/u16-u16-vsprintf: New file.
12071         * modules/unistdio/u32-asnprintf: New file.
12072         * modules/unistdio/u32-asprintf: New file.
12073         * modules/unistdio/u32-printf-parse: New file.
12074         * modules/unistdio/u32-snprintf: New file.
12075         * modules/unistdio/u32-sprintf: New file.
12076         * modules/unistdio/u32-vasnprintf: New file.
12077         * modules/unistdio/u32-vasprintf: New file.
12078         * modules/unistdio/u32-vsnprintf: New file.
12079         * modules/unistdio/u32-vsprintf: New file.
12080         * modules/unistdio/u32-u32-asnprintf: New file.
12081         * modules/unistdio/u32-u32-asprintf: New file.
12082         * modules/unistdio/u32-u32-snprintf: New file.
12083         * modules/unistdio/u32-u32-sprintf: New file.
12084         * modules/unistdio/u32-u32-vasnprintf: New file.
12085         * modules/unistdio/u32-u32-vasprintf: New file.
12086         * modules/unistdio/u32-u32-vsnprintf: New file.
12087         * modules/unistdio/u32-u32-vsprintf: New file.
12088         * modules/unistdio/ulc-asnprintf-tests: New file.
12089         * modules/unistdio/ulc-vasnprintf-tests: New file.
12090         * modules/unistdio/ulc-vasprintf-tests: New file.
12091         * modules/unistdio/ulc-vsnprintf-tests: New file.
12092         * modules/unistdio/ulc-vsprintf-tests: New file.
12093         * modules/unistdio/u8-asnprintf-tests: New file.
12094         * modules/unistdio/u8-vasnprintf-tests: New file.
12095         * modules/unistdio/u8-vasprintf-tests: New file.
12096         * modules/unistdio/u8-vsnprintf-tests: New file.
12097         * modules/unistdio/u8-vsprintf-tests: New file.
12098         * modules/unistdio/u16-asnprintf-tests: New file.
12099         * modules/unistdio/u16-vasnprintf-tests: New file.
12100         * modules/unistdio/u16-vasprintf-tests: New file.
12101         * modules/unistdio/u16-vsnprintf-tests: New file.
12102         * modules/unistdio/u16-vsprintf-tests: New file.
12103         * modules/unistdio/u32-asnprintf-tests: New file.
12104         * modules/unistdio/u32-vasnprintf-tests: New file.
12105         * modules/unistdio/u32-vasprintf-tests: New file.
12106         * modules/unistdio/u32-vsnprintf-tests: New file.
12107         * modules/unistdio/u32-vsprintf-tests: New file.
12108         * MODULES.html.sh (Unicode string functions): Add the new modules.
12109
12110 2007-07-01  Bruno Haible  <bruno@clisp.org>
12111
12112         * lib/sprintf.c (sprintf): Limit the available length estimation,
12113         to avoid address wraparound.
12114         * lib/vsprintf.c (vsprintf): Likewise.
12115         * modules/sprintf-posix (Dependencies): Add stdint.
12116         * modules/vsprintf-posix (Dependencies): Likewise.
12117
12118 2007-07-01  Bruno Haible  <bruno@clisp.org>
12119
12120         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12121         Windows PATH as well. Conservative double-quoting. Comments.
12122
12123 2007-07-01  Bruno Haible  <bruno@clisp.org>
12124             Eric Blake  <ebb9@byu.net>
12125             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12126
12127         * gnulib-tool (self_abspathname): Fix algorithm to cope with
12128         empty components in $PATH, denoting '.'.
12129
12130 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12131
12132         * gnulib-tool: Fix indentation.
12133         (func_create_megatestdir): Likewise.
12134         Report by Bruno Haible.
12135
12136 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12137
12138         Sync from Automake.
12139         * build-aux/gnupload: Fix shell portability issues with for loops.
12140         Report by Karl Berry.
12141
12142 2007-06-29  Simon Josefsson  <simon@josefsson.org>
12143
12144         * build-aux/maint.mk (POURL): Use translationproject.org.
12145
12146 2007-06-27  Simon Josefsson  <simon@josefsson.org>
12147             Bruno Haible  <bruno@clisp.org>
12148
12149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12150         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12151         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12152         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12153         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12154
12155 2007-06-27  Bruno Haible  <bruno@clisp.org>
12156
12157         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12158         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12159
12160 2007-06-26  Karl Berry  <karl@gnu.org>
12161
12162         * MODULES.html.sh: remove xreadlink-with-size.
12163
12164 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12165
12166         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12167         method that I hope also handles the double-include problem noted
12168         by Bruno Haible in
12169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12170
12171 2007-06-23  Bruno Haible  <bruno@clisp.org>
12172
12173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12174         Don't let the 'mostlyclean' target fail if the last subdirectory could
12175         not be removed.
12176         Reported by Karl Berry.
12177
12178 2007-06-23  Bruno Haible  <bruno@clisp.org>
12179
12180         * gnulib-tool (echo): Add a speedier workaround for ksh.
12181         * tests/test-echo.sh: Likewise.
12182
12183 2007-06-23  Bruno Haible  <bruno@clisp.org>
12184
12185         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12186         * tests/test-echo.sh: Likewise.
12187
12188 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12189
12190         * gnulib-tool (IFS): Initialize early, so we don't set it to
12191         empty later.
12192         (self_abspathname): Rewrite algorithm to set it, reindent.
12193         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12194         (func_create_megatestdir): Merge some sed scripts.
12195
12196 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12197
12198         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12199         exposed by Sun Studio 11 cc on Solaris 8.
12200
12201 2007-06-22  Bruno Haible  <bruno@clisp.org>
12202
12203         * gnulib-tool (echo): Ensure the echo primitive does not interpret
12204         backslashes.
12205         * tests/test-echo.sh: New file.
12206
12207 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12208
12209         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12210         simplify `sed_replace_build_aux' scripts, they are portable but
12211         echoing them with `echo' is not.
12212         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12213
12214 2007-06-21  Karl Berry  <karl@gnu.org>
12215
12216         * config/srclist.txt: guess we can't handle the licenses via
12217         srclist at the moment.
12218
12219 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12220
12221         * MODULES.html.sh: Add include_next.
12222         * modules/include_next: New file.
12223
12224 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12225
12226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12227         INCLUDE_NEXT.
12228         (gl_CHECK_NEXT_HEADERS): New macro.
12229         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12230         the obsolescent gl_ABSOLUTE_HEADER.
12231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12232         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12233         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12234         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12235         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12236         * m4/math_h.m4 (gl_MATH_H): Likewise.
12237         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12238         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12239         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12240         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12241         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12242         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12243         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12248         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12249         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12250         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12251         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12252         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12253         * m4/inttypes.m4 (gl_INTTYPES_H): Define
12254         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12255         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12256         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12257         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12258         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12259         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12260         * lib/float_.h: Likewise.
12261         * lib/inttypes_.h: Likewise.
12262         * lib/math_.h: Likewise.
12263         * lib/search_.h: Likewise.
12264         * lib/signal_.h: Likewise.
12265         * lib/stdint_.h: Likewise.
12266         * lib/stdio_.h: Likewise.
12267         * lib/stdlib_.h: Likewise.
12268         * lib/string_.h: Likewise.
12269         * lib/sys_stat_.h: Likewise.
12270         * lib/sys_time_.h: Likewise.
12271         * lib/time_.h: Likewise.
12272         * lib/unistd_.h: Likewise.
12273         * lib/wchar_.h: Likewise.
12274         * lib/wctype_.h: Likewise.
12275         * lib/dirent_.h: Likewise.
12276         * lib/iconv_.h: Likewise.
12277         * lib/locale_.h: Likewise.
12278         * lib/netinet_in_.h: Likewise.
12279         * lib/sys_select_.h: Likewise.
12280         * lib/sys_socket_.h: Likewise.
12281         * lib/sysexits_.h: Likewise.
12282         * modules/fcntl (Depends-on): Depend on include_next, not
12283         absolute_header.
12284         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12285         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12286         * modules/fchdir: Likewise.
12287         * modules/float: Likewise.
12288         * modules/iconv_open: Likewise.
12289         * modules/inttypes: Likewise.
12290         * modules/locale: Likewise.
12291         * modules/math: Likewise.
12292         * modules/netinet_in: Likewise.
12293         * modules/search: Likewise.
12294         * modules/signal: Likewise.
12295         * modules/stdint: Likewise.
12296         * modules/stdio: Likewise.
12297         * modules/stdlib: Likewise.
12298         * modules/string: Likewise.
12299         * modules/sys_select: Likewise.
12300         * modules/sys_socket: Likewise.
12301         * modules/sys_stat: Likewise.
12302         * modules/sys_time: Likewise.
12303         * modules/sysexits: Likewise.
12304         * modules/time: Likewise.
12305         * modules/unistd: Likewise.
12306         * modules/wchar: Likewise.
12307         * modules/wctype: Likewise.
12308         * modules/sys_stat: Change maintainer to "all".
12309         * modules/unistd: Likewise.
12310
12311 2007-06-20  Karl Berry  <karl@gnu.org>
12312
12313         * config/srclist.txt: track www changes in license files.
12314
12315 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
12316
12317         * build-aux/bootstrap: Remove stray dot.
12318         Make sure build_aux settings are honored when linking
12319         gnulib_extra_files.
12320
12321 2007-06-19  Eric Blake  <ebb9@byu.net>
12322
12323         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12324         Allow compilation on cygwin.
12325
12326 2007-06-19  Jim Meyering  <jim@meyering.net>
12327
12328         xreadlink-with-size: Remove module.  No longer used.
12329         Ex-callers now use xreadlink or mreadlink-with-size.
12330         * modules/xreadlink-with-size: Remove module.
12331         * lib/xreadlink-with-size.c: Remove file.
12332         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
12333         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
12334         just before the function definition *is* accurate.
12335
12336         Eliminate one way canonicalize_filename_mode could exit.
12337         * lib/canonicalize.c (canonicalize_filename_mode):
12338         Use mreadlink_with_size, not xreadlink_with_size.
12339
12340 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12341
12342         Detect porting problems to FreeBSD/arm, which has time_t wider than
12343         long int.  Original problem reported for GNU diff by Xin Li in
12344         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
12345         * modules/getdate (Depends-on): Add intprops, verify.
12346         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
12347         is an integer type no wider than long int.
12348
12349 2007-06-18  Jim Meyering  <jim@meyering.net>
12350
12351         New module: mreadlink-with-size.
12352         * MODULES.html.sh: Add mreadlink-with-size.
12353         * modules/mreadlink-with-size: New module
12354         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
12355         not xreadlink-with-size.
12356         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
12357
12358 2007-06-16  Bruno Haible  <bruno@clisp.org>
12359
12360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
12361         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
12362         Reported by Gary V. Vaughan <gary@gnu.org>.
12363
12364 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12365
12366         Revamp lchown so that it lives in unistd.h where it belongs.
12367         * lib/lchown.h: Remove.
12368         * lib/dirchownmod.c: Don't include lib/lchown.h.
12369         * lib/fchownat.c: Likewise.
12370         * lib/openat.c: Likewise.
12371         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12372         does not follow symlinks.
12373         (EOPNOTSUPP): Define if not defined.
12374         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12375         is defined to 0.
12376         (lchown): New decl.
12377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12378         Do not check for lchown decl.
12379         Set REPLACE_LCHOWN.
12380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12381         REPLACE_LCHOWN.
12382         * modules/chown: Make it clear it follows symlinks.
12383         * modules/lchown: Make it clear it doesn't follow symlinks.
12384         (Files): Remove lib/lchown.h
12385         (Depends-on): Add unistd.
12386         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12387         (Include): Include <unistd.h>, not "lchown.h".
12388         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12389         REPLACE_LCHOWN.
12390
12391 2007-06-15  Jim Meyering  <jim@meyering.net>
12392
12393         Change license (GPL to LGPL) of fsusage and dependents.
12394         * modules/fsusage (License): Change to LGPL.
12395         * modules/full-read (License): Likewise.
12396         * modules/full-write (License): Likewise.
12397         * modules/safe-read (License): Likewise.
12398         * modules/safe-write (License): Likewise.
12399
12400 2007-06-14  Ben Pfaff  <blp@gnu.org>
12401
12402         Missing part of allocsa -> malloca transition.
12403         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12404         gl_MALLOCA.
12405
12406 2007-06-12  Bruno Haible  <bruno@clisp.org>
12407
12408         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12409         to ia64, x86_64, i386.
12410         Reported by Eric Blake.
12411
12412 2007-06-12  Bruno Haible  <bruno@clisp.org>
12413
12414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12415         cross-compiling to x86_64.
12416
12417 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12418
12419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
12420         glitch reported by Ralf Wildenhues in
12421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
12422
12423         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
12424         Vin Shelton.
12425
12426 2007-06-11  Bruno Haible  <bruno@clisp.org>
12427
12428         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
12429         replacement string.
12430         Reported by Eric Blake.
12431
12432 2007-06-10  Bruno Haible  <bruno@clisp.org>
12433
12434         Prepare vasnprintf code for use with Unicode strings.
12435         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
12436         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
12437         TYPE_U32_STRING.
12438         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
12439         a_u32_string variants.
12440         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12441         * lib/printf-args.c: Don't include config.h and the specification
12442         header if PRINTF_FETCHARGS is already defined.
12443         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12444         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12445         TYPE_U16_STRING, TYPE_U32_STRING.
12446         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12447         u16_directive, u16_directives, u32_directive, u32_directives): New
12448         types.
12449         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12450         New declarations.
12451         * lib/printf-parse.c: Don't include config.h and the specification
12452         header if PRINTF_PARSE is already defined. Eliminate the set of
12453         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12454         them now. Include c-ctype.h.
12455         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12456         directive and CHAR_T_ONLY_ASCII.
12457         * lib/vasnprintf.c: Don't include config.h and the specification header
12458         if VASNPRINTF is already defined.
12459         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12460         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12461         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12462         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12463         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12464         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12465         code accordingly.
12466         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12467         pad_ourselves also in this case, with the 'c' and 's' directives, and
12468         with a different notion of "width".
12469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12470
12471 2007-06-10  Bruno Haible  <bruno@clisp.org>
12472
12473         * modules/unistr/u32-mbsnlen: New file.
12474         * lib/unistr/u32-mbsnlen.c: New file.
12475
12476         * modules/unistr/u16-mbsnlen: New file.
12477         * lib/unistr/u16-mbsnlen.c: New file.
12478
12479         * modules/unistr/u8-mbsnlen: New file.
12480         * lib/unistr/u8-mbsnlen.c: New file.
12481
12482         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12483         declarations.
12484
12485 2007-06-10  Bruno Haible  <bruno@clisp.org>
12486
12487         * lib/string_.h (mbsnlen): New declaration.
12488         * lib/mbsnlen.c: New file.
12489         * m4/mbsnlen.m4: New file.
12490         * modules/mbsnlen: New file.
12491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12492         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12493         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12494
12495 2007-06-10  Bruno Haible  <bruno@clisp.org>
12496
12497         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12498
12499 2007-06-10  Bruno Haible  <bruno@clisp.org>
12500
12501         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12502         * lib/mbuiter.h: Likewise.
12503
12504 2007-06-10  Bruno Haible  <bruno@clisp.org>
12505
12506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12507         declaration.
12508
12509 2007-06-10  Karl Berry  <karl@gnu.org>
12510
12511         * config/srclist.txt: remove gettext entries, Bruno prefers
12512         to update individually.
12513
12514 2007-06-10  Bruno Haible  <bruno@clisp.org>
12515
12516         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12517         'maxlen'. Ensure only length + width bytes are allocated, not
12518         length + 1 + width.
12519
12520 2007-06-09  Bruno Haible  <bruno@clisp.org>
12521
12522         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12523         (CHAR_T): Remove macro.
12524         (VASNPRINTF): Update.
12525
12526 2007-06-09  Bruno Haible  <bruno@clisp.org>
12527
12528         * MODULES.html.sh (Unicode string functions): Add the new modules.
12529
12530         * modules/uniconv/u32-conv-to-enc: New file.
12531         * lib/uniconv/u32-conv-to-enc.c: New file.
12532         * modules/uniconv/u32-conv-to-enc-tests: New file.
12533         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12534
12535         * modules/uniconv/u16-conv-to-enc: New file.
12536         * lib/uniconv/u16-conv-to-enc.c: New file.
12537         * lib/uniconv/u-conv-to-enc.h: New file.
12538         * modules/uniconv/u16-conv-to-enc-tests: New file.
12539         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12540
12541         * modules/uniconv/u8-conv-to-enc: New file.
12542         * lib/uniconv/u8-conv-to-enc.c: New file.
12543         * modules/uniconv/u8-conv-to-enc-tests: New file.
12544         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12545
12546         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12547         u32_conv_to_encoding): New declarations.
12548
12549 2007-06-09  Bruno Haible  <bruno@clisp.org>
12550
12551         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12552
12553 2007-06-09  Bruno Haible  <bruno@clisp.org>
12554
12555         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12556         * modules/malloca: Renamed from modules/allocsa, updated.
12557         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12558         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12559         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12560         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12561         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12562         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12563         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12564         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12565         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12566         * modules/c-strcasestr (Depends-on): Update.
12567         * lib/c-strcasestr.c: Update.
12568         * modules/c-strstr (Depends-on): Update.
12569         * lib/c-strstr.c: Update.
12570         * modules/canonicalize-lgpl (Depends-on): Update.
12571         * lib/canonicalize-lgpl.c: Update.
12572         * modules/clean-temp (Depends-on): Update.
12573         * lib/clean-temp.c: Update.
12574         * modules/csharpcomp (Depends-on): Update.
12575         * lib/csharpcomp.c: Update.
12576         * modules/csharpexec (Depends-on): Update.
12577         * lib/csharpexec.c: Update.
12578         * modules/javacomp (Depends-on): Update.
12579         * lib/javacomp.c: Update.
12580         * modules/javaexec (Depends-on): Update.
12581         * lib/javaexec.c: Update.
12582         * modules/mbscasestr (Depends-on): Update.
12583         * lib/mbscasestr.c: Update.
12584         * modules/mbsstr (Depends-on): Update.
12585         * lib/mbsstr.c: Update.
12586         * modules/setenv (Depends-on): Update.
12587         * lib/setenv.c: Update.
12588         * modules/strcasestr (Depends-on): Update.
12589         * lib/strcasestr.c: Update.
12590         * modules/striconveha (Depends-on): Update.
12591         * lib/striconveha.c: Update.
12592         * modules/relocatable-prog-wrapper (Files): Update.
12593         * lib/relocwrapper.c: Update.
12594         * build-aux/install-reloc: Update.
12595         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12596
12597 2007-06-08  Bruno Haible  <bruno@clisp.org>
12598
12599         Port to uClibc.
12600         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12601         * lib/fpurge.c (fpurge): Likewise.
12602         * lib/freading.c (freading): Likewise.
12603         * lib/fseeko.c (rpl_fseeko): Likewise.
12604         * lib/fseterr.c (fseterr): Likewise.
12605         * lib/fwriting.c (fwriting): Likewise.
12606         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12607
12608 2007-06-08  Bruno Haible  <bruno@clisp.org>
12609
12610         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12611         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12612         * modules/gettext (Files): Add m4/intlmacosx.m4.
12613
12614 2007-06-07  Bruno Haible  <bruno@clisp.org>
12615
12616         * modules/localename-tests: New file.
12617         * tests/test-localename.c: New file.
12618
12619         New module 'localename'.
12620         * lib/localename.h: New file.
12621         * lib/localename.c: New file, from GNU gettext.
12622         * m4/localename.m4: New file.
12623         * modules/localename: New file.
12624
12625 2007-06-07  Bruno Haible  <bruno@clisp.org>
12626
12627         Work around the lack of <wchar.h> on some builds of uClibc.
12628         * doc/headers/wchar.texi: Update.
12629         * lib/wchar_.h: Include <wchar.h> only if it exists.
12630         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12631         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12632         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12633         doesn't exist.
12634         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12635         * modules/mbfile (Depends-on): Add wchar.
12636         * modules/mbiter (Depends-on): Likewise.
12637         * modules/mbuiter (Depends-on): Likewise.
12638         Reported by Simon Josefsson.
12639
12640 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12641
12642         Work around problem reported by Steven M. Schweda in
12643         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12644         Tru64 5.1B with the Compaq compiler environment installed declares
12645         an 'isblank' function but does not define it in the C library.
12646         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12647         * lib/regex_internal.h (isblank): Likewise.
12648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12649         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12650
12651 2007-06-05  Bruno Haible  <bruno@clisp.org>
12652
12653         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12654         ia64.
12655         * modules/printf-safe: New file.
12656         * modules/fprintf-posix (Depends-on): Add printf-safe.
12657         * modules/printf-posix (Depends-on): Likewise.
12658         * modules/snprintf-posix (Depends-on): Likewise.
12659         * modules/sprintf-posix (Depends-on): Likewise.
12660         * modules/vasnprintf-posix (Depends-on): Likewise.
12661         * modules/vasprintf-posix (Depends-on): Likewise.
12662         * modules/vfprintf-posix (Depends-on): Likewise.
12663         * modules/vprintf-posix (Depends-on): Likewise.
12664         * modules/vsnprintf-posix (Depends-on): Likewise.
12665         * modules/vsprintf-posix (Depends-on): Likewise.
12666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12667         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12668         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12669         "no" on i386, x86_64, ia64.
12670         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12671         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12672         on i386, x86_64, ia64.
12673         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12674         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12675         on i386, x86_64, ia64.
12676         * tests/test-vasnprintf-posix.c: Include float.h.
12677         (LDBL80_WORDS): New macro.
12678         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12679         on i386, x86_64, ia64.
12680         * tests/test-vasprintf-posix.c: Include float.h.
12681         (LDBL80_WORDS): New macro.
12682         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12683         on i386, x86_64, ia64.
12684         * tests/test-snprintf-posix.c: Include float.h.
12685         * tests/test-sprintf-posix.c: Likewise.
12686         * tests/test-vsnprintf-posix.c: Likewise.
12687         * tests/test-vsprintf-posix.c: Likewise.
12688
12689 2007-06-05  Bruno Haible  <bruno@clisp.org>
12690
12691         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12692         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12693         non-IEEE numbers on i386, x86_64, ia64.
12694         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12695         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12696         * tests/test-isnanl.h: Include float.h.
12697         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12698
12699 2007-06-05  Bruno Haible  <bruno@clisp.org>
12700
12701         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12702         also the %a / %A. Handle the %a / %A code before this extra handling.
12703
12704 2007-06-05  Bruno Haible  <bruno@clisp.org>
12705
12706         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12707         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12708
12709 2007-06-05  Bruno Haible  <bruno@clisp.org>
12710
12711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12712         typo in variable name.
12713
12714 2007-06-05  Eric Blake  <ebb9@byu.net>
12715
12716         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12717         Reported by Simon Josefsson.
12718
12719 2007-06-04  Bruno Haible  <bruno@clisp.org>
12720
12721         Avoid test failures on some PowerPC platforms.
12722         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12723         Define differently for PowerPC.
12724         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12725         Reported by Gary V. Vaughan <gary@gnu.org>.
12726
12727 2007-06-02  Bruno Haible  <bruno@clisp.org>
12728
12729         Fix test-stdint failure on FreeBSD/ia64.
12730         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12731         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12732         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12733         * doc/headers/stdint.texi: Update.
12734
12735 2007-06-01  Bruno Haible  <bruno@clisp.org>
12736
12737         * tests/test-binary-io.c (main): Pass a third argument to open().
12738         Reported by Gary V. Vaughan <gary@gnu.org>.
12739
12740 2007-06-01  Bruno Haible  <bruno@clisp.org>
12741
12742         * doc/functions/frexpl.texi: Update for mingw.
12743
12744 2007-06-01  Bruno Haible  <bruno@clisp.org>
12745
12746         * tests/test-lseek.c (main): Disable test of errno for invalid third
12747         argument.
12748         * doc/functions/lseek.texi: Update.
12749         Reported by Gary V. Vaughan <gary@gnu.org>.
12750
12751 2007-05-28  Bruno Haible  <bruno@clisp.org>
12752
12753         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12754
12755 2007-05-31  Eric Blake  <ebb9@byu.net>
12756
12757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12758         cross compiling.
12759
12760 2007-05-30  Eric Blake  <ebb9@byu.net>
12761         and Bruno Haible  <bruno@clisp.org>
12762
12763         Work around mingw test failures exposed by m4-1.4.9b.
12764         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12765         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12766         moment.
12767
12768 2007-05-30  Bruno Haible  <bruno@clisp.org>
12769
12770         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12771         assuming that they are closed. Needed on HP-UX 11.
12772
12773 2007-05-29  Bruno Haible  <bruno@clisp.org>
12774
12775         Fix a problem with #include_next.
12776         * lib/dirent_.h: Split the double-inclusion guard.
12777         * lib/fcntl_.h: Likewise.
12778         * lib/float_.h: Likewise.
12779         * lib/iconv_.h: Likewise.
12780         * lib/inttypes_.h: Likewise.
12781         * lib/locale_.h: Likewise.
12782         * lib/math_.h: Likewise.
12783         * lib/netinet_in_.h: Likewise.
12784         * lib/search_.h: Likewise.
12785         * lib/signal_.h: Likewise.
12786         * lib/stdint_.h: Likewise.
12787         * lib/stdio_.h: Likewise.
12788         * lib/stdlib_.h: Likewise.
12789         * lib/string_.h: Likewise.
12790         * lib/sys_select_.h: Likewise.
12791         * lib/sys_socket_.h: Likewise.
12792         * lib/sys_stat_.h: Likewise.
12793         * lib/sys_time_.h: Likewise.
12794         * lib/sysexits_.h: Likewise.
12795         * lib/time_.h: Likewise.
12796         * lib/unistd_.h: Likewise.
12797         * lib/wchar_.h: Likewise.
12798         * lib/wctype_.h: Likewise.
12799
12800 2007-05-29  Bruno Haible  <bruno@clisp.org>
12801
12802         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12803         for the moment.
12804
12805 2007-05-29  Bruno Haible  <bruno@clisp.org>
12806
12807         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12808         invocation.
12809         Reported by Eric Blake.
12810
12811 2007-05-29  Bruno Haible  <bruno@clisp.org>
12812
12813         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12814         compiling case.
12815
12816 2007-05-29  Eric Blake  <ebb9@byu.net>
12817             Bruno Haible  <bruno@clisp.org>
12818
12819         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12820         cross compiles.
12821
12822 2007-05-28  Eric Blake  <ebb9@byu.net>
12823
12824         * modules/closein-tests (test_closein_LDADD): Support test on
12825         cygwin with libtool.
12826
12827 2007-05-28  Bruno Haible  <bruno@clisp.org>
12828
12829         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12830         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12831         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12832         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12833         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12834         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12835         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12836         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12837         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12838
12839 2007-05-28  Eric Blake  <ebb9@byu.net>
12840
12841         Unconditionally include <config.h> in unit tests.
12842         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12843         * tests/test-allocsa.c, tests/test-arcfour.c,
12844         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12845         tests/test-array_list.c, tests/test-array_oset.c,
12846         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12847         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12848         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12849         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12850         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12851         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12852         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12853         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12854         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12855         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12856         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12857         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12858         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12859         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12860         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12861         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12862         test-md5.c, test-memmem.c, test-printf-posix.c,
12863         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12864         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12865         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12866         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12867         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12868         test-vasnprintf-posix2.c, test-vasnprintf.c,
12869         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12870         test-vfprintf-posix.c, test-vprintf-posix.c,
12871         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12872         test-xvasprintf.c: Likewise.
12873
12874 2007-05-28  Bruno Haible  <bruno@clisp.org>
12875
12876         * gnulib-tool (func_import): Remember the --with-tests command-line
12877         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12878         Reported by Eric Blake.
12879
12880 2007-05-28  Bruno Haible  <bruno@clisp.org>
12881
12882         * modules/ftell-tests: New file.
12883         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12884         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12885
12886         * lib/ftell.c: New file.
12887         * modules/ftell: New file.
12888         * m4/ftell.m4: New file.
12889         * doc/functions/ftell.texi: Update.
12890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12891         REPLACE_FTELL.
12892         * lib/stdio_.h (rpl_ftell): New declaration.
12893         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12894         REPLACE_FTELL.
12895
12896 2007-05-28  Eric Blake  <ebb9@byu.net>
12897
12898         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12899
12900 2007-05-28  Bruno Haible  <bruno@clisp.org>
12901
12902         * modules/fseek-tests: New file.
12903         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12904         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12905
12906         * lib/fseek.c: New file.
12907         * modules/fseek: New file.
12908         * m4/fseek.m4: New file.
12909         * doc/functions/fseek.texi: Update.
12910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12911         REPLACE_FSEEK.
12912         * lib/stdio_.h (rpl_fseek): New declaration.
12913         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12914         REPLACE_FSEEK.
12915
12916 2007-05-28  Bruno Haible  <bruno@clisp.org>
12917
12918         * lib/stdio_.h (fflush): More comments.
12919
12920 2007-05-28  Bruno Haible  <bruno@clisp.org>
12921
12922         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12923         runtime test.
12924
12925 2007-05-28  Eric Blake  <ebb9@byu.net>
12926
12927         Improve lseek module.
12928         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12929         * lib/unistd_.h (lseek): Scale back link warning message.
12930         * tests/test-lseek.c: Beef up test.
12931         * tests/test-lseek.sh: Exercise more facets of lseek.
12932         Reported by Bruno Haible.
12933
12934 2007-05-28  Bruno Haible  <bruno@clisp.org>
12935
12936         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12937         to define.
12938
12939 2007-05-27  Bruno Haible  <bruno@clisp.org>
12940
12941         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12942
12943 2007-05-27  Bruno Haible  <bruno@clisp.org>
12944
12945         * modules/openmp: New file.
12946         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12947         Noah Misch.
12948
12949 2007-05-26  Bruno Haible  <bruno@clisp.org>
12950
12951         * modules/chdir-long (Depends-on): Add fchdir.
12952         * modules/chdir-safer (Depends-on): Likewise.
12953         * modules/fts (Depends-on): Likewise.
12954         * modules/fts-lgpl (Depends-on): Likewise.
12955         * modules/openat (Depends-on): Likewise.
12956         * modules/savewd (Depends-on): Likewise.
12957
12958 2007-05-24  Eric Blake  <ebb9@byu.net>
12959
12960         Fix lseek on mingw.
12961         * modules/lseek: New module.
12962         * m4/lseek.m4: New file.
12963         * lib/lseek.c: New file.
12964         * modules/lseek-tests: New file.
12965         * tests/test-lseek.c: New file.
12966         * tests/test-lseek.sh: New file.
12967         * MODULES.html.sh: Document lseek module.
12968         * modules/fflush (Depends-on): Add lseek, fseeko.
12969         * modules/fseeko (Depends-on): Likewise.
12970         * modules/ftello (Depends-on): Likewise.
12971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12972         broken.
12973         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12974         broken.
12975         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12976         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12977         * lib/ftello.c (rpl_ftello): Likewise.
12978         * tests/test-fseeko.c (main): Test this.
12979         * tests/test-fseeko.sh: Likewise.
12980         * tests/test-ftello.c (main): Likewise.
12981         * tests/test-ftello.sh: Likewise.
12982         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12983         implies replacing fseek.
12984         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12985         HAVE_FTELLO.
12986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12987         * modules/unistd (Makefile.am): Likewise.
12988         * lib/unistd_.h (lseek): Declare a replacement.
12989         * doc/functions/lseek.texi (lseek): Document this fix.
12990         * doc/functions/fseek.texi (fseek): Likewise.
12991         * doc/functions/ftell.texi (ftell): Likewise.
12992
12993 2007-05-24  Bruno Haible  <bruno@clisp.org>
12994
12995         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12996         in the printed representation of a NaN.
12997         * tests/test-vasprintf-posix.c (test_function): Likewise.
12998         * tests/test-snprintf-posix.h (test_function): Likewise.
12999         * tests/test-sprintf-posix.h (test_function): Likewise.
13000         Reported by Eric Blake.
13001
13002 2007-05-23  Eric Blake  <ebb9@byu.net>
13003
13004         Fix fseeko/ftello on cygwin 1.5.24.
13005         * doc/functions/fseeko.texi (fseeko): Document the fix.
13006         * doc/functions/ftello.texi (ftello): Document the fix.
13007         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13008         * doc/functions/stdout.text (stdout): New file.
13009         * doc/functions/stderr.text (stderr): New file.
13010         * doc/gnulib.texi (Function Substitutes): Use new files.
13011         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13012         prior to 1.7.0.
13013         * tests/test-ftello.c (main): Likewise for ftello.
13014         * tests/test-fseeko.sh: New file.
13015         * tests/test-ftello.sh: New file.
13016         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13017         with seekable stdin.
13018         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13020         (gl_REPLACE_FSEEKO): New macro.
13021         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13022         * modules/fseeko (Files): Distribute fseeko.c.
13023         * modules/ftello (Files): Distribute ftello.c.
13024         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13025         mode.
13026         * lib/ftello.c (rpl_ftello): New file.
13027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13028         fseeko, ftello.
13029         (gl_STDIN_LARGE_OFFSET): New macro.
13030         * modules/stdio (Makefile.am): Perform the replacement.
13031         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13032
13033 2007-05-23  Bruno Haible  <bruno@clisp.org>
13034
13035         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13036         GNULIB_POSIXCHECK is defined.
13037
13038 2007-05-21  Bruno Haible  <bruno@clisp.org>
13039
13040         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13041         Check also the output for NaN arguments. When cross-compiling, guess
13042         no on IRIX.
13043         * lib/vasnprintf.c: Update comments.
13044         * tests/test-vasnprintf-posix.c (strisnan): New function.
13045         (test_function): Use it.
13046         * tests/test-vasprintf-posix.c (strisnan): New function.
13047         (test_function): Use it.
13048         * tests/test-snprintf-posix.h (strisnan): New function.
13049         (test_function): Use it.
13050         * tests/test-sprintf-posix.h (strisnan): New function.
13051         (test_function): Use it.
13052         Reported by Eric Blake.
13053
13054 2007-05-20  Bruno Haible  <bruno@clisp.org>
13055
13056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13057         numbers that fails on BeOS.
13058         * doc/functions/frexpl.texi: Update.
13059
13060 2007-05-20  Jim Meyering  <jim@meyering.net>
13061
13062         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13063         forced upon us by glibc-2.6.
13064
13065 2007-05-20  Bruno Haible  <bruno@clisp.org>
13066
13067         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13068         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13069         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13070         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13071         NEED_PRINTF_INFINITE.
13072         (is_infinitel): New function.
13073         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13075         gl_PREREQ_VASNPRINTF_INFINITE.
13076         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13078         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13079         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13080         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13081         gl_PREREQ_VASNPRINTF_INFINITE.
13082         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13084         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13085         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13086         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13087         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13088         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13089         * doc/functions/fprintf.texi: Update.
13090         * doc/functions/printf.texi: Update.
13091         * doc/functions/snprintf.texi: Update.
13092         * doc/functions/sprintf.texi: Update.
13093         * doc/functions/vfprintf.texi: Update.
13094         * doc/functions/vprintf.texi: Update.
13095         * doc/functions/vsnprintf.texi: Update.
13096         * doc/functions/vsprintf.texi: Update.
13097
13098 2007-05-20  Bruno Haible  <bruno@clisp.org>
13099
13100         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13101         was not found in libc.
13102         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13103
13104 2007-05-20  Bruno Haible  <bruno@clisp.org>
13105
13106         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13107         printed as "-nan" instead of "nan".
13108         * tests/test-vasprintf-posix.c (test_function): Likewise.
13109         * tests/test-snprintf-posix.h (test_function): Likewise.
13110         * tests/test-sprintf-posix.h (test_function): Likewise.
13111         Needed for HP-UX 11.
13112
13113 2007-05-20  Jim Meyering  <jim@meyering.net>
13114
13115         Fix buggy test for the fchownat-deref bug.
13116         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13117         symlink required for the run-test.  Without it, this test would
13118         always declare that fchownat doesn't work, and client code would
13119         unnecessarily use the replacement function with fixed libc.
13120         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13121         Reported by Greg Schafer.
13122
13123 2007-05-19  Bruno Haible  <bruno@clisp.org>
13124
13125         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13126         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13127         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13128         Needed for IRIX 6.5 and Solaris 2.5.1.
13129
13130 2007-05-19  Bruno Haible  <bruno@clisp.org>
13131
13132         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13133         (test_function): Skip tests involving -0.0 on platforms where
13134         -0.0 = 0.0.
13135         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13136         (test_function): Skip tests involving -0.0 on platforms where
13137         -0.0 = 0.0.
13138         * tests/test-snprintf-posix.h (have_minus_zero): New function.
13139         (test_function): Skip tests involving -0.0 on platforms where
13140         -0.0 = 0.0.
13141         * tests/test-sprintf-posix.h (have_minus_zero): New function.
13142         (test_function): Skip tests involving -0.0 on platforms where
13143         -0.0 = 0.0.
13144         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13145         tests.
13146         * tests/test-printf-posix.h (test_function): Likewise.
13147         * tests/test-printf-posix.output: Remove all -0.0 related results.
13148         Needed for IRIX 6.5.
13149
13150 2007-05-19  Bruno Haible  <bruno@clisp.org>
13151
13152         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13153         printed as "nan0x7fffffff" instead of "nan".
13154         * tests/test-vasprintf-posix.c (test_function): Likewise.
13155         * tests/test-snprintf-posix.h (test_function): Likewise.
13156         * tests/test-sprintf-posix.h (test_function): Likewise.
13157         * tests/test-fprintf-posix.h (NaN): Remove macro.
13158         (test_function): Remove all NaN related tests.
13159         * tests/test-printf-posix.h (NaN): Remove macro.
13160         (test_function): Remove all NaN related tests.
13161         * tests/test-printf-posix.output: Remove all NaN related results.
13162         Needed for IRIX 6.5.
13163
13164 2007-05-19  Bruno Haible  <bruno@clisp.org>
13165
13166         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13168
13169 2007-05-19  Bruno Haible  <bruno@clisp.org>
13170
13171         * lib/float_.h: New file.
13172         * m4/float_h.m4: New file.
13173         * modules/float: New file.
13174         * modules/isnanl (Dependencies): Add float.
13175         * modules/isnanl-nolibm (Dependencies): Likewise.
13176         * modules/mathl (Dependencies): Likewise.
13177         * modules/printf-frexpl (Dependencies): Likewise.
13178         * modules/signbit (Dependencies): Likewise.
13179         * modules/vasnprintf (Dependencies): Likewise.
13180         * doc/headers/float.texi: Update.
13181
13182 2007-05-19  Jim Meyering  <jim@meyering.net>
13183
13184         * lib/utimens.c (gl_futimens): Rename from futimens,
13185         now that glibc-2.6 declares futimens.
13186         * lib/utimens.h: Likewise.
13187
13188 2007-05-19  Bruno Haible  <bruno@clisp.org>
13189
13190         Avoid test failures on mingw.
13191         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13192         * tests/test-printf-posix.sh: Likewise.
13193         * tests/test-vfprintf-posix.sh: Likewise.
13194         * tests/test-vprintf-posix.sh: Likewise.
13195
13196 2007-05-19  Bruno Haible  <bruno@clisp.org>
13197
13198         Fix *printf result for NaN, Inf, -0.0 on mingw.
13199         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13200         * lib/vasnprintf.c: Include math.h and isnan.h.
13201         (is_infinite_or_zero): New function.
13202         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13203         values in the %f, %F, %e, %E, %g, %G directives.
13204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13205         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13206         gl_PRINTF_INFINITE and test its result. Invoke
13207         gl_PREREQ_VASNPRINTF_INFINITE.
13208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13210         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13212         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13213         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13215         * doc/functions/fprintf.texi: Update.
13216         * doc/functions/printf.texi: Update.
13217         * doc/functions/snprintf.texi: Update.
13218         * doc/functions/sprintf.texi: Update.
13219         * doc/functions/vfprintf.texi: Update.
13220         * doc/functions/vprintf.texi: Update.
13221         * doc/functions/vsnprintf.texi: Update.
13222         * doc/functions/vsprintf.texi: Update.
13223
13224 2007-05-19  Bruno Haible  <bruno@clisp.org>
13225
13226         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13227         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13228         Instead of multiplying with 10^k, set extra_zeroes to k.
13229         (scale10_round_long_double): Remove function.
13230
13231 2007-05-18  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13234         introduced on 2007-05-06.
13235
13236 2007-05-18  Bruno Haible  <bruno@clisp.org>
13237
13238         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13239         %g directives.
13240         * tests/test-vasprintf-posix.c (test_function): Likewise.
13241         * tests/test-snprintf-posix.h (test_function): Likewise.
13242         * tests/test-sprintf-posix.h (test_function): Likewise.
13243
13244 2007-05-18  Bruno Haible  <bruno@clisp.org>
13245
13246         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13247         (strmatch): New function.
13248         (test_function): Test the %f directive on numbers of various exponents.
13249         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13250         (strmatch): New function.
13251         (test_function): Test the %f directive on numbers of various exponents.
13252         * tests/test-snprintf-posix.h (strmatch): New function.
13253         (test_function): Test the %f directive on numbers of various exponents.
13254         * tests/test-sprintf-posix.h (strmatch): New function.
13255         (test_function): Test the %f directive on numbers of various exponents.
13256         * tests/test-snprintf-posix.c (SIZEOF): New macro.
13257         * tests/test-sprintf-posix.c (SIZEOF): New macro.
13258         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13259         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13260
13261 2007-05-18  Bruno Haible  <bruno@clisp.org>
13262
13263         Add support for 'long double' number output.
13264         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13265         * lib/vasnprintf.c: Include math.h and float+.h.
13266         (mp_limb_t): New type.
13267         (GMP_LIMB_BITS): New macro.
13268         (mp_twolimb_t): New type.
13269         (GMP_TWOLIMB_BITS): New macro.
13270         (mpn_t): New type.
13271         (multiply, divide, convert_to_decimal, decode_long_double,
13272         scale10_round_long_double, scale10_round_decimal_long_double,
13273         floorlog10l): New functions.
13274         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13275         for the %f, %F, %e, %E, %g, %G directives.
13276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13278         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13279         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13287         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13288         * modules/snprintf-posix (Depends-on): Likewise.
13289         * modules/sprintf-posix (Depends-on): Likewise.
13290         * modules/vasnprintf-posix (Depends-on): Likewise.
13291         * modules/vasprintf-posix (Depends-on): Likewise.
13292         * modules/vfprintf-posix (Depends-on): Likewise.
13293         * modules/vsnprintf-posix (Depends-on): Likewise.
13294         * modules/vsprintf-posix (Depends-on): Likewise.
13295         * modules/vasnprintf (Files): Add lib/float+.h.
13296         * doc/functions/fprintf.texi: Update.
13297         * doc/functions/printf.texi: Update.
13298         * doc/functions/snprintf.texi: Update.
13299         * doc/functions/sprintf.texi: Update.
13300         * doc/functions/vfprintf.texi: Update.
13301         * doc/functions/vprintf.texi: Update.
13302         * doc/functions/vsnprintf.texi: Update.
13303         * doc/functions/vsprintf.texi: Update.
13304
13305 2007-05-18  Bruno Haible  <bruno@clisp.org>
13306
13307         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13308
13309 2007-05-18  Bruno Haible  <bruno@clisp.org>
13310
13311         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13312         for printing 64-bit integers. Needed for mingw.
13313
13314 2007-05-18  Bruno Haible  <bruno@clisp.org>
13315
13316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13317         gl_FUNC_FREXPL_WORKS.
13318         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13319
13320 2007-05-18  Bruno Haible  <bruno@clisp.org>
13321
13322         * modules/frexpl-nolibm-tests: New file.
13323
13324         * modules/frexpl-nolibm: New file.
13325         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13326
13327 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13328
13329         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13330         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13331         GCC 4.2, which otherwise issues a lot of warnings.
13332         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
13333         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
13334         Likewise.
13335         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
13336         * modules/iconv_open (iconv.h): Likewise.
13337         * modules/locale (locale.h): Likewise.
13338         * modules/netinet_in (netinet/in.h): Likewise.
13339         * modules/sys_select (sys_select.h): Likewise.
13340         * modules/sys_socket (sys/socket.h): Likewise.
13341         * modules/sys_stat (sys/stat.h): Likewise.
13342         * modules/sysexits (sysexits.h): Likewise.
13343         * modules/unistd (unistd.h): Likewise.
13344
13345 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13346
13347         * modules/closein-tests (Makefile.am): Distribute
13348         `test-closein.sh'.
13349
13350 2007-05-17  Bruno Haible  <bruno@clisp.org>
13351
13352         * tests/test-printf-posix.output: Renamed from
13353         tests/test-fprintf-posix.out.
13354         * modules/fprintf-posix-tests: Update.
13355         * modules/printf-posix-tests: Update.
13356         * modules/vfprintf-posix-tests: Update.
13357         * modules/vprintf-posix-tests: Update.
13358         * tests/test-fprintf-posix.sh: Update.
13359         * tests/test-printf-posix.sh: Update.
13360         * tests/test-vfprintf-posix.sh: Update.
13361         * tests/test-vprintf-posix.sh: Update.
13362         Reported by Ralf Wildenhues.
13363
13364 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13365
13366         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13367         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13368         GCC 4.2, which otherwise issues a lot of warnings.
13369         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13370         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13371         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13372         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13373         it should no longer be needed.
13374         * lib/string_.h: Likewise.
13375         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13376         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13377         * modules/inttypes (inttypes.h): Likewise.
13378         * modules/math (math.h): Likewise.
13379         * modules/search (search.h): Likewise.
13380         * modules/signal (signal.h): Likewise.
13381         * modules/stdint (stdint.h): Likewise.
13382         * modules/stdio (stdio.h): Likewise.
13383         * modules/stdlib (stdlib.h): Likewise.
13384         * modules/string (string.h): Likewise.
13385         * modules/sys_time (sys/time.h): Likewise.
13386         * modules/time (time.h): Likewise.
13387         * modules/wchar (wchar.h): Likewise.
13388         * modules/wctype (wtype.h): Likewise.
13389
13390 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13391
13392         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13393
13394 2007-05-13  Bruno Haible  <bruno@clisp.org>
13395
13396         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13397         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13398         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13399         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13400         (gl_PREREQ_STRTOK_R): Don't require it here.
13401
13402 2007-05-13  Bruno Haible  <bruno@clisp.org>
13403
13404         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13405         when used in C++ mode.
13406
13407 2007-05-12  Bruno Haible  <bruno@clisp.org>
13408
13409         * lib/linebuffer.h: Tweak doc.
13410         * lib/linebuffer.c: Likewise.
13411
13412 2007-05-12  James Youngman  <jay@gnu.org>
13413
13414         * lib/linebuffer.c (readlinebuffer_delim): New function,
13415         like readlinebuffer, but use a caller-specified delimiter.
13416         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13417         as the delimiter.
13418         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13419
13420 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13421
13422         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
13423         * modules/openat (Files): Remove openat-die.c.
13424         (Depends-on): Add openat-die.
13425         * modules/openat-die: New module.
13426
13427 2007-05-06  Bruno Haible  <bruno@clisp.org>
13428
13429         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
13430         Update with info about Cygwin.
13431         * doc/functions/fprintf.texi: Update.
13432         * doc/functions/printf.texi: Update.
13433         * doc/functions/snprintf.texi: Update.
13434         * doc/functions/sprintf.texi: Update.
13435         * doc/functions/vfprintf.texi: Update.
13436         * doc/functions/vprintf.texi: Update.
13437         * doc/functions/vsnprintf.texi: Update.
13438         * doc/functions/vsprintf.texi: Update.
13439         Reported by Eric Blake.
13440
13441 2007-05-06  Bruno Haible  <bruno@clisp.org>
13442
13443         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13444         padding ourselves for the floating-point directives.
13445         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13448         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13449         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13457         * tests/test-snprintf-posix.h (test_function): Also check the width
13458         and some flags in the %f directive.
13459         * tests/test-sprintf-posix.h (test_function): Likewise.
13460         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13461         * tests/test-vasprintf-posix.c (test_function): Likewise.
13462         * doc/functions/fprintf.texi: Update.
13463         * doc/functions/printf.texi: Update.
13464         * doc/functions/snprintf.texi: Update.
13465         * doc/functions/sprintf.texi: Update.
13466         * doc/functions/vfprintf.texi: Update.
13467         * doc/functions/vprintf.texi: Update.
13468         * doc/functions/vsnprintf.texi: Update.
13469         * doc/functions/vsprintf.texi: Update.
13470
13471 2007-05-06  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13474         pass the ' flag character to sprintf or snprintf.
13475         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13478         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13479         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13487         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13488         flag.
13489         * tests/test-sprintf-posix.h (test_function): Likewise.
13490         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13491         * tests/test-vasprintf-posix.c (test_function): Likewise.
13492         * doc/functions/fprintf.texi: Update.
13493         * doc/functions/printf.texi: Update.
13494         * doc/functions/snprintf.texi: Update.
13495         * doc/functions/sprintf.texi: Update.
13496         * doc/functions/vfprintf.texi: Update.
13497         * doc/functions/vprintf.texi: Update.
13498         * doc/functions/vsnprintf.texi: Update.
13499         * doc/functions/vsprintf.texi: Update.
13500
13501 2007-05-01  Bruno Haible  <bruno@clisp.org>
13502
13503         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13504
13505 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13506
13507         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13508         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13509
13510 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13511
13512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13513         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13515
13516 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13517
13518         * lib/argp-help.c (struct hol_entry): New member `ord'.
13519         (HOL_ENTRY_PTRCMP): Use ord for comparison
13520         (hol_sort): Initialize ord.
13521
13522 2007-05-01  Bruno Haible  <bruno@clisp.org>
13523
13524         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13525         Reported by Eric Blake.
13526         * doc/gnulib.texi (Function Substitutes): Update.
13527
13528 2007-05-01  Bruno Haible  <bruno@clisp.org>
13529
13530         * doc/functions.texi: Remove file, now redundant through
13531         doc/functions/*.texi.
13532
13533 2007-05-01  Bruno Haible  <bruno@clisp.org>
13534
13535         * modules/argp (Depends-on): Add sleep.
13536
13537 2007-05-01  Bruno Haible  <bruno@clisp.org>
13538
13539         * modules/sleep-tests: New file.
13540         * tests/test-sleep.c: New file.
13541
13542         * modules/sleep: New file.
13543         * lib/sleep.c: New file.
13544         * m4/sleep.m4: New file.
13545         * lib/unistd_.h (sleep): New declaration.
13546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13547         HAVE_SLEEP.
13548         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13549         * doc/functions/sleep.texi: Document the sleep module.
13550
13551 2007-05-01  Bruno Haible  <bruno@clisp.org>
13552
13553         * lib/sigprocmask.h: Remove file.
13554         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13555         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13556         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13557         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13558         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13559         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13560         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13561         HAVE_SIGSET_T as a shell variable.
13562         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13563         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13564         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13565         (Depends-on): Add signal. Remove verify.
13566         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13567         (Include): Mention <signal.h> instead of sigprocmask.h.
13568         * NEWS: Mention the change.
13569         * lib/fatal-signal.c: Don't include sigprocmask.h.
13570
13571 2007-05-01  Bruno Haible  <bruno@clisp.org>
13572
13573         * modules/signal: New file.
13574         * lib/signal_.h: New file.
13575         * m4/signal_h.m4: New file.
13576
13577 2007-05-01  Bruno Haible  <bruno@clisp.org>
13578
13579         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13580         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13581         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13582         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13583
13584 2007-05-01  Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13587         configure time.
13588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13589         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13590         * modules/sys_stat (Makefile.am): Substitute their values into
13591         sys/stat.h.
13592
13593 2007-05-01  Bruno Haible  <bruno@clisp.org>
13594
13595         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13596         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13597         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13598
13599 2007-05-01  Bruno Haible  <bruno@clisp.org>
13600
13601         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13602         'assert' module here.
13603
13604 2007-05-01  Bruno Haible  <bruno@clisp.org>
13605
13606         * doc/functions/*.texi: New files.
13607         * doc/functions/google-ranking.txt: New file.
13608         * doc/gnulib.texi (Function Substitutes): New chapter.
13609         (ctime, inet_ntoa): Remove sections.
13610         * doc/ctime.texi: Remove file.
13611         * doc/inet_ntoa.texi: Remove file.
13612         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13613         dependencies.
13614         (%.info): New rule, specifying a --reference-limit.
13615
13616 2007-05-01  Bruno Haible  <bruno@clisp.org>
13617
13618         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13619
13620 2007-05-01  Bruno Haible  <bruno@clisp.org>
13621
13622         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13623         the portability of 'mkdir' to mingw systems.
13624
13625 2007-05-01  Bruno Haible  <bruno@clisp.org>
13626
13627         * doc/headers/google-ranking.txt: New file.
13628
13629 2007-04-30  Eric Blake  <ebb9@byu.net>
13630
13631         Prefer fseeko to fseek.
13632         * modules/getpass (Depends-on): Add fseeko.
13633         * lib/getpass.c (getpass): Use fseeko, not fseek.
13634
13635 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13636
13637         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13638         assumes the sorting is stable, while most qsort implementations
13639         are not.  Use argument addresses to ensure they never compare as
13640         equal.
13641
13642         * tests/test-argp-2.sh (usage-indent test): Fix output
13643         (func_compare): Restore diff options
13644         * tests/test-argp.c: Restore #include "progname.h"
13645
13646 2007-04-29  Bruno Haible  <bruno@clisp.org>
13647
13648         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13649         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13650         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13652         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13653         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13654         (TESTS, check_PROGRAMS): Add test-snprintf.
13655         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13656         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13657         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13658         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13659         assertions that fail on HP-UX, OSF/1, or IRIX.
13660         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13661
13662 2007-04-29  Bruno Haible  <bruno@clisp.org>
13663
13664         * MODULES.html.sh (posix_functions): Remove 'contents'.
13665
13666 2007-04-29  Karl Berry  <karl@gnu.org>
13667
13668         * config/srclist.txt (gendocs_template_min): new entry.
13669
13670 2007-04-29  Bruno Haible  <bruno@clisp.org>
13671
13672         Work around fpurge bug on BSD systems.
13673         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13674         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13675         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13676         fpurge to rpl_fpurge if the system already has this function.
13677         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13678         the case where the system already has this function. Correct invariants
13679         on BSD systems.
13680         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13681         BSD systems.
13682
13683 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13684
13685         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13686         proposed by Sven Verdoolaege.
13687
13688         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13689         options.
13690         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13691         (usage and help tests): Update
13692
13693 2007-04-29  Bruno Haible  <bruno@clisp.org>
13694
13695         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13696         Print more information in case of failure. Disable a test on BeOS.
13697
13698 2007-04-29  Bruno Haible  <bruno@clisp.org>
13699
13700         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13701         This helps debugging on systems on which no gdb is available.
13702
13703 2007-04-29  Bruno Haible  <bruno@clisp.org>
13704
13705         * lib/freading.h: Improve comments.
13706         * lib/fwriting.h: Likewise.
13707         * tests/test-freading.c (main): Don't check freading immediately after
13708         repositioning. Needed for glibc.
13709
13710 2007-04-29  Bruno Haible  <bruno@clisp.org>
13711
13712         * lib/freading.c (freading): Trivial simplification.
13713
13714 2007-04-28  Bruno Haible  <bruno@clisp.org>
13715
13716         * tests/test-fwriting.c (main): Also test the interaction between
13717         fflush and fwriting.
13718         * modules/fwriting-tests (Depends-on): Add fflush.
13719
13720         * tests/test-freading.c (main): Also test the interaction between
13721         fflush and freading.
13722         * modules/freading-tests (Depends-on): Add fflush.
13723
13724 2007-04-28  Bruno Haible  <bruno@clisp.org>
13725
13726         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13727         fseeko and ftello.
13728         Suggested by Eric Blake.
13729
13730 2007-04-28  Jim Meyering  <jim@meyering.net>
13731
13732         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13733         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13734         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13735
13736 2007-04-27  Eric Blake  <ebb9@byu.net>
13737
13738         * doc/headers/assert.texi (assert.h): Document assert module use.
13739
13740 2007-04-27  Bruno Haible  <bruno@clisp.org>
13741
13742         * doc/headers/*.texi: New files.
13743         * doc/gnulib.texi (Header File Substitutes): New chapter.
13744         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13745         dependencies.
13746         (standards.info ,standards.html, standards.dvi): Update dependencies.
13747         (mostlyclean, clean): New targets.
13748
13749 2007-04-27  Bruno Haible  <bruno@clisp.org>
13750
13751         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13752         * modules/sysexits (Files, Makefile.am): Update.
13753
13754         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13755         * modules/sys_socket (Files, Makefile.am): Update.
13756
13757         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13758         * modules/sys_stat (Files, Makefile.am): Update.
13759
13760 2007-04-27  Eric Blake  <ebb9@byu.net>
13761
13762         * lib/freading.h: Improve comments.
13763         * lib/fwriting.h: Likewise.
13764         * lib/fflush.c: Likewise.
13765
13766         Fix closein for mingw.
13767         * modules/closein-tests: Add tests for closein.
13768         * tests/test-closein.c: New file.
13769         * tests/test-closein.sh: Likewise.
13770         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13771         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13772
13773 2007-04-27  Bruno Haible  <bruno@clisp.org>
13774
13775         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13776         version is < 6.
13777         * lib/math_.h [__DECC]: Likewise.
13778         * lib/stdio_.h [__DECC]: Likewise.
13779         * lib/stdlib_.h [__DECC]: Likewise.
13780         * lib/string_.h [__DECC]: Likewise.
13781         * lib/time_.h [__DECC]: Likewise.
13782         * lib/wchar_.h [__DECC]: Likewise.
13783         * lib/wctype_.h [__DECC]: Likewise.
13784
13785 2007-04-27  Bruno Haible  <bruno@clisp.org>
13786
13787         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13788
13789 2007-04-27  Bruno Haible  <bruno@clisp.org>
13790
13791         * lib/fflush.c: Add comments.
13792         * modules/fpurge-tests (Depends-on): Add fflush.
13793         * modules/freadable-tests (Depends-on): Likewise.
13794         * modules/fwritable-tests (Depends-on): Likewise.
13795
13796 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13797
13798         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13799         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13800         Report by Bruno Haible <bruno@clisp.org>.
13801
13802 2007-04-26  Eric Blake  <ebb9@byu.net>
13803
13804         Fix fflush on mingw.
13805         * modules/fflush (Depends-on): Add freading.
13806         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13807         but unread data.
13808
13809 2007-04-26  Eric Blake  <ebb9@byu.net>
13810         and Bruno Haible  <bruno@clisp.org>
13811
13812         Implement freading and fwriting.
13813         * lib/freading.c: New file.
13814         * lib/freading.h: Likewise.
13815         * m4/freading.m4: Likewise.
13816         * modules/freading: Likewise.
13817         * modules/freading-tests: Likewise.
13818         * tests/test-freading.c: Likewise.
13819         * lib/fwriting.c: New file.
13820         * lib/fwriting.h: Likewise.
13821         * m4/fwriting.m4: Likewise.
13822         * modules/fwriting: Likewise.
13823         * modules/fwriting-tests: Likewise.
13824         * tests/test-fwriting.c: Likewise.
13825         * MODULES.html.sh (File stream based Input/Output): Mention them.
13826
13827 2007-04-26  Bruno Haible  <bruno@clisp.org>
13828
13829         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13830         'long' when we assume it.
13831         Suggested by Eric Blake.
13832
13833 2007-04-26  Bruno Haible  <bruno@clisp.org>
13834
13835         Ensure fseeko, ftello are declared on glibc systems.
13836         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13837         * modules/fseeko (configure.ac-early): Likewise.
13838         * modules/ftello (configure.ac-early): Likewise.
13839         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13840         AC_FUNC_FSEEKO for this.
13841         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13842         (gl_CHECK_FSEEKO): Remove macro.
13843
13844 2007-04-26  Bruno Haible  <bruno@clisp.org>
13845
13846         * tests/test-fflush.c (main): Also check the ftell result after
13847         fflush and fseek/fseeko.
13848         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13849         file descriptor position cache in the stream.
13850         * lib/fseeko.c (rpl_fseeko): Likewise.
13851
13852 2007-04-26  Bruno Haible  <bruno@clisp.org>
13853
13854         * modules/fflush-tests (Depends-on): Add fseeko.
13855
13856 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13857             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13858
13859         * lib/argz_.h: ensure error_t definition is obtained in same
13860         mechanism system argz.h would have.
13861         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13862         argz facilities are known bad.  Err on the side of caution if
13863         cross-compiling.
13864
13865 2007-04-25  Eric Blake  <ebb9@byu.net>
13866
13867         * lib/fpurge.c (includes): Use stdlib.h for free.
13868         * tests/test-fflush.c (main): Also test fflush-fseeko.
13869
13870 2007-04-25  Bruno Haible  <bruno@clisp.org>
13871
13872         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13873         * lib/fseeko.c: New file.
13874         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13875         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13876         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13877         gl_FUNC_FSEEKO.
13878         (gl_FUNC_FSEEKO): Invoke it.
13879         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13880         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13881         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13882
13883 2007-04-25  Bruno Haible  <bruno@clisp.org>
13884
13885         * modules/fflush (Depends-on): Add ftello.
13886
13887 2007-04-25  Bruno Haible  <bruno@clisp.org>
13888
13889         * modules/ftello-tests: New file.
13890         * tests/test-ftello.c: New file.
13891
13892         * modules/ftello: New file.
13893         * m4/ftello.m4: New file.
13894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13895         HAVE_FTELLO.
13896         * lib/stdio_.h (ftello): New declaration.
13897         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13898         HAVE_FTELLO.
13899
13900 2007-04-25  Bruno Haible  <bruno@clisp.org>
13901
13902         * modules/fseeko-tests: New file.
13903         * tests/test-fseeko.c: New file.
13904
13905         * modules/fseeko: New file.
13906         * m4/fseeko.m4: New file.
13907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13908         HAVE_FSEEKO.
13909         * lib/stdio_.h (fseeko): New declaration.
13910         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13911         HAVE_FSEEKO.
13912
13913 2007-04-25  Bruno Haible  <bruno@clisp.org>
13914
13915         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13916
13917 2007-04-25  Bruno Haible  <bruno@clisp.org>
13918
13919         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13920         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13921         * tests/test-unistd.c: Likewise.
13922         * tests/test-fcntl.c: Likewise.
13923
13924 2007-04-23  Eric Blake  <ebb9@byu.net>
13925
13926         * lib/fflush.c: Fix missing include.
13927         Reported by Bruno Haible.
13928
13929 2007-04-23  Bruno Haible  <bruno@clisp.org>
13930
13931         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13932         Reported by Eric Blake.
13933
13934 2007-04-23  Bruno Haible  <bruno@clisp.org>
13935
13936         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13937
13938 2007-04-23  Bruno Haible  <bruno@clisp.org>
13939
13940         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13941
13942 2007-04-23  Bruno Haible  <bruno@clisp.org>
13943
13944         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13945         Needed on HP-UX 11.
13946
13947 2007-04-16  Eric Blake  <ebb9@byu.net>
13948
13949         Make fflush rely on fpurge.
13950         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13951         open coding all variants.
13952         * modules/fflush (Depends-on): Add fpurge and unistd.
13953         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13954         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13955
13956         Fix --with-tests compilation on cygwin.
13957         * modules/argmatch-tests (Makefile.am): List gnulib library first
13958         in LDADD.
13959         * modules/argp-tests (Makefile.am): Likewise.
13960         * modules/array-list-tests (Makefile.am): Likewise.
13961         * modules/array-oset-tests (Makefile.am): Likewise.
13962         * modules/avltree-list-tests (Makefile.am): Likewise.
13963         * modules/avltree-oset-tests (Makefile.am): Likewise.
13964         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13965         * modules/carray-list-tests (Makefile.am): Likewise.
13966         * modules/dirname-tests (Makefile.am): Likewise.
13967         * modules/frexp-tests (Makefile.am): Likewise.
13968         * modules/isnanl-tests (Makefile.am): Likewise.
13969         * modules/linked-list-tests (Makefile.am): Likewise.
13970         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13971         * modules/lock-tests (Makefile.am): Likewise.
13972         * modules/rbtree-list-tests (Makefile.am): Likewise.
13973         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13974         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13975         * modules/tls-tests (Makefile.am): Likewise.
13976         * modules/tsearch-tests (Makefile.am): Likewise.
13977         * modules/xvasprintf-tests (Makefile.am): Likewise.
13978
13979         Fix fpurge for cygwin.
13980         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13981         value.
13982         * modules/fpurge-tests (Depends-on): Clean up trash.
13983
13984 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13985
13986         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13987
13988         * m4/autobuild.m4: Re-indent.
13989
13990 2007-04-13  Bruno Haible  <bruno@clisp.org>
13991
13992         * modules/fpurge-tests: New file.
13993         * tests/test-fpurge.c: New file.
13994
13995         * modules/fpurge: New file.
13996         * lib/fpurge.h: New file.
13997         * lib/fpurge.c: New file.
13998         * m4/fpurge.m4: New file.
13999
14000 2007-04-13  Bruno Haible  <bruno@clisp.org>
14001
14002         * modules/fbufmode-tests: New file.
14003         * tests/test-fbufmode.c: New file.
14004
14005         * modules/fbufmode: New file.
14006         * lib/fbufmode.h: New file.
14007         * lib/fbufmode.c: New file.
14008         * m4/fbufmode.m4: New file.
14009
14010 2007-04-13  Bruno Haible  <bruno@clisp.org>
14011
14012         * modules/fwritable-tests: New file.
14013         * tests/test-fwritable.c: New file.
14014
14015         * modules/fwritable: New file.
14016         * lib/fwritable.h: New file.
14017         * lib/fwritable.c: New file.
14018         * m4/fwritable.m4: New file.
14019
14020 2007-04-13  Bruno Haible  <bruno@clisp.org>
14021
14022         * modules/freadable-tests: New file.
14023         * tests/test-freadable.c: New file.
14024
14025         * modules/freadable: New file.
14026         * lib/freadable.h: New file.
14027         * lib/freadable.c: New file.
14028         * m4/freadable.m4: New file.
14029
14030 2007-04-13  Bruno Haible  <bruno@clisp.org>
14031
14032         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14033         MOSTLYCLEANFILES.
14034
14035 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14036
14037         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14038         gzip bootstrap.conf to avoid dragging in i18n machinery.
14039         (gnulib_tool_option): Use it.
14040
14041 2007-04-13  Bruno Haible  <bruno@clisp.org>
14042
14043         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14044         %F directives.
14045         * tests/test-vasprintf-posix.c (test_function): Likewise.
14046         * tests/test-snprintf-posix.h (test_function): Likewise.
14047         * tests/test-sprintf-posix.h (test_function): Likewise.
14048         * tests/test-fprintf-posix.h (test_function): Likewise.
14049         * tests/test-printf-posix.h (test_function): Likewise.
14050         * tests/test-fprintf-posix.out: Likewise.
14051
14052 2007-04-13  Bruno Haible  <bruno@clisp.org>
14053
14054         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14055         * modules/tls-tests (configure.ac): Likewise.
14056         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14057
14058 2007-04-13  Bruno Haible  <bruno@clisp.org>
14059
14060         * lib/tls.c (glthread_tls_get): Fix return type.
14061         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14062
14063 2007-04-12  Eric Blake  <ebb9@byu.net>
14064
14065         * modules/gettime (Depends-on): Remove gettime.
14066         Reported by Dmitry V. Levin.
14067
14068 2007-04-12  Bruno Haible  <bruno@clisp.org>
14069
14070         * modules/fflush (Include): Mention <stdio.h>.
14071         * modules/strtoimax (Include): Mention <inttypes.h>.
14072         * modules/strtoumax (Include): Likewise.
14073
14074 2007-04-12  Eric Blake  <ebb9@byu.net>
14075
14076         * .cvsignore: New file.
14077         * .gitignore: Likewise.
14078
14079 2007-04-12  Bruno Haible  <bruno@clisp.org>
14080
14081         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14082         not before, since $(LDADD) often contains libgnu.a.
14083         * modules/striconv-tests (test_striconv_LDADD): Likewise.
14084         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14085         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14086         Needed on Cygwin.
14087
14088 2007-04-12  Eric Blake  <ebb9@byu.net>
14089
14090         Work around glibc's failure to flush stdin on fclose.
14091         * lib/closein.c (close_stdin): Flush stdin before closing.
14092
14093         Work around glibc's failure to reset seekable stdin on exit.
14094         * modules/closein: New module.
14095         * lib/closein.c: New file.
14096         * lib/closein.h: Likewise.
14097         * m4/closein.m4: Likewise.
14098         * MODULES.html.sh (File stream based Input/Output): Document it.
14099
14100 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14101
14102         * gnulib-tool: Rename generated 'autobuild' script to
14103         'do-autobuild' in --create-megatestdir output.
14104
14105         * doc/gnulib.texi (Build robot for gnulib): Fix.
14106
14107 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14108
14109         * modules/sysexits (Depends-on): Add absolute-header.
14110
14111 2007-04-12  Eric Blake  <ebb9@byu.net>
14112
14113         No need to preserve errno on success.
14114         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14115         Reported by Bruno Haible.
14116
14117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14118
14119         * MODULES.html.sh (Support for maintaining and releasing
14120         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
14121
14122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14123
14124         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14125
14126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14127
14128         * modules/autobuild: New module.
14129
14130         * m4/autobuild.m4: New file.
14131
14132 2007-04-11  Bruno Haible  <bruno@clisp.org>
14133
14134         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14135         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14139         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14140         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14142         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14143         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14145         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14146         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14148         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14149         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14151         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14152         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14154         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14155         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14156         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14157         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14158         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14160         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14161         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14162         Reported by Eric Blake.
14163
14164 2007-04-11  Bruno Haible  <bruno@clisp.org>
14165
14166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14167
14168 2007-04-10  Bruno Haible  <bruno@clisp.org>
14169
14170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14171         for NaN and Infinity. Needed on FreeBSD 6.1.
14172         * tests/test-vasnprintf-posix.c (test_function): Undo last change
14173         regarding results for "%010a" of Infinity and NaN.
14174         * tests/test-vasprintf-posix.c (test_function): Likewise.
14175         * tests/test-snprintf-posix.h (test_function): Likewise.
14176         * tests/test-sprintf-posix.h (test_function): Likewise.
14177         * tests/test-fprintf-posix.h (test_function): Likewise.
14178         * tests/test-printf-posix.h (test_function): Likewise.
14179         * tests/test-fprintf-posix.out: Likewise.
14180
14181 2007-04-10  Bruno Haible  <bruno@clisp.org>
14182
14183         * modules/locale-tests: New file.
14184         * tests/test-locale.c: New file.
14185
14186         * modules/locale: New file.
14187         * lib/locale_.h: New file.
14188         * m4/locale_h.m4: New file.
14189
14190 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
14191             Bruno Haible  <bruno@clisp.org>
14192
14193         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14194         be determined, test for availability of the copysignf, copysign,
14195         copysignl functions.
14196         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14197         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14198         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14199
14200 2007-04-09  Eric Blake  <ebb9@byu.net>
14201
14202         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14203         * modules/stdio (Makefile.am): Support fflush.
14204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14205         * modules/fflush: New file.
14206         * lib/fflush.c: Likewise.
14207         * m4/fflush.m4: Likewise.
14208         * modules/fflush-tests: New test.
14209         * tests/test-fflush.c: Likewise.
14210         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14211
14212 2007-04-06  Bruno Haible  <bruno@clisp.org>
14213
14214         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14215         (VASNPRINTF): Use signbit for faster determination whether to print a
14216         minus sign.
14217         * modules/vasnprintf (Files): Remove lib/float+.h.
14218         * modules/fprintf-posix (Depends-on): Add signbit.
14219         * modules/snprintf-posix (Depends-on): Likewise.
14220         * modules/sprintf-posix (Depends-on): Likewise.
14221         * modules/vasnprintf-posix (Depends-on): Likewise.
14222         * modules/vasprintf-posix (Depends-on): Likewise.
14223         * modules/vfprintf-posix (Depends-on): Likewise.
14224         * modules/vsnprintf-posix (Depends-on): Likewise.
14225         * modules/vsprintf-posix (Depends-on): Likewise.
14226
14227 2007-04-06  Bruno Haible  <bruno@clisp.org>
14228
14229         * tests/test-frexp.c (main): Test also the sign bit of zero results.
14230         * tests/test-frexpl.c (main): Likewise.
14231         * tests/test-ldexpl.c (main): Likewise.
14232         * modules/frexp-tests (Depends-on): Add signbit.
14233         * modules/frexpl-tests (Depdends-on): Likewise.
14234         * modules/ldexpl-tests (Depdends-on): Likewise.
14235
14236 2007-04-06  Bruno Haible  <bruno@clisp.org>
14237
14238         * modules/signbit-tests: New file.
14239         * tests/test-signbit.c: New file.
14240
14241         * modules/signbit: New file.
14242         * lib/signbitf.c: New file.
14243         * lib/signbitd.c: New file.
14244         * lib/signbitl.c: New file.
14245         * m4/signbit.m4: New file.
14246         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14247         (signbit): New macro.
14248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14249         REPLACE_SIGNBIT.
14250         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14251         REPLACE_FREXPL into math.h.
14252
14253 2007-04-06  Bruno Haible  <bruno@clisp.org>
14254
14255         * modules/isnanf-nolibm-tests: New file.
14256         * tests/test-isnanf.c: New file.
14257
14258         * modules/isnanf-nolibm: New file.
14259         * lib/isnanf.h: New file.
14260         * lib/isnanf.c: New file.
14261         * lib/isnan.c: Consider the USE_FLOAT macro.
14262         * m4/isnanf.m4: New file.
14263
14264 2007-04-06  Bruno Haible  <bruno@clisp.org>
14265
14266         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14267         (Link): New section.
14268
14269         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14270
14271 2007-04-06  Bruno Haible  <bruno@clisp.org>
14272
14273         Assume the 'long double' type.
14274         * m4/longdouble.m4: Remove file.
14275         * config/srclist.txt: Don't mention longdouble.m4.
14276         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14277         * lib/float+.h: Likewise.
14278         * lib/frexp.c: Likewise.
14279         * lib/printf-args.h: Likewise.
14280         * lib/printf-args.c: Likewise.
14281         * lib/printf-frexp.c: Likewise.
14282         * lib/printf-parse.c: Likewise.
14283         * lib/vasnprintf.c: Likewise.
14284         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14285         * m4/intl.m4: Likewise.
14286         * m4/isnanl.m4: Likewise.
14287         * m4/printf.m4: Likewise.
14288         * m4/printf-frexpl.m4: Likewise.
14289         * m4/vasnprintf.m4: Likewise.
14290         * modules/allocsa (Files): Remove m4/longdouble.m4.
14291         * modules/gettext (Files): Likewise.
14292         * modules/relocatable-prog-wrapper (Files): Likewise.
14293         * modules/vasnprintf (Files): Likewise.
14294         * modules/isnanl (Files): Likewise.
14295         (Include): Simplify.
14296         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14297         (Include): Simplify.
14298         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14299         (Include): Simplify.
14300         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14301         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14302         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14303         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14304         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14305         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14306         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14307         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14308         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14309         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14310         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14312         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14313         * tests/test-isnanl.c: Likewise.
14314         * tests/test-snprintf-posix.h: Likewise.
14315         * tests/test-sprintf-posix.h: Likewise.
14316         * tests/test-vasnprintf-posix.c: Likewise.
14317         * tests/test-vasnprintf-posix2.c: Likewise.
14318         * tests/test-vasprintf-posix.c: Likewise.
14319
14320 2007-04-06  Bruno Haible  <bruno@clisp.org>
14321
14322         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14323         * lib/math_.h [__DECC]: Include the overridden include file through
14324         #include_next, outside the double-inclusion guard.
14325         * lib/stdio_.h [__DECC]: Likewise.
14326         * lib/stdlib_.h [__DECC]: Likewise.
14327         * lib/string_.h [__DECC]: Likewise.
14328         * lib/time_.h [__DECC]: Likewise.
14329         * lib/wchar_.h [__DECC]: Likewise.
14330         * lib/wctype_.h [__DECC]: Likewise.
14331         * lib/inttypes_.h [__DECC]: Likewise.
14332         Reported by Albert Chin <china@thewrittenword.com> in
14333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
14334
14335 2007-04-04  Eric Blake  <ebb9@byu.net>
14336
14337         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
14338         1.5.x.
14339
14340 2007-04-04  Bruno Haible  <bruno@clisp.org>
14341
14342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
14343         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
14344
14345 2007-04-04  Bruno Haible  <bruno@clisp.org>
14346
14347         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
14348         results for "%010a" of Infinity and NaN.
14349         * tests/test-vasprintf-posix.c (test_function): Likewise.
14350         * tests/test-snprintf-posix.h (test_function): Likewise.
14351         * tests/test-sprintf-posix.h (test_function): Likewise.
14352         * tests/test-fprintf-posix.h (test_function): Remove these tests.
14353         * tests/test-printf-posix.h (test_function): Likewise.
14354         * tests/test-fprintf-posix.out: Update.
14355         Needed for FreeBSD 6.1.
14356
14357 2007-04-04  Bruno Haible  <bruno@clisp.org>
14358
14359         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
14360         directly used by the gnulib modules nor by gnulib-tool.
14361
14362 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14363
14364         * DEPENDENCIES: Give overall description of version dependency
14365         desirability.  Use more-typical names for apps.
14366         Add shell, coreutils, diffutils, grep, tar, gzip.
14367
14368 2007-04-04  Simon Josefsson  <simon@josefsson.org>
14369
14370         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
14371
14372 2007-04-04  Karl Berry  <karl@gnu.org>
14373
14374         * MODULES.html.sh (func_module): missing '.
14375
14376 2007-04-03  Bruno Haible  <bruno@clisp.org>
14377
14378         * modules/argmatch-tests (Makefile.am): New variable
14379         test_argmatch_LDADD.
14380         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14381         * modules/array-list-tests (Makefile.am): New variable
14382         test_array_list_LDADD.
14383         * modules/array-oset-tests (Makefile.am): New variable
14384         test_array_oset_LDADD.
14385         * modules/avltree-list-tests (Makefile.am): New variable
14386         test_avltree_list_LDADD.
14387         * modules/avltree-oset-tests (Makefile.am): New variable
14388         test_avltree_oset_LDADD.
14389         * modules/avltreehash-list-tests (Makefile.am): New variable
14390         test_avltreehash_list_LDADD.
14391         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14392         test_canonicalize_lgpl_LDADD.
14393         * modules/carray-list-tests (Makefile.am): New variable
14394         test_carray_list_LDADD.
14395         * modules/dirname-tests (Makefile.am): New variable
14396         test_dirname_LDADD.
14397         * modules/linked-list-tests (Makefile.am): New variable
14398         test_linked_list_LDADD.
14399         * modules/linkedhash-list-tests (Makefile.am): New variable
14400         test_linkedhash_list_LDADD.
14401         * modules/rbtree-list-tests (Makefile.am): New variable
14402         test_rbtree_list_LDADD.
14403         * modules/rbtree-oset-tests (Makefile.am): New variable
14404         test_rbtree_oset_LDADD.
14405         * modules/rbtreehash-list-tests (Makefile.am): New variable
14406         test_rbtreehash_list_LDADD.
14407         * modules/xvasprintf-tests (Makefile.am): New variable
14408         test_xvasprintf_LDADD.
14409         Reported by Eric Blake.
14410
14411 2007-04-03  Eric Blake  <ebb9@byu.net>
14412
14413         * DEPENDENCIES: Weaken m4 requirements.
14414
14415 2007-04-03  Bruno Haible  <bruno@clisp.org>
14416
14417         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14418         * modules/isnanl-tests (configure.ac): Likewise.
14419
14420 2007-04-03  Ben Pfaff  <blp@gnu.org>
14421
14422         * modules/iconv_open: Add $(srcdir)/ to source directory
14423         references in Makefile fragments that call gperf, to fix VPATH
14424         builds.
14425
14426 2007-04-03  Bruno Haible  <bruno@clisp.org>
14427
14428         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
14429         * lib/ldexpl.c: Undo last change.
14430
14431 2007-04-03  Bruno Haible  <bruno@clisp.org>
14432
14433         * modules/printf-frexpl (Depends-on): Undo last change.
14434         (Files): Add m4/ldexpl.m4.
14435
14436 2007-04-03  Bruno Haible  <bruno@clisp.org>
14437
14438         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
14439         * modules/isnanl (Link): New section.
14440
14441         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14442         * modules/frexp (Link): New section.
14443
14444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14445         * modules/frexpl (Link): New section.
14446
14447         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14448         * modules/ldexpl (Link): New section.
14449
14450 2007-04-03  Bruno Haible  <bruno@clisp.org>
14451
14452         * modules/TEMPLATE-EXTENDED: New file.
14453         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14454
14455 2007-04-03  Bruno Haible  <bruno@clisp.org>
14456
14457         * DEPENDENCIES: New file.
14458         Suggested by Simon Josefsson.
14459
14460 2007-04-03  Bruno Haible  <bruno@clisp.org>
14461
14462         * doc/gnulib.texi: Escape @.
14463
14464 2007-04-03  James Youngman  <jay@gnu.org>
14465         and Paul Eggert  <eggert@cs.ucla.edu>
14466
14467         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14468         birthtime on all systems that have birthtime, not just those which
14469         use st_birthtimensec rather than st_birthtim.  Putting zero in
14470         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14471         that the birth time is not available for files on an NFS mount.
14472
14473 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14474
14475         * modules/memxor: Move back from crypto/, suggested by Bruno.
14476         * modules/crypto/hmac-sha1: Fix memxor dependency.
14477
14478         * modules/crypto/gc: Moved from ../.
14479
14480 2007-04-02  Eric Blake  <ebb9@byu.net>
14481
14482         * lib/ldexpl.c (includes): Avoid libm.
14483
14484         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14485
14486 2007-04-02  Bruno Haible  <bruno@clisp.org>
14487
14488         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14489         on IRIX.
14490
14491 2007-04-02  Bruno Haible  <bruno@clisp.org>
14492
14493         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14494         x86 or x86_64 platforms running MacOS X.
14495         Reported by Ryan Schmidt <@ryandesign.com>.
14496
14497 2007-04-02  Bruno Haible  <bruno@clisp.org>
14498
14499         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14500         i386.
14501
14502 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14503
14504         * modules/crypto/arcfour: Moved from ../.
14505         * modules/crypto/arcfour-tests: Moved from ../.
14506         * modules/crypto/arctwo: Moved from ../.
14507         * modules/crypto/arctwo-tests: Moved from ../.
14508         * modules/crypto/des: Moved from ../.
14509         * modules/crypto/des-tests: Moved from ../.
14510         * modules/crypto/gc-arcfour: Moved from ../.
14511         * modules/crypto/gc-arcfour-tests: Moved from ../.
14512         * modules/crypto/gc-arctwo: Moved from ../.
14513         * modules/crypto/gc-arctwo-tests: Moved from ../.
14514         * modules/crypto/gc-des: Moved from ../.
14515         * modules/crypto/gc-des-tests: Moved from ../.
14516         * modules/crypto/gc-hmac-md5: Moved from ../.
14517         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14518         * modules/crypto/gc-hmac-sha1: Moved from ../.
14519         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14520         * modules/crypto/gc-md2: Moved from ../.
14521         * modules/crypto/gc-md2-tests: Moved from ../.
14522         * modules/crypto/gc-md4: Moved from ../.
14523         * modules/crypto/gc-md4-tests: Moved from ../.
14524         * modules/crypto/gc-md5: Moved from ../.
14525         * modules/crypto/gc-md5-tests: Moved from ../.
14526         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14527         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14528         * modules/crypto/gc-random: Moved from ../.
14529         * modules/crypto/gc-rijndael: Moved from ../.
14530         * modules/crypto/gc-rijndael-tests: Moved from ../.
14531         * modules/crypto/gc-sha1: Moved from ../.
14532         * modules/crypto/gc-sha1-tests: Moved from ../.
14533         * modules/crypto/gc-tests: Moved from ../.
14534         * modules/crypto/hmac-md5: Moved from ../.
14535         * modules/crypto/hmac-md5-tests: Moved from ../.
14536         * modules/crypto/hmac-sha1: Moved from ../.
14537         * modules/crypto/hmac-sha1-tests: Moved from ../.
14538         * modules/crypto/md2: Moved from ../.
14539         * modules/crypto/md2-tests: Moved from ../.
14540         * modules/crypto/md4: Moved from ../.
14541         * modules/crypto/md4-tests: Moved from ../.
14542         * modules/crypto/md5: Moved from ../.
14543         * modules/crypto/md5-tests: Moved from ../.
14544         * modules/crypto/memxor: Moved from ../.
14545         * modules/crypto/rijndael: Moved from ../.
14546         * modules/crypto/rijndael-tests: Moved from ../.
14547         * modules/crypto/sha1: Moved from ../.
14548
14549 2007-03-30  James Youngman  <jay@gnu.org>
14550
14551         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14552         rename() to change the ctime of a file (because ctime is unaffected
14553         by rename on jfs2 on AIX 5.1).
14554         (main): Start by doing cleanup, in case a previous run failed leaving
14555         test files behind.
14556
14557 2007-03-31  Bruno Haible  <bruno@clisp.org>
14558
14559         Support old proprietary implementations of iconv.
14560         * modules/iconv_open: New file.
14561         * lib/iconv_.h: New file.
14562         * m4/iconv_h.m4: New file.
14563         * lib/iconv_open.c: New file.
14564         * lib/iconv_open-aix.gperf: New file.
14565         * lib/iconv_open-hpux.gperf: New file.
14566         * lib/iconv_open-irix.gperf: New file.
14567         * lib/iconv_open-osf.gperf: New file.
14568         * m4/iconv_open.m4: New file.
14569         * modules/linebreak (Depends-on): Add iconv_open.
14570         * modules/striconv (Depends-on): Likewise.
14571         * modules/striconveh (Depends-on): Likewise.
14572         * modules/unicodeio (Depends-on): Likewise.
14573         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14574         (iconv_t)(-1).
14575         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14576         conversion if cd is (iconv_t)(-1).
14577         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14578         is not possible.
14579
14580 2007-03-31  Bruno Haible  <bruno@clisp.org>
14581
14582         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14583         work on Solaris either. Protect also second use of "autodetect_jp".
14584
14585 2007-03-31  Bruno Haible  <bruno@clisp.org>
14586
14587         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14588         the function is not present.
14589
14590 2007-03-31  Bruno Haible  <bruno@clisp.org>
14591
14592         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14593         the function is not present.
14594
14595 2007-03-31  Bruno Haible  <bruno@clisp.org>
14596
14597         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14598         a bug in HP-UX iconv_open().
14599
14600 2007-03-31  Bruno Haible  <bruno@clisp.org>
14601
14602         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14603         (Mathematics <math.h>): New section, add fpieee.
14604         (Input/output <stdio.h>): Add fseterr.
14605         (Mathematics <math.h>): New section, add printf-frexp.
14606         (Container data structures): Add sublist.
14607         (Core language properties): Add fpucw, inline.
14608         (Functions for greatest-width integer types <inttypes.h>): Add
14609         imaxabs, imaxdiv, inttypes.
14610         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14611         isnanl-nolibm, ldexp.
14612         (Mathematics <math.h>): New section, add printf-frexpl.
14613         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14614         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14615         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14616         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14617         (Unicode string functions): Add unistr/u*-mbtoucr.
14618         (Java): Add javacomp-script, javaexec-script.
14619         (C#): Add csharpcomp-script, csharpexec-script.
14620         (Support for building libraries and executables): Add havelib,
14621         relocatable-*.
14622         (Support for maintaining and releasing projects): Renamed from
14623         'Support for maintaining and release projects'. Add announce-gen.
14624
14625 2007-03-31  Bruno Haible  <bruno@clisp.org>
14626
14627         * README: Talk primarily about git.
14628         (git and CVS): Renamed from CVS.
14629         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14630         gnulib is available through git.
14631         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14632
14633 2007-03-30  Bruno Haible  <bruno@clisp.org>
14634
14635         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14636         * lib/poll_.h: Likewise.
14637         * lib/stat_.h: Likewise.
14638         * lib/sys_time_.h: Likewise.
14639         * lib/sysexit_.h: Likewise.
14640         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14641         * lib/stdbool_.h: Likewise.
14642         * lib/byteswap_.h: Add double-inclusion guard.
14643
14644 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14645
14646         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14647
14648 2007-03-30  Karl Berry  <karl@gnu.org>
14649
14650         * config/srclist-update: double space after USA in the license
14651         substitution, since that's how it's usually (?) written.
14652
14653 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14654
14655         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14656         reported by Bruno Haible.
14657
14658 2007-03-29  Bruno Haible  <bruno@clisp.org>
14659
14660         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14661         a bug in AIX iconv().
14662
14663 2007-03-29  Bruno Haible  <bruno@clisp.org>
14664
14665         * modules/ldexpl-tests: New file.
14666         * tests/test-ldexpl.c: New file.
14667
14668 2007-03-29  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/ldexpl.c: Include fpucw.h.
14671         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14672         multiplication.
14673         * modules/ldexpl (Depends-on): Add fpucw.
14674
14675 2007-03-29  Bruno Haible  <bruno@clisp.org>
14676
14677         * modules/ldexpl: New file.
14678         * m4/ldexpl.m4: New file.
14679         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14680         set.
14681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14682         REPLACE_LDEXPL.
14683         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14684         REPLACE_LDEXPL.
14685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14686         gl_FUNC_LDEXPL_WORKS.
14687         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14688         * modules/mathl (Files): Remove lib/ldexpl.c.
14689         (Depends-on): Add ldexpl.
14690
14691 2007-03-29  Bruno Haible  <bruno@clisp.org>
14692
14693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14694
14695 2007-03-29  Bruno Haible  <bruno@clisp.org>
14696
14697         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14698         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14699         and possibly also HP-UX.
14700         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14701         work on AIX, IRIX, HP-UX, OSF/1.
14702         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14703         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14704         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14705         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14706         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14707         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14708
14709 2007-03-29  Bruno Haible  <bruno@clisp.org>
14710
14711         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14712
14713 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14714
14715         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14716         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14717
14718 2007-03-29  Eric Blake  <ebb9@byu.net>
14719
14720         * lib/acl-internal.h: Remove redundant include.
14721         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14722         Cygwin when a file is locked.
14723
14724 2007-03-29  Bruno Haible  <bruno@clisp.org>
14725
14726         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14727         file.
14728         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14729
14730 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14733         try to remove a parent directory if the child couldn't be removed
14734         (except for the first rmdir, which could fail because the child
14735         doesn't exist).  Problem reported by Jeff Blaine in
14736         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14737
14738 2007-03-28  Bruno Haible  <bruno@clisp.org>
14739
14740         * lib/striconveh.c (utf8conv_carefully): New function.
14741         (mem_cd_iconveh_internal): Invoke it.
14742
14743 2007-03-28  Bruno Haible  <bruno@clisp.org>
14744
14745         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14746         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14747         input.
14748         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14749         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14750         unistr/u8-uctomb.
14751
14752 2007-03-28  Bruno Haible  <bruno@clisp.org>
14753
14754         * modules/unistr/u8-mbtoucr: New file.
14755         * lib/unistr/u8-mbtoucr.c: New file.
14756         * modules/unistr/u16-mbtoucr: New file.
14757         * lib/unistr/u16-mbtoucr.c: New file.
14758         * modules/unistr/u16-mbtoucr: New file.
14759         * lib/unistr/u16-mbtoucr.c: New file.
14760         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14761
14762 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14763             Bruno Haible  <bruno@clisp.org>
14764
14765         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14766         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14767         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14768
14769         * m4/stdio_h.m4: Add stubs for vasprintf too.
14770
14771         * modules/stdio: Support vasprintf in sed command.
14772
14773         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14774         vasprintf.h.  Add stdio module indicator.
14775
14776         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14777         vasprintf.h.
14778
14779         * lib/vasprintf.h: File removed.
14780
14781         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14782         * lib/vasprintf.c: Ditto.
14783         * lib/xvasprintf.c: Ditto.
14784         * tests/test-vasprintf-posix.c: Ditto.
14785         * tests/test-vasprintf.c: Ditto.
14786
14787 2007-03-27  Bruno Haible  <bruno@clisp.org>
14788
14789         Make vasnprintf multithread-safe.
14790         * lib/vasnprintf.c (decimal_point_char): New function.
14791         (VASNPRINTF): Use it.
14792         Suggested by Simon Josefsson.
14793
14794 2007-03-27  Eric Blake  <ebb9@byu.net>
14795
14796         Support sub-second birthtime on cygwin.
14797         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14798         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14799         (get_stat_birthtime): Also work with st_birthtim.
14800
14801 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14802
14803         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14804         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14805         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14806         (get_stat_birthtime_ns): Simplify compile-time tests.
14807         (get_stat_birthtime): Change the API to look like
14808         get_stat_mtime etc., except return a negative tv_nsec on error.
14809         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14810         Don't check for "spare" fields.
14811         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14812         or for struct stat.st_birthtime, as these tests aren't used.
14813         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14814
14815 2007-03-27  Bruno Haible  <bruno@clisp.org>
14816
14817         * lib/stat-time.h: Include <sys/stat.h>.
14818
14819 2007-03-27  James Youngman  <jay@gnu.org>
14820
14821         * lib/stat-time.h (get_stat_birthtime): New function for
14822           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14823         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14824           and its variants.
14825         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14826         * modules/stat-time-test: New file.
14827         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14828
14829 2007-03-26  Bruno Haible  <bruno@clisp.org>
14830
14831         Better support of signalling NaNs.
14832         * lib/atanl.c: Include isnanl.h.
14833         (atanl): Perform test for NaN at the beginning of the function and
14834         through a call to isnanl.
14835         * lib/cosl.c: Include isnanl.h.
14836         (cosl): Perform test for NaN at the beginning of the function and
14837         through a call to isnanl.
14838         * lib/ldexpl.c: Include isnanl.h.
14839         (ldexpl): Perform test for NaN through a call to isnanl.
14840         * lib/logl.c: Include isnanl.h.
14841         (logl): Perform test for NaN at the beginning of the function and
14842         through a call to isnanl.
14843         * lib/sinl.c: Include isnanl.h.
14844         (sinl): Perform test for NaN at the beginning of the function and
14845         through a call to isnanl.
14846         * lib/sqrtl.c: Include isnanl.h.
14847         (sqrtl): Perform test for NaN at the beginning of the function and
14848         through a call to isnanl.
14849         * lib/tanl.c: Include isnanl.h.
14850         (tanl): Perform test for NaN at the beginning of the function and
14851         through a call to isnanl.
14852         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14853         * modules/mathl (Depends-on): Add isnanl.
14854
14855 2007-03-26  Eric Blake  <ebb9@byu.net>
14856
14857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14858         regression in logic sense of previous patch.
14859
14860 2007-03-26  Bruno Haible  <bruno@clisp.org>
14861
14862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14863         unportable shell command "if ! ...".
14864         Reported by Ralf Wildenhues.
14865
14866 2007-03-25  Bruno Haible  <bruno@clisp.org>
14867
14868         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14869         <sysexits.h> file, and only add EX_CONFIG.
14870         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14871         absolute file name and whether it is sufficient. Substitute also
14872         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14873         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14874         ABSOLUTE_SYSEXITS_H into sysexits.h.
14875
14876 2007-03-25  Bruno Haible  <bruno@clisp.org>
14877
14878         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14879         hints is NULL.
14880
14881 2007-03-25  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14884         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14885
14886 2007-03-25  Bruno Haible  <bruno@clisp.org>
14887
14888         * lib/vasnprintf.c: Include langinfo.h.
14889         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14890         multithread-safe.
14891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14892         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14897         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14899         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14900         Reported by Simon Josefsson.
14901
14902 2007-03-25  Bruno Haible  <bruno@clisp.org>
14903
14904         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14905         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14906         * modules/vasnprintf (Depends-on): Add stdint.
14907
14908 2007-03-25  Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/fpieee: New file.
14911         * m4/fpieee.m4: New file.
14912         * modules/isnan-nolibm (Depends-on): Add fpieee.
14913         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14914         * modules/isnanl (Depends-on): Add fpieee.
14915
14916 2007-03-25  Bruno Haible  <bruno@clisp.org>
14917
14918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14919
14920 2007-03-25  Bruno Haible  <bruno@clisp.org>
14921
14922         Avoid test failures on IRIX 6.5.
14923         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14924         (main): Use it.
14925         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14926         macros.
14927         (main): Use them.
14928
14929 2007-03-25  Bruno Haible  <bruno@clisp.org>
14930
14931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14932         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14933         exists but doesn't work.
14934         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14935         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14937         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14938
14939 2007-03-25  Bruno Haible  <bruno@clisp.org>
14940
14941         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14942         returns inf. Needed on IRIX 6.5.
14943
14944 2007-03-25  Bruno Haible  <bruno@clisp.org>
14945
14946         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14947         (main): Use isnanl instead of x != x idiom.
14948         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14949
14950         * tests/test-frexp.c: Include isnan.h.
14951         (main): Use isnan instead of x != x idiom.
14952         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14953
14954 2007-03-25  Bruno Haible  <bruno@clisp.org>
14955
14956         * tests/test-frexp.c (NaN): New function/macro.
14957         (main): Use it instead of 0.0 / 0.0.
14958         * tests/test-isnan.c (NaN): New function/macro.
14959         (main): Use it instead of 0.0 / 0.0.
14960         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14961         (test_function): Use it instead of 0.0 / 0.0.
14962         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14963         (test_function): Use it instead of 0.0 / 0.0.
14964         * tests/test-snprintf-posix.h (NaN): New function/macro.
14965         (test_function): Use it instead of 0.0 / 0.0.
14966         * tests/test-sprintf-posix.h (NaN): New function/macro.
14967         (test_function): Use it instead of 0.0 / 0.0.
14968         * tests/test-fprintf-posix.h (NaN): New function/macro.
14969         (test_function): Use it instead of 0.0 / 0.0.
14970         * tests/test-printf-posix.h (NaN): New function/macro.
14971         (test_function): Use it instead of 0.0 / 0.0.
14972
14973         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14974
14975 2007-03-25  Bruno Haible  <bruno@clisp.org>
14976
14977         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14978
14979 2007-03-25  Bruno Haible  <bruno@clisp.org>
14980
14981         * lib/regexec.c (merge_state_with_log): Make static.
14982
14983 2007-03-25  Bruno Haible  <bruno@clisp.org>
14984
14985         * lib/trigl.c (kernel_rem_pio2): Make static.
14986
14987 2007-03-25  Bruno Haible  <bruno@clisp.org>
14988
14989         * lib/sincosl.c (sincosl_table): Make static.
14990
14991 2007-03-25  Bruno Haible  <bruno@clisp.org>
14992
14993         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14994         if the compiler does not support C99.
14995
14996 2007-03-25  Bruno Haible  <bruno@clisp.org>
14997
14998         * modules/time (Makefile.am): Ensure all rule action lines start with a
14999         tab.
15000
15001 2007-03-24  Bruno Haible  <bruno@clisp.org>
15002
15003         * modules/tsearch-tests: New file.
15004         * tests/test-tsearch.sh: New file.
15005         * tests/test-tsearch.c: New file, mostly copied from glibc.
15006
15007         * modules/search-tests: New file.
15008         * tests/test-search.c: New file.
15009
15010         * modules/search: New file.
15011         * lib/search_.h: New file, incorporating lib/tsearch.h.
15012         * m4/search_h.m4: New file.
15013         * lib/tsearch.h: Remove file.
15014         * lib/tsearch.c: Include search.h instead of tsearch.h.
15015         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15016         HAVE_TSEARCH.
15017         * modules/tsearch (Files): Remove lib/tsearch.h.
15018         (Depends-on): Add search.
15019         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15020         (Include): Change tsearch.h into search.h.
15021
15022 2007-03-24  Bruno Haible  <bruno@clisp.org>
15023
15024         * modules/fpucw: New file.
15025         * lib/fpucw.h: New file.
15026         * lib/frexp.c: Include fpucw.h.
15027         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15028         (FUNC): Use them.
15029         * lib/printf-frexp.c: Include fpucw.h.
15030         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15031         (FUNC): Use them.
15032         * lib/vasnprintf.c: Include fpucw.h.
15033         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15034         'long double' calculations.
15035         * tests/test-frexpl.c: Include fpucw.h.
15036         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15037         * tests/test-printf-frexpl.c: Include fpucw.h.
15038         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15039         * modules/frexpl (Depends-on): Add fpucw.
15040         * modules/printf-frexpl (Depends-on): Likewise.
15041         * modules/fprintf-posix (Depends-on): Likewise.
15042         * modules/snprintf-posix (Depends-on): Likewise.
15043         * modules/sprintf-posix (Depends-on): Likewise.
15044         * modules/vasnprintf-posix (Depends-on): Likewise.
15045         * modules/vasprintf-posix (Depends-on): Likewise.
15046         * modules/vfprintf-posix (Depends-on): Likewise.
15047         * modules/vsnprintf-posix (Depends-on): Likewise.
15048         * modules/vsprintf-posix (Depends-on): Likewise.
15049         * modules/frexpl-tests (Depends-on): Likewise.
15050         * modules/printf-frexpl-tests (Depends-on): Likewise.
15051
15052 2007-03-24  Bruno Haible  <bruno@clisp.org>
15053
15054         * lib/float+.h: New file.
15055         * lib/isnan.c: Include float+.h.
15056         (SIZE): New macro.
15057         (FUNC): Compare only SIZE bytes of the value.
15058         * lib/vasnprintf.c: Include float+.h.
15059         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15060         SIZEOF_LDBL or SIZEOF_DBL bytes.
15061         * modules/isnan-nolibm (Files): Add lib/float+.h.
15062         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15063         * modules/isnanl (Files): Add lib/float+.h.
15064         * modules/vasnprintf (Files): Add lib/float+.h.
15065
15066 2007-03-24  Bruno Haible  <bruno@clisp.org>
15067
15068         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15069         include isnanl-nolibm.h.
15070
15071 2007-03-24  Bruno Haible  <bruno@clisp.org>
15072
15073         * tests/test-read-file.c (main): Don't produce spurious output for
15074         expected situations. Make the test fail if it encountered unexpected
15075         results.
15076
15077 2007-03-24  Bruno Haible  <bruno@clisp.org>
15078
15079         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15080         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15081
15082 2007-03-24  Bruno Haible  <bruno@clisp.org>
15083
15084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15085
15086 2007-03-24  Bruno Haible  <bruno@clisp.org>
15087
15088         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15089         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15090
15091         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15092         * modules/utf8-ucs4: Turn into a symbolic link to module
15093         unistr/u8-mbtouc.
15094
15095         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15096         utf8-ucs4-unsafe.
15097         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15098         unistr/u8-mbtouc-unsafe.
15099
15100         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15101         * modules/utf16-ucs4: Turn into a symbolic link to module
15102         unistr/u16-mbtouc.
15103
15104         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15105         utf16-ucs4-unsafe.
15106         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15107         unistr/u16-mbtouc-unsafe.
15108
15109         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15110         * modules/ucs4-utf8: Turn into a symbolic link to module
15111         unistr/u8-ubtomb.
15112
15113         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15114         * modules/ucs4-utf16: Turn into a symbolic link to module
15115         unistr/u16-ubtomb.
15116
15117 2007-03-24  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15120         Enable the function only if HAVE_INLINE.
15121         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15122         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15123         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15124         Enable the function only if HAVE_INLINE.
15125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15126         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15127         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15128         Enable the function only if HAVE_INLINE.
15129         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15130         Enable the function only if HAVE_INLINE.
15131         * modules/utf8-ucs4: Update.
15132         * modules/utf8-ucs4-unsafe: Update.
15133         * modules/utf16-ucs4: Update.
15134         * modules/utf16-ucs4-unsafe: Update.
15135         * modules/ucs4-utf8: Update.
15136         * modules/ucs4-utf16: Update.
15137
15138 2007-03-24  Bruno Haible  <bruno@clisp.org>
15139
15140         * lib/utf8-ucs4.h: Remove file.
15141         * lib/utf8-ucs4-unsafe.h: Remove file.
15142         * lib/utf16-ucs4.h: Remove file.
15143         * lib/utf16-ucs4-unsafe.h: Remove file.
15144         * lib/ucs4-utf8.h: Remove file.
15145         * lib/ucs4-utf16.h: Remove file.
15146         * lib/unistr.h: Include their previous contents.
15147         * m4/utf-ucs4.m4: Remove file.
15148         * m4/ucs4-utf.m4: Remove file.
15149         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15150         (Depends-on): Add unistr/base.
15151         (configure.ac): Remove gl_UTF_UCS4.
15152         (Makefile.am): Update.
15153         (Include): Change to unistr.h.
15154         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15155         (Depends-on): Add unistr/base.
15156         (configure.ac): Remove gl_UTF_UCS4.
15157         (Makefile.am): Update.
15158         (Include): Change to unistr.h.
15159         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15160         (Depends-on): Add unistr/base.
15161         (configure.ac): Remove gl_UTF_UCS4.
15162         (Makefile.am): Update.
15163         (Include): Change to unistr.h.
15164         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15165         (Depends-on): Add unistr/base.
15166         (configure.ac): Remove gl_UTF_UCS4.
15167         (Makefile.am): Update.
15168         (Include): Change to unistr.h.
15169         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15170         (Depends-on): Add unistr/base.
15171         (configure.ac): Remove gl_UCS4_UTF.
15172         (Makefile.am): Update.
15173         (Include): Change to unistr.h.
15174         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15175         (Depends-on): Add unistr/base.
15176         (configure.ac): Remove gl_UCS4_UTF.
15177         (Makefile.am): Update.
15178         (Include): Change to unistr.h.
15179         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15180         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15181         utf8-ucs4-unsafe.h.
15182         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15183         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15184         utf16-ucs4-unsafe.h.
15185         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15186         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15187         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15188         * lib/unistr/u8-strchr.c: Likewise.
15189         * lib/unistr/u8-strrchr.c: Likewise.
15190         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15191         * lib/unistr/u16-strchr.c: Likewise.
15192         * lib/unistr/u16-strrchr.c: Likewise.
15193         * lib/striconveh.c: Update.
15194         * lib/linebreak.c: Update.
15195
15196 2007-03-24  Bruno Haible  <bruno@clisp.org>
15197
15198         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15199         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15200
15201 2007-03-22  Bruno Haible  <bruno@clisp.org>
15202
15203         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15204
15205 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15206
15207         * MODULES.html.sh (File system functions): New module write-any-file.
15208         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15209         * m4/write-any-file.m4: New files.
15210
15211 2007-03-23  Eric Blake  <ebb9@byu.net>
15212
15213         * gnulib-tool: Rearrange space-tab sequences, since some editors
15214         like to eat them.
15215
15216 2007-03-23  Eric Blake  <ebb9@byu.net>
15217
15218         * lib/version-etc.c (version_etc_va): Update license wording to
15219         be more concise.  Recommended by Richard Stallman.
15220
15221 2007-03-22  Bruno Haible  <bruno@clisp.org>
15222
15223         * lib/poll.c (MSG_PEEK): New fallback definition.
15224
15225 2007-03-22  Bruno Haible  <bruno@clisp.org>
15226
15227         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15228         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15229         (main): Update.
15230         Fixes a compilation error on BeOS.
15231
15232 2007-03-22  Bruno Haible  <bruno@clisp.org>
15233
15234         * modules/frexpl-tests: New file.
15235         * tests/test-frexpl.c: New file.
15236
15237         * modules/frexpl: New file.
15238         * m4/frexpl.m4: New file.
15239         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15240         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15242         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15243         (Depends-on): Add frexpl. Remove isnanl-nolibm.
15244         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15245
15246 2007-03-22  Bruno Haible  <bruno@clisp.org>
15247
15248         * lib/frexpl.c: Share code with lib/frexp.c.
15249         * modules/mathl (Files): Add lib/frexp.c.
15250         (Depends-on): Add isnanl-nolibm.
15251
15252 2007-03-22  Bruno Haible  <bruno@clisp.org>
15253
15254         * modules/printf-frexp (Files): Add m4/frexp.m4.
15255         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15256         only if the found frexp function actually works.
15257
15258 2007-03-22  Bruno Haible  <bruno@clisp.org>
15259
15260         * lib/frexp.c: Remove older implementation that uses divisions.
15261
15262 2007-03-21  Bruno Haible  <bruno@clisp.org>
15263
15264         * modules/frexp-tests: New file.
15265         * tests/test-frexp.c: New file.
15266
15267         * modules/frexp: New file.
15268         * lib/frexp.c: New file.
15269         * m4/frexp.m4: New file.
15270         * lib/math_.h (frexp): New declaration.
15271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15272         REPLACE_FREXP.
15273         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15274
15275 2007-03-21  Bruno Haible  <bruno@clisp.org>
15276
15277         * modules/isnanl-tests: New file.
15278         * tests/test-isnanl.c: New file.
15279
15280         * modules/isnanl: New file.
15281         * lib/isnanl.h: New file.
15282         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15283         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15284         gl_FUNC_ISNANL_WORKS.
15285         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15286         New macros.
15287
15288 2007-03-21  Bruno Haible  <bruno@clisp.org>
15289
15290         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15291         lib/isnanl.h.
15292         (Include): Update.
15293         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15294         * lib/vasnprintf.c: Update.
15295         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15296         tests/test-isnanl.h, remove tests/test-isnanl.c.
15297         (Makefile.am): Update.
15298         * tests/test-isnanl-nolibm.c: New file.
15299         * tests/test-isnanl.h: New file.
15300         * tests/test-isnanl.c: Remove file.
15301
15302 2007-03-21  Jim Meyering  <jim@meyering.net>
15303
15304         When trying to open ".", treat ESTALE like EACCES.
15305         * lib/savewd.c (savewd_save): Resort to forking not just upon
15306         failure with EACCES, but also when errno is ESTALE.
15307
15308 2007-03-20  Bruno Haible  <bruno@clisp.org>
15309
15310         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15311         Needed on AIX 5.1. Reported by Matthew Woehlke.
15312
15313 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15314
15315         Suggestions by Bruno Haible:
15316         * lib/acl-internal.h: Include "gettext.h" rather than rolling
15317         our own.
15318         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15319         * modules/acl (Depends-on): Add gettext.
15320
15321 2007-03-19  Bruno Haible  <bruno@clisp.org>
15322
15323         * modules/iconvme: Remove file.
15324         * lib/iconvme.h: Remove file.
15325         * lib/iconvme.c: Remove file.
15326         * m4/iconvme.m4: Remove file.
15327
15328 2007-03-19  Bruno Haible  <bruno@clisp.org>
15329
15330         * doc/relocatable-maint.texi: Break long shell script line.
15331         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15332
15333 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15334
15335         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
15336         handle file_has_acl.
15337         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
15338         * lib/acl.c: Move header inclusions and related macro defns into
15339         lib/acl-internal.h.
15340         (S_ISLNK): Remove defn, since that's now done for us.
15341         (file_has_acl): Move to lib/file-has-acl.c.
15342         Call acl_trivial if available.  This is the crucial part of the fix.
15343         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
15344         shared within the library.  Rewrite a bit, partly to make it compatible
15345         with the GNU coding style.
15346         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
15347         Remove unnecessary double-quotes.
15348         Don't test for acl_to_text; the build will catch that.
15349         Replace acl_entries if it doesn't exist and it is needed.
15350         Check for -lsec and acl_trivial (as used on Solaris 10).
15351         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
15352         lib/file-has-acl.c.
15353         (Depends-on): Add sys_stat, for S_ISLNK.
15354
15355 2007-03-19  Ben Pfaff  <blp@gnu.org>
15356
15357         * doc/gnulib.texi: Fix typos.
15358         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15359
15360 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15361
15362         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
15363         If size is zero here, buf must be zero.
15364
15365 2007-03-19  Simon Josefsson  <simon@josefsson.org>
15366
15367         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
15368         <bruno@clisp.org>.
15369
15370 2007-03-18  Bruno Haible  <bruno@clisp.org>
15371
15372         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15373         Suggested by Eric Blake.
15374
15375 2007-03-18  Ben Pfaff  <blp@gnu.org>
15376
15377         * doc/relocatable.texi: Recommend using as prefix a directory
15378         that does not exist and will never be created.  Based on
15379         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15380         and others.
15381
15382 2007-03-17  Bruno Haible  <bruno@clisp.org>
15383
15384         * lib/fchownat.c: Include lchown.h.
15385
15386 2007-03-17  Bruno Haible  <bruno@clisp.org>
15387
15388         Fix endless loop when the given allocated size was > INT_MAX.
15389         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15390         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15391         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15392         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15393         * lib/sprintf.c (sprintf): Likewise.
15394
15395 2007-03-17  Bruno Haible  <bruno@clisp.org>
15396
15397         * tests/test-argp-2.sh (func_compare): Output a context diff.
15398
15399 2007-03-17  Bruno Haible  <bruno@clisp.org>
15400
15401         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15402         locale's decimal-point character.
15403
15404 2007-03-17  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15407         before comparing it. Needed because on some platforms (e.g. x86) a
15408         'long double' occupies less bytes than sizeof (long double).
15409
15410 2007-03-17  Bruno Haible  <bruno@clisp.org>
15411
15412         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15413         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15414         * tests/test-getaddrinfo.c (simple): Likewise.
15415         * tests/test-read-file.c (main): Likewise.
15416
15417 2007-03-17  Bruno Haible  <bruno@clisp.org>
15418
15419         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
15420
15421 2007-03-17  Bruno Haible  <bruno@clisp.org>
15422
15423         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
15424         unused variable.
15425
15426 2007-03-17  Bruno Haible  <bruno@clisp.org>
15427
15428         * tests/test-c-strcasecmp.c: Include c-strcase.h.
15429         * tests/test-c-strncasecmp.c: Likewise.
15430
15431 2007-03-17  Bruno Haible  <bruno@clisp.org>
15432
15433         * modules/stdlib (Depends-on): Add unistd.
15434         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
15435         Needed for MacOS X 10.3.
15436
15437 2007-03-17  Bruno Haible  <bruno@clisp.org>
15438
15439         * lib/unistr/u-strdup.h: Include <stdlib.h>.
15440
15441 2007-03-17  Bruno Haible  <bruno@clisp.org>
15442
15443         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15444
15445 2007-03-17  Bruno Haible  <bruno@clisp.org>
15446
15447         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15448         to reflect files copied from gnulib (with or without modifications).
15449         Suggested by Jim Meyering.
15450
15451 2007-03-17  Eric Blake  <ebb9@byu.net>
15452
15453         * NEWS: Document stdlib change from 2007-02-18.
15454
15455 2007-03-17  Jim Meyering  <jim@meyering.net>
15456
15457         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15458         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15459         someone uses a name containing shell meta-characters.
15460         Reported by Alfred M. Szmidt.
15461
15462         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15463
15464 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15465
15466         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15467         and copy gettext configuration files only if configure.ac contains
15468         a use of AM_GNU_GETTEXT_VERSION.
15469
15470 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15471
15472         * build-aux/bootstrap (gnulib_name): New variable.
15473         (gnulib_tool_options): Use it.
15474
15475 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15476
15477         * tests/test-des.c: Use new namespace.
15478
15479 2007-03-15  Bruno Haible  <bruno@clisp.org>
15480
15481         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15482         Reported by James Youngman <jay@gnu.org>.
15483
15484 2007-03-15  Bruno Haible  <bruno@clisp.org>
15485
15486         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15487         declared prototype. Needed with cc on OSF/1 5.1.
15488
15489 2007-03-15  Bruno Haible  <bruno@clisp.org>
15490
15491         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15492         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15493         (struct gl_list_implementation): Add dispose_fn argument to the
15494         'create_empty', 'create' methods.
15495         (struct gl_list_impl_base): Add field 'dispose_fn'.
15496         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15497         argument.
15498         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15499         dispose_fn argument.
15500         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15501         dispose_fn on the dropped values.
15502         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15503         dispose_fn argument.
15504         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15505         dropped values.
15506         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15507         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15508         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15509         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15510         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15511         argument.
15512         (gl_tree_list_free): Call dispose_fn on the dropped values.
15513         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15514         the dropped values.
15515         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15516         Add dispose_fn argument.
15517         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15518         Call dispose_fn on the dropped values.
15519         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15520         Add dispose_fn argument.
15521         (gl_sublist_create): Initialize the 'dispose_fn' field.
15522         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15523         * tests/test-array_list.c (main): Update.
15524         * tests/test-carray_list.c (main): Update.
15525         * tests/test-avltree_list.c (main): Update.
15526         * tests/test-rbtree_list.c (main): Update.
15527         * tests/test-avltreehash_list.c (main): Update.
15528         * tests/test-rbtreehash_list.c (main): Update.
15529         * tests/test-linked_list.c (main): Update.
15530         * tests/test-linkedhash_list.c (main): Update.
15531         * tests/test-array_oset.c (main): Update.
15532
15533 2007-03-15  Bruno Haible  <bruno@clisp.org>
15534
15535         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15536         (gl_oset_create_empty): Add dispose_fn argument.
15537         (struct gl_oset_implementation): Add dispose_fn argument to
15538         'create_empty' method.
15539         (struct gl_oset_impl_base): Add dispose_fn field.
15540         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15541         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15542         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15543         values.
15544         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15545         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15546         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15547         dropped value.
15548         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15549         dropped value.
15550         * tests/test-array_oset.c (main): Update.
15551         * tests/test-avltree_oset.c (main): Update.
15552         * tests/test-rbtree_oset.c (main): Update.
15553         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15554
15555 2007-03-13  Bruno Haible  <bruno@clisp.org>
15556
15557         * tests/test-stdbool.c (i): Update after last patch.
15558
15559 2007-03-12  Bruno Haible  <bruno@clisp.org>
15560
15561         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15562         the iswprint macro. Needed on Solaris 2.5.1.
15563
15564 2007-03-12  Bruno Haible  <bruno@clisp.org>
15565
15566         * tests/test-printf-frexp.c (main): Declare x as volatile.
15567
15568 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15569
15570         * doc/gnulib.texi (Build robot for gnulib): New section.
15571
15572 2007-03-12  Jim Meyering  <jim@meyering.net>
15573
15574         * build-aux/bootstrap: New file.
15575         * build-aux/bootstrap.conf: New file, from coreutils.
15576
15577 2007-03-11  Bruno Haible  <bruno@clisp.org>
15578
15579         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15580
15581 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15582
15583         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15584         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15585         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15586
15587 2007-03-11  Bruno Haible  <bruno@clisp.org>
15588
15589         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15590         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15591
15592 2007-03-11  Bruno Haible  <bruno@clisp.org>
15593
15594         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15595         formula. Needed for SunPRO C 5.0.
15596
15597 2007-03-11  Bruno Haible  <bruno@clisp.org>
15598
15599         * modules/long-options (Depends-on): Add getopt.
15600
15601 2007-03-11  Bruno Haible  <bruno@clisp.org>
15602
15603         * modules/modechange (Depends-on): Add stdbool.
15604
15605 2007-03-11  Bruno Haible  <bruno@clisp.org>
15606
15607         * modules/i-ring (Depends-on): Add stdbool.
15608
15609 2007-03-11  Bruno Haible  <bruno@clisp.org>
15610
15611         * modules/gc-des (Depends-on): Add stdbool.
15612
15613 2007-03-11  Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15616
15617 2007-03-11  Bruno Haible  <bruno@clisp.org>
15618
15619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15620
15621 2007-03-11  Bruno Haible  <bruno@clisp.org>
15622
15623         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15624
15625 2007-03-11  Bruno Haible  <bruno@clisp.org>
15626
15627         * lib/vasnprintf.c (sprintf): Undefine.
15628
15629 2007-03-11  Bruno Haible  <bruno@clisp.org>
15630
15631         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15632         initializers in SunPRO C and Compaq C compilers.
15633
15634 2007-03-11  Bruno Haible  <bruno@clisp.org>
15635
15636         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15637         decrementing code ANSI C compliant.
15638
15639 2007-03-11  Bruno Haible  <bruno@clisp.org>
15640
15641         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15642         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15643
15644 2007-03-11  Bruno Haible  <bruno@clisp.org>
15645
15646         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15647         <stdbool.h> substitute doesn't pass.
15648
15649 2007-03-11  Bruno Haible  <bruno@clisp.org>
15650
15651         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15652
15653 2007-03-11  Bruno Haible  <bruno@clisp.org>
15654
15655         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15656         script, for submission to autobuild.josefsson.org.
15657
15658 2007-03-10  Bruno Haible  <bruno@clisp.org>
15659
15660         * modules/canonicalize-lgpl-tests: New file.
15661         * tests/test-canonicalize-lgpl.sh: New file.
15662         * tests/test-canonicalize-lgpl.c: New file.
15663
15664         * modules/c-strcase-tests: New file.
15665         * tests/test-c-strcase.sh: New file.
15666         * tests/test-c-strcasecmp.c: New file.
15667         * tests/test-c-strncasecmp.c: New file.
15668
15669         * modules/atexit-tests: New file.
15670         * tests/test-atexit.sh: New file.
15671         * tests/test-atexit.c: New file.
15672
15673 2007-03-10  Bruno Haible  <bruno@clisp.org>
15674
15675         * tests/test-binary-io.sh: Use temporary filenames that are not so
15676         likely to clash with those of other tests (in a parallel make).
15677         * tests/test-binary-io.c: Likewise.
15678
15679 2007-03-10  Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15682         fallback; use #error instead.
15683         Suggested by Simon Josefsson.
15684
15685 2007-03-10  Bruno Haible  <bruno@clisp.org>
15686
15687         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15688         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15689         first and the last.
15690
15691 2007-03-10  Bruno Haible  <bruno@clisp.org>
15692
15693         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15694
15695 2007-03-10  Bruno Haible  <bruno@clisp.org>
15696
15697         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15698         "make distcheck".
15699         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15700         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15701         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15702
15703 2007-03-10  Bruno Haible  <bruno@clisp.org>
15704
15705         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15706         variable.
15707         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15708         variable.
15709
15710 2007-03-09  Eric Blake  <ebb9@byu.net>
15711         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15712
15713         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15714         types are not being provided by gnulib.
15715         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15716         types are supported.
15717
15718 2007-03-10  Bruno Haible  <bruno@clisp.org>
15719
15720         * lib/stdio_.h (__attribute__): New macro.
15721         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15722         vsprintf): Specify __attribute__ __format__ for GCC.
15723         Suggested by Eric Blake.
15724
15725 2007-03-09  Bruno Haible  <bruno@clisp.org>
15726
15727         * modules/printf-posix-tests: New file.
15728         * tests/test-printf-posix.sh: New file.
15729         * tests/test-printf-posix.c: New file.
15730
15731         * modules/printf-posix: New file.
15732         * lib/printf.c: New file.
15733         * m4/printf-posix-rpl.m4: New file.
15734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15735         REPLACE_PRINTF.
15736         * lib/stdio_.h (printf): New declaration.
15737         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15738         ____strfmon____): New macros.
15739         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15740         REPLACE_PRINTF.
15741
15742 2007-03-09  Bruno Haible  <bruno@clisp.org>
15743
15744         * tests/test-vasnprintf-posix2.sh: New file.
15745         * tests/test-vasnprintf-posix2.c: New file.
15746         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15747         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15748         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15749
15750         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15751         a locale dependent decimal point, rather than always '.'.
15752
15753 2007-03-09  Eric Blake  <ebb9@byu.net>
15754
15755         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15756         spite of platforms like Tandem/NSK that define it to -1.
15757
15758 2007-03-08  Bruno Haible  <bruno@clisp.org>
15759
15760         * modules/vprintf-posix-tests: New file.
15761         * tests/test-vprintf-posix.sh: New file.
15762         * tests/test-vprintf-posix.c: New file.
15763         * tests/test-printf-posix.h: New file.
15764
15765         * modules/vprintf-posix: New file.
15766         * lib/vprintf.c: New file.
15767         * m4/vprintf-posix.m4: New file.
15768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15769         REPLACE_VPRINTF.
15770         * lib/stdio_.h (vprintf): New declaration.
15771         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15772         REPLACE_VPRINTF.
15773
15774 2007-03-08  Bruno Haible  <bruno@clisp.org>
15775
15776         * modules/fprintf-posix-tests: New file.
15777         * tests/test-fprintf-posix.sh: New file.
15778         * tests/test-fprintf-posix.c: New file.
15779
15780         * modules/fprintf-posix: New file.
15781         * lib/fprintf.c: New file.
15782         * m4/fprintf-posix.m4: New file.
15783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15784         REPLACE_FPRINTF.
15785         * lib/stdio_.h (fprintf): New declaration.
15786         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15787         REPLACE_FPRINTF.
15788
15789 2007-03-08  Bruno Haible  <bruno@clisp.org>
15790
15791         * modules/vfprintf-posix-tests: New file.
15792         * tests/test-vfprintf-posix.sh: New file.
15793         * tests/test-vfprintf-posix.c: New file.
15794         * tests/test-fprintf-posix.h: New file.
15795         * tests/test-fprintf-posix.out: New file.
15796
15797         * modules/vfprintf-posix: New file.
15798         * lib/vfprintf.c: New file.
15799         * m4/vfprintf-posix.m4: New file.
15800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15801         REPLACE_VFPRINTF.
15802         * lib/stdio_.h (vfprintf): New declaration.
15803         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15804         REPLACE_VFPRINTF.
15805
15806 2007-03-08  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15809
15810 2007-03-08  Bruno Haible  <bruno@clisp.org>
15811
15812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15813         instead of 'expr' invocations.
15814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15819         Suggested by Paul Eggert.
15820
15821 2007-03-08  Bruno Haible  <bruno@clisp.org>
15822
15823         * modules/fseterr-tests: New file.
15824         * tests/test-fseterr.c: New file.
15825
15826         * modules/fseterr: New file.
15827         * lib/fseterr.h: New file.
15828         * lib/fseterr.c: New file.
15829
15830 2007-03-08  Bruno Haible  <bruno@clisp.org>
15831
15832         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15833         * lib/getopt_.h: Likewise.
15834         * lib/mbswidth.h: Likewise.
15835         * lib/setenv.h: Likewise.
15836         * lib/vasnprintf.h: Likewise.
15837         * lib/vasprintf.h: Likewise.
15838         * lib/verror.h: Likewise.
15839         * lib/xsetenv.h: Likewise.
15840         * lib/xvasprintf.h: Likewise.
15841
15842 2007-03-08  Jim Meyering  <jim@meyering.net>
15843
15844         * users.txt: Add parted.
15845
15846         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15847
15848 2007-03-07  Bruno Haible  <bruno@clisp.org>
15849
15850         * m4/printf.m4: Make the shell script snippets copy&pastable.
15851
15852 2007-03-02  Bruno Haible  <bruno@clisp.org>
15853
15854         * lib/netinet_in_.h: New file.
15855         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15856         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15857         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15858         (Depends-on): Add absolute-header.
15859         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15860         into netinet/in.h.
15861
15862 2007-03-03  Bruno Haible  <bruno@clisp.org>
15863
15864         * lib/sys_select_.h: New file.
15865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15866         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15867         * modules/sys_select (Files): Add lib/sys_select_.h.
15868         (Depends-on): Add absolute-header.
15869         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15870         into sys/select.h.
15871
15872 2007-03-02  Bruno Haible  <bruno@clisp.org>
15873
15874         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15875         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15876         values.
15877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15878         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15879         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15880         * modules/sys_socket (Depends-on): Add absolute-header.
15881         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15882         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15883         (Include): Remove requirement of inclusion of <sys/types.h>.
15884
15885 2007-03-02  Bruno Haible  <bruno@clisp.org>
15886
15887         * lib/byteswap_.h (bswap_32): Fix formula.
15888
15889 2007-03-06  Bruno Haible  <bruno@clisp.org>
15890
15891         * modules/sprintf-posix-tests: New file.
15892         * tests/test-sprintf-posix.c: New file.
15893
15894         * modules/sprintf-posix: New file.
15895         * lib/sprintf.c: New file.
15896         * m4/sprintf-posix.m4: New file.
15897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15898         REPLACE_SPRINTF.
15899         * lib/stdio_.h (sprintf): New declaration.
15900         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15901         REPLACE_SPRINTF.
15902
15903 2007-03-06  Bruno Haible  <bruno@clisp.org>
15904
15905         * modules/vsprintf-posix-tests: New file.
15906         * tests/test-vsprintf-posix.c: New file.
15907         * tests/test-sprintf-posix.h: New file.
15908
15909         * modules/vsprintf-posix: New file.
15910         * lib/vsprintf.c: New file.
15911         * m4/vsprintf-posix.m4: New file.
15912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15913         REPLACE_VSPRINTF.
15914         * lib/stdio_.h (vsprintf): New declaration.
15915         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15916         REPLACE_VSPRINTF.
15917
15918 2007-03-06  Bruno Haible  <bruno@clisp.org>
15919
15920         * modules/vsnprintf (Depend-on): Remove minmax.
15921
15922 2007-03-06  Bruno Haible  <bruno@clisp.org>
15923
15924         * modules/snprintf-posix-tests: New file.
15925         * tests/test-snprintf-posix.c: New file.
15926
15927         * modules/snprintf-posix: New file.
15928         * m4/snprintf-posix.m4: New file.
15929         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15930         gl_FUNC_SNPRINTF.
15931         (gl_FUNC_SNPRINTF): Invoke it.
15932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15933         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15934         is set.
15935         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15936
15937 2007-03-06  Bruno Haible  <bruno@clisp.org>
15938
15939         * modules/vsnprintf-posix-tests: New file.
15940         * tests/test-vsnprintf-posix.c: New file.
15941         * tests/test-snprintf-posix.h: New file.
15942
15943         * modules/vsnprintf-posix: New file.
15944         * m4/vsnprintf-posix.m4: New file.
15945         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15946         gl_FUNC_VSNPRINTF.
15947         (gl_FUNC_VSNPRINTF): Invoke it.
15948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15949         * lib/stdio_.h (vsnprintf): Define as a replacement if
15950         REPLACE_VSNPRINTF is set.
15951         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15952
15953 2007-03-06  Bruno Haible  <bruno@clisp.org>
15954
15955         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15957
15958 2007-03-06  Bruno Haible  <bruno@clisp.org>
15959
15960         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15961         (asinl): Declare also if HAVE_DECL_ASINL is set.
15962         (atanl): Declare also if HAVE_DECL_ATANL is set.
15963         (ceill): Declare also if HAVE_DECL_CEILL is set.
15964         (cosl): Declare also if HAVE_DECL_COSL is set.
15965         (expl): Declare also if HAVE_DECL_EXPL is set.
15966         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15967         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15968         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15969         (logl): Declare also if HAVE_DECL_LOGL is set.
15970         (sinl): Declare also if HAVE_DECL_SINL is set.
15971         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15972         (tanl): Declare also if HAVE_DECL_TANL is set.
15973         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15975         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15976         declaration of frexpl, ldexpl.
15977         * modules/printf-frexpl (Depends-on): Add math.
15978         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15979
15980 2007-03-05  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15983         frexpl and ldexpl are declared.
15984         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15985
15986 2007-03-05  Bruno Haible  <bruno@clisp.org>
15987
15988         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15989         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15990
15991 2007-03-05  Bruno Haible  <bruno@clisp.org>
15992
15993         * lib/stdio_.h: Include <stddef.h>.
15994
15995 2007-03-05  Bruno Haible  <bruno@clisp.org>
15996
15997         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15998
15999 2007-03-05  Bruno Haible  <bruno@clisp.org>
16000
16001         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16002         NetBSD 4, from Ralf Wildenhues.
16003
16004 2007-03-04  Bruno Haible  <bruno@clisp.org>
16005
16006         * lib/vasprintf.h: Update #if logic for the case when the functions
16007         exist but are overridden.
16008
16009 2007-03-04  Bruno Haible  <bruno@clisp.org>
16010
16011         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16012         implementations: glibc-2.4 and MacOS X 10.3.
16013         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16014         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16015         * tests/test-vasprintf-posix.c (test_function): Likewise.
16016
16017 2007-03-04  Bruno Haible  <bruno@clisp.org>
16018
16019         * modules/vasprintf-posix-tests: New file.
16020         * tests/test-vasprintf-posix.c: New file.
16021
16022         * modules/vasprintf-posix: New file.
16023         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16024         defined.
16025         * m4/vasprintf-posix.m4: New file.
16026         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16027         gl_FUNC_VASPRINTF.
16028         (gl_FUNC_VASPRINTF): Invoke it.
16029         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16030         here.
16031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16032
16033 2007-03-04  Bruno Haible  <bruno@clisp.org>
16034
16035         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16036         REPLACE_GETTIMEOFDAY.
16037         * modules/sys_time (Makefile.am): Likewise.
16038         * m4/sys_time_h.m4: Likewise.
16039         * m4/gettimeofday.m4: Likewise.
16040
16041 2007-03-04  Bruno Haible  <bruno@clisp.org>
16042
16043         * modules/vasnprintf-posix-tests: New file.
16044         * tests/test-vasnprintf-posix.c: New file.
16045
16046         * modules/vasnprintf-posix: New file.
16047         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16048         printf-frexpl.h.
16049         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16050         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16051         REPLACE_VASNPRINTF is defined.
16052         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16053         gl_FUNC_VASNPRINTF.
16054         (gl_FUNC_VASNPRINTF): Invoke it.
16055         * m4/vasnprintf-posix.m4: New file.
16056         * m4/printf.m4: New file.
16057
16058 2007-03-04  Bruno Haible  <bruno@clisp.org>
16059
16060         Compile progreloc.c only if --enable-relocatable is specified.
16061         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16062         if --enable-relocatable was specified.
16063         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16064         lib_SOURCES.
16065
16066 2007-03-04  Jim Meyering  <jim@meyering.net>
16067
16068         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16069         Use it consistently, rather than enumerating errno constants.
16070
16071 2007-03-04  Bruno Haible  <bruno@clisp.org>
16072
16073         * modules/xvasprintf-tests: New file.
16074         * tests/test-xvasprintf.c: New file.
16075
16076         * modules/vasprintf-tests: New file.
16077         * tests/test-vasprintf.c: New file.
16078
16079         * modules/vasnprintf-tests: New file.
16080         * tests/test-vasnprintf.c: New file.
16081
16082         * modules/vsnprintf-tests: New file.
16083         * tests/test-vsnprintf.c: New file.
16084
16085         * modules/snprintf-tests: New file.
16086         * tests/test-snprintf.c: New file.
16087
16088 2007-03-04  Bruno Haible  <bruno@clisp.org>
16089
16090         Compile relocatable.c only if --enable-relocatable is specified.
16091         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16092         gl_RELOCATABLE_LIBRARY.
16093         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16094         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16095         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16096         gl_RELOCATABLE_LIBRARY.
16097         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16098         (Makefile.am): Remove lib_SOURCES.
16099         * modules/relocatable-lib-lgpl (configure.ac): Invoke
16100         gl_RELOCATABLE_LIBRARY.
16101         (Makefile.am): Remove lib_SOURCES.
16102         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16103         always.
16104         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16105         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16106
16107 2007-03-04  Bruno Haible  <bruno@clisp.org>
16108
16109         * modules/argmatch-tests: New file.
16110         * tests/test-argmatch.c: New file.
16111
16112         * tests/test-allocsa.c (main): Halve the number of loop runs.
16113
16114         * modules/alloca-opt-tests: New file.
16115         * tests/test-alloca-opt.c: New file.
16116
16117 2007-03-04  Jim Meyering  <jim@meyering.net>
16118
16119         Work around difference between Linux ACLs and Solaris 10 ZFS.
16120         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16121         for EINVAL.
16122
16123 2007-03-03  Bruno Haible  <bruno@clisp.org>
16124
16125         * modules/relocatable-prog (Depends-on): Add back progreloc's
16126         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16127
16128 2007-03-03  Bruno Haible  <bruno@clisp.org>
16129
16130         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16131         * modules/relocatable-lib: New file.
16132
16133 2007-03-03  Bruno Haible  <bruno@clisp.org>
16134
16135         * modules/relocatable-prog: Renamed from modules/relocatable.
16136         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16137
16138 2007-03-03  Bruno Haible  <bruno@clisp.org>
16139
16140         * modules/relocatable-script (Files): Add doc/relocatable.texi,
16141         m4/relocatable-lib.m4.
16142         (Depends-on): Remove 'relocatable'.
16143         (configure.ac): Add gl_RELOCATABLE_NOP.
16144
16145 2007-03-03  Bruno Haible  <bruno@clisp.org>
16146
16147         * modules/relocatable-prog-wrapper: New file.
16148         * modules/relocatable (Depends-on): Add it. Remove all other
16149         dependencies except progname.
16150         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16151
16152         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16153         (gl_FUNC_STRERROR): Nop.
16154         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16155
16156         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16157         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16158
16159         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16160         (gl_FUNC_READLINK): Update.
16161
16162         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16163
16164 2007-03-03  Bruno Haible  <bruno@clisp.org>
16165
16166         * lib/xreadlink.c: Include <unistd.h> unconditionally.
16167         * modules/xreadlink (Depends-on): Add unistd.
16168         * modules/xreadlink-with-size (Depends-on): Likewise.
16169
16170 2007-03-03  Bruno Haible  <bruno@clisp.org>
16171
16172         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16173         extracted from gt_FUNC_SETENV.
16174         (gt_FUNC_SETENV): Remove macro.
16175         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16176         remove gt_FUNC_SETENV.
16177
16178 2007-03-03  Bruno Haible  <bruno@clisp.org>
16179
16180         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16181         ENABLE_RELOCATABLE here.
16182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16183
16184 2007-03-03  Bruno Haible  <bruno@clisp.org>
16185
16186         * modules/rbtreehash-list-tests (Depends-on): Add progname.
16187         * tests/test-rbtreehash_list.c: Include progname.h.
16188         (main): Call set_program_name.
16189
16190         * modules/rbtree-oset-tests (Depends-on): Add progname.
16191         * tests/test-rbtree_oset.c: Include progname.h.
16192         (main): Call set_program_name.
16193
16194         * modules/rbtree-list-tests (Depends-on): Add progname.
16195         * tests/test-rbtree_list.c: Include progname.h.
16196         (main): Call set_program_name.
16197
16198         * modules/linked-list-tests (Depends-on): Add progname.
16199         * tests/test-linked_list.c: Include progname.h.
16200         (main): Call set_program_name.
16201
16202 2007-03-03  Bruno Haible  <bruno@clisp.org>
16203
16204         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16205         All uses of __restrict changed to _Restrict_.
16206         * lib/glob_.h (__restrict): Remove macro.
16207
16208 2007-03-02  Bruno Haible  <bruno@clisp.org>
16209
16210         * modules/gettext (configure.ac): Require gettext infrastructure
16211         from version 0.16.1.
16212
16213 2007-03-02  Bruno Haible  <bruno@clisp.org>
16214
16215         * modules/linkedhash-list-tests (Depends-on): Add progname.
16216         * tests/test-linkedhash_list.c: Include progname.h.
16217         (main): Call set_program_name.
16218
16219         * modules/carray-list-tests (Depends-on): Add progname.
16220         * tests/test-carray_list.c: Include progname.h.
16221         (main): Call set_program_name.
16222
16223         * modules/avltreehash-list-tests (Depends-on): Add progname.
16224         * tests/test-avltreehash_list.c: Include progname.h.
16225         (main): Call set_program_name.
16226
16227         * modules/avltree-oset-tests (Depends-on): Add progname.
16228         * tests/test-avltree_oset.c: Include progname.h.
16229         (main): Call set_program_name.
16230
16231         * modules/avltree-list-tests (Depends-on): Add progname.
16232         * tests/test-avltree_list.c: Include progname.h.
16233         (main): Call set_program_name.
16234
16235         * modules/array-oset-tests (Depends-on): Add progname.
16236         * tests/test-array_oset.c: Include progname.h.
16237         (main): Call set_program_name.
16238
16239         * modules/array-list-tests (Depends-on): Add progname.
16240         * tests/test-array_list.c: Include progname.h.
16241         (main): Call set_program_name.
16242
16243         * modules/argp-tests (Depends-on): Add progname.
16244         * tests/test-argp.c: Include argp.h first. Include progname.h.
16245         (main): Call set_program_name.
16246
16247 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
16248
16249         * doc/gnulib-tool.texi (Initial import): Reword description of
16250         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16251         limited effect even if defined after the first system include.
16252
16253 2007-03-01  Bruno Haible  <bruno@clisp.org>
16254
16255         * build-aux/config.libpath: Update to libtool-1.5.22.
16256         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16257
16258 2007-03-01  Bruno Haible  <bruno@clisp.org>
16259
16260         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16261         foo_CFLAGS.
16262         Reported by Ralf Wildenhues.
16263
16264 2007-03-01  Bruno Haible  <bruno@clisp.org>
16265
16266         * build-aux/install-reloc: Remove object files left over by some
16267         compilers.
16268         Reported by Ralf Wildenhues.
16269
16270 2007-03-01  Bruno Haible  <bruno@clisp.org>
16271
16272         * build-aux/install-reloc: Break long lines.
16273
16274 2007-03-01  Bruno Haible  <bruno@clisp.org>
16275
16276         * doc/relocatable.texi: Document that it may not work on OpenBSD.
16277         Reported by Ralf Wildenhues.
16278
16279 2007-03-01  Bruno Haible  <bruno@clisp.org>
16280
16281         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16282         include ordering constraints.
16283
16284 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16285
16286         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16288         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16289         as another example.
16290         * lib/time_.h: Fix misspelling.
16291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16292         Require gl_HEADER_TIME_H_DEFAULTS.
16293         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16294         * m4/time_r.m4 (gl_TIME_R): Likewise.
16295         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16296
16297 2007-03-01  Bruno Haible  <bruno@clisp.org>
16298
16299         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16300         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16301
16302 2007-03-01  Jim Meyering  <jim@meyering.net>
16303
16304         * modules/xreadlink (Maintainer): Add my name.
16305         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16306
16307 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16308             Bruno Haible  <bruno@clisp.org>
16309
16310         * build-aux/install-reloc: Compile also c-ctype.c.
16311         * build-aux/relocatable.sh.in: New file.
16312         * doc/relocatable.texi: New file.
16313         * doc/relocatable-maint.texi: New file.
16314         * doc/gnulib.texi: Include relocatable-maint.texi.
16315         * lib/progreloc.c: Include unistd.h unconditionally.
16316         * lib/relocwrapper.c: Include unistd.h unconditionally.
16317         Include c-ctype.h.
16318         (add_dotbin): Use c_tolower.
16319         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16320         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16321         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16322         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16323         to m4/relocatable-lib.m4.
16324         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16325         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16326         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16327         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16328         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16329         * modules/relocatable: New file.
16330         * modules/relocatable-lib: New file.
16331         * modules/relocatable-script: New file.
16332
16333 2007-02-28  Bruno Haible  <bruno@clisp.org>
16334
16335         Import --enable-relocatable infrastructure.
16336         * build-aux/config.libpath: New file, from GNU gettext.
16337         * build-aux/install-reloc: New file, from GNU gettext.
16338         * build-aux/reloc-ldflags: New file, from GNU gettext.
16339         * lib/relocatable.h: New file, from GNU gettext.
16340         * lib/relocatable.c: New file, from GNU gettext.
16341         * lib/relocwrapper.c: New file, from GNU gettext.
16342         * m4/relocatable.m4: New file, from GNU gettext.
16343
16344 2007-02-28  Bruno Haible  <bruno@clisp.org>
16345
16346         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
16347
16348         * modules/xreadlink: New file, from GNU gettext with modifications.
16349         * lib/xreadlink.c: New file, from GNU gettext.
16350         * lib/xreadlink.h: Add comments.
16351         (xreadlink): New declaration.
16352
16353         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
16354         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
16355         lib/xreadlink-with-size.c.
16356         (configure.ac): Remove gl_XREADLINK invocation.
16357         (Makefile.am): Augment lib_SOURCES.
16358         * m4/xreadlink.m4: Remove file.
16359         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
16360         (xreadlink_with_size): Renamed from xreadink.
16361         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
16362         * modules/canonicalize (Depends-on): Replace xreadlink with
16363         xreadlink-with-size.
16364         * lib/canonicalize.c (canonicalize_filename_mode): Update.
16365
16366 2007-02-25  Jim Meyering  <jim@meyering.net>
16367
16368         * build-aux/announce-gen: When complaining about excess arguments,
16369         list them.
16370
16371 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16372
16373         * README: Document signed integer overflow situation more
16374         accurately.
16375
16376 2007-02-25  Bruno Haible  <bruno@clisp.org>
16377
16378         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16379         'a' or 'A' conversion.
16380
16381 2007-02-25  Bruno Haible  <bruno@clisp.org>
16382
16383         * modules/filename: Renamed from modules/pathname.
16384         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16385         lib/concatpath.c with lib/concat-filename.c.
16386         (Makefile.am): Update.
16387         (Include): Replace pathname.h with filename.h.
16388         * lib/filename.h: Renamed from lib/pathname.h.
16389         (concatenated_filename): Renamed from concatenated_pathname.
16390         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16391         (concatenated_filename): Renamed from concatenated_pathname.
16392         * lib/findprog.c: Include filename.h instead of pathname.h.
16393         (find_in_path): Update.
16394         * lib/javacomp.c: Include filename.h instead of pathname.h.
16395         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16396         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16397         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16398         is_oldgcj_14_13_usable, is_javac_usable): Update.
16399         * lib/javaexec.c: Include filename.h instead of pathname.h.
16400         (execute_java_class): Update.
16401         * modules/findprog: Update.
16402         * modules/javacomp: Update.
16403         * modules/javaexec: Update.
16404         * MODULES.html.sh (File system functions): Add 'filename', remove
16405         'pathname'.
16406
16407 2007-02-25  Bruno Haible  <bruno@clisp.org>
16408
16409         * modules/printf-frexpl-tests: New file.
16410         * tests/test-printf-frexpl.c: New file.
16411
16412         * modules/printf-frexpl: New file.
16413         * lib/printf-frexpl.h: New file.
16414         * lib/printf-frexpl.c: New file.
16415         * m4/printf-frexpl.m4: New file.
16416
16417 2007-02-25  Bruno Haible  <bruno@clisp.org>
16418
16419         * modules/printf-frexp-tests: New file.
16420         * tests/test-printf-frexp.c: New file.
16421
16422         * modules/printf-frexp: New file.
16423         * lib/printf-frexp.h: New file.
16424         * lib/printf-frexp.c: New file.
16425         * m4/printf-frexp.m4: New file.
16426
16427 2007-02-25  Bruno Haible  <bruno@clisp.org>
16428
16429         Assume automake >= 1.10 for the tests.
16430         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
16431         * modules/arctwo-tests: Likewise.
16432         * modules/argp-tests: Likewise.
16433         * modules/avltree-list-tests: Likewise.
16434         * modules/avltree-oset-tests: Likewise.
16435         * modules/avltreehash-list-tests: Likewise.
16436         * modules/carray-list-tests: Likewise.
16437         * modules/crc-tests: Likewise.
16438         * modules/des-tests: Likewise.
16439         * modules/gc-arcfour-tests: Likewise.
16440         * modules/gc-arctwo-tests: Likewise.
16441         * modules/gc-des-tests: Likewise.
16442         * modules/gc-hmac-md5-tests: Likewise.
16443         * modules/gc-hmac-sha1-tests: Likewise.
16444         * modules/gc-md2-tests: Likewise.
16445         * modules/gc-md4-tests: Likewise.
16446         * modules/gc-md5-tests: Likewise.
16447         * modules/gc-pbkdf2-sha1-tests: Likewise.
16448         * modules/gc-rijndael-tests: Likewise.
16449         * modules/gc-sha1-tests: Likewise.
16450         * modules/gc-tests: Likewise.
16451         * modules/getaddrinfo-tests: Likewise.
16452         * modules/hmac-md5-tests: Likewise.
16453         * modules/hmac-sha1-tests: Likewise.
16454         * modules/linked-list-tests: Likewise.
16455         * modules/linkedhash-list-tests: Likewise.
16456         * modules/lock-tests: Likewise.
16457         * modules/md2-tests: Likewise.
16458         * modules/md4-tests: Likewise.
16459         * modules/md5-tests: Likewise.
16460         * modules/rbtree-list-tests: Likewise.
16461         * modules/rbtree-oset-tests: Likewise.
16462         * modules/rbtreehash-list-tests: Likewise.
16463         * modules/read-file-tests: Likewise.
16464         * modules/rijndael-tests: Likewise.
16465         * modules/stdint-tests: Likewise.
16466         * modules/tls-tests: Likewise.
16467
16468 2007-02-24  Bruno Haible  <bruno@clisp.org>
16469
16470         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16471         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16472         function; instead check whether isnan with a double argument links.
16473         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16474         function; instead check whether isnan with a 'long double' argument
16475         links.
16476         Reported by Eric Blake <ebb9@byu.net>.
16477
16478 2007-02-24  Bruno Haible  <bruno@clisp.org>
16479
16480         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16481         defined.
16482         * lib/isnanl.c: Remove all code. Just include isnan.c.
16483         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16484
16485 2007-02-25  Jim Meyering  <jim@meyering.net>
16486
16487         Avoid conflicting types for 'unsetenv' on FreeBSD.
16488         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16489         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16490         in stdlib.h.
16491
16492 2007-02-24  Bruno Haible  <bruno@clisp.org>
16493
16494         * modules/isnanl-nolibm-tests: New file.
16495         * tests/test-isnanl.c: New file.
16496
16497         * modules/isnanl-nolibm: New file.
16498         * lib/isnanl.h: New file.
16499         * lib/isnanl.c: New file.
16500         * m4/isnanl.m4: New file.
16501
16502 2007-02-24  Bruno Haible  <bruno@clisp.org>
16503
16504         * modules/isnan-nolibm-tests: New file.
16505         * tests/test-isnan.c: New file.
16506
16507         * modules/isnan-nolibm: New file.
16508         * lib/isnan.h: New file.
16509         * lib/isnan.c: New file.
16510         * m4/isnan.m4: New file.
16511
16512 2007-02-24  Bruno Haible  <bruno@clisp.org>
16513
16514         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16515         assume that an exponent fits in 20 bits.
16516
16517 2007-02-24  Jim Meyering  <jim@meyering.net>
16518
16519         * m4/regex.m4: Update the description of the configure-time option,
16520         --without-included-regex, to state accurately what the defaults are,
16521         and perhaps to give people an idea why using this option is risky.
16522
16523 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16526         loops on small arguments.  This attempts to avoid the problem
16527         Bruno Haible reported for AIX 4.3.2 in
16528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16529
16530 2007-02-23  Bruno Haible  <bruno@clisp.org>
16531
16532         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16533         Needed for help2man.
16534
16535 2007-02-23  Karl Berry  <karl@gnu.org>
16536
16537         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16538         exists, foo.h should be cvs-ignored, not committed.
16539
16540 2007-02-23  Eric Blake  <ebb9@byu.net>
16541
16542         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16543         * lib/stat-time.h (includes): Likewise.
16544         * lib/utimecmp.c (includes): Likewise.
16545         * lib/utimens.h (includes): Likewise.
16546         * lib/getdate.y (includes): Also include "timespec.h" for use
16547         internal to the module.
16548         * modules/utimens (Depends-on): Revert yesterday's patch.
16549         * modules/nanosleep (Depends-on): Add missing dependency.
16550
16551 2007-02-22  Bruno Haible  <bruno@clisp.org>
16552
16553         * lib/glob.c: Don't include getlogin_r.h.
16554
16555 2007-02-22  Jim Meyering  <jim@meyering.net>
16556
16557         * modules/utimens (Depends-on): Add timespec, required for
16558         utimens.h's inclusion of timespec.h.
16559
16560 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16561
16562         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16563         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16564         Schwab in
16565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16566         I'll try to think of a better way to fix the Solaris problem.
16567
16568         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16569         like glibc; on Solaris 10, it fails with errno == EINVAL.
16570         POSIX says the behavior is unspecified if the first argument is NULL,
16571         so play it safe and never pass NULL to the system getcwd.
16572
16573 2007-02-21  Jim Meyering  <jim@meyering.net>
16574
16575         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16576         of gettimeofday.  It would conflict with the one now always
16577         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16578         an IRIX 6.5 build failure.
16579
16580 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16581
16582         Minor fixups to port to Solaris 10 with Sun C 5.8.
16583         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16584         * modules/getcwd (Depends-on): Add dirfd.
16585         * lib/putenv.c (putenv): #undef it.
16586         (rpl_putenv): New decl.
16587         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16588
16589 2007-02-20  Bruno Haible  <bruno@clisp.org>
16590
16591         * modules/stdio-tests: New file.
16592         * tests/test-stdio.c: New file.
16593
16594         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16595         (Depends-on): Add stdio.
16596         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16597         (Include): Use <stdio.h> instead of vsnprintf.h.
16598         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16599         HAVE_DECL_VSNPRINTF.
16600         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16601
16602         * modules/snprintf (Files): Remove lib/snprintf.h.
16603         (Depends-on): Add stdio.
16604         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16605         (Include): Use <stdio.h> instead of snprintf.h.
16606         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16607         HAVE_DECL_SNPRINTF.
16608         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16609         * lib/getaddrinfo.c: Likewise.
16610
16611         * modules/stdio: New file.
16612         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16613         * lib/snprintf.h: Remove file.
16614         * lib/vsnprintf.h: Remove file.
16615         * lib/.cppi-disable: Remove snprintf.h.
16616         * m4/stdio_h.m4: New file.
16617         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16618
16619 2007-02-20  Jim Meyering  <jim@meyering.net>
16620
16621         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16622         used by e.g., mingw.  From Bruno Haible.
16623
16624 2007-02-19  Bruno Haible  <bruno@clisp.org>
16625
16626         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16627         warnings.
16628         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16629
16630 2007-02-19  Bruno Haible  <bruno@clisp.org>
16631
16632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16633         from mingw users.
16634
16635 2007-02-19  Bruno Haible  <bruno@clisp.org>
16636
16637         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16638         warnings.
16639         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16640
16641 2007-02-19  Jim Meyering  <jim@meyering.net>
16642
16643         Don't use FD after a successful "fdopendir (fd)".
16644         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16645         Reset it by calling dirfd on the just-obtained DIR*.
16646
16647         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16648         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16649
16650 2007-02-18  Bruno Haible  <bruno@clisp.org>
16651
16652         * lib/readlink.c: Include <unistd.h>.
16653         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16654         HAVE_READLINK.
16655         * modules/readlink (Depends-on): Add unistd.
16656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16657         (Include): Add <unistd.h>.
16658
16659         * lib/getlogin_r.h: Remove file.
16660         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16661         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16662         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16663         HAVE_DECL_GETLOGIN_R.
16664         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16665         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16666         (Include): Use <unistd.h> instead of getlogin_r.h.
16667
16668         * lib/getcwd.h: Remove file.
16669         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16670         * lib/xgetcwd.c: Likewise.
16671         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16672         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16673         * modules/getcwd (Files): Remove lib/getcwd.h.
16674         (Depends-on): Add unistd.
16675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16676         (Include): Use <unistd.h> instad of getcwd.h.
16677
16678         * lib/ftruncate.c: Include <unistd.h> first.
16679         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16680         Set HAVE_FTRUNCATE.
16681         * modules/ftruncate (Depends-on): Add unistd.
16682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16683
16684         * lib/fchdir.c: Include <unistd.h> first.
16685         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16687         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16688         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16689         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16690
16691         * lib/dup2.c: Include <unistd.h> first.
16692         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16693         HAVE_DUP2.
16694         * modules/dup2 (Depends-on): Add unistd.
16695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16696
16697         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16698         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16699         REPLACE_CHOWN. Don't define chown as a macro here.
16700         * modules/chown (Depends-on): Add unistd.
16701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16702
16703         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16704         Add definition for GL_LINK_WARNING.
16705         (chown, dup2): New declarations.
16706         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16707         link warning.
16708         (ftruncate): New declaration.
16709         (getcwd): New declaration, taken from old getcwd.h.
16710         (getlogin_r): New declaration, taken from old getlogin_r.h.
16711         (readlink): New declaration.
16712         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16713         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16714         (gl_PREREQ_UNISTD): Remove macro.
16715         (gl_UNISTD_MODULE_INDICATOR): New macro.
16716         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16717         many new variables. Don't set UNISTD_H.
16718         * modules/unistd (Description): Change.
16719         (Depends-on): Add link-warning.
16720         (configure.ac): Update.
16721         (Makefile.am): Create unistd.h always. Substitute many new variables
16722         into it.
16723
16724 2007-02-18  Bruno Haible  <bruno@clisp.org>
16725
16726         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16727         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16728         HAVE_GETSUBOPT.
16729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16730         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16731         * lib/getsubopt.h: Remove file.
16732         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16733         (Depends-on): Add stdlib.
16734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16735         (Includes): Use <stdlib.h> instead of getsubopt.h.
16736         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16737         Set HAVE_GETSUBOPT.
16738         * lib/getsubopt.c: Don't include getsubopt.h.
16739
16740 2007-02-18  Bruno Haible  <bruno@clisp.org>
16741
16742         * modules/fchdir (Depends-on): Add dup2.
16743
16744 2007-02-18  Bruno Haible  <bruno@clisp.org>
16745
16746         * lib/stdlib_.h: Handle glibc's special invocation convention
16747         specially.
16748
16749 2007-02-18  Bruno Haible  <bruno@clisp.org>
16750
16751         * modules/stdlib-tests: New file.
16752         * tests/test-stdlib.c: New file.
16753
16754         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16755         (Depends-on): Add stdlib.
16756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16757         (Includes): Use <stdlib.h> instead of mkstemp.h.
16758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16759         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16760         * lib/mkstemp.c: Don't include mkstemp.h.
16761         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16762         * lib/stdlib--.h: Don't include mkstemp.h.
16763
16764         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16765         (Depends-on): Add stdlib.
16766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16767         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16768         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16769         HAVE_MKDTEMP.
16770         * lib/mkdtemp.c: Don't include mkdtemp.h.
16771         * lib/clean-temp.c: Don't include mkdtemp.h.
16772
16773         * modules/exit (Files): Remove lib/exit.h.
16774         (Depends-on): Add stdlib.
16775         (Makefile.am): Remove lib_SOURCES.
16776         (Include): Use <stdlib.h> instead of exit.h.
16777         * lib/argmatch.c: Don't include exit.h.
16778         * lib/execute.c: Likewise.
16779         * lib/pagealign_alloc.c: Likewise.
16780         * lib/pipe.c: Likewise.
16781         * lib/wait-process.c: Likewise.
16782         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16783         * lib/exitfail.c: Likewise.
16784         * lib/savewd.c: Likewise.
16785         * lib/xsetenv.c: Likewise.
16786
16787         * modules/stdlib: New file.
16788         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16789         and extra comments about mkstemp().
16790         * lib/exit.h: Remove file.
16791         * lib/mkdtemp.h: Remove file.
16792         * lib/mkstemp.h: Remove file.
16793         * m4/stdlib_h.m4: New file.
16794         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16795
16796 2007-02-18  Bruno Haible  <bruno@clisp.org>
16797
16798         * modules/math-tests: New file.
16799         * tests/test-math.c: New file.
16800
16801         * modules/math: New file.
16802         * modules/mathl (Files): Remove lib/mathl.h.
16803         (Depends-on): Add math.
16804         (Makefile.am): Don't mention mathl.h.
16805         (Include): Use <math.h> instead of mathl.h.
16806         * lib/math_.h: New file.
16807         * lib/mathl.h: Remove file.
16808         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16809         mathl.h.
16810         * lib/asinl.c: Likewise.
16811         * lib/atanl.c: Likewise.
16812         * lib/ceill.c: Likewise.
16813         * lib/cosl.c: Likewise.
16814         * lib/expl.c: Likewise.
16815         * lib/floorl.c: Likewise.
16816         * lib/frexpl.c: Likewise.
16817         * lib/ldexpl.c: Likewise.
16818         * lib/logl.c: Likewise.
16819         * lib/sincosl.c: Likewise.
16820         * lib/sinl.c: Likewise.
16821         * lib/sqrtl.c: Likewise.
16822         * lib/tanl.c: Likewise.
16823         * lib/trigl.c: Likewise.
16824         * m4/math_h.m4: New file.
16825         * MODULES.html.sh (Mathematics): Add math.
16826
16827 2007-02-17  Bruno Haible  <bruno@clisp.org>
16828
16829         * modules/wctype-tests: New file.
16830         * tests/test-wctype.c: New file.
16831
16832         * modules/wchar-tests: New file.
16833         * tests/test-wchar.c: New file.
16834
16835         * modules/unistd-tests: New file.
16836         * tests/test-unistd.c: New file.
16837
16838         * modules/time-tests: New file.
16839         * tests/test-time.c: New file.
16840
16841         * modules/sysexits-tests: New file.
16842         * tests/test-sysexits.c: New file.
16843
16844         * modules/sys_time-tests: New file.
16845         * tests/test-sys_time.c: New file.
16846
16847         * modules/sys_stat-tests: New file.
16848         * tests/test-sys_stat.c: New file.
16849
16850         * modules/sys_socket-tests: New file.
16851         * tests/test-sys_socket.c: New file.
16852
16853         * modules/sys_select-tests: New file.
16854         * tests/test-sys_select.c: New file.
16855
16856         * modules/string-tests: New file.
16857         * tests/test-string.c: New file.
16858
16859         * modules/stdbool-tests: New file.
16860         * tests/test-stdbool.c: New file.
16861
16862         * modules/netinet_in-tests: New file.
16863         * tests/test-netinet_in.c: New file.
16864
16865         * modules/inttypes-tests: New file.
16866         * tests/test-inttypes.c: New file.
16867
16868         * modules/fcntl-tests: New file.
16869         * tests/test-fcntl.c: New file.
16870
16871         * modules/byteswap-tests: New file.
16872         * tests/test-byteswap.c: New file.
16873
16874         * modules/arpa_inet-tests: New file.
16875         * tests/test-arpa_inet.c: New file.
16876
16877 2007-02-17  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16880         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16881         if the corresponding module is not enabled. Emit link warnings if
16882         the function is used nevertheless.
16883         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16884         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16885         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16886         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16887         * modules/inttypes (Depends-on): Add link-warning.
16888         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16889         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16890         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16891         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16892         * modules/imaxdiv (configure.ac): Likewise.
16893         * modules/strtoimax (configure.ac): Likewise.
16894         * modules/strtoumax (configure.ac): Likewise.
16895
16896 2007-02-17  Bruno Haible  <bruno@clisp.org>
16897
16898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16899         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16900         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16901         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16902
16903 2007-02-17  Bruno Haible  <bruno@clisp.org>
16904
16905         * modules/link-warning: New file.
16906         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16907         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16908         * modules/string (Depends-on): Add link-warning.
16909         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16910         string.h.
16911         * MODULES.html.sh (Support for building libraries and executables): Add
16912         link-warning.
16913
16914 2007-02-17  Bruno Haible  <bruno@clisp.org>
16915
16916         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16917         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16918         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16919         long lines.
16920
16921 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16922             Bruno Haible  <bruno@clisp.org>
16923
16924         * modules/tmpfile: New file.
16925         * lib/tmpfile.c: New file.
16926         * m4/tmpfile.m4: New file.
16927         * MODULES.html.sh (func_all_modules): New section "Input/output".
16928
16929 2007-02-15  Bruno Haible  <bruno@clisp.org>
16930
16931         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16932         (supports_delete_on_close): New function.
16933         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16934
16935 2007-02-14  Bruno Haible  <bruno@clisp.org>
16936
16937         * modules/mbspcasecmp-tests: New file.
16938         * tests/test-mbspcasecmp.sh: New file.
16939         * tests/test-mbspcasecmp.c: New file.
16940
16941         New module mbspcasecmp.
16942         * modules/mbspcasecmp: New file.
16943         * lib/mbspcasecmp.c: New file.
16944         * lib/string_.h (strncasecmp): Change warning message.
16945         (mbspcasecmp): New declaration.
16946         * m4/mbspcasecmp.m4: New file.
16947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16948         GNULIB_MBSPCASECMP.
16949         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16950         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16951
16952 2007-02-14  Bruno Haible  <bruno@clisp.org>
16953
16954         * modules/mbsncasecmp-tests: New file.
16955         * tests/test-mbsncasecmp.sh: New file.
16956         * tests/test-mbsncasecmp.c: New file.
16957
16958         New module mbsncasecmp.
16959         * modules/mbsncasecmp: New file.
16960         * lib/mbsncasecmp.c: New file.
16961         * lib/string_.h (mbsncasecmp): New declaration.
16962         * m4/mbsncasecmp.m4: New file.
16963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16964         GNULIB_MBSNCASECMP.
16965         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16966         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16967
16968 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16969
16970         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16971         Verify that it doesn't overlap with our flags.
16972         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16973         do not have the desired effect in multibyte locales; instead, use
16974         mbscasecmp.
16975         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16976         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16977         we don't require GNU fnmatch ourselves (if our users require it, they
16978         should do so explicitly).
16979
16980         Fix regex code so it doesn't rely on strcasecmp.
16981         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16982         Otherwise, include gnulib's langinfo.h.
16983         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16984         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16985         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16986         * modules/regex (FILES): Remove m4/codeset.m4.
16987         (Depends-on): Add localcharset.  Remove strcase.
16988
16989 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16990
16991         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16992         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16993
16994 2007-02-13  Bruno Haible  <bruno@clisp.org>
16995
16996         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16998
16999 2007-02-12  Bruno Haible  <bruno@clisp.org>
17000
17001         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17002         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17003         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17004         time warning rather than a link error.
17005
17006 2007-02-12  Bruno Haible  <bruno@clisp.org>
17007
17008         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17011
17012 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17013
17014         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17015         args, not 2.
17016
17017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17018
17019         New module 'time', so that apps can include <time.h> as per
17020         POSIX and GNU instead of separate include files like time_r.h
17021         and timegm.h.  This implementation tries out a simpler approach
17022         for replacing decls in standard include files (as compared to
17023         the string module), somewhat as an experiment.
17024
17025         * config/srclist.txt: Comment out mktime.c for now.
17026         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17027         since it doesn't apply any more.  Use generic wording instead.
17028         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17029         'time'.
17030         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17031         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17032         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17033         Don't include <sys/types.h>; no longer needed since we assume C89.
17034         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17035         * lib/strftime.c: Likewise.
17036         * lib/time_r.c: Likewise.
17037         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17038         * lib/nanosleep.c: Include <time.h> first, to check interface.
17039         * lib/strptime.c: Likewise.
17040         * lib/time_r.c: Likewise.
17041         * lib/timegm.c: Likewise.
17042         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17043         needed.
17044         * lib/timegm.c: Don't include timegm.h; no longer needed.
17045         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17046         time.h now handles any problems in that area.
17047         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17048         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17049         that time.h defines struct timespec.
17050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17051         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17052         handles that.
17053         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17054         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17055         needed.  Set REPLACE_LOCALTIME.
17056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17057         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17058         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17059         nanosleep; time_h.m4 now does that.  Don't require
17060         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17061         module handles this now.
17062         * modules/getdate (Depends-on): Remove timespec.  Add time.
17063         * modules/nanosleep (Depends-on): Likewise.
17064         * modules/stat-time (Depends-on): Likewise.
17065         * modules/nanosleep (Include): Include time.h, not timespec.h.
17066         * modules/strptime (Files): Remove lib/strptime.h.
17067         (Depends-on): Add extensions, time.
17068         (Include): Include time.h, not strptime.h.
17069         * modules/time_r (Files): Remove lib/time_r.h.
17070         (Depends-on): Add time.
17071         (Include): Include time.h, not time_r.h.
17072         * modules/timegm: Likewise.
17073         * modules/timespec (Description): Now does timespec-related decls
17074         of our own, instead of struct timespec itself.
17075         (Depends-on): Add time; remove extensions.
17076         (Maintainer): Add self.
17077         * modules/utimecmp (Depends-on): Add time; remove timespec.
17078         * modules/utimens (Depends-on): Likewise.
17079         * modules/xnanosleep (Depends-on): Likewise.
17080
17081 2007-02-11  Bruno Haible  <bruno@clisp.org>
17082
17083         * lib/c-strstr.c: Include allocsa.h.
17084         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17085         * lib/c-strcasestr.c: Include allocsa.h.
17086         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17087         * lib/strcasestr.c: Include allocsa.h.
17088         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17089         * lib/mbsstr.c: Include allocsa.h.
17090         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17091         allocsa/freesa instead of malloc/free.
17092         * lib/mbscasestr.c: Include allocsa.h.
17093         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17094         allocsa/freesa instead of malloc/free.
17095         * modules/c-strstr (Depends-on): Add allocsa.
17096         * modules/c-strcasestr (Depends-on): Likewise.
17097         * modules/strcasestr (Depends-on): Likewise.
17098         * modules/mbsstr (Depends-on): Likewise.
17099         * modules/mbscasestr (Depends-on): Likewise.
17100
17101 2007-02-11  Bruno Haible  <bruno@clisp.org>
17102
17103         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17104
17105         * modules/mbsspn-tests: New file.
17106         * tests/test-mbsspn.sh: New file.
17107         * tests/test-mbsspn.c: New file.
17108
17109 2007-02-11  Bruno Haible  <bruno@clisp.org>
17110
17111         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17112
17113         * modules/mbspbrk-tests: New file.
17114         * tests/test-mbspbrk.sh: New file.
17115         * tests/test-mbspbrk.c: New file.
17116
17117 2007-02-11  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17120         unneeded cast.
17121
17122         * modules/mbscspn-tests: New file.
17123         * tests/test-mbscspn.sh: New file.
17124         * tests/test-mbscspn.c: New file.
17125
17126 2007-02-11  Bruno Haible  <bruno@clisp.org>
17127
17128         * modules/mbscasecmp-tests: New file.
17129         * tests/test-mbscasecmp.sh: New file.
17130         * tests/test-mbscasecmp.c: New file.
17131
17132 2007-02-11  Bruno Haible  <bruno@clisp.org>
17133
17134         Ensure O(n) worst-case complexity of mbscasestr.
17135         * lib/mbscasestr.c: Include stdbool.h.
17136         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17137         functions.
17138         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17139         the bookkeeping indicates that it's worth it.
17140         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17141
17142         * modules/mbscasestr-tests: New file.
17143         * tests/test-mbscasestr1.c: New file.
17144         * tests/test-mbscasestr2.sh: New file.
17145         * tests/test-mbscasestr2.c: New file.
17146         * tests/test-mbscasestr3.sh: New file.
17147         * tests/test-mbscasestr3.c: New file.
17148         * tests/test-mbscasestr4.sh: New file.
17149         * tests/test-mbscasestr4.c: New file.
17150         * m4/locale-tr.m4: New file.
17151
17152 2007-02-11  Bruno Haible  <bruno@clisp.org>
17153
17154         Ensure O(n) worst-case complexity of mbsstr.
17155         * lib/mbsstr.c: Include stdbool.h.
17156         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17157         functions.
17158         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17159         bookkeeping indicates that it's worth it.
17160         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17161
17162         * modules/mbsstr-tests: New file.
17163         * tests/test-mbsstr1.c: New file.
17164         * tests/test-mbsstr2.sh: New file.
17165         * tests/test-mbsstr2.c: New file.
17166         * tests/test-mbsstr3.sh: New file.
17167         * tests/test-mbsstr3.c: New file.
17168         * m4/locale-fr.m4: New file.
17169
17170 2007-02-11  Bruno Haible  <bruno@clisp.org>
17171
17172         * lib/mbsrchr.c (mbsrchr): Fix bug.
17173
17174         * modules/mbsrchr-tests: New file.
17175         * tests/test-mbsrchr.sh: New file.
17176         * tests/test-mbsrchr.c: New file.
17177
17178 2007-02-11  Bruno Haible  <bruno@clisp.org>
17179
17180         * lib/mbschr.c (mbschr): Fix bug.
17181
17182         * modules/mbschr-tests: New file.
17183         * tests/test-mbschr.sh: New file.
17184         * tests/test-mbschr.c: New file.
17185         * m4/locale-zh.m4: New file.
17186
17187 2007-02-11  Bruno Haible  <bruno@clisp.org>
17188
17189         Support for copying multibyte string iterators.
17190         * lib/mbiter.h: Include <string.h>.
17191         (mbiter_multi_copy): New function.
17192         (mbi_copy): New macro.
17193         * lib/mbuiter.h: Include <string.h>.
17194         (mbuiter_multi_copy): New function.
17195         (mbui_copy): New macro.
17196
17197 2007-02-11  Bruno Haible  <bruno@clisp.org>
17198
17199         New module mbslen.
17200         * modules/mbslen: New file.
17201         * lib/mbslen.c: New file.
17202         * lib/string_.h (mbslen): New declaration.
17203         * m4/mbslen.m4: New file.
17204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17205         GNULIB_MBSLEN.
17206         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17207         * MODULES.html.sh (Internationalization functions): Add mbslen.
17208
17209 2007-02-11  Bruno Haible  <bruno@clisp.org>
17210
17211         Ensure O(n) worst-case complexity of strcasestr substitute.
17212         * lib/strcasestr.c: Include stdbool.h.
17213         (knuth_morris_pratt): New function.
17214         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17215         bookkeeping indicates that it's worth it.
17216         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17217
17218         * modules/strcasestr-tests: New file.
17219         * tests/test-strcasestr.c: New file.
17220
17221 2007-02-11  Bruno Haible  <bruno@clisp.org>
17222
17223         Ensure O(n) worst-case complexity of c_strcasestr.
17224         * lib/c-strcasestr.c: Include stdbool.h, string.h.
17225         (knuth_morris_pratt): New function.
17226         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17227         the bookkeeping indicates that it's worth it.
17228         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17229
17230         * modules/c-strcasestr-tests: New file.
17231         * tests/test-c-strcasestr.c: New file.
17232
17233 2007-02-11  Bruno Haible  <bruno@clisp.org>
17234
17235         Ensure O(n) worst-case complexity of c_strstr.
17236         * lib/c-strstr.c: Include stdbool.h, string.h.
17237         (knuth_morris_pratt): New function.
17238         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17239         bookkeeping indicates that it's worth it.
17240         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17241
17242         * lib/c-strstr.c: Complete rewrite for maintainability.
17243
17244         * modules/c-strstr-tests: New file.
17245         * tests/test-c-strstr.c: New file.
17246
17247 2007-02-11  Bruno Haible  <bruno@clisp.org>
17248
17249         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17250         5.2.1 and earlier, whereby \055 was treated just like the range
17251         delimiter '-'.
17252         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17253
17254 2007-02-08  Bruno Haible  <bruno@clisp.org>
17255
17256         * modules/regex (Depends-on): Add stdbool.
17257         Reported by Dalibor Topic <robilad@kaffe.org>.
17258
17259 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17260
17261         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17262         Prefer returning from main to exiting from it.
17263         Remove unnecessary parens after sizeof.
17264
17265 2007-02-05  Bruno Haible  <bruno@clisp.org>
17266
17267         New module mbssep.
17268         * modules/mbssep: New file.
17269         * lib/mbssep.c: New file.
17270         * lib/string_.h (strsep): Add a conditional link warning.
17271         (mbssep): New declaration.
17272         * m4/mbssep.m4: New file.
17273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17274         GNULIB_MBSSEP.
17275         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17276         * MODULES.html.sh (Internationalization functions): Add mbssep.
17277
17278 2007-02-05  Bruno Haible  <bruno@clisp.org>
17279
17280         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17281         Optimize search in case of 1 delimiter.
17282
17283 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17284
17285         * lib/acl.h: Include sys/types.h before sys/acl.h.
17286
17287 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17288
17289         Merge upstream fix for glibc bugzilla #3957:
17290
17291         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17292
17293         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17294         bit for RE_HAT_LISTS_NOT_NEWLINE.
17295         (build_charclass_op): Remove bogus comment.
17296
17297 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17298
17299         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17300
17301 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17302
17303         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17304         * lib/memmem.c [!defined _LIBC]: Include config.h.
17305
17306 2007-02-04  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17309         warning message.
17310
17311 2007-02-04  Bruno Haible  <bruno@clisp.org>
17312
17313         New module mbstok_r.
17314         * modules/mbstok_r: New file.
17315         * lib/mbstok_r.c: New file.
17316         * lib/string_.h (strtok_r): Change argument names to match the
17317         comments. Add a conditional link warning.
17318         (mbstok_r): New declaration.
17319         * m4/mbstok_r.m4: New file.
17320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17321         GNULIB_MBSTOK_R.
17322         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17323         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17324
17325 2007-02-04  Bruno Haible  <bruno@clisp.org>
17326
17327         New module mbsspn.
17328         * modules/mbsspn: New file.
17329         * lib/mbsspn.c: New file.
17330         * lib/string_.h (strspn): Add a conditional link warning.
17331         (mbsspn): New declaration.
17332         * m4/mbsspn.m4: New file.
17333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17334         GNULIB_MBSSPN.
17335         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
17336         * MODULES.html.sh (Internationalization functions): Add mbsspn.
17337
17338 2007-02-04  Bruno Haible  <bruno@clisp.org>
17339
17340         New module mbspbrk.
17341         * modules/mbspbrk: New file.
17342         * lib/mbspbrk.c: New file.
17343         * lib/string_.h (strpbrk): Add a conditional link warning.
17344         (mbspbrk): New declaration.
17345         * m4/mbspbrk.m4: New file.
17346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17347         GNULIB_MBSPBRK.
17348         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
17349         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
17350
17351 2007-02-04  Bruno Haible  <bruno@clisp.org>
17352
17353         New module mbscspn.
17354         * modules/mbscspn: New file.
17355         * lib/mbscspn.c: New file.
17356         * lib/string_.h (strcspn): Add a conditional link warning.
17357         (mbscspn): New declaration.
17358         * m4/mbscspn.m4: New file.
17359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17360         GNULIB_MBSCSPN.
17361         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
17362         * MODULES.html.sh (Internationalization functions): Add mbscspn.
17363
17364 2007-02-04  Bruno Haible  <bruno@clisp.org>
17365
17366         New module mbscasestr, reduced goal of strcasestr.
17367         * modules/mbscasestr: New file.
17368         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17369         (mbscasestr): Renamed from strcasestr.
17370         * lib/strcasestr.c: Don't include mbuiter.h.
17371         (strcasestr): Remove support for multibyte locales.
17372         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17373         Change the conditional link warning.
17374         (mbscasestr): New declaration.
17375         * m4/mbscasestr.m4: New file.
17376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17377         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17378         REPLACE_STRCASESTR.
17379         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17381         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17382         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17383         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17384         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17385         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17386         (Depends-on): Remove mbuiter.
17387         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17388
17389 2007-02-04  Bruno Haible  <bruno@clisp.org>
17390
17391         Simplify handling of strncasecmp.
17392         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17393         the conditional link warning.
17394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17395         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17397         * modules/strcase (configure.ac): Don't invoke
17398         gl_STRING_MODULE_INDICATOR.
17399         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17400
17401 2007-02-04  Bruno Haible  <bruno@clisp.org>
17402
17403         New module mbscasecmp, reduced goal of strcasecmp.
17404         * modules/mbscasecmp: New file.
17405         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17406         (mbscasecmp): Renamed from strcasecmp.
17407         * lib/strcasecmp.c: Don't include mbuiter.h.
17408         (strcasecmp): Remove support for multibyte locales.
17409         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17410         Change the conditional link warning.
17411         (mbscasecmp): New declaration.
17412         * m4/mbscasecmp.m4: New file.
17413         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17414         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17415         REPLACE_STRCASECMP.
17416         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17418         GNULIB_MBSCASECMP.
17419         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
17420         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
17421         * modules/strcase (Files): Remove m4/mbrtowc.m4.
17422         (Depends-on): Remove mbuiter.
17423         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
17424
17425 2007-02-04  Bruno Haible  <bruno@clisp.org>
17426
17427         New module mbsstr. Remove module strstr.
17428         * modules/mbsstr: New file.
17429         * modules/strstr: Remove file.
17430         * lib/mbsstr.c: Renamed from lib/strstr.c.
17431         (mbsstr): Renamed from strstr.
17432         * lib/string_.h (strstr): Remove declaration. Change the conditional
17433         link warning.
17434         (mbsstr): New declaration.
17435         * m4/mbsstr.m4: New file.
17436         * m4/strstr.m4: Remove file.
17437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17438         REPLACE_STRSTR.
17439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
17440         Don't initialize GNULIB_STRSTR.
17441         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17442         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17443         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17444         (Support for systems lacking ANSI C 89): Remove strstr.
17445
17446 2007-02-04  Bruno Haible  <bruno@clisp.org>
17447
17448         New module mbsrchr.
17449         * modules/mbsrchr: New file.
17450         * lib/mbsrchr.c: New file.
17451         * lib/string_.h (strrchr): Add a conditional link warning.
17452         (mbsrchr): New declaration.
17453         * m4/mbsrchr.m4: New file.
17454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17455         GNULIB_MBSRCHR.
17456         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17457         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17458
17459 2007-02-04  Bruno Haible  <bruno@clisp.org>
17460
17461         New module mbschr.
17462         * modules/mbschr: New file.
17463         * lib/mbschr.c: New file.
17464         * lib/string_.h (strchr): Add a conditional link warning.
17465         (mbschr): New declaration.
17466         * m4/mbschr.m4: New file.
17467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17468         GNULIB_MBSCHR.
17469         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17470         * MODULES.html.sh (Internationalization functions): Add mbschr.
17471
17472 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17473
17474         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17475
17476         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17477
17478 2007-02-04  Bruno Haible  <bruno@clisp.org>
17479
17480         New module description section 'configure.ac-early'.
17481         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17482         (func_get_autoconf_early_snippet): New function.
17483         (func_import, func_create_testdir): Use it. Remove special cases for
17484         modules 'extensions' and 'lock'.
17485         * modules/extensions (configure.ac-early): Require
17486         gl_USE_SYSTEM_EXTENSIONS.
17487         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17488
17489 2007-02-04  Bruno Haible  <bruno@clisp.org>
17490
17491         Make use of gcj-4.3's -fsource and -ftarget option.
17492         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17493         and if so try the options -fsource and -ftarget.
17494         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17495         source_version, ftarget_option, target_version arguments.
17496         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17497         (is_envjavac_oldgcj_14_14_usable): Renamed from
17498         is_envjavac_gcj_14_14_usable.
17499         (is_envjavac_oldgcj_14_13_usable): Renamed from
17500         is_envjavac_gcj_14_13_usable.
17501         (is_gcj_present): Update.
17502         (is_gcj_43, is_gcj43_usable): New functions.
17503         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17504         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17505         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17506         try the options -fsource and -ftarget.
17507
17508 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17509
17510         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17511         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17512         larger value.
17513
17514 2007-02-03  Jim Meyering  <jim@meyering.net>
17515
17516         Give tools a better chance to allocate space for very large buffers.
17517         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17518
17519         Make pwd and readlink work also when run with an unreadable parent dir
17520         on systems with openat support.
17521         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17522         provided getcwd function, even when we have openat support.
17523         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17524
17525 2007-02-02  Bruno Haible  <bruno@clisp.org>
17526
17527         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17528         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17529         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17530         portability problems if one of these functions is only used on specific
17531         platforms.
17532         Reported by Paul Eggert.
17533
17534 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17535
17536         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17537         is causing more trouble than it's curing.
17538         * lib/regex_internal.h (__mempcpy): Remove.
17539         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17540         (and make the code a tad smaller to boot).
17541         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17542
17543 2007-02-02  Jim Meyering  <jim@meyering.net>
17544
17545         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17546         section, not in the Makefile.am: one.
17547
17548 2007-02-02  Eric Blake  <ebb9@byu.net>
17549
17550         * lib/strchrnul.c: Always include config.h first.
17551
17552         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17553         gnulib strstr is not necessary here.
17554
17555 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17556
17557         * m4/socklen.m4: Fix typo.
17558
17559 2007-02-02  Eric Blake  <ebb9@byu.net>
17560
17561         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17562         * modules/netinet_in (Makefile.am): Likewise.
17563
17564 2007-02-01  Bruno Haible  <bruno@clisp.org>
17565
17566         * lib/string_.h (GL_LINK_WARNING): New macro.
17567         (strcasecmp, strstr, strcasestr): If provided by the system,
17568         conditionally define as a macro that leads to a warning instead of to
17569         an error.
17570         (strncasecmp): Conditionally define as a macro that leads to a warning.
17571
17572 2007-02-01  Karl Berry  <karl@gnu.org>
17573
17574         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17575
17576 2007-02-01  Bruno Haible  <bruno@clisp.org>
17577
17578         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17579         renamings.
17580
17581 2007-02-01  Eric Blake  <ebb9@byu.net>
17582
17583         * modules/regex (Depends-on): Revert dependence on mempcpy.
17584         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17585         module's definition of mempcpy.
17586         Reported by Paul Eggert.
17587
17588 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17589
17590         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17591         the symbol XYZ before redefining it.  This fixes a problem with
17592         programs that don't use XYZ, when compiled on systems that define
17593         XYZ to something else.
17594
17595 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17598         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17599         writeable to group or other and (2) is intended to have a special
17600         mode bit that is set or cleared.  In such a case, the directory
17601         should be neither group- nor other-writeable until the special
17602         mode bits are right.
17603
17604 2007-01-31  Eric Blake  <ebb9@byu.net>
17605
17606         * modules/mountlist (Depends-on): Add strstr.
17607
17608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17609         bug.
17610         * modules/string (Makefile.am): Remove redundant replacement.
17611         * modules/regex (Depends-on): Add mempcpy.
17612
17613 2007-01-31  Bruno Haible  <bruno@clisp.org>
17614
17615         New module description field 'Link'.
17616         * gnulib-tool (func_usage): Document --extract-link-directive.
17617         (sed_extract_prog): Recognize 'Link' directive.
17618         (func_get_link_directive): New function.
17619         (func_import): Show summary of link directives.
17620         Handle --extract-link-directive option.
17621         * modules/acl (Link): New section.
17622         * modules/clock-time (Link): New section.
17623         * modules/euidaccess (Link): New section.
17624         * modules/gettext (Link): New section.
17625         * modules/iconv (Link): New section.
17626         * modules/lock (Link): New section.
17627         * modules/nanosleep (Link): New section.
17628         * modules/readline (Link): New section.
17629
17630 2007-01-27  Bruno Haible  <bruno@clisp.org>
17631
17632         Enforce the use of gnulib modules for unportable <string.h> functions.
17633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17634         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17635         (gl_HEADER_STRING_H_BODY): Require it.
17636         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17637         the symbol XYZ to one that gives a link error.
17638         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17639         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17640         * modules/mempcpy (configure.ac): Likewise.
17641         * modules/memrchr (configure.ac): Likewise.
17642         * modules/stpcpy (configure.ac): Likewise.
17643         * modules/stpncpy (configure.ac): Likewise.
17644         * modules/strcase (configure.ac): Likewise.
17645         * modules/strcasestr (configure.ac): Likewise.
17646         * modules/strchrnul (configure.ac): Likewise.
17647         * modules/strdup (configure.ac): Likewise.
17648         * modules/strndup (configure.ac): Likewise.
17649         * modules/strnlen (configure.ac): Likewise.
17650         * modules/strpbrk (configure.ac): Likewise.
17651         * modules/strsep (configure.ac): Likewise.
17652         * modules/strstr (configure.ac): Likewise.
17653         * modules/strtok_r (configure.ac): Likewise.
17654
17655 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17656
17657         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17658
17659 2007-01-30  Jim Meyering  <jim@meyering.net>
17660
17661         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17662
17663 2007-01-29  Bruno Haible  <bruno@clisp.org>
17664
17665         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17666         * lib/execute.c: Likewise.
17667         * lib/pipe.c: Likewise.
17668         * lib/printf-args.h: Likewise.
17669         * lib/printf-args.c: Likewise.
17670         * lib/printf-parse.c: Likewise.
17671         * lib/vasnprintf.c: Likewise.
17672
17673 2007-01-29  Eric Blake  <ebb9@byu.net>
17674
17675         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17676         declaration.
17677
17678 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17679
17680         * lib/strptime.h (strptime): Use 'restrict' for args where
17681         POSIX requires this.
17682         * lib/strptime.c (strptime): Likewise.
17683         Change license notice from LGPL to GPL, since gnulib-tool will
17684         change this as needed.
17685         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17686         defined.
17687         Include "strptime.h" first, to check interface.
17688         Do not #undef _LIBC and _NL_CURRENT.
17689         Do not include <stdlib.h>; no longer needed.
17690         Include "time_r.h" and declare ptime_locale_status
17691         only if _LIBC is not defined.
17692         (__P): Remove unused macro.
17693         (match_string): Bring back glibc version, but use it only if _LIBC
17694         is defined.
17695         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17696         Remove unnecessary assertion and abort() call.
17697         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17698         * m4/strptime.m4: Fix serial number comment.
17699         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17700         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17701         (Depends-on): Add time_r.
17702
17703 2007-01-29  Bruno Haible  <bruno@clisp.org>
17704
17705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17706         strptime.
17707         * modules/strptime (Depends-on): Add stdbool.
17708         * lib/strptime.h: Include <time.h> always. Add comments.
17709
17710 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17711
17712         * modules/strptime: New file.
17713         * lib/strptime.h: New file.
17714         * lib/strptime.c: New file.
17715         * m4/strptime.m4: New file.
17716
17717 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17718
17719         * MODULES.html.sh: New module mpsort.
17720         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17721
17722         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17723         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17725         All uses changed.
17726         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17727         All uses changed.
17728         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17729         to _Restrict_.
17730         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17731         the parameter matches the prototype.
17732
17733 2007-01-28  Jim Meyering  <jim@meyering.net>
17734
17735         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17736         sys/time.h here, reverting that part of the previous patch:
17737         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17738
17739 2007-01-28  Bruno Haible  <bruno@clisp.org>
17740
17741         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17742         value of $(SYS_TIME_H).
17743         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17744         remove it conditionally, too. [added by Jim Meyering]
17745         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17746         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17747         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17748         GETTIMEOFDAY_REPLACEMENT to 1.
17749
17750 2007-01-28  Bruno Haible  <bruno@clisp.org>
17751
17752         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17753         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17755         Set UNISTD_H instead of UNISTD_H2.
17756         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17757
17758 2007-01-28  Bruno Haible  <bruno@clisp.org>
17759
17760         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17761         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17762
17763 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17764
17765         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17766         (func_create_testdir): Ensure C locale for `grep' and `tr'
17767         character ranges.
17768         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17769         ACLOCAL_AMFLAGS parsing state machine.
17770
17771 2007-01-27  Bruno Haible  <bruno@clisp.org>
17772
17773         * modules/unistr/base: Update.
17774
17775 2007-01-27  Bruno Haible  <bruno@clisp.org>
17776
17777         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17778         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17779         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17780         modules/unistr/u32-mbtouc.
17781         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17782         * lib/unistr.h: Update.
17783         * lib/linebreak.c: Update.
17784         * modules/unistr/u32-mbtouc: Renamed from
17785         modules/unistr/u32-mbtouc-safe.
17786         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17787         * lib/unistr.h: Update.
17788         * lib/unistr/u32-to-u8.c: Update.
17789         * lib/unistr/u32-to-u16.c: Update.
17790
17791 2007-01-27  Bruno Haible  <bruno@clisp.org>
17792
17793         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17794         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17795         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17796         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17797         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17798         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17799         modules/unistr/u16-mbtouc.
17800         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17801         * lib/unistr.h: Update.
17802         * lib/linebreak.c: Update.
17803         * modules/linebreak: Update.
17804         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17805         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17806         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17807         * modules/unistr/u16-mbtouc: Renamed from
17808         modules/unistr/u16-mbtouc-safe.
17809         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17810         * lib/unistr.h: Update.
17811         * lib/unistr/u16-to-u8.c: Update.
17812         * modules/unistr/u16-to-u8: Update.
17813         * lib/unistr/u16-to-u32.c: Update.
17814         * modules/unistr/u16-to-u32: Update.
17815
17816 2007-01-27  Bruno Haible  <bruno@clisp.org>
17817
17818         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17819         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17820         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17821         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17822         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17823         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17824         modules/unistr/u8-mbtouc.
17825         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17826         * lib/unistr.h: Update.
17827         * lib/striconveh.c: Update.
17828         * modules/striconveh: Update.
17829         * lib/linebreak.c: Update.
17830         * modules/linebreak: Update.
17831         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17832         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17833         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17834         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17835         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17836         * lib/unistr.h: Update.
17837         * lib/striconveh.c: Update.
17838         * modules/striconveh: Update.
17839         * lib/unistr/u8-to-u16.c: Update.
17840         * modules/unistr/u8-to-u16: Update.
17841         * lib/unistr/u8-to-u32.c: Update.
17842         * modules/unistr/u8-to-u32: Update.
17843
17844 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17845
17846         Sync from Libtool.
17847         * lib/argz.c: Do not include strings.h nor memory.h, include
17848         string.h unconditionally.  Patch by Simon Josefsson.
17849
17850 2007-01-27  Bruno Haible  <bruno@clisp.org>
17851
17852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17853         from gl_HEADER_STRING_H_BODY.
17854         (gl_HEADER_STRING_H_BODY): Require it.
17855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17856         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17857         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17858         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17860         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17862         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17863         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17866         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17867         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17868         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17869         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17870
17871 2007-01-27  Bruno Haible  <bruno@clisp.org>
17872
17873         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17874         check_PROGRAMS into noinst_PROGRAMS.
17875         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17876         check_PROGRAMS in this case.
17877         (func_import): Set for_test to false.
17878         (func_create_testdir): Set for_test to true.
17879
17880 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17881             Bruno Haible  <bruno@clisp.org>
17882
17883         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17884         (Depends-on): Add string.
17885         (Includes): Use <string.h> instead of strcasestr.h.
17886         * modules/string (Makefile.am): Also substitute the value of
17887         REPLACE_STRCASESTR.
17888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17889         assume strcasestr is declared in <string.h> not <strings.h>. Also
17890         set REPLACE_STRCASESTR.
17891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17892         REPLACE_STRCASESTR.
17893         * lib/strcasestr.h: Remove file.
17894         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17895         * lib/string_.h (strcasestr): New declaration.
17896
17897 2007-01-27  Bruno Haible  <bruno@clisp.org>
17898
17899         * lib/string_.h: Use 'extern'.
17900
17901 2007-01-27  Jim Meyering  <jim@meyering.net>
17902
17903         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17904         of set-but-not-used local, "q".
17905
17906         * lib/mempcpy.c: Include <config.h> before <string.h>.
17907         This fixes a compilation error on HP-UX, due to the system's
17908         "restrict"-using mempcpy prototype.
17909
17910 2007-01-26  Bruno Haible  <bruno@clisp.org>
17911
17912         Small optimization.
17913         * lib/javacomp.c: Include c-strstr.h.
17914          (is_envjavac_gcj): Use c_strstr instead of strstr.
17915         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17916
17917 2007-01-26  Bruno Haible  <bruno@clisp.org>
17918
17919         * MODULES.html.sh (Unicode string functions): Add the new modules.
17920
17921         * modules/uniconv/u32-strconv-to-locale: New file.
17922         * lib/uniconv/u32-strconv-to-locale.c: New file.
17923
17924         * modules/uniconv/u16-strconv-to-locale: New file.
17925         * lib/uniconv/u16-strconv-to-locale.c: New file.
17926
17927         * modules/uniconv/u8-strconv-to-locale: New file.
17928         * lib/uniconv/u8-strconv-to-locale.c: New file.
17929
17930         * modules/uniconv/u32-strconv-from-locale: New file.
17931         * lib/uniconv/u32-strconv-from-locale.c: New file.
17932
17933         * modules/uniconv/u16-strconv-from-locale: New file.
17934         * lib/uniconv/u16-strconv-from-locale.c: New file.
17935
17936         * modules/uniconv/u8-strconv-from-locale: New file.
17937         * lib/uniconv/u8-strconv-from-locale.c: New file.
17938
17939         * modules/uniconv/u32-strconv-to-enc: New file.
17940         * lib/uniconv/u32-strconv-to-enc.c: New file.
17941         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17942         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17943
17944         * modules/uniconv/u16-strconv-to-enc: New file.
17945         * lib/uniconv/u16-strconv-to-enc.c: New file.
17946         * lib/uniconv/u-strconv-to-enc.h: New file.
17947         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17948         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17949
17950         * modules/uniconv/u8-strconv-to-enc: New file.
17951         * lib/uniconv/u8-strconv-to-enc.c: New file.
17952         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17953         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17954
17955         * modules/uniconv/u32-strconv-from-enc: New file.
17956         * lib/uniconv/u32-strconv-from-enc.c: New file.
17957         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17958         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17959
17960         * modules/uniconv/u16-strconv-from-enc: New file.
17961         * lib/uniconv/u16-strconv-from-enc.c: New file.
17962         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17963         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17964
17965         * modules/uniconv/u8-strconv-from-enc: New file.
17966         * lib/uniconv/u8-strconv-from-enc.c: New file.
17967         * lib/uniconv/u-strconv-from-enc.h: New file.
17968         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17969         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17970
17971         * modules/uniconv/u32-conv-from-enc: New file.
17972         * lib/uniconv/u32-conv-from-enc.c: New file.
17973         * modules/uniconv/u32-conv-from-enc-tests: New file.
17974         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17975
17976         * modules/uniconv/u16-conv-from-enc: New file.
17977         * lib/uniconv/u16-conv-from-enc.c: New file.
17978         * lib/uniconv/u-conv-from-enc.h: New file.
17979         * modules/uniconv/u16-conv-from-enc-tests: New file.
17980         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17981
17982         * modules/uniconv/u8-conv-from-enc: New file.
17983         * lib/uniconv/u8-conv-from-enc.c: New file.
17984         * modules/uniconv/u8-conv-from-enc-tests: New file.
17985         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17986
17987         * modules/uniconv/base: New file.
17988         * lib/uniconv.h: New file.
17989
17990 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17991
17992         * doc/gnulib-tool.texi (Initial import): Update to match current
17993         behavior with strdup module.
17994         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17995         * lib/memmem.h: Remove; all uses removed.  This is now done
17996         by <string.h>.
17997         * lib/mempcpy.h: Likewise.
17998         * lib/memrchr.h: Likewise.
17999         * lib/stpcpy.h: Likewise.
18000         * lib/stpncpy.h: Likewise.
18001         * lib/strcase.h: Likewise.
18002         * lib/strchrnul.h: Likewise.
18003         * lib/strdup.h: Likewise.
18004         * lib/strndup.h: Likewise.
18005         * lib/strnlen.h: Likewise.
18006         * lib/strpbrk.h: Likewise.
18007         * lib/strsep.h: Likewise.
18008         * lib/strstr.h: Likewise.
18009         * lib/strtok_r.h: Likewise.
18010         * lib/string_.h: New file.
18011         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18012         Rely on <string.h> instead.
18013         * lib/canon-host.c: Likewise.
18014         * lib/chdir-long.c: Likewise.
18015         * lib/concatpath.c: Likewise.
18016         * lib/exclude.c: Likewise.
18017         * lib/fchdir.c: Likewise.
18018         * lib/getaddrinfo.c: Likewise.
18019         * lib/getcwd.c: Likewise.
18020         * lib/getsubopt.c: Likewise.
18021         * lib/glob.c: Likewise.
18022         * lib/hard-locale.c: Likewise.
18023         * lib/iconvme.c: Likewise.
18024         * lib/javacomp.c: Likewise.
18025         * lib/mempcpy.c: Likewise.
18026         * lib/memrchr.c: Likewise.
18027         * lib/regex_internal.h: Likewise.
18028         * lib/stpncpy.c: Likewise.
18029         * lib/strcasecmp.c: Likewise.
18030         * lib/strchrnul.c: Likewise.
18031         * lib/strdup.c: Likewise.
18032         * lib/striconv.c: Likewise.
18033         * lib/striconveh.c: Likewise.
18034         * lib/striconveha.c: Likewise.
18035         * lib/strncasecmp.c: Likewise.
18036         * lib/strndup.c: Likewise.
18037         * lib/strnlen.c: Likewise.
18038         * lib/strsep.c: Likewise.
18039         * lib/strstr.c: Likewise.
18040         * lib/strtok_r.c: Likewise.
18041         * lib/userspec.c: Likewise.
18042         * lib/w32spawn.h: Likewise.
18043         * lib/xstrndup.c: Likewise.
18044         * lib/mountlist.c (strstr): Remove decl.
18045         * m4/string_h.m4: New file.
18046         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18048         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18049         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18050         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18051         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18052         Set REPLACE_STRCASECMP if necessary.
18053         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18054         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18055         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18056         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18057         HAVE_DECL_STRDUP if necessary.
18058         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18059         since gl_FUNC_STRNDUP does that now.
18060         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18061         Check for decl here...
18062         (gl_PREREQ_STRNLEN): ... not here.
18063         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18064         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18065         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18066         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18067         necessary.
18068         * modules/string: New file.
18069         * modules/memmem (Files): Remove special-purpose include file.
18070         (Depends-on): Add string.
18071         (Include): Include <string.h>, not the removed file.
18072         * modules/mempcpy: Likewise.
18073         * modules/memrchr: Likewise.
18074         * modules/stpcpy: Likewise.
18075         * modules/stpncpy: Likewise.
18076         * modules/strcase: Likewise.
18077         * modules/strchrnul: Likewise.
18078         * modules/strdup: Likewise.
18079         * modules/strndup: Likewise.
18080         * modules/strnlen: Likewise.
18081         * modules/strpbrk: Likewise.
18082         * modules/strsep: Likewise.
18083         * modules/strstr: Likewise.
18084         * modules/strtok_r: Likewise.
18085         * tests/test-dirname.c: Don't include "strdup.h", since
18086         <string.h> now suffices.
18087         * tests/test-memmem.c: Don't include "memmem.h", since
18088         <string.h> now suffices.
18089
18090 2007-01-25  Bruno Haible  <bruno@clisp.org>
18091
18092         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18093         *resultp is 0.
18094
18095         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18096         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18097         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18098         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18099
18100         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18101         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18102         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18103         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18104         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18105         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18106
18107 2007-01-24  Bruno Haible  <bruno@clisp.org>
18108
18109         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18110         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18111         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18112         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18113         gl_FUNC_FTS_CORE.
18114         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18115         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18116         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18117         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18118         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18119         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18120         gl_FUNC_FCHOWNAT.
18121         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18122         gl_FUNC_STRFTIME.
18123         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18124         Reported by Ralf Wildenhues.
18125
18126 2007-01-24  Bruno Haible  <bruno@clisp.org>
18127
18128         Drop AC_REQUIRE calls that are redundant with the module dependencies.
18129         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18130         gl_GETADDRINFO.
18131         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18132         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18133         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18134
18135 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18136
18137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18138         Don't use 'exit'; just return from 'main'.
18139         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18140
18141         * lib/fnmatch_.h: Readjust white space and comments to match
18142         glibc, to avoid spurious diffs.
18143
18144 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18145
18146         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18147         2004-12-01 change by Jakub Jelinek, since this code won't compile
18148         if !LIBC.  Problem reported by Bob Proulx.
18149
18150 2007-01-23  Bruno Haible  <bruno@clisp.org>
18151
18152         * lib/striconveh.c: Include c-strcaseeq.h.
18153         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18154         * modules/striconveh (Depends-on): Add c-strcaseeq.
18155
18156 2007-01-23  Bruno Haible  <bruno@clisp.org>
18157
18158         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18159
18160         * modules/c-strcaseeq: New file.
18161         * lib/c-strcaseeq.h: New file.
18162
18163         * modules/streq: New file.
18164         * lib/streq.h: New file.
18165
18166 2007-01-23  Bruno Haible  <bruno@clisp.org>
18167
18168         * modules/striconveha-tests: New file.
18169         * tests/test-striconveha.c: New file.
18170
18171         * lib/striconveha.h: Include <stdbool.h>.
18172         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18173         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18174         (mem_iconveha_notranslit): Renamed from mem_iconveha.
18175         (mem_iconveha): New function.
18176         (str_iconveha_notranslit): Renamed from str_iconveha.
18177         (str_iconveha): New function.
18178         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18179         c-strcase.
18180
18181 2007-01-23  Bruno Haible  <bruno@clisp.org>
18182
18183         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18184         encodings without forgiving before trying any encoding with handler.
18185         (str_iconveha): Try all encodings without forgiving before trying any
18186         encoding with handler.
18187
18188 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         Import the following changes from libc.
18191
18192         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
18193
18194         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18195
18196         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18197
18198         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18199         normal_bracket label.
18200
18201         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
18202
18203         [BZ #361]
18204         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18205         to normal_bracket after fetching the next character.
18206
18207 2007-01-22  Bruno Haible  <bruno@clisp.org>
18208
18209         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18210         argument.
18211         * lib/striconveh.c (iconv_carefully_1): New function.
18212         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18213         argument.
18214         (str_cd_iconveh): Update.
18215         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18216         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18217         * tests/test-striconveh.c (MAGIC): New macro.
18218         (new_offsets): New function.
18219         (main): Test call with and without offsets.
18220
18221 2007-01-22  Bruno Haible  <bruno@clisp.org>
18222
18223         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18224         * modules/sys_select (Makefile.am): Likewise.
18225         * modules/sys_socket (Makefile.am): Likewise.
18226         * modules/sys_time (Makefile.am): Likewise.
18227
18228 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18229
18230         * modules/gettimeofday (License): Change from GPL to LGPL, since
18231         gettimeofday is a library function.
18232
18233 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18234
18235         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18236
18237 2007-01-21  Bruno Haible  <bruno@clisp.org>
18238
18239         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18240
18241 2007-01-21  Bruno Haible  <bruno@clisp.org>
18242
18243         * modules/striconveha: New file.
18244         * lib/striconveha.h: New file.
18245         * lib/striconveha.c: New file.
18246         * MODULES.html.sh (Internationalization functions): Add striconveha.
18247         * lib/striconv.c (str_iconv): Optimize the case of an empty input
18248         string.
18249         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18250
18251 2007-01-21  Bruno Haible  <bruno@clisp.org>
18252
18253         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18254         * lib/striconveh.c (str_iconveh): Likewise.
18255
18256 2007-01-21  Bruno Haible  <bruno@clisp.org>
18257
18258         * lib/striconveh.h (mem_iconveh): New declaration.
18259         * lib/striconveh.c (mem_iconveh): New function.
18260         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18261
18262 2007-01-21  Bruno Haible  <bruno@clisp.org>
18263
18264         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18265
18266         * lib/striconveh.h (mem_cd_iconveh): Change specification.
18267         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18268         original result buffer.
18269         (str_cd_iconveh): Update.
18270         * tests/test-striconveh.c (main): Update.
18271
18272         * lib/striconv.h (mem_cd_iconv): Change specification.
18273         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18274         result buffer.
18275         (str_cd_iconv): Update.
18276         * tests/test-striconv.c (main): Update.
18277
18278 2007-01-21  Bruno Haible  <bruno@clisp.org>
18279
18280         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18281
18282 2007-01-20  Jim Meyering  <jim@meyering.net>
18283
18284         * lib/userspec.c (parse_with_separator): If a user or group string
18285         starts with "+", skip the corresponding name-to-ID look-up, since
18286         such a look-up must fail: user and group names may not include "+".
18287
18288 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18289
18290         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18291         since we now assume the sys_time module.
18292         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18293         check for sys/time.h; no longer needed.
18294         * modules/poll (Depends-on): Depend on sys_time.
18295
18296 2007-01-18  Bruno Haible  <bruno@clisp.org>
18297
18298         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18299         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18300
18301         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18302         gettimeofday.
18303
18304         * tests/test-gettimeofday.c: Include <time.h>.
18305         (dummy): Remove variable.
18306
18307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18308         gl_HEADER_SYS_TIME_H.
18309         (gl_HEADER_SYS_TIME_H): New macro.
18310
18311         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18312         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18314         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18315         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18316         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18317         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18318         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18319         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18320         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18321         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18322
18323         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18324         last change; it caused a compilation error when cross-compiling to
18325         Cygwin.
18326
18327 2007-01-18  Jim Meyering  <jim@meyering.net>
18328
18329         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18330         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18331         than the race-prone "test -d sys || mkdir sys".
18332         (configure.ac): Use AC_PROG_MKDIR_P.
18333         * modules/sys_select: Likewise.
18334         * modules/sys_socket: Likewise.
18335         * modules/sys_time: Likewise.
18336
18337 2007-01-18  Eric Blake  <ebb9@byu.net>
18338
18339         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
18340         replace gettimeofday.
18341         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
18342         name, to avoid infinite recursion.
18343
18344 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
18347         module sys_time.
18348         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
18349         assume timespec.h defines struct timeval.
18350         * lib/settime.c: Likewise.
18351         * lib/utimens.c: Likewise.
18352         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
18353         since we now assume the gettimeofday module.
18354         * lib/tempname.c (__gen_tempname): Likewise.
18355         * lib/gettimeofday.h: Remove.
18356         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
18357         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
18358         Include <time.h>, for 'time()'.
18359         (localtime_buffer_addr): Also use this workaround if
18360         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
18361         to simplify the uses.  All uses changed.
18362         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
18363         that #undef is inside {}, and 'const' follows type name consistently.
18364         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
18365         (gettimeofday): Do not use the maximum possible value for
18366         tv->tv_usec, since that might break usages other than ls.c.
18367         Instead, we'll leave ls.c alone.  This undoes today's patch
18368         by Bruno.  Add a compile-time warning for 1s-clock resolution;
18369         we've never observed the problem but might as well keep the
18370         canary.
18371         * lib/nanosleep.c: Include timespec.h first, for interface check.
18372         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18373         now assume the sys_time module.
18374         * lib/tempname.c: Likewise.
18375         * lib/timespec.h: Likewise.
18376         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18377         needed.
18378         * lib/strftime.c: Likewise.
18379         * lib/timespec.h: Likewise.
18380         * lib/posixtm.c: Include posixtm.h first, for interface check.
18381         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18382         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18383         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18384         * lib/sys_time_.h: New file.
18385         * lib/timespec.h (struct timespec): Use long int, not long.
18386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18387         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18388         Remove obsolescent call to AC_HEADER_TIME.
18389         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18392         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18393         Likewise.
18394         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18395         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18397         into the sys_time module.  Check for gettimeofday just once.
18398         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18399         for gettimeofday signature to just check the signature.  Merely
18400         compile it, since linking doesn't test signature.  Improve test for
18401         whether gettimeofday.o is actually needed.
18402         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18403         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18404         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18405         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18406         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18407         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18408         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18409         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18410         than worrying about sys/time.h.
18411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18412         Don't bother worrying about TIME_WITH_SYS_TIME.
18413         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18414         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18415         * m4/sys_time_h.m4: New file.
18416         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18417         Don't include sys/time.h.  Return from main rather than exiting.
18418         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18419         all uses changed.
18420         * modules/gethrxtime (Depends-on): Add sys_time.
18421         * modules/gettime (Depends-on): Likewise.
18422         * modules/gettimeofday (Depends-on): Likewise.
18423         * modules/nanosleep (Depends-on): Likewise.
18424         * modules/settime (Depends-on): Likewise.
18425         * modules/tempname (Depends-on): Likewise.
18426         * modules/utimens (Depends-on): Likewise.
18427         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
18428         (Include:) Change back to <sys/time.h>.
18429         (Maintainer:) Add self.
18430         * modules/sys_time: New file.
18431         * modules/tempname (Depends-on): Add gettimeofday.
18432         * tests/test-gettimeofday.c: Include <sys/time.h>
18433         rather than gettimeofday.h.
18434
18435 2007-01-17  Bruno Haible  <bruno@clisp.org>
18436
18437         * gnulib-tool (func_get_license): Revert last patch. Instead, let
18438         the license default to GPL.
18439         (func_create_testdir): Don't complain if a module is LGPL and its
18440         tests module depends on GPLed modules.
18441
18442 2007-01-17  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/gettimeofday.c (gettimeofday): Add code for the case
18445         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18446         maximum possible value for tv->tv_usec, rather than the minimum one.
18447
18448 2005-10-08  Martin Lambers  <marlam@marlam.de>
18449 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18450 2007-01-16  Bruno Haible  <bruno@clisp.org>
18451
18452         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18453         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18454         gl_FUNC_GETTIMEOFDAY.
18455         (Include): Add gettimeofday.h.
18456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18457         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18458         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18459         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18460         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18461         * lib/gettimeofday.h: New file.
18462         * lib/gettimeofday.c: Include <sys/timeb.h>.
18463         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18464         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18465         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18466         fall back on time().
18467
18468         * tests/test-gettimeofday.c: New file.
18469         * modules/gettimeofday-tests: New file.
18470
18471 2007-01-16  Eric Blake  <ebb9@byu.net>
18472
18473         * modules/fnmatch (Depends-on): Depend on wchar.
18474         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18475         * m4/fnmatch.m4: Likewise.
18476         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18477         * m4/mbchar.m4: Likewise.
18478         * modules/mbswidth (Depends-on): Depend on wchar.
18479         * lib/mbswidth.c: Assume <wchar.h>.
18480         * m4/mbswidth.m4: Likewise.
18481         * modules/quotearg (Depends-on): Depend on wchar.
18482         * lib/quotearg.c: Assume <wchar.h>.
18483         * m4/quotearg.m4: Likewise.
18484         * modules/regex (Depends-on): Depend on wchar.
18485         * lib/regex_internal.h: Assume <wchar.h>.
18486         * m4/regex.m4: Likewise.
18487         * modules/stdint (Depends-on): Depend on wchar.
18488         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18489         * m4/stdint.m4: Likewise.
18490         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18491         * modules/strftime (Depends-on): Depend on wchar.
18492         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18493         * modules/strtol (Depends-on): Depend on wchar.
18494         * lib/strtol.c: Assume <wchar.h>.
18495         * modules/wcwidth (Depends-on): Depend on wchar.
18496         * lib/wcwidth.h: Assume <wchar.h>.
18497         * m4/wcwidth.m4: Likewise.
18498
18499 2007-01-16  Bruno Haible  <bruno@clisp.org>
18500
18501         * modules/csharpexec-script: New, created from...
18502         * modules/csharpexec: ... this.
18503
18504 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18505
18506         * modules/javaexec-script: New, created from...
18507         * modules/javaexec: ... this.
18508
18509 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18510
18511         * modules/poll (Dependencies): Add sys_select.
18512
18513 2007-01-15  Jim Meyering  <jim@meyering.net>
18514
18515         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18516         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18517         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18518         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18519
18520 2007-01-15  Bruno Haible  <bruno@clisp.org>
18521
18522         * modules/striconveh: New file.
18523         * lib/striconveh.h: New file.
18524         * lib/striconveh.c: New file.
18525         * MODULES.html.sh (Internationalization functions): Add striconveh.
18526
18527         * modules/striconveh-tests: New file.
18528         * tests/test-striconveh.c: New file.
18529
18530 2007-01-15  Bruno Haible  <bruno@clisp.org>
18531
18532         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18533         not from GNU libiconv or GNU libc.
18534
18535 2007-01-15  Bruno Haible  <bruno@clisp.org>
18536
18537         * doc/gnulib-intro.texi (Copyright): Explain the different license
18538         terms for module descriptions, autoconf macros, tests, documentation.
18539
18540 2007-01-14  Bruno Haible  <bruno@clisp.org>
18541
18542         * modules/striconv-tests: New file.
18543         * tests/test-striconv.c: New file.
18544
18545 2007-01-14  Bruno Haible  <bruno@clisp.org>
18546
18547         * modules/iconv-tests: New file.
18548         * tests/test-iconv.c: New file.
18549
18550 2007-01-14  Bruno Haible  <bruno@clisp.org>
18551
18552         * gnulib-tool (func_get_license): For test modules, use the license of
18553         the main module.
18554
18555 2007-01-14  Bruno Haible  <bruno@clisp.org>
18556
18557         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18558         if iconv is found to exist.
18559
18560 2007-01-14  Bruno Haible  <bruno@clisp.org>
18561
18562         * modules/c-ctype-tests: New file.
18563         * tests/test-c-ctype.c: New file.
18564
18565 2007-01-14  Bruno Haible  <bruno@clisp.org>
18566
18567         * modules/binary-io-tests: New file.
18568         * tests/test-binary-io.sh: New file.
18569         * tests/test-binary-io.c: New file.
18570
18571 2007-01-14  Bruno Haible  <bruno@clisp.org>
18572
18573         * modules/array-oset-tests: New file.
18574         * tests/test-array_oset.c: New file.
18575
18576 2007-01-14  Bruno Haible  <bruno@clisp.org>
18577
18578         * modules/array-list-tests: New file.
18579         * tests/test-array_list.c: New file.
18580
18581 2007-01-14  Bruno Haible  <bruno@clisp.org>
18582
18583         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18584         and make.
18585         Reported by Simon Josefsson in
18586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18587
18588 2007-01-14  Bruno Haible  <bruno@clisp.org>
18589
18590         * modules/allocsa-tests: New file.
18591         * tests/test-allocsa.c: New file.
18592
18593 2007-01-14  Bruno Haible  <bruno@clisp.org>
18594
18595         * modules/fchdir (Depends-on): Add absolute-header.
18596         * modules/unistd (Depends-on): Likewise.
18597
18598 2006-12-30  Bruno Haible  <bruno@clisp.org>
18599
18600         * modules/fchdir: New file.
18601         * modules/unistd (Files): Add lib/unistd_.h.
18602         (Makefile.am): Generate unistd.h from unistd_.h.
18603         * lib/fchdir.c: New file.
18604         * lib/dirent_.h: New file.
18605         * lib/unistd_.h: New file.
18606         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18607         * m4/fchdir.m4: New file.
18608         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18609         (gl_HEADER_UNISTD): Invoke it.
18610         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18611         function.
18612         * lib/backupfile.c (opendir, closedir): Undefine.
18613         * lib/chown.c (open, close): Undefine.
18614         * lib/clean-temp.c (open, close): Undefine.
18615         * lib/copy-file.c (open, close): Undefine.
18616         * lib/execute.c (open, close): Undefine.
18617         * lib/fsusage.c (open, close): Undefine.
18618         * lib/gc-gnulib.c (open, close): Undefine.
18619         * lib/getcwd.c (opendir, closedir): Undefine.
18620         * lib/glob.c (opendir, closedir): Undefine.
18621         * lib/javacomp.c (open, close): Undefine.
18622         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18623         * lib/openat-proc.c (open, close): Undefine.
18624         * lib/pagealign_alloc.c (open, close): Undefine.
18625         * lib/pipe.c (open, close): Undefine.
18626         * lib/progreloc.c (open, close): Undefine.
18627         * lib/savedir.c (opendir, closedir): Undefine.
18628         * lib/utime.c (open, close): Undefine.
18629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18630
18631 2007-01-10  Bruno Haible  <bruno@clisp.org>
18632
18633         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18634
18635 2007-01-12  Eric Blake  <ebb9@byu.net>
18636
18637         Provide a robust <wchar.h>.  Further simplifications are now
18638         possible in other modules, but not included here.
18639         * modules/wchar: New module.
18640         * m4/wchar.m4: New file.
18641         * lib/wchar_.h: Likewise.
18642         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18643         of the new module.
18644         * MODULES.html.sh (Extended multibyte and wide character utilities):
18645         New section.
18646
18647 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18648
18649         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18650         to a reasonable default for memory allocation.
18651         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18652         file system that reports garbage st_size values for symlinks.
18653         Problem reported by Liyang Hu.
18654
18655 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18656
18657         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18658         Emacs .#* auto-save files).
18659
18660 2007-01-11  Bruno Haible  <bruno@clisp.org>
18661
18662         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18663         directory.
18664
18665 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18666
18667         Use @...@ consistently in lib/wctype_.h.
18668         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18669         on it being set to 1 or 0.
18670         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18671         go back to AC_SUBSTing it.
18672         * modules/wctype (Makefile.am): Undo previous change.
18673
18674 2007-01-10  Eric Blake  <ebb9@byu.net>
18675
18676         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18677         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18678         * modules/wctype (Makefile.am): Likewise.
18679         Reported by Chris McGuire.
18680
18681 2007-01-10  Jim Meyering  <jim@meyering.net>
18682
18683         fts.c: a small readability/maintainability improvement
18684         * lib/fts.c (fts_read): Make this code slightly more readable and
18685         maintainable by hoisting the "sp->fts_cur = p" assignments to
18686         immediately follow the statements that set P.  Derived from
18687         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18688
18689 2007-01-10  Eric Blake  <ebb9@byu.net>
18690
18691         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18692         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18694         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18695         Reported by Chris McGuire.
18696
18697 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18698
18699         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18700         in sed script.
18701
18702 2007-01-09  Bruno Haible  <bruno@clisp.org>
18703
18704         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18705         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18706         variables.
18707         (func_module): Use them.
18708
18709 2007-01-09  Bruno Haible  <bruno@clisp.org>
18710
18711         * modules/unistr/base: New file.
18712         * lib/unistr.h: New file.
18713
18714         * modules/unistr/u8-to-u16: New file.
18715         * lib/unistr/u8-to-u16.c: New file.
18716
18717         * modules/unistr/u8-to-u32: New file.
18718         * lib/unistr/u8-to-u32.c: New file.
18719
18720         * modules/unistr/u16-to-u8: New file.
18721         * lib/unistr/u16-to-u8.c: New file.
18722
18723         * modules/unistr/u16-to-u32: New file.
18724         * lib/unistr/u16-to-u32.c: New file.
18725
18726         * modules/unistr/u32-to-u8: New file.
18727         * lib/unistr/u32-to-u8.c: New file.
18728
18729         * modules/unistr/u32-to-u16: New file.
18730         * lib/unistr/u32-to-u16.c: New file.
18731
18732         * modules/unistr/u8-check: New file.
18733         * modules/unistr/u16-check: New file.
18734         * modules/unistr/u32-check: New file.
18735         * lib/unistr/u8-check.c: New file.
18736         * lib/unistr/u16-check.c: New file.
18737         * lib/unistr/u32-check.c: New file.
18738
18739         * modules/unistr/u8-chr: New file.
18740         * modules/unistr/u16-chr: New file.
18741         * modules/unistr/u32-chr: New file.
18742         * lib/unistr/u8-chr.c: New file.
18743         * lib/unistr/u16-chr.c: New file.
18744         * lib/unistr/u32-chr.c: New file.
18745
18746         * modules/unistr/u8-cmp: New file.
18747         * modules/unistr/u16-cmp: New file.
18748         * modules/unistr/u32-cmp: New file.
18749         * lib/unistr/u8-cmp.c: New file.
18750         * lib/unistr/u16-cmp.c: New file.
18751         * lib/unistr/u32-cmp.c: New file.
18752
18753         * modules/unistr/u8-cpy: New file.
18754         * modules/unistr/u16-cpy: New file.
18755         * modules/unistr/u32-cpy: New file.
18756         * lib/unistr/u8-cpy.c: New file.
18757         * lib/unistr/u16-cpy.c: New file.
18758         * lib/unistr/u32-cpy.c: New file.
18759         * lib/unistr/u-cpy.h: New file.
18760
18761         * modules/unistr/u8-cpy-alloc: New file.
18762         * modules/unistr/u16-cpy-alloc: New file.
18763         * modules/unistr/u32-cpy-alloc: New file.
18764         * lib/unistr/u8-cpy-alloc.c: New file.
18765         * lib/unistr/u16-cpy-alloc.c: New file.
18766         * lib/unistr/u32-cpy-alloc.c: New file.
18767         * lib/unistr/u-cpy-alloc.h: New file.
18768
18769         * modules/unistr/u8-endswith: New file.
18770         * modules/unistr/u16-endswith: New file.
18771         * modules/unistr/u32-endswith: New file.
18772         * lib/unistr/u8-endswith.c: New file.
18773         * lib/unistr/u16-endswith.c: New file.
18774         * lib/unistr/u32-endswith.c: New file.
18775         * lib/unistr/u-endswith.h: New file.
18776
18777         * modules/unistr/u8-mblen: New file.
18778         * modules/unistr/u16-mblen: New file.
18779         * modules/unistr/u32-mblen: New file.
18780         * lib/unistr/u8-mblen.c: New file.
18781         * lib/unistr/u16-mblen.c: New file.
18782         * lib/unistr/u32-mblen.c: New file.
18783
18784         * modules/unistr/u8-mbtouc: New file.
18785         * modules/unistr/u16-mbtouc: New file.
18786         * modules/unistr/u32-mbtouc: New file.
18787         * lib/unistr/u8-mbtouc.c: New file.
18788         * lib/unistr/u16-mbtouc.c: New file.
18789         * lib/unistr/u32-mbtouc.c: New file.
18790
18791         * modules/unistr/u8-mbtouc-safe: New file.
18792         * modules/unistr/u16-mbtouc-safe: New file.
18793         * modules/unistr/u32-mbtouc-safe: New file.
18794         * lib/unistr/u8-mbtouc-safe.c: New file.
18795         * lib/unistr/u16-mbtouc-safe.c: New file.
18796         * lib/unistr/u32-mbtouc-safe.c: New file.
18797
18798         * modules/unistr/u8-move: New file.
18799         * modules/unistr/u16-move: New file.
18800         * modules/unistr/u32-move: New file.
18801         * lib/unistr/u8-move.c: New file.
18802         * lib/unistr/u16-move.c: New file.
18803         * lib/unistr/u32-move.c: New file.
18804         * lib/unistr/u-move.h: New file.
18805
18806         * modules/unistr/u8-next: New file.
18807         * modules/unistr/u16-next: New file.
18808         * modules/unistr/u32-next: New file.
18809         * lib/unistr/u8-next.c: New file.
18810         * lib/unistr/u16-next.c: New file.
18811         * lib/unistr/u32-next.c: New file.
18812
18813         * modules/unistr/u8-prev: New file.
18814         * modules/unistr/u16-prev: New file.
18815         * modules/unistr/u32-prev: New file.
18816         * lib/unistr/u8-prev.c: New file.
18817         * lib/unistr/u16-prev.c: New file.
18818         * lib/unistr/u32-prev.c: New file.
18819
18820         * modules/unistr/u8-set: New file.
18821         * modules/unistr/u16-set: New file.
18822         * modules/unistr/u32-set: New file.
18823         * lib/unistr/u8-set.c: New file.
18824         * lib/unistr/u16-set.c: New file.
18825         * lib/unistr/u32-set.c: New file.
18826         * lib/unistr/u-set.h: New file.
18827
18828         * modules/unistr/u8-startswith: New file.
18829         * modules/unistr/u16-startswith: New file.
18830         * modules/unistr/u32-startswith: New file.
18831         * lib/unistr/u8-startswith.c: New file.
18832         * lib/unistr/u16-startswith.c: New file.
18833         * lib/unistr/u32-startswith.c: New file.
18834         * lib/unistr/u-startswith.h: New file.
18835
18836         * modules/unistr/u8-stpcpy: New file.
18837         * modules/unistr/u16-stpcpy: New file.
18838         * modules/unistr/u32-stpcpy: New file.
18839         * lib/unistr/u8-stpcpy.c: New file.
18840         * lib/unistr/u16-stpcpy.c: New file.
18841         * lib/unistr/u32-stpcpy.c: New file.
18842         * lib/unistr/u-stpcpy.h: New file.
18843
18844         * modules/unistr/u8-stpncpy: New file.
18845         * modules/unistr/u16-stpncpy: New file.
18846         * modules/unistr/u32-stpncpy: New file.
18847         * lib/unistr/u8-stpncpy.c: New file.
18848         * lib/unistr/u16-stpncpy.c: New file.
18849         * lib/unistr/u32-stpncpy.c: New file.
18850         * lib/unistr/u-stpncpy.h: New file.
18851
18852         * modules/unistr/u8-strcat: New file.
18853         * modules/unistr/u16-strcat: New file.
18854         * modules/unistr/u32-strcat: New file.
18855         * lib/unistr/u8-strcat.c: New file.
18856         * lib/unistr/u16-strcat.c: New file.
18857         * lib/unistr/u32-strcat.c: New file.
18858         * lib/unistr/u-strcat.h: New file.
18859
18860         * modules/unistr/u8-strchr: New file.
18861         * modules/unistr/u16-strchr: New file.
18862         * modules/unistr/u32-strchr: New file.
18863         * lib/unistr/u8-strchr.c: New file.
18864         * lib/unistr/u16-strchr.c: New file.
18865         * lib/unistr/u32-strchr.c: New file.
18866
18867         * modules/unistr/u8-strcmp: New file.
18868         * modules/unistr/u16-strcmp: New file.
18869         * modules/unistr/u32-strcmp: New file.
18870         * lib/unistr/u8-strcmp.c: New file.
18871         * lib/unistr/u16-strcmp.c: New file.
18872         * lib/unistr/u32-strcmp.c: New file.
18873
18874         * modules/unistr/u8-strcpy: New file.
18875         * modules/unistr/u16-strcpy: New file.
18876         * modules/unistr/u32-strcpy: New file.
18877         * lib/unistr/u8-strcpy.c: New file.
18878         * lib/unistr/u16-strcpy.c: New file.
18879         * lib/unistr/u32-strcpy.c: New file.
18880         * lib/unistr/u-strcpy.h: New file.
18881
18882         * modules/unistr/u8-strcspn: New file.
18883         * modules/unistr/u16-strcspn: New file.
18884         * modules/unistr/u32-strcspn: New file.
18885         * lib/unistr/u8-strcspn.c: New file.
18886         * lib/unistr/u16-strcspn.c: New file.
18887         * lib/unistr/u32-strcspn.c: New file.
18888         * lib/unistr/u-strcspn.h: New file.
18889
18890         * modules/unistr/u8-strdup: New file.
18891         * modules/unistr/u16-strdup: New file.
18892         * modules/unistr/u32-strdup: New file.
18893         * lib/unistr/u8-strdup.c: New file.
18894         * lib/unistr/u16-strdup.c: New file.
18895         * lib/unistr/u32-strdup.c: New file.
18896         * lib/unistr/u-strdup.h: New file.
18897
18898         * modules/unistr/u8-strlen: New file.
18899         * modules/unistr/u16-strlen: New file.
18900         * modules/unistr/u32-strlen: New file.
18901         * lib/unistr/u8-strlen.c: New file.
18902         * lib/unistr/u16-strlen.c: New file.
18903         * lib/unistr/u32-strlen.c: New file.
18904         * lib/unistr/u-strlen.h: New file.
18905
18906         * modules/unistr/u8-strmblen: New file.
18907         * modules/unistr/u16-strmblen: New file.
18908         * modules/unistr/u32-strmblen: New file.
18909         * lib/unistr/u8-strmblen.c: New file.
18910         * lib/unistr/u16-strmblen.c: New file.
18911         * lib/unistr/u32-strmblen.c: New file.
18912
18913         * modules/unistr/u8-strmbtouc: New file.
18914         * modules/unistr/u16-strmbtouc: New file.
18915         * modules/unistr/u32-strmbtouc: New file.
18916         * lib/unistr/u8-strmbtouc.c: New file.
18917         * lib/unistr/u16-strmbtouc.c: New file.
18918         * lib/unistr/u32-strmbtouc.c: New file.
18919
18920         * modules/unistr/u8-strncat: New file.
18921         * modules/unistr/u16-strncat: New file.
18922         * modules/unistr/u32-strncat: New file.
18923         * lib/unistr/u8-strncat.c: New file.
18924         * lib/unistr/u16-strncat.c: New file.
18925         * lib/unistr/u32-strncat.c: New file.
18926         * lib/unistr/u-strncat.h: New file.
18927
18928         * modules/unistr/u8-strncmp: New file.
18929         * modules/unistr/u16-strncmp: New file.
18930         * modules/unistr/u32-strncmp: New file.
18931         * lib/unistr/u8-strncmp.c: New file.
18932         * lib/unistr/u16-strncmp.c: New file.
18933         * lib/unistr/u32-strncmp.c: New file.
18934
18935         * modules/unistr/u8-strncpy: New file.
18936         * modules/unistr/u16-strncpy: New file.
18937         * modules/unistr/u32-strncpy: New file.
18938         * lib/unistr/u8-strncpy.c: New file.
18939         * lib/unistr/u16-strncpy.c: New file.
18940         * lib/unistr/u32-strncpy.c: New file.
18941         * lib/unistr/u-strncpy.h: New file.
18942
18943         * modules/unistr/u8-strnlen: New file.
18944         * modules/unistr/u16-strnlen: New file.
18945         * modules/unistr/u32-strnlen: New file.
18946         * lib/unistr/u8-strnlen.c: New file.
18947         * lib/unistr/u16-strnlen.c: New file.
18948         * lib/unistr/u32-strnlen.c: New file.
18949         * lib/unistr/u-strnlen.h: New file.
18950
18951         * modules/unistr/u8-strpbrk: New file.
18952         * modules/unistr/u16-strpbrk: New file.
18953         * modules/unistr/u32-strpbrk: New file.
18954         * lib/unistr/u8-strpbrk.c: New file.
18955         * lib/unistr/u16-strpbrk.c: New file.
18956         * lib/unistr/u32-strpbrk.c: New file.
18957         * lib/unistr/u-strpbrk.h: New file.
18958
18959         * modules/unistr/u8-strrchr: New file.
18960         * modules/unistr/u16-strrchr: New file.
18961         * modules/unistr/u32-strrchr: New file.
18962         * lib/unistr/u8-strrchr.c: New file.
18963         * lib/unistr/u16-strrchr.c: New file.
18964         * lib/unistr/u32-strrchr.c: New file.
18965
18966         * modules/unistr/u8-strspn: New file.
18967         * modules/unistr/u16-strspn: New file.
18968         * modules/unistr/u32-strspn: New file.
18969         * lib/unistr/u8-strspn.c: New file.
18970         * lib/unistr/u16-strspn.c: New file.
18971         * lib/unistr/u32-strspn.c: New file.
18972         * lib/unistr/u-strspn.h: New file.
18973
18974         * modules/unistr/u8-strstr: New file.
18975         * modules/unistr/u16-strstr: New file.
18976         * modules/unistr/u32-strstr: New file.
18977         * lib/unistr/u8-strstr.c: New file.
18978         * lib/unistr/u16-strstr.c: New file.
18979         * lib/unistr/u32-strstr.c: New file.
18980         * lib/unistr/u-strstr.h: New file.
18981
18982         * modules/unistr/u8-strtok: New file.
18983         * modules/unistr/u16-strtok: New file.
18984         * modules/unistr/u32-strtok: New file.
18985         * lib/unistr/u8-strtok.c: New file.
18986         * lib/unistr/u16-strtok.c: New file.
18987         * lib/unistr/u32-strtok.c: New file.
18988         * lib/unistr/u-strtok.h: New file.
18989
18990         * modules/unistr/u8-uctomb: New file.
18991         * modules/unistr/u16-uctomb: New file.
18992         * modules/unistr/u32-uctomb: New file.
18993         * lib/unistr/u8-uctomb.c: New file.
18994         * lib/unistr/u16-uctomb.c: New file.
18995         * lib/unistr/u32-uctomb.c: New file.
18996
18997         * MODULES.html.sh (Unicode string functions): Add the new modules.
18998
18999 2007-01-08  Bruno Haible  <bruno@clisp.org>
19000
19001         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19002         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19003         subdirectories.
19004
19005 2007-01-08  Karl Berry  <karl@gnu.org>
19006
19007         * doc/error.texi: mention that main() fns must set program_name
19008         when progname is used.
19009
19010 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19013         WCTYPE_H is empty, for the benefit of builds from non-distclean
19014         directories.  Problem reported by Eric Blake in
19015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19016
19017 2007-01-08  Bruno Haible  <bruno@clisp.org>
19018
19019         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19020         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19021         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19022         PROVIDE_CANONICALIZE_FILENAME_MODE.
19023         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19024
19025 2007-01-08  Bruno Haible  <bruno@clisp.org>
19026
19027         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19028         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19029         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19030         * lib/fts.c: Likewise.
19031         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19032
19033 2006-12-25  Bruno Haible  <bruno@clisp.org>
19034
19035         * modules/utf8-ucs4-safe: New file.
19036         * lib/utf8-ucs4-safe.h: New file.
19037         * lib/unistr/utf8-ucs4-safe.c: New file.
19038
19039         * modules/utf16-ucs4-safe: New file.
19040         * lib/utf16-ucs4-safe.h: New file.
19041         * lib/unistr/utf16-ucs4-safe.c: New file.
19042
19043         * MODULES.html.sh (Unicode string functions): Add the new modules.
19044
19045 2007-01-08  Bruno Haible  <bruno@clisp.org>
19046
19047         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19048         (Depends-on): Add unitypes.
19049         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19050         (u8_mbtouc_aux): Move out to separate file.
19051         (u8_mbtouc): Use ucs4_t, uint8_t types.
19052         * lib/unistr/utf8-ucs4.c: New file.
19053
19054         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19055         (Depends-on): Add unitypes.
19056         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19057         (u16_mbtouc_aux): Move out to separate file.
19058         (u16_mbtouc): Use ucs4_t, uint16_t types.
19059         * lib/unistr/utf16-ucs4.c: New file.
19060
19061         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19062         (Depends-on): Add unitypes.
19063         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19064         (u8_uctomb_aux): Move out to separate file.
19065         (u8_uctomb): Use ucs4_t, uint8_t types.
19066         * lib/unistr/ucs4-utf8.c: New file.
19067
19068         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19069         (Depends-on): Add unitypes.
19070         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19071         (u16_uctomb_aux): Move out to separate file.
19072         (u16_uctomb): Use ucs4_t, uint16_t types.
19073         * lib/unistr/ucs4-utf16.c: New file.
19074
19075 2006-12-25  Bruno Haible  <bruno@clisp.org>
19076
19077         * modules/unitypes: New file.
19078         * lib/unitypes.h: New file.
19079         * MODULES.html.sh (func_all_modules): New section "Unicode string
19080         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19081         this section. Add unitypes.
19082
19083 2007-01-08  Bruno Haible  <bruno@clisp.org>
19084
19085         Avoid variable names that conflict with those from libtool.
19086         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19087         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19088         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19089         library_names_spec to acl_library_names_spec, hardcode_* to
19090         acl_hardcode_*.
19091         Reported by Ralf Wildenhues.
19092
19093 2007-01-08  Bruno Haible  <bruno@clisp.org>
19094
19095         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19096         definition.
19097         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19098         definition.
19099         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19100         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19101         definition.
19102         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19103         definition.
19104         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19105         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19106         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19107         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19108         definition.
19109         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19110         definition.
19111         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19112         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19113         GC_USE_<algorithm>.
19114         * lib/gc-libgcrypt.c: Likewise.
19115         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19116         * modules/gc-arctwo (configure.ac): Likewise.
19117         * modules/gc-des (configure.ac): Likewise.
19118         * modules/gc-hmac-md5 (configure.ac): Likewise.
19119         * modules/gc-hmac-sha1 (configure.ac): Likewise.
19120         * modules/gc-md2 (configure.ac): Likewise.
19121         * modules/gc-md4 (configure.ac): Likewise.
19122         * modules/gc-md5 (configure.ac): Likewise.
19123         * modules/gc-random (configure.ac): Likewise.
19124         * modules/gc-rijndael (configure.ac): Likewise.
19125         * modules/gc-sha1 (configure.ac): Likewise.
19126
19127 2007-01-08  Bruno Haible  <bruno@clisp.org>
19128
19129         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19130         macro definition.
19131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19132         definition.
19133         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19134         definition.
19135         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19136         * modules/fcntl-safer (configure.ac): Likewise.
19137         * modules/fopen-safer (configure.ac): Likewise.
19138         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19139         GNULIB_FWRITEERROR macro definition.
19140
19141 2007-01-08  Bruno Haible  <bruno@clisp.org>
19142
19143         * m4/gnulib-common.m4: New file.
19144         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19145         (func_get_filelist): Add m4/gnulib-common.m4.
19146
19147 2007-01-08  Bruno Haible  <bruno@clisp.org>
19148
19149         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19150         command.
19151
19152 2007-01-08  Jim Meyering  <jim@meyering.net>
19153
19154         Use a more robust test for a "can't happen" condition.
19155         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19156         narrowed the st_size value.  Presuming the "can't happen" condition
19157         is true, that narrowing could conceivably convert an invalid st_size
19158         value into a valid one.  Instead, use a change based on Matthew
19159         Woehlke's original patch.
19160
19161         Slight readability improvement: use an assert-like macro
19162         in place of literal "abort ()" uses.
19163         * lib/fts.c (fts_assert): Define.
19164         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19165         Use this macro instead of a bare 'abort'.
19166
19167 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19168
19169         Don't worry about using IRIX 5.3's wctype.h broken definitions;
19170         simply work around them.
19171         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19172         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19173         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19174         declaring.
19175         Don't bother to define as macros, since the standard doesn't require it.
19176         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19177         longer worry about IRIX 5.3.
19178         (HAVE_WCTYPE_CTMP_BUG): Remove.
19179
19180 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19183         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
19184         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19185         Problems reported by Georg Schwarz for IRIX 5.3.
19186
19187         * gnulib-tool (autoconf_minversion): Take the maximum version number
19188         found, not the minimum.  Problem reported by James Youngman.
19189
19190 2007-01-03  Karl Berry  <karl@gnu.org>
19191
19192         * doc/error.texi: new file, explaining interaction with progname.
19193         * doc/gnulib.texi: include it.  Update copyright.
19194
19195 2007-01-03  Simon Josefsson  <simon@josefsson.org>
19196
19197         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19198         AC_CANONICAL_HOST, to improve autobuild outputs.
19199
19200 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
19201             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19202
19203         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19204         sockets, server sockets, and other file descriptors.  Count errors
19205         to compute the return value.  Reorder the code a bit to be easier
19206         to follow.  Don't set event bits that were not requested (except
19207         POLLERR and POLLHUP).
19208
19209 2007-01-01  Bruno Haible  <bruno@clisp.org>
19210
19211         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19212
19213 2007-01-03  Jim Meyering  <jim@meyering.net>
19214
19215         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
19216
19217 2007-01-02  Bruno Haible  <bruno@clisp.org>
19218
19219         * modules/settime (Include): Require timespec.h.
19220         * modules/nanosleep (Include): Likewise.
19221
19222 2007-01-01  Bruno Haible  <bruno@clisp.org>
19223
19224         * gnulib-tool (func_emit_copyright_notice): Bump year.
19225         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19226
19227 2007-01-01  Bruno Haible  <bruno@clisp.org>
19228
19229         Improve support for OpenBSD.
19230         * build-aux/config.rpath (libname_spec): Export.
19231         (library_names_spec): New variable. Export.
19232         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19233         library_names_spec from the config.rpath output. Locate shared library
19234         through the name pattern in library_names_spec.
19235
19236 2007-01-01  Eric Blake  <ebb9@byu.net>
19237
19238         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19239
19240 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19243         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
19244         assume the C locale, and avoid an "eval" that could cause trouble.
19245         Problem with SORT reported by Bob Proulx.
19246
19247         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19248         Define.  Trivial patch from Henning Nielsen Lund, originally
19249         sent to bug-grep@gnu.org today.
19250
19251 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19254         struct stat.  Problem reported by Henning Nielsen Lund.
19255         * lib/acl.c: Include acl.h first, to check interface.  Don't
19256         bother to include sys/types.h and sys/stat.h again.
19257
19258 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19259
19260         Import the following change from libc; problem reported by
19261         Sven Verdoolaege.
19262
19263         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
19264
19265         [BZ #1373]
19266         * lib/argp.h: Remove __NTH for __argp_usage inline function.
19267
19268 2006-12-28  Jim Meyering  <jim@meyering.net>
19269
19270         * build-aux/announce-gen: Do not assume that the package
19271         builds any of tar.gz, tar.bz2, and .xdelta files.
19272         Suggestion from Simon Josefsson.
19273
19274 2006-12-28  Simon Josefsson  <simon@josefsson.org>
19275
19276         * modules/announce-gen: New file.
19277
19278 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19279
19280         * lib/mbchar.h: Just include <wctype.h>; the wctype module
19281         handles its gotchas now.
19282         * lib/mbswidth.c: Likewise.
19283         * lib/wcwidth.h: Likewise.
19284         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19285         and iswcntrl; the wctype module does this stuff now.
19286         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19288         * modules/mbchar (Depends-on): Add wctype.
19289         * modules/mbswidth (Depends-on): Likewise.
19290         * modules/wcwidth (Depends-on): Likewise.
19291
19292 2006-12-27  Eric Blake  <ebb9@byu.net>
19293
19294         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19295         module uses more than what <wctype.h> is required to provide.
19296
19297 2006-12-26  Eric Blake  <ebb9@byu.net>
19298
19299         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19300
19301 2006-12-26  Eric Blake  <ebb9@byu.net>
19302
19303         * modules/absolute-header: New module.
19304         * modules/fcntl (Depends-on): Depend on it.
19305         * modules/inttypes (Depends-on): Likewise.
19306         * modules/stdint (Depends-on): Likewise.
19307         * modules/sys_stat (Depends-on): Likewise.
19308         * modules/wctype (Depends-on): Likewise.
19309         * MODULES.html.sh (Support for building libraries and
19310         executables): Document it.
19311
19312 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19313
19314         * gnulib-tool (SED): Remove, undoing previous change.
19315         The problem was that it broke coreutils on Solaris, because
19316         "sed --posix" leaked into a makefile.
19317         (sed): New alias, if 'alias' and GNU sed.
19318
19319 2006-12-24  Jim Meyering  <jim@meyering.net>
19320
19321         Work around an fchownat bug in glibc-2.4:
19322         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19323         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19324         in spite of the -P option.
19325         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19326         New macros.
19327         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19328         * modules/openat (Files): Add lib/fchownat.c.
19329         * lib/openat.c (fchownat): Don't define here.  Move to...
19330         * lib/fchownat.c: ...this new file.
19331
19332 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19333
19334         Fix bug reported by Bruno Haible in
19335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
19336         where quotearg.c didn't compile on Mac OS X 10.2 because it
19337         lacks <wchar.h> and wint_t.
19338         * lib/wctype_.h (__wctype_wint_t): New type.
19339         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
19340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
19341         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
19342         Arg is now of type __wctype_wint_t, not wint_t.
19343         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
19344         substitute HAVE_WINT_T.
19345         * modules/wctype (Files): Add m4/wint_t.m4.
19346         (wctype.h): Substitute HAVE_WINT_T.
19347
19348 2006-12-23  Bruno Haible  <bruno@clisp.org>
19349
19350         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
19351
19352 2006-12-23  Bruno Haible  <bruno@clisp.org>
19353
19354         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
19355         S_ISLNK.
19356         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
19357         mingw.
19358
19359 2006-12-22  Bruno Haible  <bruno@clisp.org>
19360
19361         * lib/copy-file.c: Include acl.h.
19362         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
19363         Close the file descriptors only after being done with copy_acl.
19364         * modules/copy-file (Depends-on): Add acl.
19365
19366 2006-12-22  Bruno Haible  <bruno@clisp.org>
19367
19368         * gnulib-tool (SED): New variable.
19369         Use $SED instead of sed everywhere.
19370
19371 2006-12-22  Bruno Haible  <bruno@clisp.org>
19372
19373         * modules/no-c++: New file.
19374         * m4/no-c++.m4: New file.
19375         * MODULES.html.sh (Support for building libraries and executables):
19376         Add no-c++.
19377
19378 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19379
19380         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19381         Include <limits.h>, and use its INT_MAX to rewrite the
19382         j loop so that it does not overflow 'int'.  Problem reported by
19383         Ralf Wildenhues in
19384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19385         Play it safe by shifting left by 1 rather than multiplying by 2,
19386         as GCC is less likely to optimize this away when the value
19387         is signed (when it assumes overflow leads to undefined behavior).
19388         Also, don't assume time_t uses two's complement.
19389
19390 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19391
19392         * MODULES.html.sh: New module wctype.
19393         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19394         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19395         <wctype.h>, since the new wctype module should fix this.
19396         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19397         the wctype module should arrange for it.
19398         * lib/regex_internal.h: Likewise.
19399         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19400         since the wctype module should handle this now.
19401         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19402         * modules/fnmatch (Depends-on): Add wctype.
19403         * modules/quotearg (Depends-on): Likewise.
19404         * modules/regex (Depends-on): Likewise.
19405
19406 2006-12-19  Bruno Haible  <bruno@clisp.org>
19407
19408         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19409         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19410
19411 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19412
19413         * modules/savewd (Depends-on): Fix dependency on fcntl.
19414
19415 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19416
19417         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19418         conforms to C99, rather than relying on the user's environment
19419         setting of STDINT_H.
19420
19421 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19422         and Eric Blake  <ebb9@byu.net>
19423
19424         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
19425         This is more consistent with the other defines here.
19426         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
19427         Port to z/OS.  Problem reported by Paul Gilmartin.
19428         Change local vars to use gl_ prefix rather than ac_.
19429         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
19430         with other defines.
19431         * modules/double-slash-root: New module.
19432         * modules/dirname (Files): Remove m4/double-slash-root.m4.
19433         (Depends-on): Add double-slash-root.
19434         * MODULES.html.sh (File system functions): Mention new module.
19435
19436 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
19437
19438         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
19439         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
19440         This is for the benefit of gzip, which doesn't do i18n.
19441
19442 2006-12-12  Jim Meyering  <jim@meyering.net>
19443
19444         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19445         Reported by Andreas Schwab <schwab@suse.de>.
19446
19447 2006-12-12  Bruno Haible  <bruno@clisp.org>
19448
19449         Merge these changes.
19450         2006-09-05  Bruno Haible  <bruno@clisp.org>
19451         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19452         iconv_alloc succeeded.
19453         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19454         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19455         test for " && dest " at the end - dest is always != NULL there. Call
19456         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19457         with 2xNULL arguments, also to flush the state storage. Handle the
19458         IRIX iconv behaviour. Realloc the final result, to throw away unused
19459         memory.
19460
19461 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19462
19463         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19464         and fchmodat unconditionally, since glibc 2.4 has them.
19465         Problem reported by Arkadiusz Miskiewicz.
19466
19467 2006-12-10  Bruno Haible  <bruno@clisp.org>
19468
19469         * gnulib-tool (func_import): Show the include files only for those
19470         modules that are copied and specified.
19471         Reported by Karl Berry.
19472
19473 2006-12-08  Jim Meyering  <jim@meyering.net>
19474
19475         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19476         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19477
19478         * build-aux/announce-gen: Add two new options, both optional:
19479         --bootstrap-tools=TOOL_LIST
19480               a comma-separated list of tools, e.g.,
19481               autoconf,automake,bison,gnulib
19482         --gnulib-snapshot-date=DATE
19483               if gnulib is in the bootstrap tool list,
19484               then report this as the snapshot date.
19485               If not specified, use the current date/time.
19486               If you specify a date here, be sure it's UTC.
19487
19488 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19489
19490         * tests/test-argp-2.sh: Fix test to match actual output.
19491         (func_compare): Fix sed script to be portable.
19492
19493 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19494
19495         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19496         workaround for this case.  It is not autoconfigured now; offhand
19497         it's hard to see how to autoconfigure it.
19498
19499 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19502         a directory that is about to be chowned.  Such a directory's
19503         initial file permissions should permit the owner only and this
19504         should not be changed until after the chown, since the group and
19505         other bits would be incorrect if they granted permission before
19506         the chown.
19507
19508         Fix porting problem for iswctype reported by Georg Schwarz in:
19509         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19510         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19511         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19514
19515 2006-12-03  Jim Meyering  <jim@meyering.net>
19516
19517         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19518         p->fts_statp may not yet be defined.
19519         (fts_read): Instead, set it in the caller, once p->fts_statp is
19520         sure to be defined, and corresponds to a top-level directory.
19521         This bug made du -x fail.  Here's the coreutils test case:
19522         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19523         Reported by Mike Frysinger.
19524
19525 2006-12-01  Jim Meyering  <jim@meyering.net>
19526
19527         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19528         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19529         Reported by Simon Josefsson.
19530
19531 2006-11-30  Jim Meyering  <jim@meyering.net>
19532
19533         * m4/warning.m4: Use the all-permissive copyright notice
19534         recommended by RMS (rather than LGPL).
19535         * m4/vararrays.m4: Likewise.
19536         * m4/flexmember.m4: Likewise.
19537
19538 2006-11-29  Bruno Haible  <bruno@clisp.org>
19539
19540         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19541         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19542         using +=.
19543         Reported by Simon Josefsson <simon@josefsson.org>.
19544
19545 2006-11-28  James Youngman <jay@gnu.org>
19546
19547         * README: Advise users that they might find the bug-gnulib@gnu.org
19548         and autotools-announce@gnu.org mailing lists useful.
19549
19550 2006-11-28  Bruno Haible  <bruno@clisp.org>
19551
19552         * m4/ptrdiff_max.m4: Remove file.
19553
19554 2006-11-21  Bruno Haible  <bruno@clisp.org>
19555
19556         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19557         _AC_COMPUTE_INT.
19558         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19559         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19560         _AC_COMPUTE_INT.
19561         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19562         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19563         _AC_COMPUTE_INT.
19564         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19565
19566 2006-11-28  Jim Meyering  <jim@meyering.net>
19567
19568         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19569         warning from "gcc -Wshadow" about shadowing the builtin.
19570
19571 2006-11-27  Bruno Haible  <bruno@clisp.org>
19572
19573         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19574         _AC_COMPUTE_INT.
19575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19576
19577 2006-11-27  Bruno Haible  <bruno@clisp.org>
19578             Paul Eggert  <eggert@cs.ucla.edu>
19579
19580         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19581
19582 2006-11-26  Bruno Haible  <bruno@clisp.org>
19583
19584         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19585         noinst_LTLIBRARIES.
19586
19587 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19588             Bruno Haible  <bruno@clisp.org>
19589
19590         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19591         if compiling with "gcc -ansi".
19592
19593 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19594
19595         Fix some incompatibilities with gcc -ansi -pedantic.
19596         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19597         if compiling pedantically with GCC, unless it's C99 or later.
19598         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19599         it mishandles gcc -ansi -pedantic as well.
19600         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19601         if gcc -pedantic.
19602         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19603         initializers for struct if -pedantic, unless it's C99 or later.
19604
19605 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19606
19607         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19608         Don't close an fd more than once. Identical atimes indicate
19609         success, not failure.
19610
19611 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19612
19613         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19614
19615 2006-11-23  Jim Meyering  <jim@meyering.net>
19616
19617         * build-aux/announce-gen: New file.  From coreutils.
19618
19619 2006-11-22  Jim Meyering  <jim@meyering.net>
19620
19621         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19622         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19623         (fts_read): Use a temporary to narrow the overused st_size member
19624         before using it in a switch statement.  Reported by Matthew Woehlke.
19625
19626         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19627         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19628
19629 2006-11-20  Bruno Haible  <bruno@clisp.org>
19630
19631         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19632         changequote instead of pairs of brackets.
19633         Reported by Andreas Schwab <schwab@suse.de>.
19634
19635 2006-11-21  Jim Meyering  <jim@meyering.net>
19636
19637         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19638         so as to remain compatible with older compilers.
19639         Patch from Michael Deutschmann.
19640
19641 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         * MODULES.html.sh (File system functions): Add openat.
19644
19645         * lib/openat.h (rpl_fstatat): New macro, if
19646         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19647         (fstatat): Define to rpl_fstatat under the same conditions,
19648         unless COMPILING_FSTATAT.
19649         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19650         seems to have the bug.
19651         * lib/fstatat.c: New file.
19652         * modules/openat (Files): Add it.
19653
19654 2006-11-20  Bruno Haible  <bruno@clisp.org>
19655
19656         * Makefile: New file.
19657
19658 2006-11-20  Jim Meyering  <jim@meyering.net>
19659
19660         The beginnings of syntax-related checks for gnulib.
19661         * lib/Makefile: New file.
19662         * lib/t-idcache: New script.  Ensure that the two halves of
19663         idcache.c stay in sync.
19664
19665         * lib/idcache.c: Adjust comments in user- and group- portions to
19666         be more accurate, and to be consistent with one another.
19667
19668 2006-11-20  Jim Meyering  <jim@meyering.net>
19669
19670         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19671         continue using the flexible array member (thus, this module performs
19672         half as many malloc calls), with the addition that...
19673         (getgroup, getuser): Consistently record a non-match via an empty
19674         "name" string, and map an empty string match to a NULL return value.
19675         * modules/idcache (Depends-on): Re-add flexmember.
19676
19677         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19678         (getuidbyname, getgroup, getgidbyname): Likewise.
19679
19680         Use cleaner syntax: NULL rather than 0.
19681         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19682
19683 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19686         It mishandled the case where the group was missing.
19687         Problem reported by Greg Schafer.
19688         * modules/idcache: Likewise.
19689
19690 2006-11-18  Jim Meyering  <jim@meyering.net>
19691
19692         * check-module (%exempt_header): Add exception for some
19693         conditionally-included headers.
19694
19695         * modules/i-ring (Depends-on): Add verify.
19696         (License): Change to LGPL.
19697
19698 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19699
19700         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19701         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19702         and inttostr.h.  Use snprintf rather than uinttostr, so that
19703         LGPLed code doesn't depend on GPLed.
19704
19705 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19706
19707         * modules/inline (License): Change from GPL to LGPL.
19708
19709 2006-11-17  Jim Meyering  <jim@meyering.net>
19710
19711         * modules/d-type (License): Switch to LGPL.
19712
19713 2006-11-15  Bruno Haible  <bruno@clisp.org>
19714
19715         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19716
19717 2006-11-15  Eric Blake  <ebb9@byu.net>
19718
19719         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19720         the module dependency.
19721
19722 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19723             Bruno Haible  <bruno@clisp.org>
19724
19725         * gnulib-tool (func_create_testdir): Add license consistency check.
19726
19727 2006-11-15  Eric Blake  <ebb9@byu.net>
19728
19729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19730         random "(cached)" in configure output.
19731
19732 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19733
19734         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19735         test for conforming inttypes.h is both announced and cached.
19736
19737         * MODULES.html.sh (seen_modules, seen_files): New variables.
19738         (func_module): Rewrite to use a few less gnulib-tool and sed
19739         invocations.  Avoid a couple of quadratic algorithms for ...
19740         (missed_modules, missed_files): ... these, with ...
19741         (func_append, func_tmpdir): ... these new functions, from
19742         gnulib-tool.  Analogously, install traps for cleanup.
19743
19744         * tests/test-gc.c (main): Remove unused variables.
19745         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19746
19747 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         * modules/inttostr (License): Change to LGPL.
19750
19751 2006-11-14  Eric Blake  <ebb9@byu.net>
19752
19753         * modules/tempname (License): Change to LGPL.
19754
19755 2006-11-14  Eric Blake  <ebb9@byu.net>
19756
19757         * doc/functions.texi (Function Portability): *printf functions on
19758         Cygwin now understand all POSIX size specifiers.
19759
19760 2006-11-14  Bruno Haible  <bruno@clisp.org>
19761
19762         * modules/c-ctype (License): Change to LGPL.
19763
19764 2006-11-12  Bruno Haible  <bruno@clisp.org>
19765
19766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19767         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19768         for GNOME libraries, for which the include files are installed in
19769         subdirectories of $prefix/include.
19770
19771 2006-11-12  Bruno Haible  <bruno@clisp.org>
19772
19773         * m4/lib-link.m4: Require at least autoconf-2.54.
19774         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19775         name to underscores for the --with option.
19776
19777 2006-11-13  Bruno Haible  <bruno@clisp.org>
19778
19779         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19780         the tests directory.
19781         Reported by Ralf Wildenhues.
19782
19783 2006-11-13  Bruno Haible  <bruno@clisp.org>
19784
19785         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19786         (func_emit_initmacro_end): Undo the override here.
19787         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19788         Works around the famous automake error in coreutils.
19789
19790 2006-11-13  Eric Blake  <ebb9@byu.net>
19791
19792         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19793         element, not its node.
19794
19795 2006-11-12  Bruno Haible  <bruno@clisp.org>
19796
19797         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19798         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19799
19800 2006-11-12  Bruno Haible  <bruno@clisp.org>
19801
19802         * gnulib-tool: New option --local-symlink.
19803         (func_usage): Document it.
19804         (lsymbolic): New variable.
19805         (func_import, func_create_testdir): If --symlink was not specified,
19806         test whether --local-symlink was specified and the file comes from
19807         the local_gnulib_dir.
19808
19809 2006-11-12  Bruno Haible  <bruno@clisp.org>
19810
19811         * gnulib-tool (func_ln): New function.
19812         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19813
19814 2006-11-12  Bruno Haible  <bruno@clisp.org>
19815
19816         Finish support for source files in subdirectories.
19817         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19818         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19819         AUTOMAKE_OPTIONS.
19820         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19821
19822 2006-11-12  Bruno Haible  <bruno@clisp.org>
19823
19824         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19825         EXTRA_lib_SOURCES augmentation.
19826         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19827
19828 2006-11-12  Jim Meyering  <jim@meyering.net>
19829
19830         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19831         file descriptors.  This also averts a failure on systems with
19832         native openat support when a traversed directory lacks "x" access.
19833         * lib/fts_.h: Include "i-ring.h"
19834         (struct FTS) [fts_fd_ring]: New member.
19835         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19836         (FCHDIR): Add parentheses.
19837         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19838         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19839         When descending, rather than simply closing the previous
19840         fts_cwd_fd value, push that file descriptor onto the ring.
19841         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19842         (fts_open): Initialize the new fd_ring member.
19843         (fts_close): Clear the ring.
19844         (fts_safe_changedir): When possible, use our new fd_ring to skip
19845         the diropen and fstat and dev/ino comparison that would normally
19846         accompany a virtual `chdir ("..")'.
19847
19848         * modules/fts (Depends-on): Add i-ring.
19849         * modules/i-ring: New module.
19850         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19851         * m4/i-ring.m4: New file.
19852
19853 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19854
19855         * gnulib-tool (func_create_testdir): Fix replacement of
19856         `build-aux' in configure.ac.  Run autotools in gltests
19857         subdirectory.
19858         (func_create_testdir, func_create_megatestdir, test): There is
19859         no need for '--force' in most autotool invocations in a new
19860         tree.  Actually fail the whole test if any of the tools, or the
19861         configure or make stages fail.
19862
19863         Sync from Automake.
19864         * build-aux/gnupload: Revert last change.  Add pointer to upload
19865         instructions of the GNU Maintenance Instructions.
19866         Suggestion by Karl Berry.
19867
19868 2006-11-10  Jim Meyering  <jim@meyering.net>
19869
19870         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19871
19872 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19873
19874         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19875         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19876         (bind_textdomain_codeset) [! ENABLE_NLS]:
19877         Evaluate all the arguments.  That way, callers get compatible behavior
19878         if the arguments have side effects.  Also, it avoids some GCC
19879         diagnostics in some cases; Joel E. Denny reported problems when Bison
19880         was configured with --enable-gcc-warnigs.
19881
19882 2006-11-10  Jim Meyering  <jim@meyering.net>
19883
19884         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19885         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19886         account.
19887
19888 2006-11-10  Jim Meyering  <jim@meyering.net>
19889
19890         * modules/inline: New file/module.
19891         * modules/xalloc (Files): Remove m4/inline.m4.
19892         (Depends-on): Add inline, instead.
19893         * modules/oset: Likewise.
19894         * modules/list: Likewise.
19895
19896 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19897
19898         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19899         Problem reported by Matthew Woehlke.
19900
19901 2006-11-09  Bruno Haible  <bruno@clisp.org>
19902
19903         * lib/tempname.c (gen_tempname): Remove variant that invokes
19904         __gen_tempname.
19905         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19906         __gen_tempname.
19907
19908 2006-11-08  Bruno Haible  <bruno@clisp.org>
19909
19910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19911         to 'yes' instead of 'cross-compiling'.
19912
19913 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19914
19915         * lib/quotearg.h (quotearg_free): New decl.
19916         * lib/quotearg.c (quotearg_free): New function.
19917         (slot0, nslots, slotvec0, slotvec):
19918         Now file-scope so that quotearg_free can get at them.
19919
19920 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19921
19922         Sync from Automake.
19923         * build-aux/gnupload: Add missing 'gnu' to example URL.
19924         Report by Karl Berry.
19925
19926 2006-11-08  Bruno Haible  <bruno@clisp.org>
19927
19928         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19929         Suggested by Paul Eggert.
19930
19931 2006-11-08  Jim Meyering  <jim@meyering.net>
19932
19933         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19934         It's already included if !_LIBC.
19935         (fts_safe_changedir): Add a comment.
19936
19937 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19940         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19941         Matthew Woehlke.
19942
19943         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19944         definitions up, to avoid colliding with change below.
19945         (static_inline) [HAVE_INLINE]: New macro.
19946         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19947         Provide extern decls when !HAVE_INLINE.  Do not define unless
19948         static_inline is defined, either by us or by xmalloc.c.  Use
19949         static_inline rather than static inline.
19950         (XCALLOC): Optimize sizeof(T) = 1 case.
19951         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19952
19953 2006-11-07  Bruno Haible  <bruno@clisp.org>
19954
19955         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19957         AC_C_INLINE.
19958         * modules/xalloc (Files): Add m4/inline.m4.
19959
19960 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19961
19962         * README: Fix typo.
19963         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19964         (Miscellanous Notes): ...from this.
19965
19966 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19967
19968         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19969         Mention that offsetof should be used instead of sizeof.
19970         From Bruno Haible.
19971
19972 2006-11-07  Bruno Haible  <bruno@clisp.org>
19973
19974         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19975
19976 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19977
19978         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19979         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19980         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19981         (gl_tree_add_before, gl_tree_add_after):
19982         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19983         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19984         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19985         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19986         (gl_linked_add_after, gl_linked_add_at): Likewise.
19987         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19988         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19989         (gl_tree_add_before, gl_tree_add_after): Likewise.
19990         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19991         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19992         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19993
19994 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19995
19996         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19997
19998 2006-11-06  Bruno Haible  <bruno@clisp.org>
19999
20000         * m4/inline.m4: New file.
20001         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20002         * modules/list (Files): Add m4/inline.m4.
20003         * modules/oset (Files): Likewise.
20004
20005 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20006
20007         * lib/idcache.c: Include <stddef.h>, for offsetof.
20008         (struct userid.name): Change from char * to a flexible array member.
20009         All uses changed.
20010         * modules/idcache (Depends-on): Add flexmember.
20011
20012         * MODULES.html.sh (Core language properties): New module flexmember.
20013         * modules/flexmember, m4/flexmember.m4: New files.
20014
20015         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20016         inline functions that are identical with the old xnmalloc_inline,
20017         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20018         that we can avoid some unnecessary integer multiplications and
20019         divisions in the common case where the element size is known at
20020         compile time.
20021         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20022         needed.
20023         (xnboundedmalloc): Remove.
20024         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20025         arguments, for consistency with rest of this header.
20026         (xcharalloc): Rewrite using XNMALLOC.
20027         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20028         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20029         versions have been moved to lib/xalloc.h and renamed to be the
20030         non-*_inline versions.
20031         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20032         and xnrealloc functions, since those functions are now inline and
20033         now call us.
20034         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20035         renaming described above.
20036         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20037         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20038         captures the dependency in AC_C_INLINE.
20039
20040         New module canonicalize-lgpl, proposed by Charles Wilson in
20041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20042         with a few small changes afterwards.
20043         * MODULES.html.sh (File system functions): New module
20044         canonicalize-lgpl.
20045         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20046         and canonicalize_file_name.
20047         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20048         * modules/canonicalize-lgpl: New files.
20049
20050 2006-11-05  Bruno Haible  <bruno@clisp.org>
20051
20052         * gnulib-tool (func_import, func_create_testdir): Create directories
20053         also for files in subdirectories of lib/.
20054
20055 2006-11-05  Bruno Haible  <bruno@clisp.org>
20056
20057         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20058         ANSI C compliant.
20059
20060 2006-11-03  Bruno Haible  <bruno@clisp.org>
20061
20062         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20063         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20064         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20065         (xnboundedmalloc): New inline function.
20066         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20067         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20068         xmalloc.
20069         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20070         xmalloc.
20071         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20072         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20073         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20074         xmalloc.
20075         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20076         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20077         xmalloc.
20078         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20079         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20080         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20081         xmalloc.
20082         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20083         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20085         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20086         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20087         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20088         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20089
20090 2006-11-03  Bruno Haible  <bruno@clisp.org>
20091
20092         * lib/c-ctype.h [C++]: Define functions without name mangling.
20093         * lib/fwriteerror.h [C++]: Likewise.
20094         * lib/gcd.h [C++]: Likewise.
20095         * lib/linebreak.h [C++]: Likewise.
20096
20097 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20098
20099         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20100         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20101         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20102         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20103         Check for functions and headers just once.
20104         Check for declaration of canonicalize_file_name.
20105         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20106
20107 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20108
20109         * gnulib-tool (func_import): Fix typo in actioncmd.
20110
20111 2006-11-02  Bruno Haible  <bruno@clisp.org>
20112
20113         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20114         newline sequence in the Makefile.am snippet as a space, like "make"
20115         does.
20116         Reported by Roger Persson <perrog@gmail.com>.
20117
20118 2006-11-01  Bruno Haible  <bruno@clisp.org>
20119
20120         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20121         already declared in <string.h>.
20122         * lib/strcase.h (strncasecmp): Don't declare it if yes.
20123
20124 2006-11-01  Bruno Haible  <bruno@clisp.org>
20125
20126         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20127         * lib/strcase.h: Include <string.h>.
20128         (strcasecmp): Define to rpl_strcasecmp here.
20129
20130 2006-11-01  Bruno Haible  <bruno@clisp.org>
20131
20132         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20133
20134 2006-11-01  Eric Blake  <ebb9@byu.net>
20135
20136         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20137
20138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20139
20140 2006-10-29  Bruno Haible  <bruno@clisp.org>
20141
20142         Make it compile in C++ mode.
20143         * lib/full-write.c (full_rw): Add a cast.
20144
20145 2006-11-01  Bruno Haible  <bruno@clisp.org>
20146
20147         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20148         be POSIX compliant.
20149         Reported by Roger Persson <perrog@gmail.com>.
20150
20151 2006-11-01  Eric Blake  <ebb9@byu.net>
20152
20153         * lib/getopt_.h: Fix comments.
20154
20155 2006-10-31  Eric Blake  <ebb9@byu.net>
20156
20157         * modules/tmpdir (Depends-on): Add sys_stat.
20158         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20159         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20160         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20161         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20162         tempname.
20163
20164 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20165
20166         Avoid some C++ diagnostics reported by Bruno Haible.
20167         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20168         xmalloc.
20169         (quotearg_alloc): Use xcharalloc rather than xmalloc.
20170         (struct slotvec): Move to top level.
20171         (quotearg_n_options): Rewrite to avoid xmalloc.
20172         * lib/xalloc.h (xcharalloc): New function.
20173         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20174         [defined __cplusplus]: Add function template that provides result
20175         type propagation.  This part of the change is from Bruno Haible.
20176
20177 2006-10-29  Bruno Haible  <bruno@clisp.org>
20178
20179         Make it compile in C++ mode.
20180         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20181         * lib/strnlen1.c (strnlen1): Cast memchr result.
20182         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20183         * lib/clean-temp.c (string_equals, string_hash): Add casts.
20184         (create_temp_dir): Rename local variable 'template'.
20185         (compile_csharp_using_sscli): Add cast.
20186         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20187         * lib/findprog.c (find_in_path): Likewise.
20188         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20189         * lib/wait-process.c (register_slave_subprocess): Likewise.
20190
20191 2006-10-22  Bruno Haible  <bruno@clisp.org>
20192
20193         * modules/tsearch: New file.
20194         * lib/tsearch.h: New file.
20195         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20196         * m4/tsearch.m4: New file.
20197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20198
20199 2006-10-29  Eric Blake  <ebb9@byu.net>
20200
20201         * lib/arcfour.c: Assume config.h.
20202         * lib/arctwo.c: Likewise.
20203         * lib/base64.c: Likewise.
20204         * lib/check-version.c: Likewise.
20205         * lib/crc.c: Likewise.
20206         * lib/des.c: Likewise.
20207         * lib/gc-gnulib.c: Likewise.
20208         * lib/gc-libgcrypt.c: Likewise.
20209         * lib/gc-pbkdf2-sha1.c: Likewise.
20210         * lib/getaddrinfo.c: Likewise.
20211         * lib/getdelim.c: Likewise.
20212         * lib/getline.c: Likewise.
20213         * lib/hmac-md5.c: Likewise.
20214         * lib/hmac-sha1.c: Likewise.
20215         * lib/iconvme.c: Likewise.
20216         * lib/md2.c: Likewise.
20217         * lib/md4.c: Likewise.
20218         * lib/memxor.c: Likewise.
20219         * lib/read-file.c: Likewise.
20220         * lib/readline.c: Likewise.
20221         * lib/rijndael-alg-fst.c: Likewise.
20222         * lib/rijndael-api-fst.c: Likewise.
20223         * lib/xgetdomainname.c: Likewise.
20224
20225 2006-10-28  Eric Blake  <ebb9@byu.net>
20226
20227         * lib/xstrndup.c: Assume config.h.
20228
20229 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20230
20231         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20232         stat-macros.h is now for our own macros, whereas stat_h is for
20233         macros in the <sys/stat.h> name space.
20234         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20235         (STAT_MACROS_H): Remove.
20236         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20237         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20238         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20239         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20240         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20241         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20242         Move these macros to ...
20243         * lib/stat_.h: here.  Don't include stat-macros.h.
20244         * lib/canonicalize.c: Don't include stat-macros.h.
20245         * lib/chown.c: Likewise.
20246         * lib/euidaccess.c: Likewise.
20247         * lib/file-type.c: Likewise.
20248         * lib/filemode.c: Likewise.
20249         * lib/glob.c: Likewise.
20250         * lib/isapipe.c: Likewise.
20251         * lib/lchown.c: Likewise.
20252         * lib/lstat.c: Likewise.
20253         * lib/mkdir-p.c: Likewise.
20254         * lib/rmdir.c: Likewise.
20255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20257         unless mkdir isn't declared, to speed up 'configure'.
20258         Always create sys/stat.h, since it's unlikely any real sys/stat.h
20259         would define all the S_* symbols.
20260         * modules/canonicalize (Depends-on):
20261         Depend on sys_stat, not stat-macros.
20262         * modules/chown: Likewise.
20263         * modules/euidaccess: Likewise.
20264         * modules/filemode: Likewise.
20265         * modules/file-type: Likewise.
20266         * modules/glob: Likewise.
20267         * modules/isapipe: Likewise.
20268         * modules/lchown: Likewise.
20269         * modules/lstat: Likewise.
20270         * modules/mkancesdirs: Likewise.
20271         * modules/rmdir: Likewise.
20272         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20273         * modules/modechange: Likewise.
20274         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20275         (configure.ac): Remove gl_STAT_MACROS.
20276         * modules/sys_stat (Depends-on): Remove stat-macros.
20277
20278 2006-10-27  Bruno Haible  <bruno@clisp.org>
20279
20280         * m4/signed.m4: Remove file.
20281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20282         invocation.
20283         * modules/vasnprintf (Files): Remove m4/signed.m4.
20284
20285 2006-10-27  Bruno Haible  <bruno@clisp.org>
20286
20287         Update to GNU gettext 0.16.
20288         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20289         m4/inttypes-h.m4, m4/signed.m4.
20290         * m4/gettext.m4: Update to GNU gettext 0.16.
20291         * m4/intl.m4: New file, from GNU gettext.
20292         * m4/intldir.m4: New file, from GNU gettext.
20293         * config/srclist.txt: Update
20294
20295 2006-10-27  Eric Blake  <ebb9@byu.net>
20296
20297         * MODULES.html.sh: Document tempname.
20298         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20299         dependencies.
20300         (Files): Move lib/tempname.c...
20301         * modules/tempname: ...to this new module.
20302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20303         (gl_PREREQ_TEMPNAME): Move...
20304         * m4/tempname.m4: ...to this new file.
20305         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20306         * modules/sys_stat (Depends-on): Add stat-macros.
20307         * lib/stat_.h (includes): Pick up stat macros.
20308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20309         if stat macros are broken.
20310         * lib/tempname.c (includes): No need to include "stat-macros.h".
20311         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20312         (direxists, __path_search) [!_LIBC]: Don't compile these in
20313         gnulib; the tmpdir module covers that.
20314         * lib/tempname.h: New file.
20315
20316 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         * COPYING: Explain how gnulib-tool converts licence headers.
20319         Almost all wording by Eric Blake.
20320
20321 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         * lib/mbchar.h (is_basic_table): Make read-only.
20324         * lib/mbchar.c (is_basic_table): Likewise.
20325         Reported by John Darrington.
20326
20327 2006-10-25  Bruno Haible  <bruno@clisp.org>
20328
20329         * lib/progname.h (set_program_name): Undefine before defining.
20330
20331 2006-10-25  Bruno Haible  <bruno@clisp.org>
20332
20333         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
20334         false for non-gcc C++ compilers.
20335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20336
20337 2006-10-24  Bruno Haible  <bruno@clisp.org>
20338
20339         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
20340         iconv implementations like Irix iconv.
20341
20342 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20343
20344         * modules/vararrays: New file.
20345         * m4/vararrays.m4: New file, taken from diffutils.
20346         * MODULES.html.sh: New module vararrays.
20347
20348 2006-10-24  Karl Berry  <karl@gnu.org>
20349
20350         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
20351         Don't call GNU Unix.
20352
20353 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20354
20355         * users.txt: Add Libtool.
20356
20357         Sync from Libtool:
20358
20359         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20360
20361         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
20362         to gnulib's policy of including config.h unconditionally.
20363
20364 2006-10-24  Bruno Haible  <bruno@clisp.org>
20365
20366         * modules/wcwidth (Files): Add m4/wint_t.m4.
20367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20368         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20369
20370 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20371
20372         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20373         to pacify GCC with some -W flags enabled.  Problem reported by
20374         Bruno Haible.
20375
20376 2006-10-24  Jim Meyering  <jim@meyering.net>
20377
20378         * MODULES.html.sh: Remove uinttostr.  It's not a module.
20379         Reported by Karl Berry.
20380
20381 2006-10-23  Bruno Haible  <bruno@clisp.org>
20382
20383         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20384
20385 2006-10-24  Bruno Haible  <bruno@clisp.org>
20386
20387         * lib/gl_list.h: Use C comment style, not C++ comment style.
20388
20389 2006-10-23  Eric Blake  <ebb9@byu.net>
20390
20391         * lib/getaddrinfo.c (includes): Add missing include.
20392
20393 2006-10-23  Bruno Haible  <bruno@clisp.org>
20394             Paul Eggert  <eggert@cs.ucla.edu>
20395
20396         Ability to rename obstack_free.
20397         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20398         obstack_free.
20399         (obstack_free): Invoke the __obstack_free macro.
20400         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20401
20402 2006-10-23  Bruno Haible  <bruno@clisp.org>
20403             Paul Eggert  <eggert@cs.ucla.edu>
20404
20405         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20406         __argc, __argv from the declaration. (They are defined as macros on
20407         mingw.)
20408
20409 2006-10-22  Bruno Haible  <bruno@clisp.org>
20410
20411         * doc/gnulib-intro.texi: New file.
20412         * doc/gnulib.texi: Include it.
20413
20414 2006-10-21  Bruno Haible  <bruno@clisp.org>
20415
20416         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20417         "Introduction", "Miscellanous Notes", "Particular Modules".
20418
20419 2006-10-21  Bruno Haible  <bruno@clisp.org>
20420
20421         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20422         Change mostlyclean-local rule to avoid sh syntax error from bash
20423         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
20424
20425 2006-10-23  Jim Meyering  <jim@meyering.net>
20426
20427         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
20428         in place of snprintf.
20429
20430         * modules/inttostr (Files): Add lib/uinttostr.c.
20431         * lib/uinttostr.c (inttostr): New file/function.
20432         * lib/inttostr.h (uinttostr): Declare.
20433         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
20434         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20435         Add uinttostr.
20436         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
20437
20438 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20439
20440         * lib/canonicalize.c (ELOOP): Define if not already defined.
20441         Problem reported by Bruno Haible in
20442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20443
20444 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20445
20446         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20447         Problem reported by Perry Smith and Ville Laurikari.
20448
20449         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20450         uses.
20451
20452 2006-10-19  Bruno Haible  <bruno@clisp.org>
20453
20454         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20455         for mingw.
20456
20457 2006-10-19  Bruno Haible  <bruno@clisp.org>
20458
20459         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20460         Needed for mingw.
20461
20462 2006-10-19  Bruno Haible  <bruno@clisp.org>
20463
20464         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20465
20466 2006-10-19  Bruno Haible  <bruno@clisp.org>
20467
20468         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20469         it.
20470
20471 2006-10-19  Bruno Haible  <bruno@clisp.org>
20472
20473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20474         invocation.
20475
20476 2006-10-19  Bruno Haible  <bruno@clisp.org>
20477
20478         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20479         mountlist by default.
20480
20481 2006-10-16  Bruno Haible  <bruno@clisp.org>
20482
20483         * lib/c-strstr.c: Include c-strstr.h.
20484
20485 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20486
20487         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20488         in a slash.
20489
20490 2006-10-18  Bruno Haible  <bruno@clisp.org>
20491
20492         * lib/lock.h [C++]: Wrap definitions in extern "C".
20493
20494 2006-10-18  Bruno Haible  <bruno@clisp.org>
20495
20496         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20497         gl_LIBOBJS list.
20498
20499 2006-10-18  Bruno Haible  <bruno@clisp.org>
20500
20501         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20502
20503 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20504
20505         * lib/xstrtol.h: Include gettext.h.
20506         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20507         Problem reported by Eric Blake.
20508         * modules/xstrtol (Depends-on): Add gettext-h.
20509
20510 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20511
20512         * lib/strftime.c (advance): New macro.
20513         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20514         incomplete type, so you can't add 0 to it.  Problem and patch
20515         reported by Eelco Dolstra for dietlibc.
20516
20517 2006-10-18  Jim Meyering  <jim@meyering.net>
20518
20519         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20520         type for a local, and rename it: s/up/user_proc/.
20521
20522 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20523
20524         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20525         READ_UTMP_USER_PROCESS.
20526         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20527
20528 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20529
20530         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20531         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20532
20533 2006-10-17  Eric Blake  <ebb9@byu.net>
20534
20535         * lib/sigprocmask.c (sigprocmask): Fix typo.
20536
20537         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20538
20539         * modules/clean-temp (Makefile.am): Don't add to make output...
20540         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20541         config.h.
20542
20543 2006-10-17  Bruno Haible  <bruno@clisp.org>
20544
20545         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20546         differently if DEFAULT_TEXT_DOMAIN is set.
20547
20548 2006-10-16  Bruno Haible  <bruno@clisp.org>
20549
20550         * lib/clean-temp.c: Include fwriteerror.h.
20551
20552 2006-10-16  Bruno Haible  <bruno@clisp.org>
20553
20554         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20555
20556 2006-10-16  Bruno Haible  <bruno@clisp.org>
20557
20558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20559         * lib/sigprocmask.h: Include <sys/types.h>.
20560         (sigset_t): Use the system's definition if present.
20561
20562 2006-10-17  Eric Blake  <ebb9@byu.net>
20563
20564         * lib/xvasprintf.c (includes): Assume config.h.
20565         * lib/xasprintf.c (includes): Likewise.
20566
20567 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20568
20569         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20570         at least as wide as intmax_t.
20571
20572 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20573
20574         (Imported from Automake.)
20575         * build-aux/gnupload: Update to version 1.1 of directive file.
20576
20577 2006-10-16  Eric Blake  <ebb9@byu.net>
20578
20579         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20580         match Automake 1.10a.
20581
20582 2006-10-14  Bruno Haible  <bruno@clisp.org>
20583
20584         * modules/sigprocmask: New file.
20585         * lib/sigprocmask.h: New file.
20586         * lib/sigprocmask.c: New file.
20587         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20588         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20589         request sigprocmask.o.
20590         (gl_PREREQ_SIGPROCMASK): New macro.
20591         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20592         (Depends-on): Add sigprocmask.
20593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20594         gt_SIGNALBLOCKING. Test for 'raise' only once.
20595         * lib/fatal-signal.c: Include sigprocmask.h.
20596         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20597         unblock_fatal_signals): Define always.
20598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20599         sigprocmask.
20600
20601 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         Sync from Automake.
20604         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20605         which incorrectly sets the mode of an existing destination
20606         directory.  In some cases the unpatched install-sh could do the
20607         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20608         system.  We hope this is rare in practice, but it's clearly worth
20609         fixing.  Problem reported by Alex Unleashed in
20610         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20611         Also, don't bother to check for -m bugs unless we're using -m;
20612         suggested by Stepan Kasal.
20613
20614 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20615
20616         Sync from Automake.
20617         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20618         `-c' flag, so they appear at the same position as in %FASTDEP%
20619         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20620         which ignores unknown options only after the first non-option.
20621         Bug report against M4 by Nelson H. F. Beebe.
20622
20623 2006-10-13  Jim Meyering  <jim@meyering.net>
20624
20625         Fix a bug in yesterday's change.
20626         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20627         p->fts_statp->st_dev would be used uninitialized.
20628         Ensures that we always call fts_stat on the very first entry.
20629         Miklos Szeredi reported that find -xdev stopped working.
20630
20631 2006-10-12  Bruno Haible  <bruno@clisp.org>
20632
20633         * gnulib-tool (func_get_automake_snippet): Append an automatically
20634         computed EXTRA_DIST augmentation.
20635         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20636         * modules/alloca-opt (Makefile.am): Likewise.
20637         * modules/allocsa (Makefile.am): Likewise.
20638         * modules/arcfour (Makefile.am): Likewise.
20639         * modules/arctwo (Makefile.am): Likewise.
20640         * modules/argmatch (Makefile.am): Likewise.
20641         * modules/argz (Makefile.am): Likewise.
20642         * modules/atexit (Makefile.am): Likewise.
20643         * modules/backupfile (Makefile.am): Likewise.
20644         * modules/byteswap (Makefile.am): Likewise.
20645         * modules/c-strtod (Makefile.am): Likewise.
20646         * modules/c-strtold (Makefile.am): Likewise.
20647         * modules/calloc (Makefile.am): Likewise.
20648         * modules/canon-host (Makefile.am): Likewise.
20649         * modules/canonicalize (Makefile.am): Likewise.
20650         * modules/chdir-long (Makefile.am): Likewise.
20651         * modules/chdir-safer (Makefile.am): Likewise.
20652         * modules/check-version (Makefile.am): Likewise.
20653         * modules/chown (Makefile.am): Likewise.
20654         * modules/cloexec (Makefile.am): Likewise.
20655         * modules/close-stream (Makefile.am): Likewise.
20656         * modules/closeout (Makefile.am): Likewise.
20657         * modules/crc (Makefile.am): Likewise.
20658         * modules/csharpexec (Makefile.am): Likewise.
20659         * modules/cycle-check (Makefile.am): Likewise.
20660         * modules/des (Makefile.am): Likewise.
20661         * modules/dev-ino (Makefile.am): Likewise.
20662         * modules/dirfd (Makefile.am): Likewise.
20663         * modules/dirname (Makefile.am): Likewise.
20664         * modules/dup2 (Makefile.am): Likewise.
20665         * modules/eealloc (Makefile.am): Likewise.
20666         * modules/error (Makefile.am): Likewise.
20667         * modules/euidaccess (Makefile.am): Likewise.
20668         * modules/exclude (Makefile.am): Likewise.
20669         * modules/exitfail (Makefile.am): Likewise.
20670         * modules/fcntl-safer (Makefile.am): Likewise.
20671         * modules/fcntl (Makefile.am): Likewise.
20672         * modules/file-type (Makefile.am): Likewise.
20673         * modules/fileblocks (Makefile.am): Likewise.
20674         * modules/filemode (Makefile.am): Likewise.
20675         * modules/filenamecat (Makefile.am): Likewise.
20676         * modules/fnmatch (Makefile.am): Likewise.
20677         * modules/fopen-safer (Makefile.am): Likewise.
20678         * modules/fpending (Makefile.am): Likewise.
20679         * modules/fprintftime (Makefile.am): Likewise.
20680         * modules/free (Makefile.am): Likewise.
20681         * modules/fsusage (Makefile.am): Likewise.
20682         * modules/ftruncate (Makefile.am): Likewise.
20683         * modules/fts (Makefile.am): Likewise.
20684         * modules/gc-arcfour (Makefile.am): Likewise.
20685         * modules/gc-des (Makefile.am): Likewise.
20686         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20687         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20688         * modules/gc-md4 (Makefile.am): Likewise.
20689         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20690         * modules/gc-sha1 (Makefile.am): Likewise.
20691         * modules/gc (Makefile.am): Likewise.
20692         * modules/getaddrinfo (Makefile.am): Likewise.
20693         * modules/getcwd (Makefile.am): Likewise.
20694         * modules/getdelim (Makefile.am): Likewise.
20695         * modules/getdomainname (Makefile.am): Likewise.
20696         * modules/getgroups (Makefile.am): Likewise.
20697         * modules/gethostname (Makefile.am): Likewise.
20698         * modules/gethrxtime (Makefile.am): Likewise.
20699         * modules/getline (Makefile.am): Likewise.
20700         * modules/getloadavg (Makefile.am): Likewise.
20701         * modules/getlogin_r (Makefile.am): Likewise.
20702         * modules/getndelim2 (Makefile.am): Likewise.
20703         * modules/getopt (Makefile.am): Likewise.
20704         * modules/getpagesize (Makefile.am): Likewise.
20705         * modules/getpass-gnu (Makefile.am): Likewise.
20706         * modules/getpass (Makefile.am): Likewise.
20707         * modules/getsubopt (Makefile.am): Likewise.
20708         * modules/gettime (Makefile.am): Likewise.
20709         * modules/gettimeofday (Makefile.am): Likewise.
20710         * modules/getugroups (Makefile.am): Likewise.
20711         * modules/getusershell (Makefile.am): Likewise.
20712         * modules/glob (Makefile.am): Likewise.
20713         * modules/group-member (Makefile.am): Likewise.
20714         * modules/hard-locale (Makefile.am): Likewise.
20715         * modules/hash (Makefile.am): Likewise.
20716         * modules/hmac-md5 (Makefile.am): Likewise.
20717         * modules/hmac-sha1 (Makefile.am): Likewise.
20718         * modules/human (Makefile.am): Likewise.
20719         * modules/idcache (Makefile.am): Likewise.
20720         * modules/imaxabs (Makefile.am): Likewise.
20721         * modules/imaxdiv (Makefile.am): Likewise.
20722         * modules/inet_ntop (Makefile.am): Likewise.
20723         * modules/inet_pton (Makefile.am): Likewise.
20724         * modules/intprops (Makefile.am): Likewise.
20725         * modules/inttostr (Makefile.am): Likewise.
20726         * modules/inttypes (Makefile.am): Likewise.
20727         * modules/isapipe (Makefile.am): Likewise.
20728         * modules/javaversion (Makefile.am): Likewise.
20729         * modules/lchmod (Makefile.am): Likewise.
20730         * modules/lchown (Makefile.am): Likewise.
20731         * modules/localcharset (Makefile.am): Likewise.
20732         * modules/long-options (Makefile.am): Likewise.
20733         * modules/lstat (Makefile.am): Likewise.
20734         * modules/malloc (Makefile.am): Likewise.
20735         * modules/mathl (Makefile.am): Likewise.
20736         * modules/mbchar (Makefile.am): Likewise.
20737         * modules/md2 (Makefile.am): Likewise.
20738         * modules/md4 (Makefile.am): Likewise.
20739         * modules/md5 (Makefile.am): Likewise.
20740         * modules/memcasecmp (Makefile.am): Likewise.
20741         * modules/memchr (Makefile.am): Likewise.
20742         * modules/memcmp (Makefile.am): Likewise.
20743         * modules/memcoll (Makefile.am): Likewise.
20744         * modules/memcpy (Makefile.am): Likewise.
20745         * modules/memmem (Makefile.am): Likewise.
20746         * modules/memmove (Makefile.am): Likewise.
20747         * modules/mempcpy (Makefile.am): Likewise.
20748         * modules/memrchr (Makefile.am): Likewise.
20749         * modules/memset (Makefile.am): Likewise.
20750         * modules/memxor (Makefile.am): Likewise.
20751         * modules/mkancesdirs (Makefile.am): Likewise.
20752         * modules/mkdir-p (Makefile.am): Likewise.
20753         * modules/mkdir (Makefile.am): Likewise.
20754         * modules/mkdtemp (Makefile.am): Likewise.
20755         * modules/mkstemp (Makefile.am): Likewise.
20756         * modules/mktime (Makefile.am): Likewise.
20757         * modules/modechange (Makefile.am): Likewise.
20758         * modules/mountlist (Makefile.am): Likewise.
20759         * modules/nanosleep (Makefile.am): Likewise.
20760         * modules/obstack (Makefile.am): Likewise.
20761         * modules/openat (Makefile.am): Likewise.
20762         * modules/pagealign_alloc (Makefile.am): Likewise.
20763         * modules/pathmax (Makefile.am): Likewise.
20764         * modules/physmem (Makefile.am): Likewise.
20765         * modules/poll (Makefile.am): Likewise.
20766         * modules/posixtm (Makefile.am): Likewise.
20767         * modules/posixver (Makefile.am): Likewise.
20768         * modules/putenv (Makefile.am): Likewise.
20769         * modules/quote (Makefile.am): Likewise.
20770         * modules/quotearg (Makefile.am): Likewise.
20771         * modules/raise (Makefile.am): Likewise.
20772         * modules/read-file (Makefile.am): Likewise.
20773         * modules/readline (Makefile.am): Likewise.
20774         * modules/readlink (Makefile.am): Likewise.
20775         * modules/readtokens (Makefile.am): Likewise.
20776         * modules/readutmp (Makefile.am): Likewise.
20777         * modules/realloc (Makefile.am): Likewise.
20778         * modules/regex (Makefile.am): Likewise.
20779         * modules/rename-dest-slash (Makefile.am): Likewise.
20780         * modules/rename (Makefile.am): Likewise.
20781         * modules/rijndael (Makefile.am): Likewise.
20782         * modules/rmdir (Makefile.am): Likewise.
20783         * modules/rpmatch (Makefile.am): Likewise.
20784         * modules/safe-read (Makefile.am): Likewise.
20785         * modules/safe-write (Makefile.am): Likewise.
20786         * modules/same-inode (Makefile.am): Likewise.
20787         * modules/same (Makefile.am): Likewise.
20788         * modules/save-cwd (Makefile.am): Likewise.
20789         * modules/savedir (Makefile.am): Likewise.
20790         * modules/setenv (Makefile.am): Likewise.
20791         * modules/settime (Makefile.am): Likewise.
20792         * modules/sha1 (Makefile.am): Likewise.
20793         * modules/sig2str (Makefile.am): Likewise.
20794         * modules/snprintf (Makefile.am): Likewise.
20795         * modules/stat-macros (Makefile.am): Likewise.
20796         * modules/stat-time (Makefile.am): Likewise.
20797         * modules/stdbool (Makefile.am): Likewise.
20798         * modules/stdint (Makefile.am): Likewise.
20799         * modules/stdlib-safer (Makefile.am): Likewise.
20800         * modules/stpcpy (Makefile.am): Likewise.
20801         * modules/stpncpy (Makefile.am): Likewise.
20802         * modules/strcase (Makefile.am): Likewise.
20803         * modules/strcasestr (Makefile.am): Likewise.
20804         * modules/strchrnul (Makefile.am): Likewise.
20805         * modules/strcspn (Makefile.am): Likewise.
20806         * modules/strdup (Makefile.am): Likewise.
20807         * modules/strerror (Makefile.am): Likewise.
20808         * modules/strftime (Makefile.am): Likewise.
20809         * modules/strndup (Makefile.am): Likewise.
20810         * modules/strnlen (Makefile.am): Likewise.
20811         * modules/strpbrk (Makefile.am): Likewise.
20812         * modules/strsep (Makefile.am): Likewise.
20813         * modules/strstr (Makefile.am): Likewise.
20814         * modules/strtod (Makefile.am): Likewise.
20815         * modules/strtoimax (Makefile.am): Likewise.
20816         * modules/strtok_r (Makefile.am): Likewise.
20817         * modules/strtol (Makefile.am): Likewise.
20818         * modules/strtoll (Makefile.am): Likewise.
20819         * modules/strtoul (Makefile.am): Likewise.
20820         * modules/strtoull (Makefile.am): Likewise.
20821         * modules/strtoumax (Makefile.am): Likewise.
20822         * modules/strverscmp (Makefile.am): Likewise.
20823         * modules/sys_socket (Makefile.am): Likewise.
20824         * modules/sys_stat (Makefile.am): Likewise.
20825         * modules/sysexits (Makefile.am): Likewise.
20826         * modules/time_r (Makefile.am): Likewise.
20827         * modules/timegm (Makefile.am): Likewise.
20828         * modules/timespec (Makefile.am): Likewise.
20829         * modules/tmpfile-safer (Makefile.am): Likewise.
20830         * modules/trim (Makefile.am): Likewise.
20831         * modules/unistd-safer (Makefile.am): Likewise.
20832         * modules/unlinkdir (Makefile.am): Likewise.
20833         * modules/unlocked-io (Makefile.am): Likewise.
20834         * modules/userspec (Makefile.am): Likewise.
20835         * modules/utime (Makefile.am): Likewise.
20836         * modules/utimecmp (Makefile.am): Likewise.
20837         * modules/utimens (Makefile.am): Likewise.
20838         * modules/vasnprintf (Makefile.am): Likewise.
20839         * modules/vasprintf (Makefile.am): Likewise.
20840         * modules/vsnprintf (Makefile.am): Likewise.
20841         * modules/xalloc (Makefile.am): Likewise.
20842         * modules/xgetcwd (Makefile.am): Likewise.
20843         * modules/xnanosleep (Makefile.am): Likewise.
20844         * modules/xreadlink (Makefile.am): Likewise.
20845         * modules/xstrtod (Makefile.am): Likewise.
20846         * modules/xstrtol (Makefile.am): Likewise.
20847         * modules/xstrtold (Makefile.am): Likewise.
20848         * modules/yesno (Makefile.am): Likewise.
20849         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20850
20851 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20852
20853         * modules/error (Makefile.am): Distribute files through
20854         EXTRA_DIST, not lib_SOURCES.
20855
20856 2006-10-12  Eric Blake  <ebb9@byu.net>
20857
20858         * modules/error (Makefile.am): Distribute files in /lib.
20859         * modules/obstack (Makefile.am): Likewise.
20860
20861 2006-10-12  Bruno Haible  <bruno@clisp.org>
20862
20863         * modules/acl (Makefile.am): Distribute all files in lib/ through
20864         EXTRA_DIST.
20865         * modules/arcfour (Makefile.am): Likewise.
20866         * modules/arctwo (Makefile.am): Likewise.
20867         * modules/argmatch (Makefile.am): Likewise.
20868         * modules/argz (Makefile.am): Likewise.
20869         * modules/atexit (Makefile.am): Likewise.
20870         * modules/backupfile (Makefile.am): Likewise.
20871         * modules/c-strtod (Makefile.am): Likewise.
20872         * modules/c-strtold (Makefile.am): Likewise.
20873         * modules/calloc (Makefile.am): Likewise.
20874         * modules/canon-host (Makefile.am): Likewise.
20875         * modules/canonicalize (Makefile.am): Likewise.
20876         * modules/chdir-long (Makefile.am): Likewise.
20877         * modules/chdir-safer (Makefile.am): Likewise.
20878         * modules/check-version (Makefile.am): Likewise.
20879         * modules/chown (Makefile.am): Likewise.
20880         * modules/cloexec (Makefile.am): Likewise.
20881         * modules/close-stream (Makefile.am): Likewise.
20882         * modules/closeout (Makefile.am): Likewise.
20883         * modules/crc (Makefile.am): Likewise.
20884         * modules/cycle-check (Makefile.am): Likewise.
20885         * modules/des (Makefile.am): Likewise.
20886         * modules/dirfd (Makefile.am): Likewise.
20887         * modules/dirname (Makefile.am): Likewise.
20888         * modules/dup2 (Makefile.am): Likewise.
20889         * modules/euidaccess (Makefile.am): Likewise.
20890         * modules/exclude (Makefile.am): Likewise.
20891         * modules/exitfail (Makefile.am): Likewise.
20892         * modules/fcntl-safer (Makefile.am): Likewise.
20893         * modules/file-type (Makefile.am): Likewise.
20894         * modules/fileblocks (Makefile.am): Likewise.
20895         * modules/filemode (Makefile.am): Likewise.
20896         * modules/filenamecat (Makefile.am): Likewise.
20897         * modules/fnmatch (Makefile.am): Likewise.
20898         * modules/fopen-safer (Makefile.am): Likewise.
20899         * modules/fpending (Makefile.am): Likewise.
20900         * modules/fprintftime (Makefile.am): Likewise.
20901         * modules/free (Makefile.am): Likewise.
20902         * modules/fsusage (Makefile.am): Likewise.
20903         * modules/ftruncate (Makefile.am): Likewise.
20904         * modules/fts (Makefile.am): Likewise.
20905         * modules/gc (Makefile.am): Likewise.
20906         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20907         * modules/getaddrinfo (Makefile.am): Likewise.
20908         * modules/getcwd (Makefile.am): Likewise.
20909         * modules/getdelim (Makefile.am): Likewise.
20910         * modules/getdomainname (Makefile.am): Likewise.
20911         * modules/getgroups (Makefile.am): Likewise.
20912         * modules/gethostname (Makefile.am): Likewise.
20913         * modules/gethrxtime (Makefile.am): Likewise.
20914         * modules/getline (Makefile.am): Likewise.
20915         * modules/getloadavg (Makefile.am): Likewise.
20916         * modules/getlogin_r (Makefile.am): Likewise.
20917         * modules/getopt (Makefile.am): Likewise.
20918         * modules/getpass (Makefile.am): Likewise.
20919         * modules/getpass-gnu (Makefile.am): Likewise.
20920         * modules/getsubopt (Makefile.am): Likewise.
20921         * modules/gettime (Makefile.am): Likewise.
20922         * modules/gettimeofday (Makefile.am): Likewise.
20923         * modules/getugroups (Makefile.am): Likewise.
20924         * modules/getusershell (Makefile.am): Likewise.
20925         * modules/glob (Makefile.am): Likewise.
20926         * modules/group-member (Makefile.am): Likewise.
20927         * modules/hard-locale (Makefile.am): Likewise.
20928         * modules/hash (Makefile.am): Likewise.
20929         * modules/hmac-md5 (Makefile.am): Likewise.
20930         * modules/hmac-sha1 (Makefile.am): Likewise.
20931         * modules/human (Makefile.am): Likewise.
20932         * modules/idcache (Makefile.am): Likewise.
20933         * modules/imaxabs (Makefile.am): Likewise.
20934         * modules/imaxdiv (Makefile.am): Likewise.
20935         * modules/inet_ntop (Makefile.am): Likewise.
20936         * modules/inet_pton (Makefile.am): Likewise.
20937         * modules/inttostr (Makefile.am): Likewise.
20938         * modules/isapipe (Makefile.am): Likewise.
20939         * modules/lchown (Makefile.am): Likewise.
20940         * modules/long-options (Makefile.am): Likewise.
20941         * modules/lstat (Makefile.am): Likewise.
20942         * modules/malloc (Makefile.am): Likewise.
20943         * modules/mathl (Makefile.am): Likewise.
20944         * modules/mbchar (Makefile.am): Likewise.
20945         * modules/md2 (Makefile.am): Likewise.
20946         * modules/md4 (Makefile.am): Likewise.
20947         * modules/md5 (Makefile.am): Likewise.
20948         * modules/memcasecmp (Makefile.am): Likewise.
20949         * modules/memchr (Makefile.am): Likewise.
20950         * modules/memcmp (Makefile.am): Likewise.
20951         * modules/memcoll (Makefile.am): Likewise.
20952         * modules/memcpy (Makefile.am): Likewise.
20953         * modules/memmem (Makefile.am): Likewise.
20954         * modules/memmove (Makefile.am): Likewise.
20955         * modules/mempcpy (Makefile.am): Likewise.
20956         * modules/memrchr (Makefile.am): Likewise.
20957         * modules/memset (Makefile.am): Likewise.
20958         * modules/memxor (Makefile.am): Likewise.
20959         * modules/mkancesdirs (Makefile.am): Likewise.
20960         * modules/mkdir (Makefile.am): Likewise.
20961         * modules/mkdir-p (Makefile.am): Likewise.
20962         * modules/mkdtemp (Makefile.am): Likewise.
20963         * modules/mkstemp (Makefile.am): Likewise.
20964         * modules/mktime (Makefile.am): Likewise.
20965         * modules/modechange (Makefile.am): Likewise.
20966         * modules/mountlist (Makefile.am): Likewise.
20967         * modules/nanosleep (Makefile.am): Likewise.
20968         * modules/openat (Makefile.am): Likewise.
20969         * modules/pagealign_alloc (Makefile.am): Likewise.
20970         * modules/physmem (Makefile.am): Likewise.
20971         * modules/poll (Makefile.am): Likewise.
20972         * modules/posixtm (Makefile.am): Likewise.
20973         * modules/posixver (Makefile.am): Likewise.
20974         * modules/putenv (Makefile.am): Likewise.
20975         * modules/quote (Makefile.am): Likewise.
20976         * modules/quotearg (Makefile.am): Likewise.
20977         * modules/raise (Makefile.am): Likewise.
20978         * modules/read-file (Makefile.am): Likewise.
20979         * modules/readline (Makefile.am): Likewise.
20980         * modules/readlink (Makefile.am): Likewise.
20981         * modules/readtokens (Makefile.am): Likewise.
20982         * modules/readutmp (Makefile.am): Likewise.
20983         * modules/realloc (Makefile.am): Likewise.
20984         * modules/regex (Makefile.am): Likewise.
20985         * modules/rename (Makefile.am): Likewise.
20986         * modules/rename-dest-slash (Makefile.am): Likewise.
20987         * modules/rijndael (Makefile.am): Likewise.
20988         * modules/rmdir (Makefile.am): Likewise.
20989         * modules/rpmatch (Makefile.am): Likewise.
20990         * modules/safe-read (Makefile.am): Likewise.
20991         * modules/safe-write (Makefile.am): Likewise.
20992         * modules/same (Makefile.am): Likewise.
20993         * modules/save-cwd (Makefile.am): Likewise.
20994         * modules/savedir (Makefile.am): Likewise.
20995         * modules/setenv (Makefile.am): Likewise.
20996         * modules/settime (Makefile.am): Likewise.
20997         * modules/sha1 (Makefile.am): Likewise.
20998         * modules/sig2str (Makefile.am): Likewise.
20999         * modules/snprintf (Makefile.am): Likewise.
21000         * modules/stdlib-safer (Makefile.am): Likewise.
21001         * modules/stpcpy (Makefile.am): Likewise.
21002         * modules/stpncpy (Makefile.am): Likewise.
21003         * modules/strcase (Makefile.am): Likewise.
21004         * modules/strcasestr (Makefile.am): Likewise.
21005         * modules/strchrnul (Makefile.am): Likewise.
21006         * modules/strcspn (Makefile.am): Likewise.
21007         * modules/strdup (Makefile.am): Likewise.
21008         * modules/strerror (Makefile.am): Likewise.
21009         * modules/strftime (Makefile.am): Likewise.
21010         * modules/strndup (Makefile.am): Likewise.
21011         * modules/strnlen (Makefile.am): Likewise.
21012         * modules/strpbrk (Makefile.am): Likewise.
21013         * modules/strsep (Makefile.am): Likewise.
21014         * modules/strstr (Makefile.am): Likewise.
21015         * modules/strtod (Makefile.am): Likewise.
21016         * modules/strtoimax (Makefile.am): Likewise.
21017         * modules/strtok_r (Makefile.am): Likewise.
21018         * modules/strtol (Makefile.am): Likewise.
21019         * modules/strtoll (Makefile.am): Likewise.
21020         * modules/strtoul (Makefile.am): Likewise.
21021         * modules/strtoull (Makefile.am): Likewise.
21022         * modules/strtoumax (Makefile.am): Likewise.
21023         * modules/strverscmp (Makefile.am): Likewise.
21024         * modules/time_r (Makefile.am): Likewise.
21025         * modules/timegm (Makefile.am): Likewise.
21026         * modules/tmpfile-safer (Makefile.am): Likewise.
21027         * modules/unistd-safer (Makefile.am): Likewise.
21028         * modules/unlinkdir (Makefile.am): Likewise.
21029         * modules/userspec (Makefile.am): Likewise.
21030         * modules/utime (Makefile.am): Likewise.
21031         * modules/utimecmp (Makefile.am): Likewise.
21032         * modules/utimens (Makefile.am): Likewise.
21033         * modules/vasnprintf (Makefile.am): Likewise.
21034         * modules/vasprintf (Makefile.am): Likewise.
21035         * modules/vsnprintf (Makefile.am): Likewise.
21036         * modules/xalloc (Makefile.am): Likewise.
21037         * modules/xgetcwd (Makefile.am): Likewise.
21038         * modules/xnanosleep (Makefile.am): Likewise.
21039         * modules/xreadlink (Makefile.am): Likewise.
21040         * modules/xstrtod (Makefile.am): Likewise.
21041         * modules/xstrtol (Makefile.am): Likewise.
21042         * modules/xstrtold (Makefile.am): Likewise.
21043         * modules/yesno (Makefile.am): Likewise.
21044
21045 2006-10-12  Jim Meyering  <jim@meyering.net>
21046
21047         * m4/getloadavg.m4: Revert the change below.
21048
21049         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21050         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21051         fail with a symlink, which is what coreutils' ./bootstrap now
21052         creates by default.
21053
21054 2006-10-12  Bruno Haible  <bruno@clisp.org>
21055
21056         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21057         mingw.
21058         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21059         MSVC and mingw explicitly.
21060
21061 2006-10-11  Simon Josefsson  <jas@extundo.com>
21062             Bruno Haible  <bruno@clisp.org>
21063
21064         Add support for multiple gnulib-tool invocations in the scope of a
21065         single configure.ac file.
21066         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21067         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21068         with the same contents as the _LIBADD variable.
21069         (func_emit_initmacro_start, func_emit_initmacro_end,
21070         func_emit_initmacro_done): New functions.
21071         (func_import, func_create_testdir): Invoke them. Allow the identifiers
21072         gl_LIBOBJS and gl_LTLIBOBJS.
21073
21074 2006-10-11  Bruno Haible  <bruno@clisp.org>
21075
21076         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21077         (func_create_testdir): Don't create po/Makefile.am, don't invoke
21078         autoreconf. Instead, invoke autopoint explicitly but move back the
21079         *.m4 files from gnulib.
21080
21081 2006-10-11  Bruno Haible  <bruno@clisp.org>
21082
21083         * gnulib-tool (func_usage): Make module names after --create-testdir
21084         optional.
21085         (func_create_testdir): If no module was specified, use nearly all
21086         modules.
21087
21088 2006-10-12  Jim Meyering  <jim@meyering.net>
21089
21090         Big performance improvement for fts-based tools that use FTS_NOSTAT.
21091         Avoid spurious inode-mismatch problems on non-POSIX file systems.
21092         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21093         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21094         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21095         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21096         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21097         (fts_set_stat_required): New function.
21098         (fts_open): Defer the calls to fts_stat, if possible or requested.
21099         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21100         into fts_stat itself.
21101         (fts_read): Perform any required (deferred) fts_stat call.
21102         (fts_build): Likewise, for the directory we're about to open and read.
21103         In the readdir loop, carefully decide whether each entry will require
21104         an eventual call to fts_stat, using dirent.d_type info if available.
21105         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21106         a command line argument into this function.  Update all callers.
21107         Map a return value of FTS_DOT to FTS_D for a command line argument.
21108         * modules/fts (Depends-on): Add d-type.  Alphabetize.
21109         Thanks to Miklos Szeredi for his tenacity and for the initial
21110         bug report about "find" failing on a FUSE-based file system.
21111
21112         * lib/fts.c (fts_open): Use consistent indentation.
21113
21114 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21115
21116         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21117         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21118         reported by Jim Meyering.  All uses of cache variables renamed
21119         to match Autoconf's.
21120         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21121         the other one.
21122
21123         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21124         Fix misspelling in diagnostic.
21125
21126 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21127
21128         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21129         defined.  Problem reported by Matthew Woehlke.
21130
21131         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21132         Add support for Tandem NonStop R series.
21133         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21134         Use new macro.
21135
21136         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21137         (has_trailing_slash): Omit size arg; all callers changed.
21138         Omit 'inline', since it doesn't help performance and we'd
21139         need to configure it.
21140         Don't count //, ///, etc. as having a trailing slash.
21141         As a side effect, this removes a C99ism reported by Matthew Woehlke.
21142         (rpl_rename_dest_slash): On failure, use rename's errno rather
21143         than (in some cases) an incorrect or junk errno.
21144         Simplify code by removing need to compute length; this does
21145         cause it to make two passes instead of one over the file name,
21146         but it's worth it.
21147
21148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21149         change, since Autoconf's version may no longer be appropriate now
21150         that we are using CVS Autoconf's version.  Add support for Tandem.
21151
21152 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21153             Bruno Haible  <bruno@clisp.org>
21154
21155         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21156         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21157         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21158         gl_AC_TYPE_LONG_LONG.
21159
21160         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21161         instead of HAVE_LONG_LONG.
21162         * lib/printf-args.c (printf_fetchargs): Likewise.
21163         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21164         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21165         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21166         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21167         gl_AC_TYPE_LONG_LONG.
21168
21169 2006-10-11  Bruno Haible  <bruno@clisp.org>
21170
21171         * m4/longlong.m4: Add comments.
21172         * m4/ulonglong.m4: Likewise.
21173
21174 2006-10-10  Bruno Haible  <bruno@clisp.org>
21175
21176         Make it possible to #define stpcpy, strdup to aliases.
21177         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21178         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21179
21180 2006-10-10  Bruno Haible  <bruno@clisp.org>
21181
21182         Make it possible to #define gcd to an alias.
21183         * lib/gcd.c: Include config.h.
21184
21185 2006-10-10  Bruno Haible  <bruno@clisp.org>
21186
21187         Make it possible to #define c_isascii to an alias.
21188         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21189         defined. Undefine the macros before defining them, to avoid gcc
21190         warnings.
21191         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21192         define NO_C_CTYPE_MACROS early.
21193
21194 2006-10-10  Bruno Haible  <bruno@clisp.org>
21195
21196         Make it possible to #define set_program_name to an alias.
21197         * lib/progname.c: Don't undefine set_program_name; instead, undefine
21198         ENABLE_RELOCATABLE early.
21199
21200 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21201
21202         Port to Tandem NSK OSS, which has 64-bit signed int but at most
21203         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
21204         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21205         More generally, don't assume that 64-bit signed int is available
21206         if unsigned int is, and vice versa.
21207         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21208         unsigned symbols, not on their signed counterparts.
21209         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21210         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21211         (UINT64_C, UINTMAX_C):
21212         Likewise.
21213         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21214         unsigned counterparts.
21215         (Have_long_long, Unsigned): New macros.
21216         (Int): Renamed from INT.
21217         (strtoimax): Use the new macros.
21218         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21219         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21220         * modules/inttypes (inttypes.h): Substitute
21221         HAVE_UNSIGNED_LONG_LONG_INT.
21222         * modules/stdint (stdint.h): Likewise.
21223         (Files): Add m4/ulonglong.m4.
21224
21225 2006-10-10  Bruno Haible  <bruno@clisp.org>
21226
21227         Fix a gcc -Wshadow warning.
21228         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21229         to 'bucket'.
21230         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21231         gl_linked_indexof_from_to): Likewise.
21232         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21233         Likewise.
21234         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21235         Likewise.
21236         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21237         Reported by Eric Blake.
21238
21239 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
21240
21241         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21242         for NetBSD.  Problem reported by Bruno Haible.
21243
21244 2006-10-09  Jim Meyering  <jim@meyering.net>
21245
21246         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21247         Patch from Bruno Haible.
21248
21249 2006-10-09  Jim Meyering  <jim@meyering.net>
21250
21251         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21252         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21253         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21254
21255 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21256
21257         Don't include <config.h> twice; this doesn't work in some cases,
21258         e.g., when config.h has "#define intmax_t long long int" and
21259         we include <config.h>, <inttypes.h>, <config.h> in that order.
21260         Problem reported by Matthew Woehlke in:
21261         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21262         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21263         * lib/fts-cycle.c: Don't include config.h.
21264         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21265         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21266         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
21267         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21268         inttypes.h.
21269         * lib/xstrtoumax.c: Likewise.
21270         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21271         __strtol and the like, so that this module is more like its siblings.
21272         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21273         Remove; no longer needed now that we assume gnulib inttypes.h.
21274
21275 2006-10-08  Bruno Haible  <bruno@clisp.org>
21276
21277         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21278         option.
21279
21280 2006-10-07  Jim Meyering  <jim@meyering.net>
21281
21282         * modules/inttypes (inttypes.h): Revert what seems to have been
21283         an inadvertent part of today's change: use "|", not "/" in the
21284         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21285
21286 2006-10-07  Bruno Haible  <bruno@clisp.org>
21287
21288         * modules/sublist: New file.
21289
21290 2006-10-07  Bruno Haible  <bruno@clisp.org>
21291
21292         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21293         * modules/argz (argz.h): Likewise.
21294         * modules/arpa_inet (arpa/inet.h): Likewise.
21295         * modules/byteswap (byteswap.h): Likewise.
21296         * modules/configmake (configmake.h): Likewise.
21297         * modules/fcntl (fcntl.h): Likewise.
21298         * modules/fnmatch (fnmatch.h): Likewise.
21299         * modules/getopt (getopt.h): Likewise.
21300         * modules/glob (glob.h): Likewise.
21301         * modules/inttypes (inttypes.h): Likewise.
21302         * modules/netinet_in (netinet/in.h): Likewise.
21303         * modules/poll (poll.h): Likewise.
21304         * modules/stdbool (stdbool.h): Likewise.
21305         * modules/stdint (stdint.h): Likewise.
21306         * modules/sys_select (sys/select.h): Likewise.
21307         * modules/sys_socket (sys/socket.h): Likewise.
21308         * modules/sys_stat (sys/stat.h): Likewise.
21309         * modules/sysexits (sysexits.h): Likewise.
21310         * modules/unistd (unistd.h): Likewise.
21311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21312         Add a "DO NOT EDIT" comment to the generated file.
21313         (func_import): Likewise for gnulib-comp.m4.
21314
21315 2006-10-07  Bruno Haible  <bruno@clisp.org>
21316
21317         * lib/gl_sublist.h: New file.
21318         * lib/gl_sublist.c: New file.
21319
21320 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21321
21322         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21323         name (relative to the original working directory) and the file
21324         name component (relative to the temporary working directory).  All
21325         callers changed.
21326         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21327         * lib/mkdir-p.c (make_dir_parents): Likewise.
21328         * lib/mkdir-p.h (make_dir_parents): Likewise.
21329
21330 2006-10-06  Eric Blake  <ebb9@byu.net>
21331
21332         Define several macros for use by the clean-temp module.
21333         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
21334         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
21335         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
21336
21337         * lib/clean-temp.h (close_stream_temp): New declaration.
21338         * lib/clean-temp.c (includes): Pull in headers according to what
21339         other modules are in use.
21340         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
21341
21342 2006-10-06  Bruno Haible  <bruno@clisp.org>
21343
21344         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
21345         instead of fopen, fwriteerror.
21346
21347 2006-10-06  Bruno Haible  <bruno@clisp.org>
21348
21349         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
21350         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
21351         int.
21352         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
21353         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
21354         Return an error indicator.
21355         Suggested by Eric Blake.
21356
21357 2006-10-06  Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
21360         Reported by Eric Blake.
21361
21362 2006-10-06  Bruno Haible  <bruno@clisp.org>
21363
21364         * modules/closeout (Description): Mention stderr too.
21365
21366 2006-10-06  Bruno Haible  <bruno@clisp.org>
21367         and Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         * lib/closeout.c (close_stdout): Also close stderr.
21370         * lib/closeout.h: Update comment.
21371
21372 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21373
21374         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21375         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21376         * lib/dirchownmod.c: Include lchown.h.
21377         * lib/lchown.c: Don't include files that lchown.h now includes.
21378         Don't declare chown, since lchown.h now does that.
21379         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21380         (lchown): Define to rpl_chown if lchown is declared but
21381         does not exist.  Declare using a prototype if lchown is not
21382         declared.  Add a copyright notice.
21383         * lib/mkstemp.h: Include <unistd.h>.
21384         * lib/openat.c: Include lchown.h.
21385
21386         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21387         we now test for that separately.
21388         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21389         rather than O_NOFOLLOW, when testing whether it's possible to
21390         avoid a race condition reliably.
21391         * lib/savewd.c (savewd_chdir): Likewise.
21392
21393         Remove macros that are no longer needed now that stdint.h is
21394         reliable.
21395         * lib/fsusage.c (UINTMAX_MAX): Remove.
21396         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21397         * lib/utimecmp.c (SIZE_MAX): Remove.
21398
21399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21400
21401         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21402         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21403         O_NOATIME works.
21404
21405 2006-10-05  Bruno Haible  <bruno@clisp.org>
21406
21407         * lib/gl_list.h (gl_sortedlist_search_from_to,
21408         gl_sortedlist_indexof_from_to): New declarations.
21409         (gl_list_implementation): New fields sortedlist_search_from_to,
21410         sortedlist_indexof_from_to.
21411         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21412         inline functions.
21413         * lib/gl_list.c (gl_sortedlist_search_from_to,
21414         gl_sortedlist_indexof_from_to): New functions.
21415         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21416         function.
21417         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21418         (gl_array_sortedlist_search_from_to): New function.
21419         (gl_array_list_implementation): Update.
21420         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
21421         function.
21422         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
21423         (gl_carray_sortedlist_search_from_to): New function.
21424         (gl_carray_list_implementation): Update.
21425         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
21426         gl_linked_sortedlist_indexof_from_to): New functions.
21427         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21428         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21429         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
21430         gl_tree_sortedlist_indexof_from_to): New functions.
21431         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21432         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21433         Update.
21434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21435         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
21436         Update.
21437
21438 2006-10-05  Bruno Haible  <bruno@clisp.org>
21439
21440         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
21441         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21442         (struct gl_list_implementation): Add fields search_from_to,
21443         indexof_from_to. Remove fields search, indexof.
21444         (gl_list_search): Use the search_from_to method.
21445         (gl_list_search_from, gl_list_search_from_to): New functions.
21446         (gl_list_indexof): Use the indexof_from_to method.
21447         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21448         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21449         (gl_list_search_from, gl_list_search_from_to): New functions.
21450         (gl_list_indexof): Use the indexof_from_to method.
21451         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21452         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21453         gl_array_indexof. Add start_index, end_index arguments.
21454         (gl_array_search_from_to): Renamed from gl_array_search. Add
21455         start_index, end_index arguments.
21456         (gl_array_remove, gl_array_list_implementation): Update.
21457         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21458         gl_carray_indexof. Add start_index, end_index arguments.
21459         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21460         start_index, end_index arguments.
21461         (gl_carray_remove, gl_carray_list_implementation): Update.
21462         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21463         gl_linked_search. Add start_index, end_index arguments.
21464         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21465         start_index, end_index arguments.
21466         (gl_linked_remove): Update.
21467         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21468         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21469         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21470         field to 'size_t'.
21471         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21472         gl_tree_search. Add start_index, end_index arguments.
21473         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21474         start_index, end_index arguments.
21475         (gl_tree_remove): Update.
21476         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21477         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21478         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21479         function.
21480         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21481         gl_tree_search. Add start_index, end_index arguments.
21482         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21483         start_index, end_index arguments.
21484         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21485         Update.
21486         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21487
21488 2006-10-05  Bruno Haible  <bruno@clisp.org>
21489
21490         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21491
21492         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21493         fwriteerror_temp): New declarations.
21494         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21495         (descriptors): New variable.
21496         (cleanup): First, close the descriptors.
21497         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21498         fclose_temp, fwriteerror_temp): New functions.
21499
21500 2006-10-04  Jim Meyering  <jim@meyering.net>
21501
21502         * lib/fts.c (fts_open): Tiny comment change.
21503
21504 2006-10-04  Bruno Haible  <bruno@clisp.org>
21505
21506         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21507         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21508         gl_LOCK_BODY.
21509         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21510         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21511         gl_LOCK_EARLY_BODY.
21512         (gl_LOCK): Require gl_LOCK_BODY.
21513
21514 2006-10-04  Bruno Haible  <bruno@clisp.org>
21515
21516         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21517         (gl_oset_search_atleast): New declaration.
21518         (struct gl_oset_implementation): Add field 'search_atleast'.
21519         (gl_oset_search_atleast): New inline function.
21520         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21521         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21522         (gl_array_oset_implementation): Update.
21523         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21524         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21525         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21526
21527 2006-10-04  Bruno Haible  <bruno@clisp.org>
21528
21529         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21530
21531 2006-10-03  Bruno Haible  <bruno@clisp.org>
21532
21533         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21534         from gl_avltreehash_list_implementation.
21535
21536 2006-10-03  Bruno Haible  <bruno@clisp.org>
21537
21538         * lib/gl_oset.c (gl_oset_add): Fix return type.
21539
21540 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21541
21542         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21543
21544 2006-10-02  Eric Blake  <ebb9@byu.net>
21545
21546         * modules/strnlen (Depends-on): Add extensions.
21547
21548 2006-10-02  Eric Blake  <ebb9@byu.net>
21549
21550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21551         definition in 2.60+.
21552
21553 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21554
21555         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21556         checks.
21557
21558 2006-10-02  Bruno Haible  <bruno@clisp.org>
21559
21560         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21561         to the AUTOMAKE_OPTIONS.
21562         Reported by Jim Meyering.
21563
21564 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21565
21566         Work around bug in Solaris 10 /proc file system:
21567         /proc/self/fd/NNN/.. isn't the parent directory of
21568         the directory whose file descriptor is NNN.  This needs to
21569         be worked around at run time, not compile time, since a
21570         program might be built on Solaris 8, where things work, and
21571         run on Solaris 10.
21572         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21573         to use the following interface instead:
21574         (OPENAT_BUFFER_SIZE): New macro.
21575         (openat_proc_name): New function.
21576         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21577         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21578         Likewise.
21579         * lib/openat-proc.c: New file.
21580         * modules/openat (Files): Add lib/openat-proc.c.
21581         (Depends-on): Add same-inode, stdbool.
21582         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21583
21584 2006-09-29  Bruno Haible  <bruno@clisp.org>
21585
21586         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21587         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21588         argument. Set stdout_closed before testing for ferror, not after.
21589         (fwriteerror, fwriteerror_no_ebadf): New functions.
21590
21591 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21592
21593         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21594
21595 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21596
21597         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21598         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21599
21600 2006-09-28  Jim Meyering  <jim@meyering.net>
21601
21602         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21603         Include <unistd.h>.
21604
21605 2006-09-28  Bruno Haible  <bruno@clisp.org>
21606
21607         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21608         * modules/linkedhash-list (Depends-on): Likewise.
21609         * modules/rbtreehash-list (Depends-on): Likewise.
21610
21611 2006-09-28  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/strndup.h: Simplify the redefinition of strndup.
21614         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21616
21617 2006-09-28  Bruno Haible  <bruno@clisp.org>
21618
21619         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21620         * lib/gl_linkedhash_list.c: Likewise.
21621         * lib/gl_rbtreehash_list.c: Likewise.
21622
21623 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21624
21625         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21626         getaddrinfo.
21627
21628         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21629         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21630         it causes <stdio_ext.h> to cause a compile-time error.
21631         Problem reported by Nelson H. F. Beebe.
21632         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21633         of HAVE_DECL___PENDING.
21634
21635         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21637         declaration.
21638
21639 2006-09-27  Jim Meyering  <jim@meyering.net>
21640
21641         This file could end up with a definition for a function
21642         named __strndup, rather than rpl_strndup on a system with
21643         incomplete weak_alias support.
21644         * lib/strndup.c (strndup): Rename from __strndup.
21645         Remove #defines that used to map __strndup to strndup.
21646         Don't use K&R prototypes.
21647         Remove LIBC-related code, since this file is not sync'd with glibc.
21648         * lib/strndup.h: Revamp, accordingly.
21649         * m4/strndup.m4: Modernize.
21650
21651 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21652
21653         * modules/savewd (Depends-on): Add 'raise'.
21654         * lib/savewd.c: Include <signal.h>, for 'raise'.
21655
21656 2006-09-26  Jim Meyering  <jim@meyering.net>
21657
21658         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21659         when we detect Darwin 8.7.0's acl_get_file bug.
21660         Rearrange to perform the new (below) run-test while $LIBS
21661         contains any acl-related library.  Set USE_ACL at the end.
21662         (gl_ACL_GET_FILE): New function.
21663
21664 2006-09-26  Eric Blake  <ebb9@byu.net>
21665
21666         * lib/verror.c: Include <config.h> unconditionally.
21667
21668 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21669
21670         * modules/clock-time (Maintainer): Add self.
21671         * modules/getlogin_r (Depends-on): Add extensions.
21672
21673 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21674
21675         * modules/clock-time: New module.
21676         * modules/nanosleep (Depends-on): Add clock-time.
21677         * modules/gethrxtime (Depends-on): Likewise.
21678         * modules/gettime (Depends-on): Likewise.
21679         * modules/settime (Depends-on): Likewise.
21680
21681         * modules/fts-lgpl: Depend on openat.
21682         * modules/mkancesdirs: Depend on savewd.
21683         * modules/mkdir-p: Likewise.
21684
21685 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21686
21687         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21688
21689         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21690         `gl_have_arbitrary_file_name_length_limit' to
21691         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21692         actually works between configure runs.
21693
21694 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21695             Bruno Haible  <bruno@clisp.org>
21696
21697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21698
21699 2006-09-25  Jim Meyering  <jim@meyering.net>
21700
21701         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21702         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21703
21704 2006-09-25  Eric Blake  <ebb9@byu.net>
21705
21706         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21707         exec's in 2006-09-18 patch when shuffling fds.
21708
21709 2006-09-25  Bruno Haible  <bruno@clisp.org>
21710
21711         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21712         Reported by Jim Meyering.
21713
21714 2006-09-24  Jim Meyering  <jim@meyering.net>
21715
21716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21717         compare a pointer against a literal "0".  That caused failures with
21718         at least HP-UX's hpcc.
21719
21720 2006-09-22  Simon Josefsson  <jas@extundo.com>
21721
21722         * modules/gc-sha1:
21723         * modules/gc-md4:
21724         * modules/gc-hmac-sha1:
21725         * modules/gc-hmac-md5:
21726         * modules/gc-des:
21727         * modules/gc-arcfour: Distribute more files.
21728
21729 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21730
21731         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21732         (gl_linked_iterator_from_to): Initialize struct completely.
21733         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21734         (gl_tree_iterator_from_to): Likewise
21735         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21736         * lib/gl_array_list.c [lint] (gl_array_iterator)
21737         (gl_array_iterator_from_to): Likewise.
21738         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21739         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21740         (gl_carray_iterator_from_to): Likewise.
21741
21742         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21743         * lib/md4.c (md4_process_block): Remove unused variable.
21744         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21745         parentheses for clarity.
21746
21747 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21748
21749         * modules/bison-i18n (Depends-on): Add gettext.
21750
21751 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21752
21753         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21754         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21755         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21756         also add missing comma that caused broken test.
21757         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21758         stdlib.h, for `abort'.
21759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21760         variables.
21761         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21762         include unistd.h if present, for `rmdir'.
21763         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21764         variables.
21765         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21766         in the process include standard headers for prototypes.
21767         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21768         gets declared on GNU/Linux.
21769         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21770         unistd.h, for `rmdir'.
21771         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21772
21773         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21774         always true.
21775         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21776
21777         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21778
21779 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21780
21781         * gnulib-tool (func_version): Create output all at once.  This
21782         may help avoid triggering unnecessary SIGPIPEs, and at any
21783         rate it doesn't hurt.
21784
21785 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21786             Bruno Haible  <bruno@clisp.org>
21787
21788         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21789         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21790         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21791
21792         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21793         (gl_FUNC_VASPRINTF): Invoke it.
21794
21795 2006-09-22  Bruno Haible  <bruno@clisp.org>
21796
21797         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21798         getloadavg.c as first argument.
21799
21800 2006-09-22  Bruno Haible  <bruno@clisp.org>
21801
21802         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21803         at the beginning of the gl_INIT macro.
21804         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21805         gl_GETLOADAVG.
21806
21807 2006-09-22  Bruno Haible  <bruno@clisp.org>
21808
21809         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21810         module.
21811         Suggested by Ralf Wildenhues.
21812
21813 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21814
21815         Import this patch from libc:
21816
21817         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21818
21819         * lib/regex_internal.c (re_string_reconstruct): Handle
21820         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21821         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21822         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21823         re_string_context_at.
21824
21825         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21826         now requires it.
21827         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21828         gl_REGEX now does it for us.
21829         (gl_REGEX): Add test taken from
21830         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21831
21832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21833         Check that large offsets work.  Modernize Autoconf usages.
21834         Prefer "yes" to mean a good thing rather than a bad.
21835         Don't put "#define mkstemp" in config.h, as this might interfere
21836         with standard system headers that "#define mkstemp mkstemp64".
21837
21838         * modules/mkstemp (Depends-on): Add extensions, so that
21839         mkstemp is visible on some platforms.
21840         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21841         (Include): Change to "mkstemp.h" from <stdlib.h>.
21842         (Files): Add mkstemp.h.
21843
21844         * lib/mkstemp.h: New file, since some standard headers
21845         #define mkstemp.
21846         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21847         Include "mkstemp.h".
21848         Make the _LIBC code resemble glibc original more,
21849         e.g., use K&R style.
21850         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21851         (mkstemp): Remove, since mkstemp.h does this for us.
21852         * lib/stdlib--.h: Include mkstemp.h.
21853
21854         Import this patch from libc:
21855
21856         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21857
21858         * lib/tempname.c (__gen_tempname): Change attempts_min
21859         into a macro.  Use preprocessor to decide how to initialize
21860         attempts [Coverity CID 67].
21861
21862 2006-09-20  Bruno Haible  <bruno@clisp.org>
21863
21864         * lib/mkdtemp.c: Import from libc.
21865         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21866                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21867                 attempts_min into a macro.  Use preprocessor to decide how to
21868                 initialize attempts [Coverity CID 67].
21869         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21870                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21871                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21872
21873 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21874
21875         * gnulib-tool (func_exit): New function, to allow to pass the
21876         exit status portably through the trap.  Use everywhere.
21877         (--help, --version): Signal a write error.
21878         (trap): catch SIGPIPE, for write errors.
21879         Exit at the end of the trap, with the correct exit status.
21880
21881 2006-09-19  Karl Berry  <karl@gnu.org>
21882
21883         * doc/gnulib.texi: note about the license texinfo files.
21884
21885 2006-09-19  Eric Blake  <ebb9@byu.net>
21886
21887         * gnulib-tool: Avoid space-tab.
21888
21889 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21890
21891         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21892         that prevented coreutils 6.1 from building.  Problem reported
21893         by Petter Reinholdtsen.
21894
21895 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21896
21897         * gnulib-tool (avoidlist): Fix typo that broke options like
21898         --avoid=lock that are used by coreutils bootstrap.
21899
21900 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21901
21902         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21903         more systematically.
21904
21905 2006-09-18  Jim Meyering  <jim@meyering.net>
21906
21907         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21908
21909 2006-09-18  Bruno Haible  <bruno@clisp.org>
21910
21911         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21912
21913 2006-09-18  Bruno Haible  <bruno@clisp.org>
21914
21915         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21916         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21917         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21918         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21919         * m4/gettext.m4: Require autoconf >= 2.52.
21920         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21921         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21922         of gl_cv_header_inttypes_h.
21923
21924 2006-09-18  Bruno Haible  <bruno@clisp.org>
21925
21926         * lib/javaversion.c: Include configmake.h.
21927
21928 2006-09-18  Bruno Haible  <bruno@clisp.org>
21929
21930         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21931         avoid that the while loops be executed in a subshell.
21932
21933 2006-09-18  Bruno Haible  <bruno@clisp.org>
21934
21935         * MODULES.html.sh (func_module): Break long lines.
21936         Suggested by Bruce Korb <bkorb@gnu.org>.
21937
21938 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21939
21940         Speed up by a factor of 1.12.
21941         * gnulib-tool (nl): New variable.
21942         (func_import): Rewrite include directive extraction to only read each
21943         directive once.
21944
21945 2006-09-17  Bruno Haible  <bruno@clisp.org>
21946
21947         * modules/javaversion (Makefile.am): Remove DEFS setting.
21948         (Depends-on): Add configmake, for PKGDATADIR definition.
21949
21950 2006-09-17  Bruno Haible  <bruno@clisp.org>
21951
21952         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21953
21954 2006-09-17  Bruno Haible  <bruno@clisp.org>
21955
21956         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21957         (func_modules_transitive_closure, func_modules_add_dummy,
21958         func_modules_to_filelist, func_import, func_create_testdir,
21959         func_create_megatestdir, ...): Use it wherever possible.
21960         Suggested by Ralf Wildenhues.
21961
21962 2006-09-16  Karl Berry  <karl@gnu.org>
21963
21964         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21965         to avoid sectioning errors.
21966         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21967         [ifinfo]: blank line after @center-ed titles.
21968         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21969         Spell FSF address consistently with others.
21970         (These changes approved by rms.)
21971
21972 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21973
21974         Speed up by a factor of 1.61.
21975         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21976         already checked module names again.
21977
21978 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21979
21980         Speed up by a factor of 1.13.
21981         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21982         for new_files, and the input to func_add_or_update.
21983
21984 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21985
21986         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21987         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21988
21989 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21990
21991         * modules/mkancesdirs (Depends-on): Add fcntl.
21992         * modules/savewd: New file.
21993         * MODULES.html.sh (File system functions): Add savewd.
21994
21995         * modules/configmake (Makefile.am): Add support for the
21996         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21997
21998 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * m4/savewd.m4: New file.
22001
22002 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22003
22004         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22005         (dirchownmod): New arg FD.  All callers changed.
22006         Use FD rather than opening the directory ourself, as opening is
22007         now the caller's responsibility.
22008         * lib/dirchownmod.h: Likewise.
22009         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22010         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22011         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22012         (test_dir): Remove.
22013         (mkancesdirs): Return length of prefix of FILE that has already
22014         been made, or -2 if there is a child doing the work.  Redo
22015         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22016         ".", and treat ".." specially since it might stray back into
22017         already-created areas.  Use a subprocess if necessary.  New arg
22018         WD; all users changed.  MAKE_DIR function should now return 1
22019         if it creates a directory that is not readable.  Return -2 if
22020         a child process is spun off.
22021         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22022         Adjust signature to match code.
22023         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22024         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22025         all users changed.
22026         * lib/savewd.c, lib/savewd.h: New files.
22027
22028 2006-09-15  Jim Meyering  <jim@meyering.net>
22029
22030         * modules/rename-dest-slash: New module.
22031         * MODULES.html.sh (posix_compat): Add it here.
22032
22033         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22034
22035 2006-09-15  Jim Meyering  <jim@meyering.net>
22036
22037         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22038         file.
22039
22040         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22041
22042 2006-09-15  Jim Meyering  <jim@meyering.net>
22043
22044         * lib/rename-dest-slash.c (has_trailing_slash): Use
22045         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22046         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22047         test before testing whether SRC is a directory.
22048         Suggestions from Bruno Haible.
22049
22050         Avoid a warning about an unused variable.
22051         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22052         into the #ifdef block where it's used.
22053
22054         * lib/rename-dest-slash.c: New file.
22055
22056 2006-09-14  Bruno Haible  <bruno@clisp.org>
22057
22058         * lib/allocsa.c: Include <config.h> unconditionally.
22059         * lib/asnprintf.c: Likewise.
22060         * lib/asprintf.c: Likewise.
22061         * lib/c-strcasecmp.c: Likewise.
22062         * lib/c-strcasestr.c: Likewise.
22063         * lib/c-strncasecmp.c: Likewise.
22064         * lib/c-strstr.c: Likewise.
22065         * lib/classpath.c: Likewise.
22066         * lib/clean-temp.c: Likewise.
22067         * lib/concatpath.c: Likewise.
22068         * lib/copy-file.c: Likewise.
22069         * lib/csharpcomp.c: Likewise.
22070         * lib/csharpexec.c: Likewise.
22071         * lib/execute.c: Likewise.
22072         * lib/fatal-signal.c: Likewise.
22073         * lib/findprog.c: Likewise.
22074         * lib/fwriteerror.c: Likewise.
22075         * lib/gl_array_list.c: Likewise.
22076         * lib/gl_array_oset.c: Likewise.
22077         * lib/gl_avltree_list.c: Likewise.
22078         * lib/gl_avltree_oset.c: Likewise.
22079         * lib/gl_avltreehash_list.c: Likewise.
22080         * lib/gl_carray_list.c: Likewise.
22081         * lib/gl_linked_list.c: Likewise.
22082         * lib/gl_linkedhash_list.c: Likewise.
22083         * lib/gl_list.c: Likewise.
22084         * lib/gl_oset.c: Likewise.
22085         * lib/gl_rbtree_list.c: Likewise.
22086         * lib/gl_rbtree_oset.c: Likewise.
22087         * lib/gl_rbtreehash_list.c: Likewise.
22088         * lib/imaxabs.c: Likewise.
22089         * lib/imaxdiv.c: Likewise.
22090         * lib/javacomp.c: Likewise.
22091         * lib/javaexec.c: Likewise.
22092         * lib/javaversion.c: Likewise.
22093         * lib/linebreak.c: Likewise.
22094         * lib/localcharset.c: Likewise.
22095         * lib/lock.c: Likewise.
22096         * lib/mbchar.c: Likewise.
22097         * lib/mbswidth.c: Likewise.
22098         * lib/mkdtemp.c: Likewise.
22099         * lib/pipe.c: Likewise.
22100         * lib/printf-args.c: Likewise.
22101         * lib/printf-parse.c: Likewise.
22102         * lib/progname.c: Likewise.
22103         * lib/progreloc.c: Likewise.
22104         * lib/readlink.c: Likewise.
22105         * lib/sh-quote.c: Likewise.
22106         * lib/stpcpy.c: Likewise.
22107         * lib/stpncpy.c: Likewise.
22108         * lib/strcasecmp.c: Likewise.
22109         * lib/strcasestr.c: Likewise.
22110         * lib/strcspn.c: Likewise.
22111         * lib/striconv.c: Likewise.
22112         * lib/strncasecmp.c: Likewise.
22113         * lib/strnlen1.c: Likewise.
22114         * lib/strstr.c: Likewise.
22115         * lib/strtok_r.c: Likewise.
22116         * lib/tls.c: Likewise.
22117         * lib/tmpdir.c: Likewise.
22118         * lib/unicodeio.c: Likewise.
22119         * lib/unsetenv.c: Likewise.
22120         * lib/vasnprintf.c: Likewise.
22121         * lib/vasprintf.c: Likewise.
22122         * lib/wait-process.c: Likewise.
22123         * lib/xallocsa.c: Likewise.
22124         * lib/xsetenv.c: Likewise.
22125         * lib/xstriconv.c: Likewise.
22126
22127 2006-09-13  Simon Josefsson  <jas@extundo.com>
22128
22129         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22130         that internally, suggested by Ralf Wildenhues
22131         <Ralf.Wildenhues@gmx.de>.
22132
22133 2006-09-13  Simon Josefsson  <jas@extundo.com>
22134
22135         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22136         @LIBOBJS@.
22137         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22138
22139 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22140
22141         * lib/_fpending.c: Include <config.h> unconditionally, since we no
22142         longer worry about uses that don't define HAVE_CONFIG_H.
22143         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22144         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22145         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22146         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22147         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22148         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22149         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22150         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22151         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22152         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22153         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22154         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22155         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22156         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22157         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22158         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22159         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22160         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22161         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22162         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22163         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22164         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22165         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22166         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22167         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22168         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22169         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22170         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22171         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22172         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22173         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22174         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22175         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22176         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22177         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22178         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22179         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22180         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22181         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22182         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22183         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22184         Likewise.
22185
22186 2006-09-13  Eric Blake  <ebb9@byu.net>
22187
22188         * lib/getopt.c: Fix typo in last commit.
22189
22190 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22191
22192         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22193         dgettext.
22194
22195 2006-09-12  Jim Meyering  <jim@meyering.net>
22196
22197         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22198         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22199         Reported by Nelson H. F. Beebe.
22200
22201 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22202
22203         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22204         program_invocation_name and program_invocation_short_name are
22205         initialized.
22206         * lib/argp-namefrob.h: Move declarations of program_invocation_name
22207         and program_invocation_short_name to argp.h, so they are visible
22208         to user programs.
22209         * lib/argp.h: Likewise
22210
22211 2006-09-10  Bruno Haible  <bruno@clisp.org>
22212
22213         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22214         m4/inttypes_h.m4, m4/uintmax_t.m4.
22215
22216 2006-09-10  Bruno Haible  <bruno@clisp.org>
22217
22218         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22219         gl_AC_TYPE_UINTMAX_T.
22220
22221 2006-09-10  Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22224
22225 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22226
22227         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22228         convention.  Text proposed by Bruno Haible.
22229         (struct argp_option): Document the use of N_() wrappers.
22230
22231         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22232         '\v', and translate the two parts separately, instead of feeding
22233         the whole string to gettext.  This allows to exclude
22234         '\v' from the strings visible to the translator by writing doc
22235         strings as N_("..") "\v" N_("..").
22236
22237 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
22238
22239         * config/srclist.txt: Undo latest change; the bug was fixed.
22240
22241 2006-09-09  Bruno Haible  <bruno@clisp.org>
22242
22243         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22244         assignments if building a library without libtool.
22245         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22246         in func_emit_lib_Makefile_am.
22247         (func_import): When building a static library libfoo.a, arrange to
22248         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22249         (func_create_testdir): Likewise.
22250         * modules/gc (configure.ac, Makefile.am): If building statically,
22251         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22252         * modules/iconvme (configure.ac, Makefile.am): Likewise.
22253         * modules/striconv (configure.ac, Makefile.am): Likewise.
22254         Based on a suggestion by Ralf Wildenhues.
22255
22256 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22257
22258         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22259         Check for unistd.h too, since Autoconf doesn't assume POSIX.
22260         Also:
22261
22262         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22263         Add year_2050_test to catch glibc bug 2821
22264         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22265
22266         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22267         Prefer #ifdef to #if.
22268
22269         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22270         Return from 'main' instead of calling 'exit'.
22271
22272 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * lib/mktime.c (guess_time_tm): Fix bug where mktime
22275         returned the maximum time_t value rather than (time_t) -1.
22276         Problem originally reported by William Bardwell
22277         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22278
22279         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22280         Moved to here ...
22281         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22282         ... from here.
22283
22284 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22285
22286         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22287         2821 is fixed.
22288
22289 2006-09-08  Jim Meyering  <jim@meyering.net>
22290
22291         Don't make generated files read-only.  That would bother too many
22292         people.  However, do retain the ability to work when targets are
22293         read-only: remove the destination and temporary files before writing
22294         them (when generated via sed or echo), or by using the -f option for
22295         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22296         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22297         * modules/byteswap, modules/configmake, modules/fcntl:
22298         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22299         * modules/localcharset, modules/netinet_in, modules/poll:
22300         * modules/stdbool, modules/stdint, modules/sys_select:
22301         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22302
22303 2006-09-08  Jim Meyering  <jim@meyering.net>
22304
22305         Avoid new build failure on FreeBSD 6.0.
22306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22307         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22308         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22309
22310 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22311
22312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22313
22314 2006-09-07  Jim Meyering  <jim@meyering.net>
22315
22316         Fix global typo in last change: use chmod u-w, not chmod u-x.
22317         Spotted by Paul Eggert and Bruce Korb.
22318         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22319         * modules/byteswap, modules/configmake, modules/fcntl:
22320         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22321         * modules/localcharset, modules/netinet_in, modules/poll:
22322         * modules/stdbool, modules/stdint, modules/sys_select:
22323         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22324
22325 2006-09-06  Jim Meyering  <jim@meyering.net>
22326
22327         Make generated files be read-only.
22328         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22329         Ensure that each generated file is now read-only.
22330         * modules/argz: Likewise.
22331         * modules/arpa_inet: Likewise.
22332         * modules/byteswap: Likewise.
22333         * modules/configmake: Likewise.
22334         * modules/fcntl: Likewise.
22335         * modules/fnmatch: Likewise.
22336         * modules/getopt: Likewise.
22337         * modules/glob: Likewise.
22338         * modules/inttypes: Likewise.
22339         * modules/netinet_in: Likewise.
22340         * modules/poll: Likewise.
22341         * modules/stdbool: Likewise.
22342         * modules/stdint: Likewise.
22343         * modules/sys_select: Likewise.
22344         * modules/sys_socket: Likewise.
22345         * modules/sys_stat: Likewise.
22346         * modules/sysexits: Likewise.
22347         * modules/localcharset: Same as above, but continue using temporary
22348         file named "t-$@" (why different?) rather than the "$@-t" used
22349         everywhere else.
22350
22351         * modules/sysexits (Makefile.am): Replace literal occurrences
22352         of "sysexit.h" more readable, and more consistent, "$@".
22353
22354 2006-09-06  Bruno Haible  <bruno@clisp.org>
22355
22356         * modules/striconv: New file.
22357         * modules/xstriconv: New file.
22358         * MODULES.html.sh (Internationalization functions): Add striconv,
22359         xstriconv.
22360
22361 2006-09-06  Bruno Haible  <bruno@clisp.org>
22362
22363         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
22364         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
22365         not using libtool correctly.
22366
22367 2006-09-06  Bruno Haible  <bruno@clisp.org>
22368
22369         * lib/striconv.h: New file.
22370         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22371         iconvstring.c.
22372         * lib/xstriconv.h: New file.
22373         * lib/xstriconv.c: New file.
22374
22375 2006-09-06  Bruno Haible  <bruno@clisp.org>
22376
22377         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22378         lib_..._LDFLAGS.
22379
22380 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22381
22382         * lib/argz_.h: Sync from Libtool.
22383
22384         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22385                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22386
22387         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22388
22389 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22390
22391         * modules/trim: New file.
22392
22393 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22394
22395         * lib/trim.h: New file.
22396         * lib/trim.c: New file.
22397
22398 2006-09-05  Bruno Haible  <bruno@clisp.org>
22399
22400         * MODULES.html.sh (String handling): Add trim.
22401
22402 2006-09-04  Karl Berry  <karl@gnu.org>
22403
22404         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22405         until next release.
22406
22407 2006-09-03  Bruno Haible  <bruno@clisp.org>
22408
22409         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22410         correctly.
22411
22412 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22413
22414         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22415         not gl_GETLOADAVG.  Omit unneeded semicolons.
22416         Problems reported by Ralf Wildenhues in
22417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22418         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22419         at the end, which is the usual gnulib style.
22420
22421         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
22422         of doing all the work ourselves.
22423         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
22424         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
22425
22426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22427
22428         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
22429         Problem reported by Ralf Wildenhues in
22430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22431
22432         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
22433         HAVE_STRUCT_STATFS_F_FSTYPENAME.
22434
22435 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
22438         yesterday's patch by changing test -n to test -z.
22439
22440 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22441
22442         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22443         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22444         the former is now obsolescent.
22445
22446         * modules/chdir-long (Depends-on): Add fcntl.
22447
22448 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22449
22450         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22451         obsolescent, and programs should use gnulib instead.
22452         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22453         but with prefixes changed.
22454
22455 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22458         or stdbool.h, because they might not exist while configuring.
22459
22460         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22461         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22462         does that for us.
22463         (O_DIRECTORY): Remove.
22464
22465 2006-08-31  Eric Blake  <ebb9@byu.net>
22466
22467         * gnulib-tool: Don't let emacs change spaces to TAB.
22468
22469 2006-08-31  Bruno Haible  <bruno@clisp.org>
22470
22471         * gnulib-tool: When calling func_import more than once, do it in a
22472         subshell.
22473         Reported by Eric Blake <ebb9@byu.net>.
22474
22475 2006-08-31  Bruno Haible  <bruno@clisp.org>
22476
22477         * gnulib-tool (nl): Remove variable.
22478         (sed_transform_lib_file): Use more robust test for config-h module.
22479         (func_import): Fix typo in 2006-08-25 patch.
22480
22481 2006-08-31  Bruno Haible  <bruno@clisp.org>
22482
22483         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22484         specified, augment Makefile.am variables instead of assigning them.
22485
22486 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         Work around a bug in both the Linux and SunOS 64-bit kernels:
22489         nanosleep mishandles sleeps for longer than 2**31 seconds.
22490         Problem reported by Frank v Waveren in
22491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22493         Check for nanosleep bug.
22494         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22495
22496 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22497
22498         Work around a bug in both the Linux and SunOS 64-bit kernels:
22499         nanosleep mishandles sleeps for longer than 2**31 seconds.
22500         Problem reported by Frank v Waveren in
22501         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22502         * lib/nanosleep.c (BILLION): New constant.
22503         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22504         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22505         implementation.
22506
22507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22508
22509         * modules/nanosleep (Depends-on): Add gettime.
22510
22511 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22512         and Simon Josefsson  <jas@extundo.com>
22513         and Oskar Liljeblad  <oskar@osk.mine.nu>
22514
22515         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22516         * gnulib-tool (func_import): New license type 'unmodifiable license
22517         text'.
22518         * modules/fdl: Use it.  Longer description.
22519         * module/gpl, module/lgpl: New files.
22520
22521 2006-08-30  Jim Meyering  <jim@meyering.net>
22522
22523         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22524         shadowing the parameter.
22525
22526 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22527
22528         Sync from Libtool:
22529
22530         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22531
22532         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22533         sharing with gnulib.  Report by Eric Blake.
22534
22535 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22536
22537         * modules/isapipe: New file.
22538         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22539
22540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22541
22542         * modules/configmake (Makefile.am): Add a comment, and omit
22543         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22544         by Bruno Haible.
22545
22546 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22547
22548         * m4/isapipe.m4: New file.
22549
22550 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22551
22552         * lib/isapipe.c, lib/isapipe.h: New files.
22553
22554 2006-08-29  Jim Meyering  <jim@meyering.net>
22555
22556         * modules/configmake (Makefile.am): Make configmake.h depend on
22557         Makefile.  Otherwise, a stale configmake.h could hang around.
22558
22559 2006-08-29  Eric Blake  <ebb9@byu.net>
22560
22561         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22562         resolution of upstream bug 3044.
22563
22564 2006-08-29  Bruno Haible  <bruno@clisp.org>
22565
22566         * modules/localcharset (Depends-on): Add configmake.
22567         (Makefile.am): Remove setting of LIBDIR through DEFS.
22568
22569 2006-08-29  Bruno Haible  <bruno@clisp.org>
22570
22571         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22572         defined.
22573
22574 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22575
22576         * modules/fcntl: New file.
22577         * modules/chdir-safer (Depends-on): Add fcntl.
22578         * modules/fts: Likewise.
22579         * modules/mkdir-p: Likewise.
22580
22581         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22582         This undoes the most recent change, since we're now addressing the
22583         problem in a different way.
22584
22585         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22586         into output, since the output might be called Makefile.am even
22587         if $makefile_name is something different.
22588         (func_import): Use $makefile_am rather than
22589         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22590         empty.
22591
22592         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22593
22594 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22595
22596         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22597         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22598         recent change to stdint.m4, since we're now addressing the problem in a
22599         different way.
22600
22601 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22602
22603         * m4/fcntl_h.m4: New file.
22604
22605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         * lib/fcntl_.h: New file.
22608         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22609         the fcntl module.
22610         * lib/dirchownmod.c: Likewise.
22611         * lib/fts.c: Likewise.
22612
22613         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22614         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22615         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22616         just before including <inttypes.h>, to avoid circular inclusion.
22617
22618 2006-08-28  Jim Meyering  <jim@meyering.net>
22619
22620         * doc/visibility.texi: Actually read and correct the grammar of the
22621         sentence affected by yesterday's change.
22622
22623 2006-08-28  Eric Blake  <ebb9@byu.net>
22624
22625         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22626         needs wrapper.
22627
22628 2006-08-28  Eric Blake  <ebb9@byu.net>
22629
22630         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22631
22632 2006-08-28  Eric Blake  <ebb9@byu.net>
22633
22634         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22635
22636 2006-08-28  Bruno Haible  <bruno@clisp.org>
22637
22638         * modules/c-strstr: New file, from GNU gettext.
22639         * MODULES.html.sh (String handling): Add c-strstr.
22640
22641 2006-08-28  Bruno Haible  <bruno@clisp.org>
22642
22643         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22644         macros.
22645         Reported by Eric Blake.
22646
22647 2006-08-28  Bruno Haible  <bruno@clisp.org>
22648
22649         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22650         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22651         * lib/vasprintf.c: Include errno.h, limits.h.
22652         (EOVERFLOW): New fallback definition.
22653         (vasprintf): Test here whether the string length is > INT_MAX.
22654         * lib/vsnprintf.c: Include errno.h, limits.h.
22655         (EOVERFLOW): New fallback definition.
22656         (vsnprintf): Fix bug when generated string was too long for the buffer.
22657         Test here whether the string length is > INT_MAX.
22658
22659 2006-08-28  Bruno Haible  <bruno@clisp.org>
22660
22661         * lib/inttypes_.h (SCNX*): Remove definitions.
22662         Reported by Eric Blake.
22663
22664 2006-08-28  Bruno Haible  <bruno@clisp.org>
22665
22666         * lib/c-strstr.h: New file, from GNU gettext.
22667         * lib/c-strstr.c: New file, from GNU gettext.
22668
22669 2006-08-28  Bruno Haible  <bruno@clisp.org>
22670
22671         * gnulib-tool: Reorder some statements.
22672
22673 2006-08-28  Bruno Haible  <bruno@clisp.org>
22674
22675         * gnulib-tool: New option --makefile-name.
22676         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22677         $makefile_name.
22678         (func_import): Write $makefile_name to the cache file, and read it from
22679         there unless explicitly specified. Use $makefile_name as file name
22680         instead of Makefile.am. Adjust the recommendations accordingly.
22681
22682 2006-08-28  Bruno Haible  <bruno@clisp.org>
22683
22684         * gnulib-tool (func_verify_module): Check against misapplying patch.
22685
22686 2006-08-28  Bruno Haible  <bruno@clisp.org>
22687
22688         * gnulib-tool (func_relativize, func_relconcat): New functions.
22689         Give an error if --local-dir is given with --update.
22690         Remove trailing slashes from $local_gnulib_dir.
22691         (func_import): Store the relativized $local_gnulib_dir in
22692         gnulib-cache.m4, and read it from there if not specified explicitly.
22693
22694 2006-08-28  Bruno Haible  <bruno@clisp.org>
22695
22696         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22697         is the current directory. Respect also $local_gnulib_dir.
22698
22699 2006-08-28  Bruno Haible  <bruno@clisp.org>
22700             Simon Josefsson  <jas@extundo.com>
22701
22702         BeOS portability.
22703         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22704
22705 2006-08-27  Jim Meyering  <jim@meyering.net>
22706
22707         * doc/visibility.texi: Remove duplicate word: "pointer".
22708
22709 2006-08-26  Bruno Haible  <bruno@clisp.org>
22710
22711         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22712         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22713         (Makefile.am): Create inttypes.h from inttypes_.h.
22714         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22715
22716         * modules/imaxabs: New file.
22717
22718         * modules/imaxdiv: New file.
22719
22720 2006-08-26  Bruno Haible  <bruno@clisp.org>
22721
22722         * m4/inttypes.m4: New file.
22723         * m4/_inttypes_h.m4: Remove file.
22724         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22725         PRI_MACROS_BROKEN.
22726         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22727
22728         * m4/imaxabs.m4: New file.
22729
22730         * m4/imaxdiv.m4: New file.
22731
22732 2006-08-26  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/inttypes_.h: New file.
22735         * lib/inttypes.h: Remove file.
22736         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22737
22738         * lib/imaxabs.c: New file.
22739
22740         * lib/imaxdiv.c: New file.
22741
22742 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22743
22744         New config-h module, so that "make" output needn't be cluttered
22745         by -DHAVE_CONFIG_H.
22746         * MODULES.html.sh (Support for building libraries and executables):
22747         Add config-h.
22748         * modules/config-h: New file.
22749         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22750         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22751         the config-h module is used.
22752
22753         New configmake module, so that "make" output needn't be cluttered
22754         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22755         * MODULES.html.sh (Support for building libraries and executables):
22756         Add configmake.
22757         * modules/configmake: New file.
22758
22759 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22760
22761         * m4/config-h.m4: New file.
22762
22763 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22764
22765         * config/srclist.txt: Add elisp-comp.
22766
22767 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22768
22769         * MODULES.html.sh (Support for building libraries and executables):
22770         Add elisp-comp.
22771         * build-aux/elisp-comp: New file.
22772         * modules/elisp-comp: New file.
22773
22774 2006-08-24  Bruno Haible  <bruno@clisp.org>
22775
22776         * gnulib-tool (func_create_testdir): Use non-default values of
22777         sourcebase and m4base.
22778
22779 2006-08-24  Bruno Haible  <bruno@clisp.org>
22780
22781         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22782         HTML structure.
22783
22784 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22785
22786         * modules/openat (Depends-on): Add lchown.
22787
22788 2006-08-23  Bruno Haible  <bruno@clisp.org>
22789
22790         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22791         of gl_LOCK_EARLY instead of gl_LOCK.
22792
22793 2006-08-23  Bruno Haible  <bruno@clisp.org>
22794
22795         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22796         on OSF/1 to no.
22797         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22798
22799 2006-08-23  Bruno Haible  <bruno@clisp.org>
22800
22801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22802         as unusable.
22803
22804         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22805         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22806         (gl_LOCK): New macro.
22807
22808 2006-08-22  Simon Josefsson  <jas@extundo.com>
22809
22810         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22811         to md5 module.
22812
22813 2006-08-22  Simon Josefsson  <jas@extundo.com>
22814
22815         * MODULES.html.sh: Add "Support for maintaining and release
22816         projects".
22817
22818         * build-aux/gnupload: New file, from coreutils.
22819
22820 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22821
22822         Avoid the need for AC_LIBSOURCES in m4 macros.
22823         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22824         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22825         * modules/check-version (EXTRA_DIST): Add check-version.h.
22826         * modules/crc (EXTRA_DIST): Add crc.h.
22827         * modules/des (EXTRA_DIST): Add des.h.
22828         * modules/gc (EXTRA_DIST): Add gc.h.
22829         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22830         * modules/getline (EXTRA_DIST): Add getline.h.
22831         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22832         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22833         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22834         * modules/md2 (EXTRA_DIST): Add md2.h.
22835         * modules/md4 (EXTRA_DIST): Add md4.h.
22836         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22837         * modules/read-file (EXTRA_DIST): Add read-file.h.
22838         * modules/readline (EXTRA_DIST): Add readline.h.
22839         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22840         rijndael-api-fst.h.
22841
22842 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22843
22844         * m4/rijndael.m4 (gl_ARCFOUR):
22845         * m4/arctwo.m4 (gl_ARCTWO):
22846         * m4/check-version.m4 (gl_CHECK_VERSION):
22847         * m4/crc.m4 (gl_CRC):
22848         * m4/des.m4 (gl_DES):
22849         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22850         * m4/gc.m4 (gl_GC):
22851         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22852         * m4/getline.m4 (gl_FUNC_GETLINE):
22853         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22854         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22855         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22856         * m4/md2.m4 (gl_MD2):
22857         * m4/md4.m4 (gl_MD4):
22858         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22859         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22860         * m4/readline.m4 (gl_FUNC_READLINE):
22861         * m4/rijndael.m4 (gl_RIJNDAEL):
22862         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22863         to get the necessary .h files and whatnot.
22864
22865 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22866
22867         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22868         gnulib rather than the other way around.
22869         * config/srclistvars.sh (COREUTILS): Remove.
22870
22871 2006-08-22  Jim Meyering  <jim@meyering.net>
22872
22873         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22874
22875         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22876
22877 2006-08-22  Eric Blake  <ebb9@byu.net>
22878
22879         * modules/regexprops-generic: New file.
22880         * MODULES.html.sh (Support for building documentation): List it.
22881
22882 2006-08-22  Eric Blake  <ebb9@byu.net>
22883
22884         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22885         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22886         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22887         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22888
22889 2006-08-22  Bruno Haible  <bruno@clisp.org>
22890
22891         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22892         and lib_LTLIBRARIES like the other lib_* variables.
22893
22894 2006-08-22  Bruno Haible  <bruno@clisp.org>
22895
22896         * build-aux/x-to-1.in: New file, from GNU gettext.
22897
22898 2006-08-22  Bruno Haible  <bruno@clisp.org>
22899
22900         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22901         <utmpx.h> exists.
22902
22903 2006-08-22  Bruno Haible  <bruno@clisp.org>
22904
22905         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22906         <utmpx.h> exists.
22907
22908 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22909
22910         BeOS portability.
22911         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22912         exist.
22913         Problem reported by Bruno Haible.
22914
22915 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22916
22917         Avoid the need for AC_LIBSOURCES in m4 macros.
22918         * modules/acl (EXTRA_DIST): Add acl.h.
22919         * modules/argmatch (Files): Add m4/argmatch.m4.
22920         (configure.ac): Add gl_ARGMATCH.
22921         (EXTRA_DIST): Renamed from lib_SOURCES, for
22922         consistency with the other modules.  Remove argmatch.c.
22923         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22924         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22925         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22926         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22927         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22928         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22929         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22930         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22931         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22932         * modules/closeout (EXTRA_DIST): Add closeout.h.
22933         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22934         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22935         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22936         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22937         dirname.h; remove basename.c and stripslash.c.
22938         * modules/exclude (EXTRA_DIST): Add exclude.h.
22939         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22940         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22941         * modules/file-type (EXTRA_DIST): Add file-type.h.
22942         * modules/filemode (EXTRA_DIST): Add filemode.h.
22943         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22944         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22945         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22946         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22947         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22948         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22949         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22950         * modules/getdate (EXTRA_DIST): Add getdate.c.
22951         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22952         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22953         * modules/getpass (EXTRA_DIST): Add getpass.h.
22954         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22955         * modules/group-member (EXTRA_DIST): Add group-member.h.
22956         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22957         * modules/hash (EXTRA_DIST): Add hash.h.
22958         * modules/human (EXTRA_DIST): Add human.h.
22959         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22960         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22961         * modules/lchown (EXTRA_DIST): Add lchown.h.
22962         * modules/long-options (EXTRA_DIST): Add long-options.h.
22963         * modules/lstat (EXTRA_DIST): Add lstat.h.
22964         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22965         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22966         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22967         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22968         * modules/memxor (EXTRA_DIST): Add memxor.h.
22969         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22970         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22971         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22972         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22973         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22974         * modules/physmem (EXTRA_DIST): Add physmem.h.
22975         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22976         * modules/posixver (EXTRA_DIST): Add posixver.h.
22977         * modules/quote (EXTRA_DIST): Add quote.h.
22978         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22979         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22980         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22981         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22982         regex_internal.h regexec.c.
22983         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22984         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22985         * modules/same (EXTRA_DIST): Add same.h.
22986         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22987         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22988         * modules/savedir (EXTRA_DIST): Add savedir.h.
22989         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22990         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22991         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22992         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22993         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22994         * modules/strdup (EXTRA_DIST): Add strdup.h.
22995         * modules/strftime (EXTRA_DIST): Add strftime.h.
22996         * modules/strndup (EXTRA_DIST): Add strndup.h.
22997         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22998         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22999         * modules/time_r (EXTRA_DIST): Add time_r.h.
23000         * modules/timespec (EXTRA_DIST): Add timespec.h.
23001         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23002         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23003         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23004         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23005         * modules/userspec (EXTRA_DIST): Add userspec.h.
23006         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23007         * modules/utimens (EXTRA_DIST): Add utimens.h.
23008         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23009         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23010         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23011         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23012         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23013         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23014         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23015         * modules/yesno (EXTRA_DIST): Add yesno.h.
23016
23017 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23018
23019         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23020
23021         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23022         * m4/dev-ino.m4, same-inode.m4: Remove.
23023
23024         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23025         * m4/acl.m4 (AC_FUNC_ACL):
23026         * m4/backupfile.m4 (gl_BACKUPFILE):
23027         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23028         * m4/canon-host.m4 (gl_CANON_HOST):
23029         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23031         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23032         * m4/cloexec.m4 (gl_CLOEXEC):
23033         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23034         * m4/closeout.m4 (gl_CLOSEOUT):
23035         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23036         * m4/dirname.m4 (gl_DIRNAME):
23037         * m4/exclude.m4 (gl_EXCLUDE):
23038         * m4/exitfail.m4 (gl_EXITFAIL):
23039         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23040         * m4/file-type.m4 (gl_FILE_TYPE):
23041         * m4/filemode.m4 (gl_FILEMODE):
23042         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23043         * m4/fpending.m4 (gl_FUNC_FPENDING):
23044         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23045         * m4/fts.m4 (gl_FUNC_FTS):
23046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23047         * m4/getdate.m4 (gl_GETDATE):
23048         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23049         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23050         * m4/getpass.m4 (gl_FUNC_GETPASS):
23051         * m4/gettime.m4 (gl_GETTIME):
23052         * m4/getugroups.m4 (gl_GETUGROUPS):
23053         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23054         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23055         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23056         * m4/hash.m4 (gl_HASH):
23057         * m4/idcache.m4 (gl_IDCACHE):
23058         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23059         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23060         * m4/long-options.m4 (gl_LONG_OPTIONS):
23061         * m4/lstat.m4 (gl_FUNC_LSTAT):
23062         * m4/md5.m4 (gl_MD5):
23063         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23064         * m4/memcoll.m4 (gl_MEMCOLL):
23065         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23066         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23067         * m4/memxor.m4 (gl_MEMXOR):
23068         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23069         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23070         * m4/modechange.m4 (gl_MODECHANGE):
23071         * m4/mountlist.m4 (gl_MOUNTLIST):
23072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23073         * m4/openat.m4 (gl_FUNC_OPENAT):
23074         * m4/pathmax.m4 (gl_PATHMAX):
23075         * m4/physmem.m4 (gl_PHYSMEM):
23076         * m4/posixtm.m4 (gl_POSIXTM):
23077         * m4/posixver.m4 (gl_POSIXVER):
23078         * m4/quote.m4 (gl_QUOTE):
23079         * m4/quotearg.m4 (gl_QUOTEARG):
23080         * m4/readtokens.m4 (gl_READTOKENS):
23081         * m4/readutmp.m4 (gl_READUTMP):
23082         * m4/regex.m4 (gl_REGEX):
23083         * m4/safe-read.m4 (gl_SAFE_READ):
23084         * m4/safe-write.m4 (gl_SAFE_WRITE):
23085         * m4/same.m4 (gl_SAME):
23086         * m4/save-cwd.m4 (gl_SAVE_CWD):
23087         * m4/savedir.m4 (gl_SAVEDIR):
23088         * m4/settime.m4 (gl_SETTIME):
23089         * m4/sha1.m4 (gl_SHA1):
23090         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23091         * m4/stat-macros.m4 (gl_STAT_MACROS):
23092         * m4/stat-time.m4 (gl_STAT_TIME):
23093         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23094         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23095         * m4/strdup.m4 (gl_FUNC_STRDUP):
23096         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23097         * m4/strndup.m4 (gl_FUNC_STRNDUP):
23098         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23099         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23100         * m4/time_r.m4 (gl_TIME_R):
23101         * m4/timespec.m4 (gl_TIMESPEC):
23102         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23103         * m4/unlinkdir.m4 (gl_UNLINKDIR):
23104         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23105         * m4/userspec.m4 (gl_USERSPEC):
23106         * m4/utimecmp.m4 (gl_UTIMECMP):
23107         * m4/utimens.m4 (gl_UTIMENS):
23108         * m4/xalloc.m4 (gl_XALLOC):
23109         * m4/xgetcwd.m4 (gl_XGETCWD):
23110         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23111         * m4/xreadlink.m4 (gl_XREADLINK):
23112         * m4/xstrtod.m4 (gl_XSTRTOD):
23113         * m4/yesno.m4 (gl_YESNO):
23114         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23115         to get the necessary .h files and whatnot.
23116
23117 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
23118             Bruno Haible  <bruno@clisp.org>
23119
23120         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23121         /bin/sh understanding of '!' conditional negation.
23122
23123 2006-08-21  Jim Meyering  <jim@meyering.net>
23124
23125         * modules/openat (Depends-on): Really alphabetize.
23126
23127         * modules/acl (Depends-on): Add error and quote.
23128
23129         * check-module (find_included_lib_files): Add at-func.c to the
23130         ok-to-include-more-than-once white list.
23131
23132         * modules/openat (Depends-on): Add lstat.  Alphabetize.
23133
23134 2006-08-21  Bruno Haible  <bruno@clisp.org>
23135
23136         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23137         Emit a pkgdata_DATA variable only if some snippets add contents to it.
23138         Reported by Martin Lambers <marlam@marlam.de>.
23139
23140 2006-08-21  Bruno Haible  <bruno@clisp.org>
23141
23142         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23143         specify an installation location, don't emit a noinst_LIBRARIES or
23144         noinst_LTLIBRARIES assignment.
23145
23146 2006-08-21  Bruno Haible  <bruno@clisp.org>
23147
23148         BeOS portability.
23149         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23150         BeOS has mbrtowc() but no <wctype.h>.
23151
23152 2006-08-21  Bruno Haible  <bruno@clisp.org>
23153
23154         BeOS portability.
23155         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23156         exist.
23157
23158 2006-08-21  Bruno Haible  <bruno@clisp.org>
23159
23160         BeOS portability.
23161         * lib/mbchar.h: Include <wctype.h> only if it exists.
23162
23163 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23164
23165         Remove files that are no longer needed by their respective modules.
23166         * m4/obstack.m4: Remove.
23167         * m4/strerror_r.m4: Remove.
23168         * m4/uint32_t.m4: Remove.
23169         * m4/uintptr_t.m4: Remove.
23170         * m4/ullong_max.m4: Remove.
23171         * m4/xstrtoimax.m4: Remove.
23172         * m4/xstrtoumax.m4: Remove.
23173
23174         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23175         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23176         dependencies now capture this.
23177
23178         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23179         Do not use AC_LIBSOURCES, since gnulib modules now do this.
23180         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23181         * m4/human.m4 (gl_HUMAN): Likewise.
23182         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23183         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23184
23185         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23186
23187         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23188         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23189         stdint.
23190         * m4/human.m4 (gl_HUMAN): Likewise.
23191         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23192         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23193         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23194         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23195         * m4/xstrtol (gl_XSTRTOL): Likewise.
23196
23197         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23198         AC_TYPE_LONG_LONG_INT.
23199         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23200         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23201         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23202         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23203
23204         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23205         on stdbool.
23206
23207         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23208         (gl_PREREQ_XSTRTOUL): Remove.
23209
23210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23211
23212         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23213         mode.
23214
23215 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23216
23217         Add and change modules to make it easier for coreutils to use
23218         gnulib-tool.
23219         * modules/backupfile (Files): Remove m4/d-ino.m4.
23220         (Depends-on): Add d-ino.
23221         * modules/cycle-check (Depends-on): Add stdint.
23222         (lib_SOURCES): Add cycle-check.h.
23223         * modules/d-ino: New module.
23224         * modules/d-type: New module.
23225         * modules/error (Files): Remove m4/strerror_r.m4.
23226         * modules/filemode (Files): Add m4/st_dm_mode.m4.
23227         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23228         m4/inttypes_h.m4, m4/uintmax_t.m4.
23229         (Depends-on): Add stdint.
23230         (lib_SOURCES): Add fsusage.h.
23231         * modules/getcwd (Files): Remove d-ino.m4.
23232         (Depends-on): Add d-ino.
23233         * modules/getndelim2 (Depends-on): Add stdint.
23234         * modules/glob (Files): Remove m4/d-type.m4.
23235         (Depends-on): Add d-type.
23236         * modules/host-os: New module.
23237         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
23238         m4/inttypes_h.m4, m4/uintmax_t.m4.
23239         * Depends-on: Add stdint.
23240         (lib_SOURCES): Add human.h.
23241         * modules/inttostr (Files): Remove m4/intmax_t.m4,
23242         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23243         m4/uintmax_t.m4, m4/ulonglong.m4.
23244         (Depends-on): Add stdint.
23245         (EXTRA_DIST): Add inttostr.h.
23246         * modules/lchmod: New module.
23247         * modules/link-follow: New module.
23248         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23249         (Depends-on): Add lchmod.
23250         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23251         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23252         (Depends-on): Add stdint.
23253         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23254         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23255         (Depends-on): Add stdint.
23256         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23257         * modules/perl: New module.
23258         * modules/regex (Depends-on): Add stdint.
23259         * modules/rmdir-errno: New module.
23260         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23261         m4/intmax_t.m4.
23262         (Depends-on): Add stdint.
23263         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23264         m4/uintmax_t.m4.
23265         (Depends-on): Add stdint.
23266         * modules/unlink-busy: New module.
23267         * modules/utimecmp (Depends-on): Add stdint.
23268         * modules/uptime: New module.
23269         * modules/winsz-ioctl: New module.
23270         * modules/winsz-termios: New module.
23271         * modules/xnanosleep (Depends-on): Add nanosleep.
23272         * modules/ullong_max: Remove.
23273         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23274         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23275         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23276         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23277         (Depends-on): Add inttypes.
23278         (lib_SOURCES): Add xstrtol.h.
23279         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23280         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23281         * MODULES.html.sh: Move 'assert' into the assert section.
23282         Move 'dummy' into the linking section.
23283         Remove ullong_max.
23284         Add section for compatibility checks for POSIX:2001 functions,
23285         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23286         winsz-ioctl, and winsz-termios into it.
23287         Add lchmod.
23288         Add top-level Misc section and put host-os, perl, and uptime
23289         into it.
23290
23291 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23294         now assume the stdint module.  Do not include inttypes.h.
23295         * lib/fsusage.h: Likewise.
23296         * lib/getndelim2.c: Likewise.
23297         * lib/human.h: Likewise.
23298         * lib/inttostr.h: Likewise.
23299         * lib/obstack.c: Likewise.
23300         * lib/regex_internal.h: Likewise.
23301         * lib/tempname.c: Likewise.
23302         * lib/utimecmp.c: Likewise.
23303         * lib/xstrtol.h: Likewise.
23304
23305         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23306
23307         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23308         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23309         * lib/xtime.h: Likewise.
23310
23311 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23312
23313         * modules/openat (Files): Add lib/fchmodat.c.
23314         Fixes problem reported by Jay Youngman.
23315
23316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23317
23318         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
23319         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
23320
23321 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23322             Bruno Haible  <bruno@clisp.org>
23323
23324         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23325         and is a script that invokes bison. Tighten the code. Add comments.
23326
23327 2006-08-18  Jim Meyering  <jim@meyering.net>
23328
23329         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23330         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23331         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
23332         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
23333
23334 2006-08-18  Bruno Haible  <bruno@clisp.org>
23335
23336         * modules/bison-i18n: New file.
23337         * MODULES.html.sh (Internationalization functions): Add it.
23338
23339 2006-08-18  Bruno Haible  <bruno@clisp.org>
23340
23341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
23342         sys/statvfs.h. When getmntinfo was found, check its declaration and
23343         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
23344
23345 2006-08-18  Bruno Haible  <bruno@clisp.org>
23346
23347         * m4/bison-i18n.m4: New file, from bison.
23348
23349 2006-08-18  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
23352         (ME_DUMMY): Treat "kernfs" as a dummy.
23353         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
23354
23355 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23356
23357         Update from coreutils.
23358
23359         2006-08-15  Jim Meyering  <jim@meyering.net>
23360
23361         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
23362
23363         2006-01-17  Jim Meyering  <jim@meyering.net>
23364
23365         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
23366
23367         2006-01-11  Jim Meyering  <jim@meyering.net>
23368
23369         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23370         Check for the lchmod function.
23371
23372 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23373
23374         Update from coreutils.
23375
23376         * lib/__fpending.h: Add copyright notice.
23377         * lib/fprintftime.h: Likewise.
23378         * lib/savedir.c: Use (C) in copyright notice.
23379         * lib/savedir.h: Likewise.
23380
23381         2006-08-15  Jim Meyering  <jim@meyering.net>
23382
23383         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23384         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23385         in support of the EXPECTED_ERRNO macro.
23386         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23387         definitions.  Instead, define the appropriate symbols and include
23388         "at-func.c".
23389         * lib/mkdirat.c (mkdirat): Likewise.
23390         * lib/fchmodat.c (fchmodat): Likewise.
23391         (ENOSYS): Remove definition.
23392         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23393         it.  Don't include "unistd--.h" -- it wasn't ever used.
23394
23395         2006-01-17  Jim Meyering  <jim@meyering.net>
23396
23397         Rewrite fts.c not to change the current working directory,
23398         by using openat, fstatat, fdopendir, etc..
23399
23400         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23401         (HAVE_OPENAT_SUPPORT): Define.
23402         [_LIBC] (fchdir): Don't undef or define; no longer used.
23403         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23404         Now, this `function' always succeeds, and consumes its file descriptor
23405         parameter -- so callers must not close such FDs.  Update callers.
23406         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23407         (diropen): Add parameter, SP.  Adjust all callers.
23408         Implement using diropen_fd, rather than open.
23409         (fts_open): Initialize new member, fts_cwd_fd.
23410         Remove fts_rft-setting code.
23411         (fts_close): Close fts_cwd_fd, if necessary.
23412         (__opendir2): Define in terms of opendir or opendirat,
23413         depending on whether the FST_NOCHDIR flag is set.
23414         (fts_build): Since fts_safe_changedir consumes its FD, and since
23415         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23416         and close the dup'd file descriptor upon failure.
23417         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23418         (fts_safe_changedir): Tweak semantics to reflect that this function
23419         now calls cwd_advance_fd and hence consumes its FD argument.
23420         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
23421         [struct FTS] (fts_rft): Remove now-unused member.
23422         [struct FTS] (fts_cycle.state): Improve comment.
23423
23424         * lib/openat.c (openat_needs_fchdir): New function.
23425         * lib/openat.h (openat_needs_fchdir): Declare it.
23426
23427 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
23430         Problem and fix reported by Pádraig Brady in
23431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
23432
23433 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23434
23435         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
23436
23437 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23438
23439         * lib/memcoll.c (memcoll): Optimize for the common case where the
23440         arguments are bytewise equal.
23441
23442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23443
23444         * doc/regexprops-generic.texi: Add a copyright notice.
23445
23446 2006-08-15  Bruno Haible  <bruno@clisp.org>
23447
23448         * modules/tmpdir (License): Change to LGPL.
23449
23450 2006-08-15  Bruno Haible  <bruno@clisp.org>
23451
23452         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23453         module.
23454
23455 2006-08-14  Simon Josefsson  <jas@extundo.com>
23456
23457         * config/srclist.txt: Add gnupload.
23458
23459 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23460
23461         Change copyright notice from LGPL 2 to GPL 2, since that's the
23462         standard form used in the gnulib repository.
23463         * tests/test-lock.c: Likewise.
23464         * tests/test-stdint.c: Likewise.
23465         * tests/test-tls.c: Likewise.
23466
23467         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23468         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23469         Add copyright notice.
23470
23471         * check-module: Add copyright notice.  Output a copyright
23472         notice if "--version" is specified.
23473         * modules/COPYING: New file.
23474         * tests/test-getaddrinfo.c: Add copyright notice.
23475         * tests/test-verify.c: Likewise.
23476
23477 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23478
23479         Change copyright notice from LGPL 2 to GPL 2, since that's the
23480         standard form used in the gnulib repository.
23481         * lib/lock.c: LGPL -> GPL.
23482         * lib/lock.h: Likewise.
23483         * lib/strnlen1.c: Likewise.
23484         * lib/strnlen1.h: Likewise.
23485         * lib/tls.c: Likewise.
23486         * lib/tls.h: Likewise.
23487         * lib/tmpdir.c: Likewise.
23488
23489         * lib/TODO: Remove; this belongs only in coreutils.
23490
23491 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23492
23493         Add copyright notices to long-enough files that lack them, since
23494         otherwise the files aren't clearly free.  Use the same notice that
23495         getdate.texi already uses.
23496         * doc/alloca-opt.texi: Add copyright notice.
23497         * doc/alloca.texi: Likewise.
23498         * doc/ctime.texi: Likewise.
23499         * doc/functions.texi: Likewise.
23500         * doc/gcd.texi: Likewise.
23501         * doc/gnulib-tool.texi: Likewise.
23502         * doc/inet_ntoa.texi: Likewise.
23503         * doc/visibility.texi: Likewise.
23504
23505         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23506         * doc/quote.texi: Add copyright notice.
23507
23508         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23509         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23510         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23511         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23512         is now obsolete, and give a pointer to the Sun list.
23513         Add copyright notice.
23514
23515 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         * config/srclistvars.sh: Add copyright notice.
23518
23519 2006-08-14  Eric Blake  <ebb9@byu.net>
23520
23521         Import the following change from libc:
23522
23523         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23524
23525         Upstream bug 2997.
23526         * lib/misc/error.c: Add space between program name and message if file
23527         name is missing.
23528
23529 2006-08-12  Karl Berry  <karl@gnu.org>
23530
23531         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23532         remove, these originate in gnulib now.
23533
23534 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23535
23536         * doc/Makefile (standards.info standards.html standards.dvi):
23537         Also depend on make-stds.texi.
23538
23539 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23540
23541         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23542         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23543
23544         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23545         in wchar_t.  Problem reported by Eric Blake.
23546
23547         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23548         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23549         Also, help the compiler to keep LEN in a register.
23550
23551 2006-08-11  Eric Blake  <ebb9@byu.net>
23552
23553         * users.txt: Sort.  Add tar.
23554
23555 2006-08-11  Bruno Haible  <bruno@clisp.org>
23556
23557         * users.txt: New file.
23558
23559 2006-08-11  Bruno Haible  <bruno@clisp.org>
23560
23561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23562         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23563
23564 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23565
23566         * modules/snprintf (Depends-on): Remove minmax.
23567         (Maintainer): Add self and Bruno.
23568
23569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23570
23571         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23572         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23573         (EOVERFLOW): Define if the system does not.
23574         Do not include "minmax.h"; it wasn't used.
23575         (snprintf): Don't assume size_t promotes to an unsigned type.
23576         Fix bug when generated string was too long for the buffer: the
23577         buffer's contents are supposed to be the initial prefix of the
23578         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23579         exceeds INT_MAX; do the check ourselves.
23580
23581         Import the following changes from libc:
23582
23583         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23584
23585         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23586         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23587         set wc to the byte which couldn't be converted.
23588         (re_string_reconstruct): Don't clear valid_raw_len before calling
23589         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23590         tip_context using re_string_context_at.
23591
23592         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23593
23594         * lib/posix/regex.h: g++ still cannot handled [restrict].
23595
23596         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23597
23598         * lib/posix/regex.h: Remove special handling for VMS.
23599
23600 2006-08-10  Jim Meyering  <jim@meyering.net>
23601
23602         * modules/same-inode: New module.
23603         * modules/dev-ino: New module.
23604         * modules/cycle-check: Depend on these modules, rather than simply
23605         including their .h files.
23606         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23607         required via m4/cycle-check.m4.
23608         * modules/same: Depend on new same-inode module, rather than
23609         including same-inode.h.
23610         * modules/chdir-safer: New file.
23611
23612         * modules/chown (Depends-on): Add stat-macros.
23613
23614 2006-08-10  Jim Meyering  <jim@meyering.net>
23615
23616         * m4/cycle-check.m4: New file.
23617         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23618         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23619
23620 2006-08-10  Eric Blake  <ebb9@byu.net>
23621
23622         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23623         in from original proposal.
23624
23625 2006-08-10  Eric Blake  <ebb9@byu.net>
23626         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23627
23628         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23629         namespace.
23630
23631 2006-08-10  Bruno Haible  <bruno@clisp.org>
23632
23633         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23634         as well.
23635
23636 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23637
23638         Sync from coreutils.
23639
23640         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23641
23642         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23643         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23644
23645 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23646
23647         * modules/restrict: Remove; no longer needed now that we assume
23648         Autoconf 2.59 or later.
23649         * MODULES.html.sh: Remove 'restrict'.
23650         * modules/argp (Depends-on): Remove 'restrict'.
23651         * modules/base64 (Depends-on): Likewise.
23652         * modules/gc (Depends-on): Likewise.
23653         * modules/getaddrinfo (Depends-on): Likewise.
23654         * modules/glob (Depends-on): Likewise.
23655         * modules/inet_ntop (Depends-on): Likewise.
23656         * modules/inet_pton (Depends-on): Likewise.
23657         * modules/memxor (Depends-on): Likewise.
23658         * modules/regex (Depends-on): Likewise.
23659         * modules/strtok_r (Depends-on): Likewise.
23660         * modules/time_r (Depends-on): Likewise.
23661
23662 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23665         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23666         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23667         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23668         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23669         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23670         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23671         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23672
23673         Merge from coreutils.
23674         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23675         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23676         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23677         * m4/time_r.m4 (gl_TIME_R): Likewise.
23678
23679 2006-08-09  Karl Berry  <karl@gnu.org>
23680
23681         * config/srclist.txt: no more gettext-tools, per Bruno.
23682
23683 2006-08-08  Eric Blake  <ebb9@byu.net>
23684
23685         * modules/verror: New module.
23686         * MODULES.html.sh: Document it.
23687
23688 2006-08-08  Eric Blake  <ebb9@byu.net>
23689
23690         * lib/verror.h, lib/verror.c: New files.
23691
23692 2006-08-08  Eric Blake  <ebb9@byu.net>
23693
23694         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23695         verror_at_line output complies with GNU Coding Standards even when
23696         file is NULL.
23697
23698 2006-08-07  Bruno Haible  <bruno@clisp.org>
23699
23700         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23701         versions of AIX.
23702         Reported by Ralf Wildenhues.
23703
23704 2006-08-07  Bruno Haible  <bruno@clisp.org>
23705
23706         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23707         in an AC_DEFUN. Needed so that the autoconf snippets can use
23708         AC_REQUIRE.
23709
23710 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23711
23712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23713         Initialize pkgdata_DATA.
23714         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23715         overriding it.
23716
23717 2006-08-06  Eric Blake  <ebb9@byu.net>
23718
23719         * lib/error.h: Fold in some upstream changes from glibc.
23720         * lib/error.c: Likewise.
23721
23722 2006-08-04  Bruno Haible  <bruno@clisp.org>
23723
23724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23725         Make the mostlyclean-local rule depend on mostlyclean-generic.
23726         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23727
23728 2006-07-31  Bruno Haible  <bruno@clisp.org>
23729
23730         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23731         <stdlib.h>, <string.h>.
23732
23733 2006-07-30  Bruno Haible  <bruno@clisp.org>
23734
23735         * modules/readlink (License): Change to LGPL.
23736
23737 2006-07-30  Bruno Haible  <bruno@clisp.org>
23738
23739         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23740         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23741         set PKGDATADIR to point to it.
23742
23743 2006-07-30  Bruno Haible  <bruno@clisp.org>
23744
23745         * modules/csharpexec (configure.ac): Comment out macro invocation.
23746         * modules/javaexec (configure.ac): Likewise.
23747         * modules/javacomp-script (configure.ac): Likewise.
23748
23749         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23750
23751 2006-07-30  Bruno Haible  <bruno@clisp.org>
23752
23753         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23754         linked-list.
23755
23756 2006-07-30  Bruno Haible  <bruno@clisp.org>
23757
23758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23759
23760 2006-07-30  Bruno Haible  <bruno@clisp.org>
23761
23762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23763         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23764         get removed.
23765
23766 2006-07-29  Bruno Haible  <bruno@clisp.org>
23767
23768         Make it possible for gnulib-tool to work with locally modified or
23769         augmented gnulib repositories.
23770         * gnulib-tool (func_usage): Document --local-dir option.
23771         (local_gnulib_dir): New variable.
23772         Handle --local-dir option.
23773         (func_lookup_file): New function.
23774         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23775         (func_get_description, func_get_filelist, func_get_description,
23776         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23777         func_get_automake_snippet, func_get_include_directive,
23778         func_get_license, func_get_maintainer): Use func_lookup_file.
23779         (func_import, func_create_testdir): Use func_lookup_file.
23780
23781 2006-07-29  Bruno Haible  <bruno@clisp.org>
23782
23783         * modules/setenv (Depends-on): Add unistd.
23784
23785 2006-07-29  Bruno Haible  <bruno@clisp.org>
23786
23787         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23788
23789 2006-07-29  Bruno Haible  <bruno@clisp.org>
23790
23791         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23792
23793 2006-07-29  Bruno Haible  <bruno@clisp.org>
23794
23795         * gnulib-tool (import, update): If there is no Makefile.am, look at
23796         aclocal.m4, instead of bailing out.
23797
23798 2006-07-29  Bruno Haible  <bruno@clisp.org>
23799
23800         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23801         Categorize the options by when they are useful.
23802
23803 2006-07-29  Bruno Haible  <bruno@clisp.org>
23804
23805         * gnulib-tool (func_usage): Document option --no-libtool.
23806         Handle option --no-libtool.
23807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23808         for changed semantics of $libtool variable.
23809         (func_import): Likewise. If libtool is not used, show this through
23810         an option --no-libtool.
23811         (func_create_testdir): Update.
23812
23813 2006-07-29  Bruno Haible  <bruno@clisp.org>
23814
23815         * gnulib-tool (func_import): Extend error message about missing
23816         --doc-base.
23817
23818 2006-07-29  Bruno Haible  <bruno@clisp.org>
23819
23820         * gnulib-tool (func_import): Don't create the $docbase directory if
23821         there is no file to store there.
23822
23823 2006-07-29  Bruno Haible  <bruno@clisp.org>
23824
23825         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23826         relevant, look for configure.ac there, not in the current directory.
23827         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23828
23829 2006-07-29  Bruno Haible  <bruno@clisp.org>
23830
23831         * gnulib-tool (SORT): New variable.
23832         (func_usage): Undocument --assume-autoconf option.
23833         Remove --assume-autoconf option handling.
23834         (autoconf_minversion): Determine from the contents of configure.ac.
23835         (func_import): Remove autoconf_minversion handling.
23836         Suggested by Eric Blake.
23837
23838 2006-07-29  Bruno Haible  <bruno@clisp.org>
23839
23840         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23841
23842 2006-07-29  Bruno Haible  <bruno@clisp.org>
23843
23844         * config/srclist.txt (*setenv.[ch]): Remove rules.
23845
23846 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23847
23848         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23849
23850 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23851
23852         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23853         arpa/inet.h.
23854
23855 2006-07-28  Simon Josefsson  <jas@extundo.com>
23856
23857         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23858         * modules/inet_pton (Depends-on): Likewise.
23859
23860 2006-07-28  Simon Josefsson  <jas@extundo.com>
23861
23862         * m4/netinet_in_h.m4: New file.
23863
23864 2006-07-28  Simon Josefsson  <jas@extundo.com>
23865
23866         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23867         #include's.
23868
23869 2006-07-28  Simon Josefsson  <jas@extundo.com>
23870
23871         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23872         #include's.
23873
23874 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23875
23876         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23877         setgid on directories only if they set these bits.
23878         * lib/modechange.h: Remove obsolete comment about masks.
23879
23880 2006-07-28  Eric Blake  <ebb9@byu.net>
23881
23882         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23883         macro expansion.
23884
23885 2006-07-28  Bruno Haible  <bruno@clisp.org>
23886
23887         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23888
23889 2006-07-28  Bruno Haible  <bruno@clisp.org>
23890
23891         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23892
23893 2006-07-28  Bruno Haible  <bruno@clisp.org>
23894
23895         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23896         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23897         Define fallbacks.
23898         Avoids link error on FreeBSD 4.x.
23899         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23900
23901         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23902         encoding.
23903         * lib/mbswidth.c (iswcntrl): Likewise.
23904
23905 2006-07-27  Bruno Haible  <bruno@clisp.org>
23906
23907         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23908         test.
23909
23910 2006-07-27  Bruno Haible  <bruno@clisp.org>
23911
23912         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23913         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23914         defined.
23915
23916 2006-07-26  Eric Blake  <ebb9@byu.net>
23917
23918         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23919
23920 2006-07-26  Eric Blake  <ebb9@byu.net>
23921
23922         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23923         like mingw that lack mkstemp.
23924         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23925         avoid compilation warning on mingw.
23926
23927 2006-07-26  Bruno Haible  <bruno@clisp.org>
23928
23929         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23930         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23931         INT_FAST*_MIN, INTPTR_MIN.
23932
23933 2006-07-25  Bruno Haible  <bruno@clisp.org>
23934
23935         * modules/version-etc (Depends-on): Add stdarg.
23936
23937 2006-07-25  Bruno Haible  <bruno@clisp.org>
23938
23939         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23940         complex commands.
23941
23942 2006-07-25  Bruno Haible  <bruno@clisp.org>
23943
23944         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23945         defined in <stdarg.h> or config.h.
23946
23947 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23948
23949         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23950         (gl_STDIO_SAFER): Remove.
23951
23952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         * MODULES.html.sh (File stream based Input/Output):
23955         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23956         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23957         * modules/fopen-safer, modules/tmpfile-safer: New files.
23958         * modules/stdio-safer: Remove.
23959
23960 2006-07-24  Bruno Haible  <bruno@clisp.org>
23961
23962         * modules/tmpdir: New file.
23963         * MODULES.html.sh (File system functions): Add it.
23964
23965 2006-07-24  Bruno Haible  <bruno@clisp.org>
23966
23967         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23968         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23969
23970 2006-07-24  Bruno Haible  <bruno@clisp.org>
23971
23972         * modules/clean-temp: New file.
23973
23974 2006-07-24  Bruno Haible  <bruno@clisp.org>
23975
23976         * m4/tmpdir.m4: New file, from GNU gettext.
23977
23978 2006-07-24  Bruno Haible  <bruno@clisp.org>
23979
23980         * lib/tmpdir.h: New file, from GNU gettext.
23981         * lib/tmpdir.c: New file, from GNU gettext.
23982
23983 2006-07-24  Bruno Haible  <bruno@clisp.org>
23984
23985         * lib/clean-temp.h: New file, from GNU gettext.
23986         * lib/clean-temp.c: New file, from GNU gettext.
23987
23988 2006-07-23  Eric Blake  <ebb9@byu.net>
23989
23990         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23991         (Depends-on): Add binary-io.
23992
23993 2006-07-23  Eric Blake  <ebb9@byu.net>
23994
23995         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23996
23997 2006-07-23  Eric Blake  <ebb9@byu.net>
23998
23999         * lib/tmpfile-safer.c: New file.
24000         * lib/stdio-safer.h (fopen_safer): Add prototype.
24001         * lib/stdio--.h (tmpfile): Make safer.
24002
24003 2006-07-23  Bruno Haible  <bruno@clisp.org>
24004
24005         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24006         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24007         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24008         gl_linked_remove_at): Use it.
24009
24010 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24011         and Simon Josefsson <jas@extundo.com>
24012
24013         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24014
24015         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24016
24017 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         * modules/close-stream: New file.
24020         * modules/closeout (Description): Make it clear that it exits
24021         with a diagnostic on error.
24022         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24023         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24024
24025 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24026
24027         * m4/close-stream.m4: New file.
24028
24029 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24030
24031         * lib/close-stream.c, lib/close-stream.h: New files.
24032
24033 2006-07-22  Bruno Haible  <bruno@clisp.org>
24034
24035         Merge from GNU gettext 0.15.
24036
24037         2006-05-01  Bruno Haible  <bruno@clisp.org>
24038
24039                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24040
24041         2006-07-22  Bruno Haible  <bruno@clisp.org>
24042
24043                 * modules/javaversion: New file.
24044                 * MODULES.html.sh (Java): Add javaversion.
24045
24046         2006-03-12  Bruno Haible  <bruno@clisp.org>
24047
24048                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24049
24050         2005-12-04  Bruno Haible  <bruno@clisp.org>
24051
24052                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24053                 (untested).
24054
24055         2006-06-21  Bruno Haible  <bruno@clisp.org>
24056
24057                 Avoid warnings from recent versions of mcs.
24058                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24059                 -o, -L, -r any more. Use options documented since mcs-1.0
24060                 instead. Similarly for -g.
24061
24062         2005-12-04  Bruno Haible  <bruno@clisp.org>
24063
24064                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24065                 .resources, not .resource.
24066
24067         2005-07-09  Bruno Haible  <bruno@clisp.org>
24068
24069                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24070                 add a .dll suffix.
24071                 Reported by Mark Junker <mjscod@gmx.de>.
24072
24073         2006-07-22  Bruno Haible  <bruno@clisp.org>
24074
24075                 * modules/gettext: Upgrade to gettext-0.15.
24076                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24077                 m4/visibility.m4.
24078                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24079
24080 2006-07-22  Bruno Haible  <bruno@clisp.org>
24081
24082         Merge from GNU gettext 0.15.
24083
24084         2006-03-25  Bruno Haible  <bruno@clisp.org>
24085
24086                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24087
24088         2006-07-21  Bruno Haible  <bruno@clisp.org>
24089
24090                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24091                 "1.1".
24092
24093         2006-05-09  Bruno Haible  <bruno@clisp.org>
24094
24095                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24096                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24097                 for the conftestver execution.
24098
24099         2006-05-01  Bruno Haible  <bruno@clisp.org>
24100
24101                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24102                 optional target-version argument. Verify that the compiler
24103                 groks source of the specified source-version, or add -source
24104                 option as necessary. Verify that the compiler produces
24105                 bytecode in the specified target-version, or add -target and
24106                 -source options as necessary. Make the result of the test
24107                 available as variable CONF_JAVAC. Also log error output in
24108                 config.log.
24109
24110         2006-03-11  Bruno Haible  <bruno@clisp.org>
24111
24112                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24113
24114         2006-05-09  Bruno Haible  <bruno@clisp.org>
24115
24116                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24117                 CLASSPATH_SEPARATOR to a semicolon.
24118
24119         2006-03-12  Bruno Haible  <bruno@clisp.org>
24120
24121                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24122                 available as variable CONF_JAVA, for subsequent autoconf
24123                 tests. Also log error output in config.log.
24124
24125         2006-07-19  Bruno Haible  <bruno@clisp.org>
24126
24127                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24128                 that getline works on glibc2 systems. Needed to avoid trouble
24129                 in relocatable.c.
24130                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24131
24132         2005-12-04  Bruno Haible  <bruno@clisp.org>
24133
24134                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24135                 launcher (untested).
24136
24137         2005-12-04  Bruno Haible  <bruno@clisp.org>
24138
24139                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24140
24141         2006-07-22  Bruno Haible  <bruno@clisp.org>
24142
24143                 * gettext.m4: Update from GNU gettext-0.15.
24144                 * nls.m4: Likewise.
24145                 * po.m4: Likewise.
24146                 * inttypes-pri.m4: Likewise.
24147                 * inttypes-h.m4: Renamed from inttypes.m4.
24148                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24149
24150 2006-07-22  Bruno Haible  <bruno@clisp.org>
24151
24152         Merge from GNU gettext 0.15.
24153
24154         2005-07-05  Bruno Haible  <bruno@clisp.org>
24155
24156                 * printf-args.c (printf_fetchargs): Work around broken
24157                 definition of wint_t on mingw.
24158
24159         2005-02-12  Bruno Haible  <bruno@clisp.org>
24160
24161                 * xallocsa.h: Add extern "C" for C++.
24162
24163         2006-05-17  Bruno Haible  <bruno@clisp.org>
24164
24165                 Cygwin portability.
24166                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24167
24168         2006-04-30  Bruno Haible  <bruno@clisp.org>
24169
24170                 * progreloc.c: Include <mach-o/dyld.h> if available.
24171                 (find_executable): Use _NSGetExecutablePath when possible.
24172
24173         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24174
24175                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24176                 function.
24177
24178         2005-12-29  Bruno Haible  <bruno@clisp.org>
24179
24180                 * progreloc.c (set_program_name_and_installdir): Fix
24181                 compilation error.
24182
24183         2005-12-04  Bruno Haible  <bruno@clisp.org>
24184
24185                 Cygwin portability.
24186                 * progreloc.c: Include <windows.h> also on Cygwin.
24187                 (find_executable): Add support for Cygwin.
24188                 (set_program_name_and_installdir): Handle also platforms with
24189                 nonempty EXEEXT.
24190
24191         2006-07-11  Bruno Haible  <bruno@clisp.org>
24192
24193                 * javacomp.c: Fix a comment.
24194                 Reported by Jim Meyering.
24195
24196         2006-04-30  Bruno Haible  <bruno@clisp.org>
24197
24198                 * javacomp.h (compile_java_class): Add source_version,
24199                 target_version arguments.
24200                 * javacomp.c: Rewritten to choose only a compiler that
24201                 respects the specified source_version and target_version.
24202
24203         2006-06-27  Bruno Haible  <bruno@clisp.org>
24204
24205                 Assume correct S_ISDIR macro.
24206                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24207
24208         2006-07-22  Bruno Haible  <bruno@clisp.org>
24209
24210                 * javaversion.h: New file, from GNU gettext.
24211                 * javaversion.c: New file, from GNU gettext.
24212                 * javaversion.java: New file, from GNU gettext.
24213                 * javaversion.class: New file, from GNU gettext.
24214
24215         2006-05-17  Bruno Haible  <bruno@clisp.org>
24216
24217                 Cygwin portability.
24218                 * javaexec.c (execute_java_class): Test for jview program
24219                 also on Cygwin.
24220
24221         2006-04-09  Bruno Haible  <bruno@clisp.org>
24222
24223                 * fatal-signal.c: Don't include string.h.
24224                 (at_fatal_signal): Use a copying loop instead of memcpy.
24225
24226         2005-12-04  Bruno Haible  <bruno@clisp.org>
24227
24228                 * csharpexec.c: Add support for 'clix' launcher (untested).
24229                 (execute_csharp_using_sscli): New function.
24230                 (execute_csharp_program): Call it.
24231
24232         2006-06-21  Bruno Haible  <bruno@clisp.org>
24233
24234                 Avoid warnings from recent versions of mcs.
24235                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24236                 -o, -L, -r any more. Use options documented since mcs-1.0
24237                 instead. Similarly for -g.
24238
24239         2005-07-09  Bruno Haible  <bruno@clisp.org>
24240
24241                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24242                 add a .dll suffix.
24243                 Reported by Mark Junker <mjscod@gmx.de>.
24244
24245         2006-06-17  Bruno Haible  <bruno@clisp.org>
24246
24247                 * config.charset: Update for NetBSD 3.0.
24248
24249         2006-05-17  Bruno Haible  <bruno@clisp.org>
24250
24251                 Cygwin portability.
24252                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24253
24254         2006-05-16  Bruno Haible  <bruno@clisp.org>
24255
24256                 * localcharset.c [CYGWIN]: Include <windows.h>.
24257                 (get_charset_aliases): For Cygwin, return the same CPxxx
24258                 aliases list as under WIN32.
24259                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24260                 the environment variables. Fall back to GetACP().
24261
24262         2006-04-05  Bruno Haible  <bruno@clisp.org>
24263
24264                 * config.charset: Update Juan Manuel Guerrero's address.
24265
24266         2005-02-12  Bruno Haible  <bruno@clisp.org>
24267
24268                 * allocsa.h: Add extern "C" for C++.
24269
24270         2005-02-10  Bruno Haible  <bruno@clisp.org>
24271
24272                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24273                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24274
24275         2006-07-22  Bruno Haible  <bruno@clisp.org>
24276
24277                 * gettext.h: Update to GNU gettext-0.15.
24278
24279 2006-07-22  Bruno Haible  <bruno@clisp.org>
24280
24281         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24282         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24283         lib-prefix.m4, longdouble.m4, ssize_t.m4.
24284
24285 2006-07-21  Eric Blake  <ebb9@byu.net>
24286
24287         * modules/stdlib-safer: New file.
24288         * MODULES.html.sh (File stream based Input/Output): Add
24289         stdlib-safer.
24290
24291 2006-07-21  Eric Blake  <ebb9@byu.net>
24292
24293         * lib/stdlib-safer.h: New file from coreutils, required by
24294         stdlib--.h.
24295
24296 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24297
24298         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24299
24300 2006-07-20  Bruno Haible  <bruno@clisp.org>
24301
24302         * gnulib-tool: Recognize new option --assume-autoconf.
24303         (autoconf_minversion): New variable.
24304         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24305
24306 2006-07-20  Bruno Haible  <bruno@clisp.org>
24307
24308         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24309
24310 2006-07-19  Derek R. Price  <derek@ximbiot.com>
24311
24312         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24313         Reindent and repaginate.
24314
24315 2006-07-19  Derek Price  <derek@ximbiot.com>
24316
24317         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
24318         Correct grammar.
24319
24320 2006-07-17  Bruno Haible  <bruno@clisp.org>
24321
24322         * modules/list: New file.
24323         * modules/array-list: New file.
24324         * modules/carray-list, modules/carray-list-tests: New files.
24325         * modules/linked-list, modules/linked-list-tests: New files.
24326         * modules/avltree-list, modules/avltree-list-tests: New files.
24327         * modules/rbtree-list, modules/rbtree-list-tests: New files.
24328         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24329         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24330         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24331         * modules/oset: New file.
24332         * modules/array-oset: New file.
24333         * modules/avltree-oset, modules/avltree-oset-tests: New files.
24334         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
24335         * tests/test-carray_list.c: New file.
24336         * tests/test-linked_list.c: New file.
24337         * tests/test-avltree_list.c: New file.
24338         * tests/test-rbtree_list.c: New file.
24339         * tests/test-linkedhash_list.c: New file.
24340         * tests/test-avltreehash_list.c: New file.
24341         * tests/test-rbtreehash_list.c: New file.
24342         * tests/test-avltree_oset.c: New file.
24343         * tests/test-rbtree_oset.c: New file.
24344         * MODULES.html.sh (Container data structures): New section.
24345
24346 2006-07-17  Bruno Haible  <bruno@clisp.org>
24347
24348         * m4/gl_list.m4: New file.
24349
24350 2006-07-17  Bruno Haible  <bruno@clisp.org>
24351
24352         * lib/gl_list.h: New file.
24353         * lib/gl_list.c: New file.
24354         * lib/gl_array_list.h: New file.
24355         * lib/gl_array_list.c: New file.
24356         * lib/gl_carray_list.h: New file.
24357         * lib/gl_carray_list.c: New file.
24358         * lib/gl_linked_list.h: New file.
24359         * lib/gl_linked_list.c: New file.
24360         * lib/gl_anylinked_list1.h: New file.
24361         * lib/gl_anylinked_list2.h: New file.
24362         * lib/gl_avltree_list.h: New file.
24363         * lib/gl_avltree_list.c: New file.
24364         * lib/gl_anyavltree_list1.h: New file.
24365         * lib/gl_anyavltree_list2.h: New file.
24366         * lib/gl_rbtree_list.h: New file.
24367         * lib/gl_rbtree_list.c: New file.
24368         * lib/gl_anyrbtree_list1.h: New file.
24369         * lib/gl_anyrbtree_list2.h: New file.
24370         * lib/gl_anytree_list1.h: New file.
24371         * lib/gl_anytree_list2.h: New file.
24372         * lib/gl_linkedhash_list.h: New file.
24373         * lib/gl_linkedhash_list.c: New file.
24374         * lib/gl_anyhash_list1.h: New file.
24375         * lib/gl_anyhash_list2.h: New file.
24376         * lib/gl_avltreehash_list.h: New file.
24377         * lib/gl_avltreehash_list.c: New file.
24378         * lib/gl_rbtreehash_list.h: New file.
24379         * lib/gl_rbtreehash_list.c: New file.
24380         * lib/gl_anytreehash_list1.h: New file.
24381         * lib/gl_anytreehash_list2.h: New file.
24382
24383         * lib/gl_oset.h: New file.
24384         * lib/gl_oset.c: New file.
24385         * lib/gl_array_oset.h: New file.
24386         * lib/gl_array_oset.c: New file.
24387         * lib/gl_avltree_oset.h: New file.
24388         * lib/gl_avltree_oset.c: New file.
24389         * lib/gl_rbtree_oset.h: New file.
24390         * lib/gl_rbtree_oset.c: New file.
24391         * lib/gl_anytree_oset.h: New file.
24392
24393 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24394
24395         * m4/mkancesdirs.m4: New file.
24396         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24397         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24398         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24399         it.
24400
24401 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24402
24403         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24404         * lib/mkancesdirs.h: New files.
24405         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24406         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24407         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24408         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24409         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24410         callers changed.  Revamp internals significantly, by not
24411         attempting to create directories that are temporarily more
24412         permissive than the final results.  Do not attempt to use
24413         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24414         This removes some race conditions, fixes some bugs, and simplifies
24415         things.  Use new dirchownmod function to do owner and mode changes.
24416         * lib/mkdir-p.h: Likewise.
24417         * lib/modechange.c (octal_to_mode): New function.
24418         (struct mode_change): New member mentioned.
24419         (make_node_op_equals): New arg mentioned.  All callers changed.
24420         (mode_compile): Keep track of which mode bits the user has explicitly
24421         mentioned.
24422         (mode_adjust): New arg DIR, so that we implement the X op correctly.
24423         New arg PMODE_BITS, to keep track of which mode bits the user
24424         mentioned; it treats S_ISUID and S_ISGID speciall.
24425         All callers changed.
24426         * lib/modechange.h: Likewise.
24427
24428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         * MODULES.html.sh: Add mkancestors.
24431         * modules/mkancesdirs: New module.
24432         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
24433         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
24434         The chdir-safer and afs files are now orphans; I'll remove them
24435         unless someone speaks up.
24436         Add lib/dirchownmod.c, lib/dirchownmod.h.
24437         (Depends-on): Remove alloca, chown, save-cwd, dirname.
24438         Add lchown, mkancesdirs.
24439         (Maintainer): Add self.
24440
24441 2006-07-15  Karl Berry  <karl@gnu.org>
24442
24443         * gnulib-tool: help message wording/arrangement.
24444
24445 2006-07-14  Simon Josefsson  <jas@extundo.com>
24446
24447         * doc/gnulib.texi (Libtool and Windows): New section.
24448
24449 2006-07-12  Simon Josefsson  <jas@extundo.com>
24450
24451         * modules/gendocs (License): Fix license, approved by Karl.
24452
24453 2006-07-12  Eric Blake  <ebb9@byu.net>
24454
24455         * MODULES.html.sh: Add gendocs.
24456
24457 2006-07-11  Eric Blake  <ebb9@byu.net>
24458
24459         * modules/fdl: New module, to install doc/fdl.texi.
24460         * MODULES.html.sh: Add new section for documentation modules.
24461         * gnulib-tool: Avoid space-tab.
24462         (--doc-base): New option, to manage files from doc.
24463
24464 2006-07-11  Eric Blake  <ebb9@byu.net>
24465
24466         * m4/absolute-header.m4: Fix comments to match recent change.
24467
24468 2006-07-11  Eric Blake  <ebb9@byu.net>
24469
24470         * gnulib-tool: List --doc-base before --tests-base.
24471
24472 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24473
24474         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24475
24476 2006-07-11  Bruno Haible  <bruno@clisp.org>
24477
24478         * README: Mention where to put documentation.
24479
24480 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24481
24482         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24483
24484 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24485
24486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24487         to stdint.m4.
24488
24489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24490
24491         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24492         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24493         "no/such/file/stdint.h" when there is no such file, so that
24494         the resulting C code can be parsed by dodgy compilers.
24495         Problems reported by Bob Proulx.
24496
24497 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24498
24499         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24500         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24501         macros into the GNU _D_EXACT_NAMLEN.
24502         * lib/savedir.c:  Likewise.
24503         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24504
24505 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24506         and Paul Eggert  <eggert@cs.ucla.edu>
24507
24508         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24509         * m4/savedir.m4:
24510         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24511         macros into the GNU _D_EXACT_NAMLEN.
24512
24513 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24516         around the absolute name, to work around a problem with the HP-UX
24517         11.23 native C compiler, reported by Bob Proulx.
24518
24519 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24520
24521         * doc/maintain.texi, make-stds.texi: Sync from
24522         <http://savannah.gnu.org/projects/gnustandards>.
24523
24524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24527
24528 2006-07-09  Jim Meyering  <jim@meyering.net>
24529
24530         * m4/glob.m4: Remove a doubled word in a comment.
24531
24532 2006-07-09  Jim Meyering  <jim@meyering.net>
24533
24534         * lib/argp-pv.c: Remove a doubled word in a comment.
24535         * lib/check-version.c (check_version): Likewise.
24536         * lib/javacomp.c (compile_java_class): Likewise.
24537
24538 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24539
24540         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24541         for the benefit of people using Autoconf 2.60.  If you want to
24542         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24543         (or m4/onceonly.m4, if pre-2.57) manually.
24544
24545 2006-07-08  Jim Meyering  <jim@meyering.net>
24546
24547         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24548         comment.
24549         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24550         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24551         comment.
24552
24553 2006-07-08  Jim Meyering  <jim@meyering.net>
24554
24555         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24556
24557 2006-07-07  Simon Josefsson  <jas@extundo.com>
24558
24559         * tests/test-crc.c: Change expected crc value, the test vector
24560         were probably computed using the old broken crc.c?
24561
24562 2006-07-06  Simon Josefsson  <jas@extundo.com>
24563
24564         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24565         now the canonical place for the M4 file).
24566
24567         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24568         from the sys_socket dependency now.
24569
24570         * modules/inet_pton (Files): Ditto.
24571
24572         * modules/inet_ntop (Files): Ditto.
24573
24574 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24575
24576         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24577         not gl_PREREQ_GETUSERSHELL.
24578
24579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24580
24581         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24582         with only one argument, for Autoconf 2.60.
24583         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24584         expand to nothing, so add a shell command to avoid syntax error.
24585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24586
24587 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24588
24589         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24590
24591 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24592
24593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24594         no longer needed.  Check for isblank decl.
24595         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24596         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24597         of existence.
24598
24599 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24600
24601         * lib/getloadavg.c: Use __VMS, not VMS.
24602         * lib/getopt.c: Likewise.
24603         * lib/getpagesize.h: Likewise.
24604         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24605         and probably does not work.
24606
24607 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24608
24609         * lib/.cppi-disable: Add wcwidth.
24610         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24611         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24612         (ISGRAPH): Remove.  All uses changed to isgraph.
24613         (FOLD) [!defined _LIBC]: Remove special case.
24614         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24615         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24616         HAVE_ISBLANK.
24617         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24618         case.
24619
24620 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24621
24622         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24623         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24624         brackets.  Other minor changes to suppress some compiler
24625         warnings.
24626
24627 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24628         and Paul Eggert  <eggert@cs.ucla.edu>
24629
24630         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24631         of invoking obsolescent AC_HEADER_DIRENT macro.
24632         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24633         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24634         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24636         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24637         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24638         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24639         * m4/readdir.m4: Remove; no longer needed.
24640
24641 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24642         and Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24645         Don't worry about this obsolete case any more.
24646         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24647         directories.
24648         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24649         worry about this obsolete case any more.
24650         * lib/fts.c: Likewise.
24651         * lib/getcwd.c: Likewise.
24652         * lib/glob.h: Likewise.
24653         * lib/savedir.c: Likewise.
24654
24655 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24656
24657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24658         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24659         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24660         needed.
24661         All uses removed.
24662         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24663         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24664         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24665         needed.
24666         * m4/getdate.m4 (gl_GETDATE): Likewise.
24667         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24668         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24669         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24670         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24671         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24673         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24674         needed.
24675
24676 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24677
24678         * lib/memcasecmp.c: Include <limits.h>.
24679         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24680         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24681         Don't assume isdigit succeeds only on '0' through '9'.
24682
24683 2006-07-05  Eric Blake  <ebb9@byu.net>
24684
24685         * modules/getaddrinfo (Depends-on): Add snprintf.
24686
24687 2006-07-05  Eric Blake  <ebb9@byu.net>
24688
24689         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24690         to avoid 'header present but could not be compiled' on cygwin.
24691
24692 2006-07-05  Eric Blake  <ebb9@byu.net>
24693
24694         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24695         missing from netdb.h.
24696         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24697
24698 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24699
24700         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24701         no longer needed.
24702         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24703         * m4/getdate.m4 (gl_GETDATE): Likewise.
24704         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24705         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24706         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24707         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24709
24710 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24711
24712         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24713         All uses of is_space replaced by isspace.
24714         * lib/exit.h: Don't talk about STDC_HEADERS.
24715         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24716         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24717         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24718         replaced by isprint etc.
24719         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24720         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24721         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24722         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24723         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24724         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24725
24726 2006-07-05  Bruno Haible  <bruno@clisp.org>
24727
24728         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24729         the function exists, before testing against AIX.
24730         Reported by Martin Lambers <marlam@marlam.de>.
24731
24732 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24733
24734         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24735         From Mark D. Baushke.
24736
24737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24738
24739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24740         to the absolute name, not just one, to bypass Sun C 5.8's
24741         "warning: #include of /usr/include/... may be non-portable".
24742
24743 2006-07-04  Eric Blake  <ebb9@byu.net>
24744
24745         * modules/dirname-tests: New test module.
24746         * tests/test-dirname.c: New file, replacing dirname.c
24747         TEST_DIRNAME section that was recently deleted.
24748
24749 2006-07-04  Bruno Haible  <bruno@clisp.org>
24750
24751         Assume ANSI C header files and <ctype.h> functions.
24752         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24753         (mbsnwidth): Use isprint, iscntrl instead.
24754
24755 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24756
24757         Merge from coreutils.
24758         * MODULES.html.sh: Add xstrtold.
24759         * modules/xstrtold: New file.
24760         * modules/cycle-check (Files): Add lib/same-inode.h.
24761         * modules/dirname (Files): Add m4/double-slash-root.m4.
24762         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24763         * modules/mkdir-p (Files): Add lib/same-inode.h.
24764         * modules/same (Files): Add lib/same-inode.h.
24765
24766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24767
24768         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24769         This is to keep the terminology clean; POSIX talks about
24770         "absolute pathnames", not "full pathnames", but the GNU
24771         Coding Standards say to use "path" for something else;
24772         so use "absolute" to keep both sides happy.
24773         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24774         Set gl_absolute_header, not gl_full_header_path.
24775         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24776         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24777         All uses changed.
24778
24779         Merge from coreutils.
24780
24781         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24782
24783         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24784         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24785         want to require the building of c-strtod.o.
24786         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24787         needs -lm directly.
24788         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24789
24790         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24793         --as-needed option if available.  Problem reported by Albert Chin in
24794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24795         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24796         cc merely issues a bunch of annoying warnings for --as-needed
24797         (this problem was reported by Bob Proulx).  Also, try linking with
24798         -lm to detect a bug in binutils 2.16 (this problem was reported
24799         by Ralf Wildenhues).
24800
24801         2006-06-18  Jim Meyering  <jim@meyering.net>
24802
24803         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24805         macro.
24806         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24807         also check for glibc-2.4's abort-inducing bug.
24808
24809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24810         Low-probability clean-up should be to use rmdir to get rid of
24811         the just-created directory, not unlink.
24812
24813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24814         configure fail, and request a bug report to inform us about it.
24815         Add a comment that, barring reports to the contrary, in 2007 we'll
24816         assume ftruncate is universally available.
24817
24818         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24821
24822         2006-03-12  Jim Meyering  <jim@meyering.net>
24823
24824         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24825         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24826         * m4/same.m4 (gl_SAME): Likewise.
24827         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24828
24829         2006-03-11  Eric Blake  <ebb9@byu.net>
24830
24831         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24832         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24833         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24834         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24835
24836 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24837
24838         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24839         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24840         reported by Mark D. Baushke, one in
24841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24842
24843         Merge from coreutils.
24844
24845         * lib/.cppi-disable: Add stdint_.h.
24846         * lib/.cvsignore: Add stdint.h.
24847
24848         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24849
24850         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24851         both double and long double versions.
24852         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24853         * lib/xstrtold.c: New file.
24854         * lib/xstrtod.h (xstrtold): New decl.
24855
24856         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         * lib/filemode.c (setst): Remove.
24859         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24860         (arguably) clearer, and the generated code is a bit smaller on my
24861         Debian GNU/Linux stable x86 host.
24862
24863         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24864
24865         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24866         Assume that filemode.h includes sys/types.h and sys/stat.h.
24867         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24868         (ftypelet): Reorder to put common cases first, for efficiency.
24869         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24870         to do 'M'.
24871         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24872         of 10, for compatibility with FreeBSD.  All callers changed.
24873         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24874         types that can't be deduced solely from st_mode.  First arg is now a
24875         const pointer.
24876         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24877         (strmode): Renamed from mode_string.
24878         (filemodestring): New decl.
24879         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24880         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24881         needed.
24882         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24883
24884         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24885
24886         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24887         fsusage.h now does that.  Include fsusage.h first, to test interface.
24888         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24889         at most one method (the old code could have generated decls that
24890         didn't conform to C89, not that this was ever exercised).
24891         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24892
24893         2006-03-19  Jim Meyering  <jim@meyering.net>
24894
24895         Work even in a chroot where d_ino values for entries in "/"
24896         don't match the stat.st_ino values for the same names.
24897         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24898         number, iterate through all entries again, using lstat instead.
24899         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24900         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24901
24902         * lib/getcwd.c (__getcwd): Clarify a comment.
24903         Use memcpy in place of a call to strcpy.
24904
24905         2006-03-12  Jim Meyering  <jim@meyering.net>
24906
24907         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24908         matches that of the current directory (which we're about to chdir ".."
24909         out of), then save the dev-ino of the parent, instead.
24910
24911         * lib/same-inode.h (SAME_INODE): New file/macro.
24912         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24913         Include "same-inode.h", instead.
24914         * lib/same.c: Likewise.
24915         * lib/cycle-check.h: Include "same-inode.h".
24916         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24917         * lib/cycle-check.c (SAME_INODE): Remove definition.
24918         * lib/root-dev-ino.h: Include "same-inode.h".
24919
24920         2006-03-11  Eric Blake  <ebb9@byu.net>
24921
24922         * lib/same.c (same_name): s/base_name/last_component/
24923         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24924         * lib/filenamecat.c (file_name_concat): Likewise.
24925
24926         2006-03-11  Eric Blake  <ebb9@byu.net>,
24927                     Paul Eggert  <eggert@cs.ucla.edu>
24928
24929         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24930         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24931         drive prefix.
24932         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24933         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24934         (last_component): New method.
24935         * lib/dirname.c (dir_len): Determine when drive letters need a
24936         subsequent slash.  Preserve // when it is special.
24937         (dir_name): Don't append dot when drive letter is absolute.
24938         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24939         * lib/basename.c (base_name): New semantics - malloc the result.
24940         Preserve // when it is special.  Preserve relative files that look
24941         like drive letters.
24942         (base_len): Preserve // when it is special.
24943         (last_component): New method, similar to old base_name semantics.
24944         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24945         base_name.  Strip redundant slashes from ///.
24946
24947 2006-07-03  Jim Meyering  <jim@meyering.net>
24948
24949         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24950         macro is used before the first cycle_check call.
24951
24952 2006-07-03  Eric Blake  <ebb9@byu.net>
24953
24954         * modules/dirname (Depends-on): Add xstrndup.
24955
24956 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24957
24958         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24959         test cases, so that config.log is a bit easier to follow.
24960
24961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24962
24963         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24964         both are 64 bits, since this seems to be the tradition, and this
24965         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24966         we ever run into a host that prefers long long to long in this
24967         case, we'll need another configure-time test.  Problem reported by
24968         Jim Meyering.
24969
24970 2006-07-02  Eric Blake  <ebb9@byu.net>
24971
24972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24973
24974 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24975
24976         * modules/inttypes (Depends-on): No longer depends on stdint.
24977         * modules/stdint (Description): Say more about assumptions.
24978         Say that the fast types might differ.  Say macros are used.
24979         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24980         (Makefile.am): Revise list of substituted symbols to match
24981         new stdint.m4.
24982         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24983         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24984         * tests/test-stdint.c (verify_same_types)
24985         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24986         the code conforms to C99/C89.
24987         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24988         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24989
24990 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24991
24992         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24993         but fix a bug, by requiring at least 64 bits.
24994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24995         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24996         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24997         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24998
24999         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25000         changes.  Make 2.59 a prerequisite.  Check and substitute for
25001         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25002         inttypes.h.  Do not use special include files; just use the
25003         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25004         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25005         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25006         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25007         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25008         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25009         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25010         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25011         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25012         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25013         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25014         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25015         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25016         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25017         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25018         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25019         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25020         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25021         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25022         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25023         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25024         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25025         not check for things that C99 does not require, e.g., int8_t.  If
25026         a test isn't needed unless <stdint.h> isn't working, and is
25027         unlikely to be needed for any other reason, then don't do it
25028         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25029         size_t, since we assume C89 freestanding at least.  Do not check
25030         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25031         the right thing even if the types are not defined.  Instead use:
25032         (gl_STDINT_TYPE_PROPERTIES): New macro.
25033         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25034         testing whether <sys/types.h> clashes, as Autoconf does this for
25035         us now.  All uses removed.
25036         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25037         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25038         (gl_CHECK_TYPE_SAME):
25039         Remove; no longer needed.
25040         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25041         exists, since we'll return 0 anyway in that case.
25042         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25043
25044 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25045
25046         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25047         possible collision with system files.
25048         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25049         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25050         WCHAR_MIN and WCHAR_MAX in this case.
25051         (<stddef.h>): Do not include; no longer needed.
25052         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25053         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25054         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25055         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25056         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25057         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25058         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25059         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25060         !defined(__c99))]: Include in this case too, since it's harmless
25061         now.
25062         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25063         dangerous to do so.
25064         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25065         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25066         (_STDINT_MIN, _STDINT_MAX): New macros.
25067         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25068         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25069         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25070         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25071         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25072         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25073         macros, not typedefs; this simplifies things quite a bit.
25074         Use long int for all types narrower than int64_t.
25075         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25076         Define in terms of long long int or int64_t or long int,
25077         not int64_t or int32_t.  This saves some compile-time testing.
25078         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25079         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25080         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25081         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25082         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25083         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25084         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25085         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25086         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25087         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25088         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25089         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25090         undef any previous version and define our own version, for
25091         simplicity and consistency with the new macros for types.
25092         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25093         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25094         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25095         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
25096         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25097         @WINT_T_SUFFIX@ to keep things simple here.
25098         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25099         Simplify by assuming typical 8/16/32/64 host, since we're
25100         already doing that elsewhere anyway.
25101         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25102         and assume long long int is 64 bits if available.  This
25103         speeds up 'configure'.
25104
25105 2006-07-01  Eric Blake  <ebb9@byu.net>
25106
25107         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25108         Reported by Andreas Buening.
25109
25110 2006-07-01  Eric Blake  <ebb9@byu.net>
25111
25112         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25113
25114 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25115
25116         * lib/getaddrinfo.c: fixed typo
25117
25118 2006-06-29  Jim Meyering  <jim@meyering.net>
25119
25120         * modules/strftime (Maintainer): Add my name, since with the
25121         FPRINTFTIME changes strftime.c has forked from glibc.
25122
25123 2006-06-29  Eric Blake  <ebb9@byu.net>
25124
25125         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25126
25127 2006-06-29  Eric Blake  <ebb9@byu.net>
25128
25129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25130
25131 2006-06-29  Eric Blake  <ebb9@byu.net>
25132
25133         * lib/stat_.h: New file.
25134
25135 2006-06-29  Eric Blake  <ebb9@byu.net>
25136
25137         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25138         unused static function.
25139
25140 2006-06-29  Eric Blake  <ebb9@byu.net>
25141
25142         * doc/functions.texi (Function Portability): Document missing lstat
25143         on mingw.
25144
25145 2006-06-29  Eric Blake  <ebb9@byu.net>
25146
25147         * MODULES.html.sh: Add sys_stat.
25148         * modules/sys_stat: New module.
25149         * modules/mkstemp (Depends-on): Add sys_stat.
25150
25151 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25152
25153         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25154
25155 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25156
25157         * m4/c-bs-a.m4: Removed.
25158
25159 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25160
25161         * lib/strftime.c: Assume strftime() exists.
25162
25163 2006-06-29  Derek Price  <derek@ximbiot.com>
25164
25165         * modules/c-bs-a: Removed - \a is C89.
25166         * MODULES.html.sh: Remove c-bs-a.
25167
25168 2006-06-29  Bruno Haible  <bruno@clisp.org>
25169
25170         * modules/wcwidth (License): Change to LGPL.
25171
25172 2006-06-28  Simon Josefsson  <jas@extundo.com>
25173
25174         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
25175         on _WIN32.
25176
25177         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25178         getnameinfo.
25179
25180 2006-06-28  Simon Josefsson  <jas@extundo.com>
25181
25182         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25183
25184 2006-06-28  Simon Josefsson  <jas@extundo.com>
25185
25186         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25187         functions there.  It will succeed on Windows XP, but on Windows
25188         2000 and (presumably) earlier, it will fail, and use the internal
25189         re-implementation.
25190         (use_win32_p): New function.
25191         (getaddrinfo): Use strtoul on servname, to support numeric ports.
25192         Support AI_NUMERICSERV to disable getservbyname.
25193         (getnameinfo): New function, only supports
25194         NI_NUMERICHOST|NI_NUMERICSERV for now.
25195
25196         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25197         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
25198         getnameinfo.
25199
25200 2006-06-28  Eric Blake  <ebb9@byu.net>
25201
25202         * modules/wcwidth: New file.
25203         * modules/mbchar (Depends-on): Add wcwidth.
25204         * modules/mbswidth (Depends-on): Add wcwidth.
25205         * MODULES.html.sh: Add wcwidth.
25206
25207 2006-06-28  Eric Blake  <ebb9@byu.net>
25208
25209         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25211
25212 2006-06-28  Eric Blake  <ebb9@byu.net>
25213
25214         * lib/xvasprintf.h: Fix comments.
25215
25216 2006-06-28  Eric Blake  <ebb9@byu.net>
25217
25218         * lib/mbchar.h (wcwidth): Include wcwidth.h.
25219         * lib/mbswidth.c (wcwidth): Move from here...
25220         * lib/wcwidth.h: ...to this new file.
25221
25222 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25223
25224         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25225
25226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25227         it's obsolete.
25228         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25229
25230 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25231
25232         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
25233         Autoconf 2.60 says this stuff was obsolete.
25234
25235 2006-06-28  Bruno Haible  <bruno@clisp.org>
25236
25237         * modules/wcwidth (Files): Add m4/wchar_t.m4.
25238
25239 2006-06-28  Bruno Haible  <bruno@clisp.org>
25240
25241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25242         gt_TYPE_WCHAR_T.
25243
25244 2006-06-28  Bruno Haible  <bruno@clisp.org>
25245
25246         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25247         declaration for wcwidth.
25248         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25249
25250 2006-06-28  Bruno Haible  <bruno@clisp.org>
25251
25252         * lib/mkdtemp.c [MINGW]: Include <io.h>.
25253         (mkdir): Define using _mkdir.
25254
25255 2006-06-28  Bruno Haible  <bruno@clisp.org>
25256
25257         * lib/getaddrinfo.h: Fix POSIX URL.
25258         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25259         _WIN32.
25260         (use_win32_p): Make static.
25261         (getaddrinfo): Reject service name if it is empty or does not consist
25262         solely of decimal digits, or if its value is > 65535.
25263         (getnameinfo): Remove useless casts.
25264
25265 2006-06-27  Simon Josefsson  <jas@extundo.com>
25266
25267         * modules/sys_select: New file, suggested by Bruno Haible, Paul
25268         Eggert and Martin Lambers.
25269
25270 2006-06-27  Simon Josefsson  <jas@extundo.com>
25271
25272         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25273         Eggert and Martin Lambers.
25274
25275 2006-06-27  Bruno Haible  <bruno@clisp.org>
25276
25277         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25278         result to 0, not to empty.
25279         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25280
25281 2006-06-27  Bruno Haible  <bruno@clisp.org>
25282
25283         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25284
25285 2006-06-26  Simon Josefsson  <jas@extundo.com>
25286
25287         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25288         present.
25289
25290 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25293         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25295
25296 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25297
25298         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25299
25300 2006-06-26  Bruno Haible  <bruno@clisp.org>
25301
25302         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25303
25304 2006-06-26  Bruno Haible  <bruno@clisp.org>
25305
25306         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25307
25308 2006-06-26  Bruno Haible  <bruno@clisp.org>
25309
25310         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25311         SGI C compiler in pre-C99 mode.
25312         Suggested by Mark D. Baushke and Larry Jones.
25313
25314 2006-06-26  Bruno Haible  <bruno@clisp.org>
25315
25316         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25317         WCHAR_MAX.
25318         Reported by Mark D. Baushke and Larry Jones.
25319
25320 2006-06-26  Bruno Haible  <bruno@clisp.org>
25321
25322         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25323         in pre-C99 mode.
25324         Suggested by Mark D. Baushke and Larry Jones.
25325
25326 2006-06-23  Simon Josefsson  <jas@extundo.com>
25327             Bruno Haible  <bruno@clisp.org>
25328
25329         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25330         Emit mostlyclean-local rule.
25331         (func_emit_tests_Makefile_am): Likewise.
25332         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
25333
25334 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
25335
25336         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
25337
25338 2006-06-23  Bruno Haible  <bruno@clisp.org>
25339
25340         * tests/test-stdint.c: Update to match ISO C 99 Technical
25341         Corrigendum 1.
25342
25343 2006-06-23  Bruno Haible  <bruno@clisp.org>
25344
25345         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
25346
25347 2006-06-23  Bruno Haible  <bruno@clisp.org>
25348
25349         * lib/stdint_.h: Treat IRIX like OpenBSD.
25350
25351 2006-06-23  Bruno Haible  <bruno@clisp.org>
25352
25353         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
25354         ISO C 99 Technical Corrigendum 1.
25355
25356 2006-06-22  Simon Josefsson  <jas@extundo.com>
25357
25358         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
25359         MinGW.
25360
25361 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25362
25363         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
25364         needed.  Some compiler complained about some of them.  Problem reported
25365         by Larry Jones in
25366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25367
25368 2006-06-21  Simon Josefsson  <jas@extundo.com>
25369
25370         * tests/test-getaddrinfo.c: New file.
25371
25372         * modules/getaddrinfo-tests: New file.
25373
25374         * MODULES.html.sh: Add inet_pton.
25375
25376         * modules/inet_pton: New file.
25377
25378 2006-06-21  Simon Josefsson  <jas@extundo.com>
25379
25380         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
25381         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
25382         of using the (limited) gnulib implementation on Windows XP.
25383
25384         * m4/inet_pton.m4: New file.
25385
25386 2006-06-21  Simon Josefsson  <jas@extundo.com>
25387
25388         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25389         variable.
25390
25391         * lib/socket_.h: Don't define WINVER.
25392
25393         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25394         slightly modified to work in gnulib.
25395
25396 2006-06-21  Simon Josefsson  <jas@extundo.com>
25397
25398         * doc/gnulib.texi (Windows sockets): Add.
25399
25400 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25401
25402         * lib/read-file.c (fread_file): Start with buffer allocation of
25403         0 bytes rather than 1 byte; this simplifies the code.
25404         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25405         code to free buffer and save/restore errno.
25406         (internal_read_file): Remove unused local.
25407
25408 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25409
25410         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25411         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25412         Problem reported by Denis Excoffier in
25413         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25414
25415 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25416
25417         * modules/sys_socket, modules/socklen: Include sys/types since
25418         FreeBSD 4.x's sys/socket.h needs it.
25419
25420 2006-06-19  Simon Josefsson  <jas@extundo.com>
25421
25422         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
25423
25424 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25425
25426         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
25427
25428 2006-06-19  Bruno Haible  <bruno@clisp.org>
25429
25430         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
25431         and FULL_PATH_INTTYPES_H in angle brackets.
25432         Reported by Mark D. Baushke <mdb@gnu.org>.
25433
25434 2006-06-17  Eric Blake  <ebb9@byu.net>
25435
25436         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
25437         errno.
25438
25439 2006-06-17  Bruno Haible  <bruno@clisp.org>
25440
25441         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25442         <sys/inttypes.h>.
25443
25444 2006-06-17  Bruno Haible  <bruno@clisp.org>
25445
25446         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25447         whether errno is declared. Assume <errno.h> declares errno.
25448
25449 2006-06-17  Bruno Haible  <bruno@clisp.org>
25450
25451         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25452
25453 2006-06-17  Bruno Haible  <bruno@clisp.org>
25454
25455         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25456         problem on Solaris 2.5.1.
25457
25458 2006-06-16  Eric Blake  <ebb9@byu.net>
25459
25460         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25461         * lib/unicodeio.c [!defined errno]: Likewise.
25462         * lib/strtol.c [!defined errno]: Likewise.
25463         * lib/strtod.c [!defined errno]: Likewise.
25464
25465 2006-06-15  Eric Blake  <ebb9@byu.net>
25466
25467         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25468
25469 2006-06-15  Eric Blake  <ebb9@byu.net>
25470
25471         * config/srclist.txt (ssize_t.m4): Lose sync.
25472
25473 2006-06-15  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/stdint (Files): Include m4/full-header-path.m4,
25476         m4/size_max.m4, m4/wchar_t.m4.
25477         (Makefile.am): Many more substitutions.
25478         * modules/stdint-tests: New file.
25479         * tests/test-stdint.c: New file.
25480
25481 2006-06-15  Bruno Haible  <bruno@clisp.org>
25482
25483         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25484         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25485         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25486         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25487         gl_CHECK_TYPE_SAME): New macros.
25488
25489 2006-06-15  Bruno Haible  <bruno@clisp.org>
25490
25491         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25492
25493 2006-06-15  Bruno Haible  <bruno@clisp.org>
25494
25495         * lib/stdint_.h: Rewritten to be fully auto-configured.
25496         Fixes bug on HP-UX/IA64.
25497
25498 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25499
25500         * lib/getdate.y (__attribute__): Don't define if already defined.
25501         Problem reported by Larry Jones.
25502         * lib/utimens.c (__attribute__): Likewise.
25503
25504 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25505
25506         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25507         reported by Andreas Schwab.
25508
25509 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25510             Bruno Haible  <bruno@clisp.org>
25511
25512         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25513         check for the declaration of strnlen and a run test that exposes the
25514         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25515         rpl_strndup.
25516
25517 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25518             Bruno Haible  <bruno@clisp.org>
25519
25520         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25521
25522 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25523
25524         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25525         compile test, for Tru64 4.0D.
25526
25527 2006-05-28  Karl Berry  <karl@gnu.org>
25528
25529         * config/srclist.txt (printf-args.c): lose sync.
25530
25531 2006-05-26  Martin Lambers  <marlam@marlam.de>
25532
25533         * lib/getpass.c: Updates the test for the native W32 API, and adds
25534         missing includes, thus fixing compilation warnings.
25535
25536 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25537
25538         * lib/exclude.c (exclude_fnmatch): New function.
25539         (excluded_file_name): Call exclude_fnmatch.
25540         * lib/exclude.h (excluded_file_name): New prototype
25541
25542 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25543
25544         * lib/tempname.c (small_open, large_open): New macros.
25545         (__open, __open64) [!_LIBC]: Remove.
25546         (__gen_tempname): Use small_open and large_open instead of __open
25547         and __open64.  This fixes a portability bug on HP-UX 11.11i
25548         reported by Simon Wing-Tang in
25549         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25550
25551 2006-05-24  Bruno Haible  <bruno@clisp.org>
25552
25553         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25554         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25555         Reported by Thorsten Maerz <torte@netztorte.de> via
25556         Aaron Stone <aaron@serendipity.cx>.
25557
25558 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25559
25560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25561         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25562         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25563         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25564         not really conditional on the cache.
25565         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25566
25567 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25568
25569         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25570         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25571         (my_usleep): Don't mishandle maximum value.
25572
25573 2006-05-19  Jim Meyering  <jim@meyering.net>
25574
25575         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25576
25577 2006-05-17  Bruno Haible  <bruno@clisp.org>
25578
25579         Cygwin portability.
25580         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25581
25582 2006-05-17  Bruno Haible  <bruno@clisp.org>
25583
25584         * lib/stdint_.h: Fix recognition of Cygwin.
25585
25586 2006-05-15  Bruno Haible  <bruno@clisp.org>
25587
25588         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25589         on libtool patch by Ralf Wildenhues.
25590
25591 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25592
25593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25594         test for C99 conformance; (bool) 0.5 is an integer constant
25595         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25596         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25597
25598 2006-05-11  Simon Josefsson  <jas@extundo.com>
25599
25600         * m4/xvasprintf.m4: Fix obvious typo.
25601
25602 2006-05-11  Jim Meyering  <jim@meyering.net>
25603
25604         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25605         James Lemley.
25606
25607 2006-05-10  Simon Josefsson  <jas@extundo.com>
25608
25609         * lib/md4.c: Typo fix, update copyright years.
25610         (K1, K2): Don't use L because it turn computations into 64-bit on
25611         64-bit platforms.
25612
25613 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25614
25615         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25616         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25617         unwanted sign propagation, e.g., on hosts with 64-bit int.
25618         There still are some problems with reeelly weird theoretical hosts
25619         (e.g., 33-bit int) but it's not worth worrying about now.
25620         * lib/sha1.c (rol): Likewise.
25621         (K1, K2, K3, K4): Remove unnecessary L suffix.
25622
25623 2006-05-10  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/des.c: Cast to avoid warnings.
25626
25627 2006-05-09  Bruno Haible  <bruno@clisp.org>
25628
25629         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25630         (Depends-on): Depend also on xsize, stdarg.
25631         (configure.ac): Add gl_XVASPRINTF.
25632
25633 2006-05-09  Bruno Haible  <bruno@clisp.org>
25634
25635         * m4/xvasprintf.m4: New file.
25636
25637 2006-05-09  Bruno Haible  <bruno@clisp.org>
25638
25639         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25640         (EOVERFLOW): Define fallback value.
25641         (xstrcat): New function.
25642         (xvasprintf): Recognize the special case of a string concatenation.
25643
25644 2006-05-08  Eric Blake  <ebb9@byu.net>
25645
25646         * gnulib-tool (func_version): Base copyright year on CVS date.
25647         (func_emit_copyright_notice): New function.
25648         (func_emit_lib_Makefile_am): Use it.
25649         (func_emit_tests_Makefile_am): Likewise.
25650         (func_import): Likewise.
25651
25652 2006-05-08  Bruno Haible  <bruno@clisp.org>
25653
25654         * modules/stdarg: New file.
25655         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25656
25657 2006-05-08  Bruno Haible  <bruno@clisp.org>
25658
25659         * m4/stdarg.m4: New file, from GNU gettext.
25660
25661 2006-05-08  Bruno Haible  <bruno@clisp.org>
25662
25663         * config/srclist.txt (build-aux/config.rpath): different from latest
25664         release.
25665
25666 2006-05-08  Bruno Haible  <bruno@clisp.org>
25667
25668         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25669
25670 2006-05-05  Jim Meyering  <jim@meyering.net>
25671
25672         * m4/warning.m4: New file, derived from bison's file by the same name.
25673
25674 2006-05-03  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/stdint_.h: Shorter URL.
25677         * lib/inttypes.h: Likewise.
25678
25679 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25680
25681         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25682
25683 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25684
25685         * lib/verify.h: Document the internals better.  Most of this change
25686         was written by Bruno Haible.
25687
25688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25689
25690         * doc/verify.texi: New file, partly based on a proposal by
25691         Bruno Haible.
25692
25693 2006-05-02  Bruno Haible  <bruno@clisp.org>
25694
25695         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25696         test from here...
25697         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25698
25699 2006-04-29  Bruno Haible  <bruno@clisp.org>
25700
25701         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25702         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25703
25704 2006-04-29  Bruno Haible  <bruno@clisp.org>
25705
25706         * gnulib-tool: Make --update option actually work.
25707
25708 2006-04-29  Bruno Haible  <bruno@clisp.org>
25709
25710         * doc/gcd.texi: New file.
25711         * doc/gnulib.texi: Include it.
25712
25713 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25714
25715         * lib/getdate.y (get_date): When adding relative date, start with the
25716         initial time, not with the result of the first mktime call.
25717
25718 2006-04-25  Bruno Haible  <bruno@clisp.org>
25719
25720         * gnulib-tool (func_import): Output the include directives in three
25721         blocks, sorted separately.
25722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25723
25724 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25725
25726         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25727         to define main with arguments, for C++.  Reported by Eric Blake.
25728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25729         Prefer 'int main ()' to 'int main (void)', for C++.
25730         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25732         for 'main', for C99 and C++.
25733
25734 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25735
25736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25737         Don't assume that exit status -1 is valid.
25738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25739         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25741         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25742         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25743         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25744         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25745         functions can be used without declaring them, or that you can
25746         exit with status -1.
25747         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25748
25749 2006-04-24  Karl Berry  <karl@gnu.org>
25750
25751         * config/srclist.txt (longdouble.m4): sync lost.
25752
25753 2006-04-24  Eric Blake  <ebb9@byu.net>
25754
25755         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25756
25757 2006-04-24  Bruno Haible  <bruno@clisp.org>
25758
25759         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25760         poll() implementation in AIX.
25761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25762
25763 2006-04-24  Bruno Haible  <bruno@clisp.org>
25764
25765         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25766         assigned exactly once.
25767
25768 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25769             Bruno Haible  <bruno@clisp.org>
25770
25771         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25772         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25773         for AM_CPPFLAGS.
25774
25775 2006-04-23  Bruno Haible  <bruno@clisp.org>
25776
25777         * modules/copy-file: Depend on unistd.
25778         * modules/execute: Likewise.
25779         * modules/fatal-signal: Likewise.
25780         * modules/findprog: Likewise.
25781         * modules/mkdtemp : Likewise.
25782         * modules/pipe: Likewise.
25783         * modules/wait-process: Likewise.
25784
25785 2006-04-23  Bruno Haible  <bruno@clisp.org>
25786
25787         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25788         condition was already detected.
25789         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25790
25791 2006-04-23  Bruno Haible  <bruno@clisp.org>
25792
25793         * lib/copy-file.c: Include <unistd.h> unconditionally.
25794         * lib/execute.c: Likewise.
25795         * lib/fatal-signal.c: Likewise.
25796         * lib/findprog.c: Likewise.
25797         * lib/mkdtemp.c: Likewise.
25798         * lib/pipe.h: Likewise.
25799         * lib/pipe.c: Likewise.
25800         * lib/wait-process.h: Likewise.
25801
25802 2006-04-23  Bruno Haible  <bruno@clisp.org>
25803
25804         * gnulib-tool (func_usage): Fix --import description. Document
25805         --update.
25806         (func_import): Create temporary file in a temporary directory, if
25807         --dry-run is specified. Silence errors from 'grep' when there are no
25808         m4 files in $m4dir.
25809         (func_create_testdir): Silence errors from 'grep' when there are no
25810         m4 files in $m4dir.
25811         Reported by Karl Berry <karl@freefriends.org>.
25812
25813 2006-04-20  Bruno Haible  <bruno@clisp.org>
25814
25815         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25816         one argument, so that the code will be portable to Autoconf 2.60.
25817         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25818         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25819         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25820
25821 2006-04-19  Derek Price  <derek@ximbiot.com>
25822             Eric Blake  <ebb9@byu.net>
25823
25824         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25825         rather than "/full/path.h".  Update comment to match.  Shorten &
25826         generalize m4_translit call via AS_TR_CPP.
25827
25828 2006-04-19  Derek Price  <derek@ximbiot.com>
25829             Eric Blake  <ebb9@byu.net>
25830
25831         * lib/inttypes.h: Correct grammar in comment.
25832
25833 2006-04-18  Derek Price  <derek@ximbiot.com>
25834             Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         * modules/inttypes: New file.
25837         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25838
25839 2006-04-18  Derek Price  <derek@ximbiot.com>
25840             Paul Eggert  <eggert@cs.ucla.edu>
25841
25842         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25843         New files.
25844
25845 2006-04-18  Derek Price  <derek@ximbiot.com>
25846             Paul Eggert  <eggert@cs.ucla.edu>
25847
25848         * lib/inttypes.h: New file.
25849         * lib/strtoimax.c: Assume <inttypes.h>.
25850
25851 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25852
25853         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25854         isn't mounted.  Problem reported by Kir Kolyshkin.
25855
25856 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25857
25858         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25859         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25860         Derek R. Price.
25861         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25862         implementation.
25863
25864 2006-04-12  Eric Blake  <ebb9@byu.net>
25865
25866         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25867         is now done automatically by the corresponding Autoconf macro.
25868
25869 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25870
25871         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25872         time_r.h.
25873
25874 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         Merge regex changes from libc, removing some of our
25877         POSIX-conformance changes that were rejected and redoing them in a
25878         less-intrusive way.
25879
25880         * lib/regcomp.c (re_compile_internal, init_dfa):
25881         Length arg is now size_t, not Idx.  All uses changed.
25882         (peek_token): Forward decl now says internal_function.
25883         (__re_error_msgid, __re_error_msgid_idx):
25884         Now static rather than extern with attribute_hidden.
25885         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25886         For some reason libc prefers K&R style defns for external functions.
25887         (regerror) [!defined _LIBC]: Likewise.
25888         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25889         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25890         (build_range_exp, build_collating_symbol):
25891         Use K&R-style defn.
25892         (re_compile_fastmap): Use '\0' to memset, not 0.
25893         (utf8_sb_map): Make the calculations more obvious.
25894         (init_dfa, parse_bracket_exp, build_charclass_op):
25895         Call calloc and cast result, as glibc does.
25896         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25897         (build_range_exp, build_collating_symbol):
25898         Now internal functions.
25899
25900         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25901
25902         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25903         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25904         Don't depend on VMS; depend on __VMS instead, for POSIX
25905         namespace cleanness.
25906         (regoff_t): Define to ssize_t, not long int.
25907
25908         Remove the REG_ macros named below.  Instead, make the old names
25909         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25910         __USE_GNU_REGEX.
25911         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25912         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25913         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25914         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25915         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25916         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25917         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25918         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25919         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25920         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25921         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25922         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25923         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25924         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25925         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25926         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25927         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25928         (REG_NREGS):
25929         Remove.  All uses replaced by the old RE_* names.
25930         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25931         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25932         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25933         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25934         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25935         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25936         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25937         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25938         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25939         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25940         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25941         Don't bother having these macros be independent of each others'
25942         values, since they no longer exist in the POSIX name space.
25943
25944         Rename the following member names back to their old names,
25945         unless !__USE_GNU_REGEX.  All uses changed back.
25946         (buffer): Renamed from re_buffer.
25947         (allocated): Renamed from re_allocated.
25948         (used): Renamed from re_used.
25949         (syntax): Renamed from re_syntax.
25950         (fastmap): Renamed from re_fastmap.
25951         (translate): Renamed from re_translate.
25952         (can_be_null): Renamed from re_can_be_null.
25953         (regs_allocated): Renamed from re_regs_allocated.
25954         (fastmap_accurate): Renamed from re_fastmap_accurate.
25955         (no_sub): Renamed from re_no_sub.
25956         (not_bol): Renamed from re_not_bol.
25957         (not_eol): Renamed from re_not_eol.
25958         (newline_anchor): Renamed from re_newline_anchor.
25959         (num_regs): Renamed from rm_num_regs.
25960         (start): Renamed from rm_start.
25961         (end): Renamed from rm_end.
25962
25963         (free_state): Move up a bit.
25964
25965         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25966         #define to be empty.
25967         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25968         when that is what is intended.
25969         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25970         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25971         (MAX): New macro.
25972         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25973         All uses changed back to re_malloc, etc.  It's now the caller's
25974         responsibility to check for overflow; all callers changed.
25975         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25976         (re_x2nrealloc): Remove.
25977         (free_state): Remove decl.
25978
25979         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25980         (re_set_registers, re_exec):
25981         Use K&R-style defn.
25982
25983         2006-01-31  Roland McGrath  <roland@redhat.com>
25984
25985         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25986         Reported by Mike Frysinger <vapier@gentoo.org>.
25987
25988         2006-01-15  Andreas Jaeger  <aj@suse.de>
25989
25990         [BZ #1950]
25991         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25992         build_wcs_upper_buffer change.
25993         (build_wcs_upper_buffer): Change return type.
25994
25995         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25996
25997         * lib/regex_internal.h: Include <stdint.h> if available.
25998
25999         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26000
26001         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26002
26003         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26004
26005         * lib/regcomp.c: Adjust for changed secondary hash function.
26006
26007         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26008
26009         * lib/regex.h: Pretty printing.
26010         Clean up namespace a bit.
26011
26012         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26013
26014         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26015         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26016
26017         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26018                     Ulrich Drepper  <drepper@redhat.com>
26019
26020         [BZ #1302]
26021         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26022         changed.
26023         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26024
26025         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26026
26027         [BZ #281]
26028         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26029         * lib/regcomp.c: Remove unnecessary uses of
26030         unsigned RE_TRANSLATE_TYPE.
26031         * lib/regex_internal.h: Likewise.
26032         * lib/regex_internal.c: Likewise.
26033         * lib/regexec.c: Likewise.
26034         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26035
26036         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26037
26038         * lib/regexec.c (find_recover_state): Remove unnecessary
26039         initialization.
26040         (transit_state_bkref): Make DFA a const pointer.
26041         (get_subexp): Likewise.
26042         (check_arrival): Likewise.
26043         (update_cur_sifted_state): Likewise.
26044         (re_search_internal): Likewise.
26045         (prune_impossible_nodes): Likewise.
26046         (acquire_init_state_context): Likewise.
26047         (proceed_next_node): Likewise.
26048         (set_regs): Likewise.
26049         (free_fail_stack_return): Likewise.
26050         (check_arrival_expand_ecl): Mark DFA parameter as const.
26051         (check_arrival_expand_ecl_sub): Likewise.
26052         (check_subexp_limits): Likewise.
26053         (sub_epsilon_src_nodes):  Likewise.
26054         (add_epsilon_src_nodes):  Likewise.
26055         (merge_state_array): Likewise.
26056         (update_regs): Likewise.
26057         (build_trtable): Likewise.
26058         (sift_states_backward): Mark MCTX parameter as const.
26059         (build_sifted_states): Likewise.
26060         (update_cur_sifted_state): Likewise.
26061         (sift_states_mkref): Likewise.
26062         (check_arrival_expand_ecl): Mark eclosure as const.
26063         (check_dst_limits_calc_pos_1): Likewise.
26064         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26065         pointer.
26066
26067         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
26068
26069         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26070         (transit_state_sb): Likewise.
26071         (transit_state_mb): Likewise.
26072         (sift_states_iter_mb): Likewise.
26073         (check_arrival_add_next_nodes): Likewise.
26074         (check_node_accept_bytes): Change first parameter to pointer-to-const.
26075         [_LIBC] (re_search_2_stub): Use mempcpy.
26076
26077         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26078         mbrtowc for very simple UTF-8 case.
26079
26080         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26081         a pointer-to-const.
26082         (re_acquire_state_context): Likewise.
26083         * lib/regex_internal.h: Adjust prototypes.
26084
26085         * lib/regex.c: Prevent using C++ compilers.
26086
26087         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26088         (re_acquire_state_context): Likewise.
26089
26090 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         * modules/regex (Depends-on): Add ssize_t.
26093
26094 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26095
26096         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26097         translation table.
26098
26099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26100
26101         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26102
26103 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
26104             Bruno Haible  <bruno@clisp.org>
26105
26106         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26107         <sys/types.h> and <inttypes.h>.
26108
26109 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26110
26111         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26112         `__error_t_defined', so argp.h will not typedef the former.
26113
26114 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26117         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
26118         glibc names.  Even if glibc is changed to conform to POSIX, the
26119         traditional names will be available anyway, since regex depends on
26120         the extensions module.  Also, fix a longstanding typo in the
26121         implementation of Spencer ERE test #75 from grep 2.3.  Problems
26122         reported by Emanuele Giaquinta.  Also, change sense of cached
26123         variable, so that the message makes sense.
26124
26125 2006-03-24  Simon Josefsson  <jas@extundo.com>
26126
26127         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26128         including some doc fixes.
26129         (base64_encode_alloc): Fix +1 bug on allocation failures.
26130
26131 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26132
26133         * lib/base64.c (base64_encode): Do not read past end of array with
26134         unsanitized input on systems with CHAR_BIT > 8.
26135
26136 2006-03-24  Eric Blake  <ebb9@byu.net>
26137
26138         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26139
26140 2006-03-22  Karl Berry  <karl@gnu.org>
26141
26142         * config/srclist.txt (*setenv.[ch]): get from coreutils.
26143         * config/srclistvars.sh (COREUTILS): new var.
26144
26145 2006-03-17  Jim Meyering  <jim@meyering.net>
26146
26147         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26148         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26149
26150 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26153         no longer needs it.  Instead, check that regoff_t is as least
26154         as wide as ptrdiff_t.
26155
26156         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26157         so that our regex.h stays compatible with the installed regex.
26158         This is helpful for installers who configure --without-included-regex.
26159         Problem reported by Emanuele Giaquinta.
26160
26161 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26162
26163         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26164         Typedef to long int, not to off_, as POSIX will likely change
26165         in that direction.
26166
26167 2006-03-15  Eric Blake  <ebb9@byu.net>
26168
26169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26170
26171 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26172
26173         * lib/argp-help.c (validate_uparams): Fix typo
26174         * lib/argp-parse.c (argp_default_options): Consistently begin help
26175         messages with a lowercase letter.
26176
26177 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26178
26179         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
26180         overrun buffers and shouldn't be used (much as gets shouldn't be
26181         used).
26182         * lib/time_r.c (asctime_r, ctime_r): Likewise.
26183
26184 2006-03-08  Simon Josefsson  <jas@extundo.com>
26185
26186         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26187         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26188
26189 2006-03-08  Simon Josefsson  <jas@extundo.com>
26190
26191         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26192         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26193
26194 2006-03-08  Simon Josefsson  <jas@extundo.com>
26195
26196         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26197         signal that configure disabled the device.
26198
26199 2006-03-08  Simon Josefsson  <jas@extundo.com>
26200
26201         * build-aux/maint.mk: Fix refresh-po, to handle no translated
26202         languages.
26203
26204 2006-03-07  Simon Josefsson  <jas@extundo.com>
26205
26206         * modules/getopt (Depends-on): Add unistd.
26207
26208         * modules/unistd: New file.
26209
26210 2006-03-07  Simon Josefsson  <jas@extundo.com>
26211
26212         * modules/gc-random: New file.
26213
26214 2006-03-07  Simon Josefsson  <jas@extundo.com>
26215
26216         * m4/unistd_h.m4: New file.
26217
26218 2006-03-07  Simon Josefsson  <jas@extundo.com>
26219
26220         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26221         test to be side-effect free by storing the result in the cache
26222         variable gl_cv_lib_readline, and moving the assignment of
26223         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26224         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26225
26226 2006-03-07  Simon Josefsson  <jas@extundo.com>
26227
26228         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
26229         error on missing devices (the functions will return an error).
26230
26231         * m4/gc.m4: Move random stuff to gc-random.m4
26232
26233 2006-03-07  Simon Josefsson  <jas@extundo.com>
26234
26235         * lib/unistd_.h: New file.
26236
26237 2006-03-07  Simon Josefsson  <jas@extundo.com>
26238
26239         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26240
26241 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26242
26243         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26244         Problem reported by Juan Manuel Guerrero.
26245
26246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26247
26248         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26249         the unistd module.
26250         * lib/getlogin_r.c: Likewise.
26251         * lib/getlogin_r.h: Likewise.
26252         * lib/glob.c: Likewise.
26253         * lib/pagealign_alloc.c: Likewise.
26254         * lib/unistd_.h: Remove; no longer needed.
26255
26256 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26257
26258         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26259         Add unistd.
26260         * modules/c-stack (Depends-on): Add unistd.
26261         * modules/getlogin_r: Likewise.
26262         * modules/glob: Likewise.
26263         * modules/pagealign_alloc: Likewise.
26264         * modules/unistd (Files): Remove lib/unistd_.h.
26265         (EXTRA_DIST): Remove.
26266         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26267         need unistd_.h.
26268         (MOSTLYCLEANFILES): Remove unistd.h-t.
26269
26270 2006-03-03  Simon Josefsson  <jas@extundo.com>
26271
26272         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26273
26274 2006-03-03  Simon Josefsson  <jas@extundo.com>
26275
26276         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26277         libidn and bison.
26278
26279 2006-03-03  Simon Josefsson  <jas@extundo.com>
26280
26281         * build-aux/maint.mk: Add indent target.
26282
26283 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
26284
26285         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26286         our replacement poll.h in any case, to avoid a differing
26287         declaration from a system header.  Seen on AIX.
26288
26289 2006-03-01  Simon Josefsson  <jas@extundo.com>
26290
26291         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26292         <kasal@ucw.cz>.
26293
26294 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * modules/gettime (Depends-on): Add extensions module.
26297         * modules/nanosleep (Depends-on): Likewise.
26298         * modules/settime (Depends-on): Likewise.
26299
26300 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26303         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26304         pedantically.
26305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26306         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26307
26308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26309         not "==".  Reported by Ralf Wildenhues.
26310
26311 2006-03-01  Karl Berry  <karl@gnu.org>
26312
26313         * doc/Copyright/request-*: new files, synced from gnuorg.
26314
26315 2006-03-01  Karl Berry  <karl@gnu.org>
26316
26317         * config/srclist.txt (Copyright/*): new entries.
26318
26319 2006-02-28  Simon Josefsson  <jas@extundo.com>
26320
26321         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26322
26323 2006-02-27  Simon Josefsson  <jas@extundo.com>
26324
26325         * lib/base64.h: Indent #define's.  From Jim Meyering
26326         <jim@meyering.net>.
26327
26328 2006-02-27  Jim Meyering  <jim@meyering.net>
26329
26330         Revert the change of 2006-02-24, so these files can continue
26331         to be sync'd from gettext.
26332         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
26333         of `config.h'.
26334
26335 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26336
26337         * modules/intprops: New file.
26338         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26339         Add intprops.
26340         * modules/getloadavg (Files): Remove lib/intprops.h.
26341         (Depends-on): Add intprops.
26342         * modules/human: Likewise.
26343         * modules/inttostr: Likewise.
26344         * modules/openat: Likewise.
26345         * modules/sig2str: Likewise.
26346         * modules/userspec: Likewise.
26347         * modules/utimecmp: Likewise.
26348         * modules/xnanosleep: Likewise.
26349         * modules/xstrtol: Likewise.
26350
26351 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
26352
26353         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
26354         * modules/lock-tests (TESTS): Use $(EXEEXT).
26355         * modules/tls-tests: Likewise.
26356         * modules/argp-tests: Likewise.
26357         (check_PROGRAMS): New var, replacing...
26358         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
26359
26360 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26361
26362         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
26363         `config.h'.
26364
26365 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26366
26367         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26368
26369 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26370
26371         Sync from coreutils.
26372         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26373         gl_CHDIR_SAFER.
26374
26375 2006-02-22  Jim Meyering  <jim@meyering.net>
26376
26377         Sync from coreutils.
26378         * m4/chdir-safer.m4: New file.
26379
26380 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26381
26382         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26383         AT_FDCWD exceeds INT_MAX.
26384         * lib/openat.h (AT_FDCWD): Likewise.
26385
26386 2006-02-17  Eric Blake  <address@hidden>
26387
26388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26389
26390 2006-02-16  Simon Josefsson  <jas@extundo.com>
26391
26392         * modules/getaddrinfo (Depends-on): Add sys_socket.
26393
26394 2006-02-15  Simon Josefsson  <jas@extundo.com>
26395
26396         * build-aux/maint.mk: Add dsyntax-check rule.
26397
26398 2006-02-15  Eric Blake  <ebb9@byu.net>
26399
26400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26401         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26402         'present but cannot compile' warnings on cygwin.
26403         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26404         use ws2tcpip.h if sys/socket.h works.
26405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26406         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26407
26408 2006-02-14  Simon Josefsson  <jas@extundo.com>
26409
26410         * modules/maintainer-makefile (Files): Rename.
26411
26412         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26413         and (the local) Makefile.cfg to maint-cfg.mk.
26414
26415         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26416         to the latter.
26417
26418         * modules/maintainer-makefile: New module.
26419
26420         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
26421         severaly stripped to make it possible to build it up from scratch
26422         with reliable tests.
26423
26424         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
26425         fixes to permit overriding the default actions when configure and
26426         makefile are not available.
26427
26428 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26429
26430         Sync from coreutils.
26431         * modules/lstat (Depends-on): Don't depend on xalloc.
26432         (License): Change from GPL to LGPL, since this is now simply a
26433         replacement for a libc function.
26434
26435 2006-02-14  Jim Meyering  <jim@meyering.net>
26436
26437         Sync from coreutils.
26438
26439         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
26440         failure on deficient systems, and simplify gnulib lgpl dependencies.
26441         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26442         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26443
26444         * lib/xalloc-die.c: Remove unused definition of N_.
26445
26446 2006-02-14  Jim Meyering  <jim@meyering.net>
26447
26448         Sync from coreutils.
26449         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26450         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26451         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26452         double-quote uses of that variable, to accommodate the rare case in
26453         which getmntent is available in none of the libraries checked.  This
26454         happens at least on FreeBSD 5.0.
26455
26456 2006-02-13  Simon Josefsson  <jas@extundo.com>
26457
26458         * gnulib-tool (Usage): Fix --import, from
26459         karl@freefriends.org (Karl Berry).
26460
26461 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26462
26463         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26464
26465 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26466
26467         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26468         "autoupdate" on 2005-12-12.
26469
26470 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26471
26472         * modules/closeout (Depends-on): Remove atexit.
26473
26474 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26475
26476         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26477         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26478
26479 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26482         __EXTENSIONS__ if this causes compilation to fail.  Problem
26483         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26484         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26485
26486 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26489         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26491         All uses changed.
26492
26493 2006-01-26  Simon Josefsson  <jas@extundo.com>
26494
26495         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26496         prototype is visible on mingw32.
26497
26498         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26499         for mingw32.
26500
26501         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26502         mingw32).
26503
26504 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26505
26506         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26507         attempt to open for write; this always fails, at least on POSIX
26508         hosts.  This reinstates the 2006-01-09 change, which was
26509         inadvertently removed.
26510
26511 2006-01-26  Bruno Haible  <bruno@clisp.org>
26512
26513         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26514         Reported by Paul Eggert.
26515
26516 2006-01-26  Bruno Haible  <bruno@clisp.org>
26517             Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         * lib/stdbool_.h (_Bool)
26520         [(! (defined __cplusplus || defined __BEOS__)
26521           && !defined __GNUC__
26522           && !(defined __HP_cc || defined __xlc__
26523                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26524                || defined __sgi))]:
26525         #define to signed char in these cases too; this simplifies
26526         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26527         etc., separately) and makes it more conservative.
26528
26529 2006-01-25  Simon Josefsson  <jas@extundo.com>
26530
26531         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26532         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26533         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26534
26535 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26536
26537         * lib/argp-namefrob.h: Bugfix. Remove stray #
26538
26539 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26542         so that we test the test.
26543         Check for yet another HP-UX cc bug involving *bool |= bool.
26544
26545 2006-01-25  Karl Berry  <karl@gnu.org>
26546
26547         * config/srclist.txt (vasnprintf.c): sync lost.
26548
26549 2006-01-25  Jim Meyering  <jim@meyering.net>
26550
26551         Sync from the stable (b5) branch of coreutils:
26552
26553         * lib/fts.c (fts_children): Don't let close() clobber errno from
26554         failed fchdir().
26555
26556         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26557         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26558         a dangling symlink.  That can also happen at least for ELOOP.
26559         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26560         FYI, this bug predates the inclusion of fts.c in coreutils.
26561
26562         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26563         in their own block, so pre-c99 compilers don't object.
26564
26565         Avoid the double-free (first in fts_read, second in fts_close) that
26566         would occur when an `active' directory is made inaccessible (e.g.,
26567         via chmod a-x) during a traversal.
26568         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26569         before returning.  Reproduce this failure by
26570         mkdir -p a/b; cd a; chmod a-x . b
26571         Reported by Stavros Passas.
26572
26573 2006-01-25  Jim Meyering  <jim@meyering.net>
26574
26575         * lib/fileblocks.c: Remove more useless parentheses.
26576         * lib/readutmp.h: Likewise.
26577
26578 2006-01-25  Bruno Haible  <bruno@clisp.org>
26579
26580         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26581         warnings.
26582         Reported by Paul Eggert.
26583
26584 2006-01-25  Bruno Haible  <bruno@clisp.org>
26585
26586         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26587         rid of a trap command. For Solaris sh.
26588         Reported by Mark D. Baushke <mdb@gnu.org>.
26589
26590 2006-01-24  Simon Josefsson  <jas@extundo.com>
26591
26592         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26593         Bruno.
26594
26595 2006-01-24  Karl Berry  <karl@gnu.org>
26596
26597         * config/srclist.txt (argp-namefrob.h): sync lost.
26598
26599 2006-01-24  Jim Meyering  <jim@meyering.net>
26600
26601         * modules/openat (Files): Add lib/intprops.h.
26602         From Mark D. Baushke.
26603
26604 2006-01-24  Jim Meyering  <jim@meyering.net>
26605
26606         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26607         Reported by Mark D. Baushke.
26608
26609 2006-01-24  Jim Meyering  <jim@meyering.net>
26610
26611         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26612
26613 2006-01-24  Bruno Haible  <bruno@clisp.org>
26614
26615         * modules/strnlen (Maintainer): Change from glibc to all.
26616
26617 2006-01-24  Bruno Haible  <bruno@clisp.org>
26618
26619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26620         Patch by Paul Eggert.
26621
26622 2006-01-24  Bruno Haible  <bruno@clisp.org>
26623
26624         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26625         already has it.
26626         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26627         2005-11-26.
26628
26629         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26630         'signed char' to avoid problems with the built-in _Bool type.
26631         Reported by Paul Eggert on 2005-11-26.
26632
26633 2006-01-24  Bruno Haible  <bruno@clisp.org>
26634
26635         * gnulib-tool (func_import): Avoid constructing complicated sed
26636         expressions inside backquote.
26637         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26638
26639 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26640
26641         These changes imported from libc.
26642         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26643         test and two separate function calls.
26644         * lib/strndup.c (__strndup): Add libc_hidden_def.
26645
26646 2006-01-23  Simon Josefsson  <jas@extundo.com>
26647
26648         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26649         Remove the test_*_SOURCES variable: automake infers it by default.
26650         * modules/tls-tests: Likewise.
26651
26652 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26653
26654         Work around porting bugs reported by Dieter in
26655         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26656         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26657         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26658         Include "getopt.h" first, to check interface.
26659         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26660         !HAVE_DECL_GETENV.
26661         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26662         (__strndup): Revert to K&R-style function dfns, the glibc style.
26663         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26664         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26665         Include strnlen.h first, to get prototype properly.
26666         (strnlen): Renamed from __strnlen.
26667         Remove weak alias.
26668
26669 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26670
26671         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26672
26673 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26674
26675         * config/srclist.txt: Adjust to reflect glibc reorganization.
26676         This affects only comments.
26677
26678 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26679
26680          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26681          Reported by Bruce Korb <bkorb@gnu.org>.
26682
26683 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26686         to pacify gcc -Wswitch-default.
26687
26688 2006-01-22  Bruno Haible  <bruno@clisp.org>
26689
26690         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26691         temporary buffer for sprintf, take into account the precision also
26692         for 'd', 'i', 'u', 'o', 'x', 'X'.
26693
26694 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26695
26696         * modules/argp-tests: New module
26697         * tests/test-argp.c: New file
26698         * tests/test-argp-2.sh: New file
26699
26700 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26701
26702         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26703         (__argp_base_name): Removed
26704         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26705         typo.
26706         (__argp_base_name): Provide macro definition or extern declaration
26707         depending on the configuration
26708
26709 2006-01-20  Simon Josefsson  <jas@extundo.com>
26710
26711         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26712
26713 2006-01-20  Simon Josefsson  <jas@extundo.com>
26714
26715         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26716
26717 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26718
26719         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26720         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26721         Suggested by Bruno Haible.
26722
26723 2006-01-20  Karl Berry  <karl@gnu.org>
26724
26725         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26726         until changes propagate, I guess.
26727
26728 2006-01-19  Simon Josefsson  <jas@extundo.com>
26729
26730         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26731
26732 2006-01-19  Simon Josefsson  <jas@extundo.com>
26733
26734         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26735
26736 2006-01-19  Simon Josefsson  <jas@extundo.com>
26737
26738         * gnulib-tool: Set check_PROGRAMS.
26739
26740         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26741         modules/des-tests, modules/gc-arcfour-tests,
26742         modules/gc-arctwo-tests, modules/gc-des-tests,
26743         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26744         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26745         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26746         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26747         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26748         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26749         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26750         test_*_SOURCES.
26751
26752 2006-01-18  Simon Josefsson  <jas@extundo.com>
26753
26754         * modules/socklen (Depends-on): Depend on sys_socket.
26755
26756 2006-01-18  Simon Josefsson  <jas@extundo.com>
26757
26758         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26759         modules/des-tests, modules/gc-arcfour-tests,
26760         modules/gc-arctwo-tests, modules/gc-des-tests,
26761         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26762         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26763         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26764         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26765         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26766         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26767         $(EXEEXT) to automake TESTS variable, for mingw32.
26768
26769 2006-01-17  Simon Josefsson  <jas@extundo.com>
26770
26771         * modules/socklen (Include): Need sys/socket.h.
26772
26773 2006-01-17  Bruno Haible  <bruno@clisp.org>
26774
26775         * modules/ssize_t (Include): Add <sys/types.h>.
26776
26777 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26778
26779         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26780         it's not portable and it doesn't work with cross-compiles.
26781         Problem reported by Bruno Haible.  Fix missing-$ typo in
26782         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26783         -zignore from being used with Sun's C compiler.
26784
26785 2006-01-12  Simon Josefsson  <jas@extundo.com>
26786
26787         * lib/base64.c: Fix warning, reported by Bruno Haible
26788         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26789
26790 2006-01-12  Bruno Haible  <bruno@clisp.org>
26791
26792         * modules/ldd: New file.
26793         * build-aux/ldd.sh.in: New file.
26794         * MODULES.html.sh (Support for building libraries and executables): Add
26795         ldd.
26796
26797 2006-01-12  Bruno Haible  <bruno@clisp.org>
26798
26799         * m4/ldd.m4: New file.
26800
26801 2006-01-12  Bruno Haible  <bruno@clisp.org>
26802
26803         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26804         endless loop while replacing $auxdir with build-aux.
26805
26806 2006-01-11  Simon Josefsson  <jas@extundo.com>
26807
26808         * lib/stdint_.h (SIZE_MAX): Add missing (.
26809
26810 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         Sync from coreutils.
26813         * lib/md5.c: Fix commentary typos.
26814         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26815         * lib/md5.h (__attribute__): Remove; unused.
26816         * lib/sha1.c: Fix commentary to match md5 better.
26817         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26818         so that we don't need to worry about alignment.  All uses changed.
26819         This merges the 2005-10-28 md5 change into sha1.
26820
26821 2006-01-11  Jim Meyering  <jim@meyering.net>
26822
26823         Sync from coreutils.
26824         * lib/md5.c (OP): Fix spacing.
26825
26826 2006-01-11  Bruno Haible  <bruno@clisp.org>
26827
26828         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26829         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26830         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26831
26832 2006-01-11  Bruno Haible  <bruno@clisp.org>
26833
26834         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26835         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26836         the "early" section as well.
26837
26838 2006-01-11  Bruno Haible  <bruno@clisp.org>
26839
26840         Avoid "ar: no archive members specified" error on MacOS X.
26841         * gnulib-tool (func_modules_add_dummy): New function.
26842         (func_import, func_create_testdir): Invoke it.
26843
26844 2006-01-11  Bruno Haible  <bruno@clisp.org>
26845
26846         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26847         with $auxdir in AC_CONFIG_FILES statements.
26848
26849 2006-01-11  Bruno Haible  <bruno@clisp.org>
26850
26851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26852         Initialize also noinst_HEADERS to empty.
26853
26854 2006-01-11  Bruno Haible  <bruno@clisp.org>
26855
26856         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26857         variables.
26858         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26859         autoreconf.
26860
26861 2006-01-11  Bruno Haible  <bruno@clisp.org>
26862
26863         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26864         overridable by the user.
26865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26866
26867 2006-01-10  Simon Josefsson  <jas@extundo.com>
26868
26869         * modules/sys_socket: New file.
26870
26871 2006-01-10  Simon Josefsson  <jas@extundo.com>
26872
26873         * m4/sys_socket_h.m4: New file.
26874
26875 2006-01-10  Simon Josefsson  <jas@extundo.com>
26876
26877         * lib/socket_.h: New file.
26878
26879 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26880
26881         * modules/readutmp (Maintainer): Add myself.
26882
26883 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26884
26885         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26886         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26887         People who are still concerned with buggy memcmp implementations
26888         can invoke gl_FUNC_MEMCMP themselves.
26889
26890 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         * lib/regex_internal.h (BITSET_WORD_BITS):
26893         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26894         preprocessor mishandles large unsigned values as if they were signed.
26895         Problem reported by Claudio Fontana in
26896         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26897
26898 2006-01-10  Jim Meyering  <jim@meyering.net>
26899
26900         Avoid the double-free (first in fts_read, second in fts_close) that
26901         would occur when an `active' directory is made inaccessible (e.g.,
26902         via chmod a-x) during a traversal.
26903         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26904         before returning.  Reproduce this failure by
26905         mkdir -p a/b; cd a; chmod a-x . b
26906         Reported by Stavros Passas.
26907
26908         Sync from coreutils.
26909         * lib/sha1.c: Tweak grammar in a comment.
26910
26911 2006-01-10  Jim Meyering  <jim@meyering.net>
26912
26913         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26914         Patch by Joerg Sonnenberger.
26915
26916 2006-01-10  Bruno Haible  <bruno@clisp.org>
26917
26918         * modules/readutmp: Depend on module free.
26919         * modules/strtok_r: Depend on module restrict.
26920
26921 2006-01-10  Bruno Haible  <bruno@clisp.org>
26922
26923         * modules/gettext (configure.ac): Add an invocation of
26924         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26925
26926 2006-01-10  Bruno Haible  <bruno@clisp.org>
26927
26928         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26929         Reported by Werner Lemberg <wl@gnu.org>.
26930
26931 2006-01-10  Bruno Haible  <bruno@clisp.org>
26932
26933         * lib/localcharset.c: Update from GNU gettext.
26934
26935 2006-01-10  Bruno Haible  <bruno@clisp.org>
26936
26937         * lib/argp.h (__const): Remove macro. Use const instead.
26938         * lib/argp-fmtstream.h (__const): Likewise.
26939         * lib/glob_.h (__const): Remove macro.
26940         * lib/glob-libc.h: Use const instead of __const.
26941
26942 2006-01-10  Bruno Haible  <bruno@clisp.org>
26943
26944         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26945         variable.
26946         Needed to avoid an automake error regarding the 'gettext' module.
26947
26948 2006-01-09  Simon Josefsson  <jas@extundo.com>
26949
26950         * modules/inet_ntop (Depends-on): Add restrict.
26951
26952 2006-01-09  Simon Josefsson  <jas@extundo.com>
26953
26954         * modules/gc-rijndael-tests (License): Put under LGPL.
26955
26956         * modules/gc-des-tests (License): Likewise.
26957
26958         * modules/gc-arcfour-tests (License): Likewise.
26959
26960         * modules/gc-arctwo-tests (License): Likewise.
26961
26962         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26963
26964         * modules/gc-hmac-sha1-tests (Files): Likewise.
26965
26966         * modules/gc-hmac-md5-tests (License): Likewise.
26967
26968         * modules/gc-sha1-tests (License): Likewise.
26969
26970         * modules/gc-md5-tests (License): Likewise.
26971
26972         * modules/gc-md4-tests (License): Likewise.
26973
26974         * modules/gc-md2-tests (License): Likewise.
26975
26976         * modules/gc-tests (License): Likewise.
26977
26978         * modules/des-tests (License): Likewise.
26979
26980         * modules/md4-tests (License): Likewise.
26981
26982         * modules/md2-tests (License): Likewise.
26983
26984 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         Sync from coreutils:
26987
26988         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26989         * modules/lib-ignore: New file.
26990         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26991         chdir-safer.m4, lchmod.m4.
26992         * modules/openat: Add mkdirat.c, openat-priv.h.
26993
26994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26995
26996         Sync from coreutils.
26997         * m4/lib-ignore.m4: New file.
26998         * m4/lchmod.m4: New file.
26999
27000 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27001
27002         Sync from coreutils.
27003         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27004         for write access: POSIX says that must fail.
27005         * lib/fts.c (diropen): Likewise.
27006         * lib/save-cwd.c (save_cwd): Likewise.
27007         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27008         well, for minor improvements on hosts that lack O_DIRECTORY.
27009         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27010         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27011         Fall back on chown if open failed with EACCES.
27012
27013         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27014         Report an error at compile-time if only a 1-second nominal clock
27015         resolution is found.
27016
27017         * lib/lchmod.h: New file.
27018         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27019         (make_dir_parents): Use lchown rather than chown, and
27020         lchmod rather than chmod.
27021
27022         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27023         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
27024         "proc" reported by n0dalus.
27025
27026         * lib/mountlist.c: Include <limits.h>.
27027         (dev_from_mount_options)
27028         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27029         New function.  It no longer assumes "dev=" has the System V meaning
27030         on Linux (since it doesn't).  It also parses "dev=" more carefully.
27031         (read_file_system_list)
27032         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27033         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27034         dev= in that case.
27035
27036         * lib/posixtm.h (PDS_PRE_2000): New macro.
27037         * lib/posixtm.c (year): Arg is now syntax_bits rather than
27038         allow_century.  All usages changed.  Reject dates outside the range
27039         1969-1999 if PDS_PRE_2000 is used.
27040
27041 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27042
27043         Sync from coreutils.
27044         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27045         (Time of day items): Mention the possibility of leap seconds.
27046         Problem reported by Dr. David Alan Gilbert.
27047
27048 2006-01-09  Jim Meyering  <jim@meyering.net>
27049
27050         Sync from coreutils.
27051
27052         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27053
27054         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27055
27056         * lib/modechange.c (mode_compile): Reject an invalid mode string
27057         that starts with an octal digit.  From Andreas Gruenbacher.
27058
27059         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27060         and dup to open_safer and dup_safer, respectively.
27061         (openat_permissive): Fix typo in comment.
27062
27063         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27064         "gettext.h"; either no longer needed or are guaranteed by openat.h.
27065         (_): Remove; no longer needed.
27066         (openat): Renamed from rpl_openat; no need for rpl_openat
27067         since openat.h renames openat for us.
27068         Replace most of the body with a call to openat_permissive,
27069         to avoid duplicate code.
27070         Port to (probably hypothetical) environments were mode_t is
27071         wider than int.
27072         (openat_permissive): Require mode arg, so that we can check
27073         types better.  Put it just after flags.  Change cwd failure
27074         indicator from pointer-to-bool to pointer-to-errno-value.
27075         All callers changed.
27076         Invoke openat_save_fail and/or openat_restore_fail if
27077         cwd_errno is null, so that openat can call us.
27078         (openat_permissive, fdopendir, fstatat, unlinkat):
27079         Simplify errno handling to avoid some duplicate code,
27080         as it's OK to set errno on success.
27081         * lib/openat.h: Revamp code so that function macros depend on
27082         __OPENAT_PREFIX only, not also on AT_FDCWD.
27083         (openat_ro): Remove.  Caller changed to use openat_permissive.
27084         (openat_permissive): Now a macro, if not a function.
27085         (openat_restore_fail, openat_save_fail): Now always functions,
27086         since mkdirat needs them even if __OPENAT_PREFIX is defined.
27087
27088         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27089         and openat.c.
27090         * lib/mkdirat.c: Include openat-priv.h.
27091         Remove definitions of macros defined therein.
27092         * lib/openat.c: Likewise.
27093
27094         * lib/mkdirat.c (mkdirat): New file and function.
27095         * lib/openat.h (mkdirat): Declare.
27096
27097         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27098
27099         * lib/openat.h (openat_permissive): Declare.
27100         (openat_ro): Define.
27101
27102         * lib/openat.c (EXPECTED_ERRNO): New macro.
27103         (openat_permissive): New function -- used in remove.c rewrite.
27104         (all functions): Set errno just before returning, only if there
27105         was an actual failure.
27106         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27107
27108         Emulate openat-family functions using Linux's procfs, if possible.
27109         Idea and some code based on Ulrich Drepper's glibc changes.
27110
27111         * lib/openat.c: (BUILD_PROC_NAME): New macro.
27112         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27113         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27114         before falling back on save_cwd and restore_cwd.
27115         (fdopendir, fstatat, unlinkat): Likewise.
27116
27117         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27118         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27119
27120         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27121         as second argument to va_arg.  Otherwise, some versions of gcc
27122         warn that `if this code is reached, the program will abort'.
27123
27124 2006-01-09  Jim Meyering  <jim@meyering.net>
27125
27126         Sync from coreutils.
27127         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27128         Require openat-priv.h.
27129
27130 2006-01-09  Bruno Haible  <bruno@clisp.org>
27131
27132         * modules/strnlen (Include): Use strnlen.h.
27133
27134 2006-01-09  Bruno Haible  <bruno@clisp.org>
27135
27136         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27137
27138 2006-01-09  Bruno Haible  <bruno@clisp.org>
27139
27140         * lib/sysexit_.h (EX_OK): New macro.
27141         Suggested by Martin Lambers <marlam@marlam.de>.
27142
27143 2006-01-09  Bruno Haible  <bruno@clisp.org>
27144
27145         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27146         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27147
27148 2006-01-09  Bruno Haible  <bruno@clisp.org>
27149
27150         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27151         numbers.
27152
27153 2006-01-09  Bruno Haible  <bruno@clisp.org>
27154
27155         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27156         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27157         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27158         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27159
27160 2006-01-09  Bruno Haible  <bruno@clisp.org>
27161
27162         * build-aux/javacomp.sh.in: New file, moved from lib/.
27163         * modules/javacomp-script (Files): Update.
27164         (configure.ac): Add AC_CONFIG_FILES invocation.
27165         (EXTRA_DIST): Remove variable.
27166
27167         * build-aux/javaexec.sh.in: New file, moved from lib/.
27168         * modules/javaexec (Files): Update.
27169         (configure.ac): Add AC_CONFIG_FILES invocation.
27170         (EXTRA_DIST): Remove javaexec.sh.in.
27171
27172         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27173         * modules/csharpcomp-script (Files): Update.
27174         (configure.ac): Add AC_CONFIG_FILES invocation.
27175         (EXTRA_DIST): Remove variable.
27176
27177         * build-aux/csharpexec.sh.in: New file, moved from lib/.
27178         * modules/csharpexec (Files): Update.
27179         (configure.ac): Add AC_CONFIG_FILES invocation.
27180         (EXTRA_DIST): Remove csharpexec.sh.in.
27181
27182 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27183
27184         Sync from coreutils.
27185
27186         Add POSIX ACL support
27187         * lib/acl.h (copy_acl, set_acl): Add declarations.
27188         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27189         systems other than Linux.
27190         (chmod_or_fchmod): New function: use fchmod when possible,
27191         and chmod otherwise.
27192         (file_has_acl): Add a POSIX ACL implementation, with a
27193         Linux-specific subcase.
27194         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27195         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
27196         acls are unsupported.
27197         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27198         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
27199         are unsupported.
27200
27201 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27202
27203         Sync from coreutils.
27204         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27205
27206 2006-01-07  Bruno Haible  <bruno@clisp.org>
27207
27208         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27209         gl_EARLY.
27210
27211 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27212
27213         * lib/strftime.c (tzname): Don't declare if it is already #defined.
27214         Problem reported for Mingw by Mark Junker.
27215
27216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27217
27218         * README: Gnulib normally doesn't generate a tarball.
27219
27220 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27223         long int, not int, for nanosecond counts, so that people who are
27224         used to POSIX struct timespec won't be surprised.  Reported by Jim
27225         Meyering.
27226
27227 2005-12-28  Bruno Haible  <bruno@clisp.org>
27228
27229         * build-aux/config.rpath: Update from GNU gettext.
27230
27231 2005-12-16  Jim Meyering  <jim@meyering.net>
27232
27233         * modules/fprintftime: New module.
27234         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27235
27236 2005-12-16  Jim Meyering  <jim@meyering.net>
27237
27238         * m4/fprintftime.m4: New file.
27239
27240 2005-12-16  Jim Meyering  <jim@meyering.net>
27241
27242         * lib/fprintftime.c, lib/fprintftime.h: New files.
27243
27244 2005-12-15  Simon Josefsson  <jas@extundo.com>
27245
27246         * modules/socklen (configure.ac): Fix M4 macro name, to align with
27247         new m4/socklen.m4.
27248
27249 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27250
27251         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27252         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27253
27254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27255
27256         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27257         * lib/argp-help.c (fill_in_uparams): Check if the constructed
27258         struct uparams is valid. Fall back to the default values if it is
27259         not.
27260
27261 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27262
27263         * modules/argp (Files): Add argp-pin.c
27264         (Depends-on): dirname
27265         (lib_SOURCES): Add argp-pin.c
27266
27267 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27268
27269         * m4/argp.m4:  Check if program_invocation_name and
27270         program_invocation_short_name are declared and define appropriate
27271         macros if they are not.
27272
27273 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27274
27275         * lib/argp-help.c (__argp_base_name): New function
27276         (__argp_short_program_name): Rewrite using __argp_base_name
27277         * lib/argp-namefrob.h: Define program_invocation_name and
27278         program_invocation_short_name if requested
27279         (__argp_base_name): Add prototype
27280         * lib/argp-parse.c (argp_def): Use gettext wrappers
27281         (argp_default_parser): Use __argp_base_name
27282         * lib/argp-pin.c: New file. Defines program_invocation_name and
27283         program_invocation_short_name on systems that lack them.
27284
27285 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27286
27287         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27288         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27289         porting problem reported by Georg Schwarz in
27290         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27291
27292 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27293
27294         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27295         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27296         porting problem reported by Georg Schwarz in
27297         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27298
27299 2005-12-05  Bruno Haible  <bruno@clisp.org>
27300
27301         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27302         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27303         Reported by Mark Junker <mjscod@gmx.de>.
27304
27305 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27306
27307         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27308         Use implementation from Albert Chin, with some
27309         comments/corrections by Stepan Kasal and myself.
27310
27311 2005-12-02  Bruno Haible  <bruno@clisp.org>
27312
27313         * gnulib-tool (func_import): Accept GPLed build tool modules when
27314         --lgpl is given.
27315         * modules/csharpcomp-script: New file.
27316         * modules/csharpcomp: Depend on it.
27317         * modules/javacomp-script: New file.
27318         * modules/javacomp: Depend on it.
27319         Suggested by Simon Josefsson.
27320
27321 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27322
27323         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27324         statement, to work around an HP-UX 10.20 compiler bug reported by
27325         Peter O'Gorman.
27326
27327 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         * modules/savedir (Depends-on): Add openat.
27330
27331 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27332
27333         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
27334         (uintmax_t) [defined uintmax_t]: Do not declare.
27335         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
27336         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
27337         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
27338         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
27339         sake of portability to weird hosts that C allows (though we don't
27340         know of any practical examples).
27341
27342         * lib/savedir.h (fdsavedir): New decl.
27343         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
27344         contains most of the former guts of savedir.
27345         (savedir): Use savedirstream.
27346         Include "openat.h".
27347
27348 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27349
27350         * modules/obstack (Files): Add m4/ulonglong.m4.
27351         Problem reported by Davide Angelocola.
27352
27353 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27354
27355         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
27356         coreutils no longer futzes with rounding modes.
27357
27358 2005-11-14  Jim Meyering  <jim@meyering.net>
27359
27360         * lib/mkstemp-safer.c: Include <config.h>, required for possible
27361         replacement of mkstemp.
27362
27363 2005-11-10  Simon Josefsson  <jas@extundo.com>
27364
27365         * lib/readline.c: Remove EOL.
27366
27367 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27368
27369         * modules/gethrxtime (Depends-on): Add gettime.
27370
27371 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27372
27373         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27374         or gettimeofday; no longer needed.
27375
27376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27377
27378         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27379         time business.
27380         (gethrxtime) [! (HAVE_NANOUPTIME
27381         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27382         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27383         our own approximation.
27384
27385 2005-11-08  Eric Blake  <ebb9@byu.net>
27386
27387         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27388
27389 2005-11-08  Eric Blake  <ebb9@byu.net>
27390
27391         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27392
27393 2005-11-04  Bruno Haible  <bruno@clisp.org>
27394
27395         * gnulib-tool: Implement --update mode.
27396
27397 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         Fix porting problem reported by Theodoros V. Kalamatianos.
27400         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27401         Don't assume that futimes failing means we must fail.
27402
27403 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27404
27405         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27406         variables to suggest the intended function of the PATH_MAX check.
27407
27408 2005-10-30  Kean Johnston  <jkj@sco.com>
27409
27410         Trivial changes to support SCO systems.
27411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27412         as PATH_MAX.
27413         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27414         where __ptr is null when no I/O is pending.
27415
27416 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27417
27418         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27419         leave errno alone.  Problem reported by Dmitry V. Levin.
27420
27421 2005-10-28  Simon Josefsson  <jas@extundo.com>
27422
27423         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
27424         Test more.
27425
27426         * tests/test-gc-md2.c, tests/test-md2.c: New files.
27427
27428         * modules/md2, modules/md2-tests: New files.
27429
27430 2005-10-28  Simon Josefsson  <jas@extundo.com>
27431
27432         * m4/inet_ntop.m4: More tests.
27433
27434         * m4/gc-md2.m4, md2.m4: New file.
27435
27436 2005-10-28  Simon Josefsson  <jas@extundo.com>
27437
27438         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
27439         "restrict" keywords, as per POSIX.  Protect the function
27440         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
27441         Don't use K&R prototypes.  Check the sprintf return values.
27442         Re-define EAFNOSUPPORT if not present.  Indent.
27443
27444         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27445         suggested by Bruno Haible <bruno@clisp.org>.
27446
27447         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27448
27449         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27450
27451         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27452         libgcrypt).
27453
27454         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27455
27456         * lib/md2.h, lib/md2.c: New files.
27457
27458 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27461         errno alone.  Problem reported by Frederic Jolliton.
27462
27463 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27464
27465         * modules/verify (License): Change from GPL to LGPL.  This is a
27466         tiny module and there are apparently near-equivalents that are
27467         under the BSD license.
27468
27469 2005-10-24  Simon Josefsson  <jas@extundo.com>
27470
27471         * modules/sha1: Relicense to LGPL.
27472
27473 2005-10-24  Simon Josefsson  <jas@extundo.com>
27474
27475         * lib/md4.h: Shrink buffer size, now that we changed the type.
27476
27477 2005-10-23  Simon Josefsson  <jas@extundo.com>
27478
27479         * gnulib-tool (func_import): Fix --tests-base.
27480
27481 2005-10-22  Simon Josefsson  <jas@extundo.com>
27482
27483         * modules/arcfour (Depends-on): Need stdint.
27484
27485 2005-10-22  Simon Josefsson  <jas@extundo.com>
27486
27487         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27488         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27489
27490 2005-10-22  Simon Josefsson  <jas@extundo.com>
27491
27492         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27493         suggested by Bruno Haible <bruno@clisp.org>.
27494
27495 2005-10-22  Simon Josefsson  <jas@extundo.com>
27496
27497         * lib/crc.h: Include stddef.h, for size_t.
27498
27499 2005-10-22  Simon Josefsson  <jas@extundo.com>
27500
27501         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27502         arcfour_context struct (simplify test vector testing in GNU
27503         Shishi).
27504
27505 2005-10-21  Simon Josefsson  <jas@extundo.com>
27506
27507         * modules/des, modules/des-tests: New files.
27508
27509         * modules/gc-des, modules/gc-des-tests: New files.
27510
27511         * tests/test-des.c, tests/test-gc-des.c: New file.
27512
27513 2005-10-21  Simon Josefsson  <jas@extundo.com>
27514
27515         * modules/arctwo, modules/arctwo-tests: New files.
27516
27517         * tests/test-arctwo.c: New file.
27518
27519         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27520
27521         * tests/test-gc-arctwo.c: New file.
27522
27523 2005-10-21  Simon Josefsson  <jas@extundo.com>
27524
27525         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27526         Bruno Haible <bruno@clisp.org>.
27527
27528         * m4/gc-des.m4: New file.
27529
27530 2005-10-21  Simon Josefsson  <jas@extundo.com>
27531
27532         * m4/arctwo.m4: New file.
27533
27534         * m4/gc-arctwo.m4: New file.
27535
27536 2005-10-21  Simon Josefsson  <jas@extundo.com>
27537
27538         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27539         block.
27540
27541 2005-10-21  Simon Josefsson  <jas@extundo.com>
27542
27543         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27544         <bruno@clisp.org>.
27545
27546         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27547
27548         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27549         Bruno Haible <bruno@clisp.org>.
27550
27551         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27552         <bruno@clisp.org>.
27553
27554 2005-10-21  Simon Josefsson  <jas@extundo.com>
27555
27556         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27557
27558 2005-10-21  Simon Josefsson  <jas@extundo.com>
27559
27560         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27561
27562 2005-10-21  Simon Josefsson  <jas@extundo.com>
27563
27564         * lib/des.h, lib/des.c: New files.
27565
27566         * lib/gc-gnulib.c: Support DES.c
27567
27568 2005-10-21  Simon Josefsson  <jas@extundo.com>
27569
27570         * lib/arctwo.h, lib/arctwo.c: New files.
27571
27572         * lib/gc-gnulib.c: Support ARCTWO.
27573
27574 2005-10-21  Simon Josefsson  <jas@extundo.com>
27575
27576         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27577         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27578
27579 2005-10-21  Simon Josefsson  <jas@extundo.com>
27580
27581         * gnulib-tool (func_import, func_create_testdir): Define automake
27582         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27583         Makefile.am snippet),
27584         suggested by Bruno Haible <bruno@clisp.org>.
27585
27586         * modules/gc (Makefile.am): Use it.
27587
27588 2005-10-21  Bruno Haible  <bruno@clisp.org>
27589
27590         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27591         patch.
27592
27593 2005-10-19  Simon Josefsson  <jas@extundo.com>
27594
27595         * tests/test-gc-rijndael.c: New file.
27596
27597         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27598
27599 2005-10-19  Simon Josefsson  <jas@extundo.com>
27600
27601         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27602         interface too.
27603
27604 2005-10-19  Simon Josefsson  <jas@extundo.com>
27605
27606         * tests/test-gc-arcfour.c: New file.
27607
27608         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27609
27610 2005-10-19  Simon Josefsson  <jas@extundo.com>
27611
27612         * modules/gc-md4, modules/gc-md4-tests: New file.
27613
27614         * tests/test-gc-md4.c: New file.
27615
27616 2005-10-19  Simon Josefsson  <jas@extundo.com>
27617
27618         * m4/gc-md4.m4: New file.
27619
27620 2005-10-19  Simon Josefsson  <jas@extundo.com>
27621
27622         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27623         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27624         <kasal@ucw.cz>.
27625
27626 2005-10-19  Simon Josefsson  <jas@extundo.com>
27627
27628         * m4/gc-arcfour.m4: New file.
27629
27630         * m4/gc-rijndael.m4: New file.
27631
27632 2005-10-19  Simon Josefsson  <jas@extundo.com>
27633
27634         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27635
27636 2005-10-19  Simon Josefsson  <jas@extundo.com>
27637
27638         * lib/gc-gnulib.c: Support ARCFOUR.
27639
27640 2005-10-19  Simon Josefsson  <jas@extundo.com>
27641
27642         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27643         support.
27644
27645         * lib/gc.h: Add ECB enum type.
27646
27647         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27648
27649 2005-10-18  Simon Josefsson  <jas@extundo.com>
27650
27651         * tests/test-md5.c: New file.
27652
27653         * modules/md5-tests: New file.
27654
27655 2005-10-18  Simon Josefsson  <jas@extundo.com>
27656
27657         * tests/test-md4.c: New file.
27658
27659         * modules/md4, modules/md4-tests: New files.
27660
27661 2005-10-18  Simon Josefsson  <jas@extundo.com>
27662
27663         * m4/md4.m4: New file.
27664
27665 2005-10-18  Simon Josefsson  <jas@extundo.com>
27666
27667         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27668
27669 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27670
27671         * gnulib-tool (func_create_testdir): Omit the second check whether
27672         BUILT_SOURCES in nonempty.
27673
27674 2005-10-17  Simon Josefsson  <jas@extundo.com>
27675
27676         * tests/test-rijndael.c: New file.
27677
27678 2005-10-17  Simon Josefsson  <jas@extundo.com>
27679
27680         * modules/sha1: Depend on stdint instead of md5.
27681
27682         * modules/md5: Depend on stdint, remove uint32_t.
27683
27684 2005-10-17  Simon Josefsson  <jas@extundo.com>
27685
27686         * modules/gc-sha1-tests: New file.
27687
27688         * tests/test-gc-sha1.c: New file.
27689
27690 2005-10-17  Simon Josefsson  <jas@extundo.com>
27691
27692         * m4/md5.m4: Remove call to uint32_t.m4.
27693
27694 2005-10-17  Simon Josefsson  <jas@extundo.com>
27695
27696         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27697
27698         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27699         md5.h.
27700
27701         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27702
27703         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27704
27705 2005-10-17  Simon Josefsson  <jas@extundo.com>
27706
27707         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27708
27709 2005-10-17  Simon Josefsson  <jas@extundo.com>
27710
27711         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27712
27713 2005-10-17  Simon Josefsson  <jas@extundo.com>
27714
27715         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27716
27717         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27718
27719 2005-10-17  Bruno Haible  <bruno@clisp.org>
27720
27721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27722         that it can also be used in a test.
27723
27724 2005-10-16  Bruno Haible  <bruno@clisp.org>
27725
27726         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27727         TESTS_ENVIRONMENT, so that individual tests can augment it.
27728
27729         * gnulib-tool (func_create_testdir): Use an intermediate target for
27730         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27731         macros, like $(ALLOCA_H), which cannot be passed through the command
27732         line.
27733
27734 2005-10-15  Simon Josefsson  <jas@extundo.com>
27735
27736         * modules/rijndael-tests: New file.
27737
27738         * modules/rijndael: New file.
27739
27740 2005-10-15  Simon Josefsson  <jas@extundo.com>
27741
27742         * m4/rijndael.m4: New file.
27743
27744 2005-10-15  Simon Josefsson  <jas@extundo.com>
27745
27746         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27747
27748         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27749
27750 2005-10-14  Simon Josefsson  <jas@extundo.com>
27751
27752         * tests/test-arcfour.c: New file.
27753
27754         * modules/arcfour, modules/arcfour-tests: New files.
27755
27756 2005-10-14  Simon Josefsson  <jas@extundo.com>
27757
27758         * m4/arcfour.m4: New file.
27759
27760 2005-10-14  Simon Josefsson  <jas@extundo.com>
27761
27762         * lib/arcfour.h, lib/arcfour.c: New files.
27763
27764 2005-10-14  Roland McGrath  <roland@redhat.com>
27765
27766         Import from libc.  [BZ #1331]
27767         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27768         macro argument.
27769         Reported by Matej Vela <vela@debian.org>.
27770
27771 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27772
27773         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27774         include <wchar.h>; no longer needed.
27775
27776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27777
27778         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27779
27780 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27781         and  Ulrich Drepper  <drepper@redhat.com>
27782
27783         Import from libc.
27784         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27785         instead of inline stream orientation test and two separate
27786         function calls.  Pay no attention to USE_IN_LIBIO.
27787
27788 2005-10-13  Simon Josefsson  <jas@extundo.com>
27789
27790         * modules/gc-hmac-md5-tests: New file.
27791
27792         * tests/test-gc-hmac-sha1.c: New file.
27793
27794         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27795
27796         * modules/gc-hmac-md5-tests: New file.
27797
27798         * tests/test-gc-md5.c: New file.
27799
27800         * modules/gc-md5-tests: New file.
27801
27802 2005-10-13  Simon Josefsson  <jas@extundo.com>
27803
27804         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27805         Move memory allocation outside of loop.
27806
27807 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27808
27809         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27810         intermediate directory is in a read-only file system.  Problem
27811         reported by Eric Blake.
27812
27813 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27814
27815         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27816
27817 2005-10-12  Simon Josefsson  <jas@extundo.com>
27818
27819         * tests/test-hmac-sha1.c: New file.
27820
27821         * modules/hmac-sha1-tests: New file.
27822
27823         * modules/hmac-sha1: New file.
27824
27825 2005-10-12  Simon Josefsson  <jas@extundo.com>
27826
27827         * modules/gc-sha1: New file.
27828
27829 2005-10-12  Simon Josefsson  <jas@extundo.com>
27830
27831         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27832
27833         * tests/test-gc-pbkdf2-sha1.c: New file.
27834
27835 2005-10-12  Simon Josefsson  <jas@extundo.com>
27836
27837         * modules/gc-md5, modules/gc-hmac-md5: New files.
27838
27839         * modules/gc (Files): Remove md5, memxor and hmac files.
27840
27841 2005-10-12  Simon Josefsson  <jas@extundo.com>
27842
27843         * m4/gc-pbkdf2-sha1.m4: New file.
27844
27845         * m4/gc-hmac-sha1.m4: New file.
27846
27847         * m4/gc-sha1: New file.
27848
27849         * m4/hmac-sha1.m4: New file.
27850
27851 2005-10-12  Simon Josefsson  <jas@extundo.com>
27852
27853         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27854
27855         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27856
27857 2005-10-12  Simon Josefsson  <jas@extundo.com>
27858
27859         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27860         suggested by Bruno Haible <bruno@clisp.org>.
27861
27862 2005-10-12  Simon Josefsson  <jas@extundo.com>
27863
27864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27865
27866 2005-10-12  Simon Josefsson  <jas@extundo.com>
27867
27868         * lib/gc-pbkdf2-sha1.c: New file.
27869
27870         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27871
27872 2005-10-12  Simon Josefsson  <jas@extundo.com>
27873
27874         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27875
27876         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27877
27878 2005-10-12  Simon Josefsson  <jas@extundo.com>
27879
27880         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27881         GC_USE_HMAC_MD5, respectively.
27882
27883         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27884         (gc_md5): Fix typo.
27885
27886         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27887
27888         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27889
27890         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27891
27892 2005-10-12  Bruno Haible  <bruno@clisp.org>
27893
27894         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27895         Reported by Stepan Kasal <kasal@ucw.cz>.
27896
27897 2005-10-11  Simon Josefsson  <jas@extundo.com>
27898
27899         * tests/test-crc.c: New file.
27900
27901         * modules/crc, modules/crc-tests: New files.
27902
27903 2005-10-11  Simon Josefsson  <jas@extundo.com>
27904
27905         * m4/crc.m4: New file.
27906
27907 2005-10-11  Simon Josefsson  <jas@extundo.com>
27908
27909         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27910
27911         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27912
27913         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27914
27915 2005-10-11  Simon Josefsson  <jas@extundo.com>
27916
27917         * lib/crc.h, lib/crc.c: New files.
27918
27919         * lib/gc.h (gc_hash_buffer): Add doc.
27920
27921 2005-10-11  Bruno Haible  <bruno@clisp.org>
27922
27923         * modules/c-strcasestr: New file.
27924         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27925
27926 2005-10-11  Bruno Haible  <bruno@clisp.org>
27927
27928         * modules/c-strcase: New file.
27929         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27930
27931 2005-10-11  Bruno Haible  <bruno@clisp.org>
27932
27933         * lib/strcasecmp.c: Include limits.h.
27934         (strcasecmp): Avoid integer overflow on exotic platforms.
27935         * lib/strncasecmp.c: Include limits.h.
27936         (strncasecmp): Avoid integer overflow on exotic platforms.
27937         Reported by Paul Eggert.
27938
27939 2005-10-11  Bruno Haible  <bruno@clisp.org>
27940
27941         * lib/c-strcasestr.h: New file, from GNU gettext.
27942         * lib/c-strcasestr.c: New file, from GNU gettext.
27943
27944 2005-10-11  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/c-strcase.h: New file, from GNU gettext.
27947         * lib/c-strcasecmp.c: New file, from GNU gettext.
27948         * lib/c-strncasecmp.c: New file, from GNU gettext.
27949
27950 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27951
27952         * modules/mempcpy (License): GPL -> LGPL.
27953         * modules/strchrnul (License): Likewise.
27954         * modules/sysexits (License): Likewise.
27955
27956 2005-10-08  Simon Josefsson  <jas@extundo.com>
27957
27958         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27959
27960 2005-10-07  Simon Josefsson  <jas@extundo.com>
27961
27962         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27963
27964 2005-10-06  Simon Josefsson  <jas@extundo.com>
27965
27966         * tests/test-hmac-md5.c: New file.
27967
27968         * modules/hmac-md5-tests: New file.
27969
27970         * modules/hmac-md5: New file.
27971
27972 2005-10-06  Simon Josefsson  <jas@extundo.com>
27973
27974         * m4/hmac-md5.m4: New file.
27975
27976         * m4/memxor.m4: Require gl_C_RESTRICT.
27977
27978 2005-10-06  Simon Josefsson  <jas@extundo.com>
27979
27980         * lib/memxor.c (memxor): Avoid casts and warnings.
27981
27982 2005-10-06  Simon Josefsson  <jas@extundo.com>
27983
27984         * lib/hmac-md5.c: New file.
27985
27986         * lib/hmac.h: New file.
27987
27988 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27989
27990         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27991         promotes to int, not unsigned int, to catch the AIX 5.3
27992         compiler bug.
27993
27994 2005-10-05  Simon Josefsson  <jas@extundo.com>
27995
27996         * modules/memxor: New file.
27997
27998         * modules/iconv (Files): Move config.rpath to havelib, it is used
27999         there.
28000
28001         * modules/havelib (Files): Add config.rpath.
28002
28003 2005-10-05  Simon Josefsson  <jas@extundo.com>
28004
28005         * m4/memxor.m4: New file.
28006
28007 2005-10-05  Simon Josefsson  <jas@extundo.com>
28008
28009         * lib/memxor.c (memxor): Fix compiler error.
28010
28011         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28012         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28013
28014         * lib/memxor.h, lib/memxor.c: New files.
28015
28016         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28017         we assume all systems have it, suggested by Jim Meyering
28018         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
28019         any systems lack sys/socket.h; mingw32 is known to lack it, but we
28020         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
28021         same reasons.
28022
28023 2005-10-05  Simon Josefsson  <jas@extundo.com>
28024
28025         * config/srclist.txt: Add glibc bug 1423 for md5.h.
28026
28027 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28028
28029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28030         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28031         needed, since the source code now assumes these .h files.
28032
28033 2005-10-05  Derek Price  <derek@ximbiot.com>
28034
28035         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28036
28037 2005-10-05  Bruno Haible  <bruno@clisp.org>
28038
28039         * modules/stdint (License): Change to LGPL.
28040
28041 2005-10-04  Simon Josefsson  <jas@extundo.com>
28042
28043         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28044         D. Baushke" <mdb@gnu.org>.
28045
28046 2005-10-04  Bruno Haible  <bruno@clisp.org>
28047
28048         * lib/verify.h (verify_true): Provide alternative definition for C++.
28049
28050 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28051
28052         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
28053         (SSIZE_MAX): New macro, if not already defined.
28054         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28055         than 2 GiB.
28056
28057 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28058
28059         Sync from coreutils.
28060         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28061         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28062         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
28063         ULLONG_MAX doesn't work with 2.7.2.1.
28064
28065 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28068         From Ben Pfaff.
28069
28070         * modules/exclude (Depends-on): Depend on verify.
28071         * modules/strtoimax (Depends-on): Likewise.
28072         * modules/utimecmp (Depends-on): Likewise.
28073
28074 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         * lib/exclude.c: Include verify.h.
28077         (verify): Remove.  All callers changed to use verify.h's version.
28078         * lib/strtoimax.c: Likewise.
28079         * lib/utimecmp.c: Likewis.e
28080
28081         Sync from coreutils.
28082         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28083         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28084         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28085         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
28086         bother returning ENOSYS if settimeofday or stime fails; just let
28087         them return whatever errno they want to return.
28088         * lib/utimens.c: Include unistd.h, for dup2.
28089         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28090         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28091
28092 2005-10-02  Jim Meyering  <jim@meyering.net>
28093
28094         Sync from coreutils.
28095         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28096         from glibc-2.2.5 that fails for read-only files.
28097
28098 2005-10-02  Jim Meyering  <jim@meyering.net>
28099
28100         Sync from coreutils.
28101         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28102         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28103         `#if HAVE_CONFIG_H'.
28104         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28105         Remove AT_FDCWD test.
28106         Do not consume the fd unless successful.
28107         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28108         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28109         block, so that we don't even try to compile it if settimeofday is
28110         available.  This works around a compilation failure on OSF1 V5.1,
28111         due to stime requiring a `long int*' while tv_sec is `int'.
28112
28113 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
28114
28115         Sync from coreutils.
28116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28117         against `yes', rather than just testing for nonempty.
28118
28119 2005-10-01  Simon Josefsson  <jas@extundo.com>
28120
28121         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28122         and Darwin.
28123
28124         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28125         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
28126         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
28127         freeaddrinfo and gai_strerror are declared by the POSIX headers.
28128         Check if struct addrinfo is declared.
28129
28130 2005-10-01  Simon Josefsson  <jas@extundo.com>
28131
28132         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28133         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
28134         AI_* and EAI_* definitions.  Protect function declarations.
28135
28136 2005-10-01  Jim Meyering  <jim@meyering.net>
28137
28138         Sync from coreutils.
28139
28140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28141         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
28142         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28144         in the inet and nsl libraries.  Required on Solaris 5.7.
28145
28146 2005-10-01  Jim Meyering  <jim@meyering.net>
28147
28148         Sync from coreutils.
28149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28150         in the inet and nsl libraries.  Required on Solaris 5.7.
28151
28152 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
28153
28154         * lib/getdelim.c (getdelim): Remove unused variables.
28155
28156 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28157
28158         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28159         so that the code works even with ancient cpp.  Portability problem
28160         with GCC 2.7.2.1 reported by Thomas M.Ott.
28161
28162 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28163
28164         * modules/regex (Depends-on): Add strcase.
28165
28166         * modules/gethostname (Licence): Change from GPL to LGPL, since
28167         gethostname.c is a trivial implementation of a standard library
28168         function.
28169         * modules/poll (License): Change from GPL to LGPL, since it's
28170         derived from LGPL code.
28171
28172 2005-09-27  Jim Meyering  <jim@meyering.net>
28173
28174         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28175         HAVE_CONFIG_H.
28176
28177         * lib/intprops.h (signed_type_or_expr__): Define.
28178         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28179         for unsigned types.
28180
28181 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28182
28183         * lib/verify.h (verify_expr): Remove, replacing with:
28184         (verify_true): New macro that returns true instead of void.
28185         (verify_type__): Remove.
28186         (verify): Use verify_true rather than verify_type__.
28187
28188 2005-09-26  Bruno Haible  <bruno@clisp.org>
28189
28190         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28191         is necessary.
28192         (lib_SOURCES): Remove mbchar.c.
28193         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28194         (Files): Add m4/mbrtowc.m4.
28195         * modules/mbiter: Likewise.
28196         * modules/mbuiter: Likewise.
28197
28198 2005-09-26  Bruno Haible  <bruno@clisp.org>
28199
28200         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28201         compile mbchar.c if they are not both present.
28202         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28203         * m4/mbiter.m4 (gl_MBITER): Likewise.
28204         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28205         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28206         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28207
28208 2005-09-25  Jim Meyering  <jim@meyering.net>
28209
28210         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28211         also uses socklen_t.
28212
28213 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28214
28215         * lib/utimens.c (ENOSYS): Define if not already defined.
28216         (futimens): Support having a null PATH if the file descriptor
28217         is nonnegative.
28218
28219         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28220         Remove.
28221         (__attribute): Define to empty unless GCC 3.1 or later.
28222         This works around a core dump on OpenBSD 3.4, which has GCC
28223         2.95.3, which dumps core when given __attribute__(()).  It also
28224         simplifies other tests, since we really don't want to bother with
28225         worrying about which ancient version of GCC supported what.
28226         Original problem reported by Yoann Vandoorselaere, with part of
28227         the fix suggested by Derek Price.
28228
28229 2005-09-24  Jim Meyering  <jim@meyering.net>
28230
28231         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28232         so we can once again use a positive bitfield width of 1 -- now we
28233         don't have to explain why we were using a bitfield width of 2.
28234
28235 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28236
28237         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28238         and similarly for the other external symbols.  Problem reported
28239         by James Gallager.
28240
28241         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28242         bug reported by Jim Meyering.
28243
28244         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28246         not needed, since socklen is a prerequisite module.
28247
28248 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28249
28250         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28251         Problem reported by Eric Blake.
28252         (getaddrinfo): Initialize se so that it's not garbage.
28253         Redo internal storage allocation so that it doesn't make unportable
28254         assumptions about alignment.
28255         Fix a memory leak.
28256
28257         * lib/utimens.c (futimens): Use futimesat if available.
28258         Prefer it to futimes since it doesn't have the futimes bug.
28259
28260         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28261         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28262         Instead, declare a function that returns a pointer to an array,
28263         and use verify_type__ to declare the size of the array.
28264         Problem and germ of a solution reported by Bruno Haible.
28265         (verify_type__): Use 2, not 1, for bitfield size, to avoid
28266         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
28267
28268 2005-09-23  Jim Meyering  <jim@meyering.net>
28269
28270         Sync from coreutils.
28271         Correct build failure (socklen_t not defined) on at least
28272         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28274
28275 2005-09-23  Jim Meyering  <jim@meyering.net>
28276
28277         * modules/getaddrinfo (Depends-on): Add socklen.
28278
28279 2005-09-23  Bruno Haible  <bruno@clisp.org>
28280
28281         * tests/test-verify.c: New file.
28282
28283 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28284
28285         Sync from coreutils.
28286
28287         * modules/argmatch (Depends-on): Add verify.
28288         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28289         unistd-safer.
28290         * modules/save-cwd (Depends-on): Likewise.
28291
28292         * modules/openat (Files): Add lib/openat-die.c.
28293         (Depends-on): Remove error, exitfail.
28294         Add dirname.
28295
28296         * modules/verify: New file.
28297         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28298         with "verify" module.
28299
28300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28301
28302         Sync from coreutils.
28303
28304         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28305         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28306         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28307         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28308         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28309         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28310         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28311         Don't bother checking for string.h, stdlib.h, unistd.h.
28312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28313         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28314         module's job.
28315         * m4/jm-macros.m4 (gl_MACROS): Likewise.
28316         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28317
28318         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28319         (gl_GETDATE): Use it.
28320
28321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28322
28323 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28324
28325         Sync from coreutils.
28326
28327         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28328         stat-time.h.
28329         * lib/argmatch.h: Include verify.h
28330         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28331         (ARGMATCH_ASSERT): Remove; unused.
28332         * lib/canonicalize.c: Assume STDC_HEADERS.
28333         * lib/exclude.c: Include "strcase.h".
28334         * lib/regex_internal.h [!defined _LIBC]: Likewise.
28335         * lib/getusershell.c: Include stdio--.h rather than stdio.h
28336         and stdio-safer.h.
28337         (getusershell): Call fopen, not fopen_safer.
28338         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
28339         Do not include unistd-safer.h.
28340         (save_cwd): Don't call fd_safer; no longer needed
28341         now that we include fcntl--.h.
28342
28343         * lib/getdate.y (relative_time): New type.
28344         (RELATIVE_TIME_0): New constant.
28345         (parser_control): Use relative_time instead of doing it ourselves.
28346         (%union): Add new relative_time rel member.
28347         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
28348         Now typeless.
28349         (relunit, relunit_snumber): Now of type rel.
28350         (zone, rel, relunit, get_date): Adjust to above changes.
28351
28352         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
28353         Do not include unistd-safer.h.
28354         (getloadavg): Don't call fd_safer; no longer needed
28355         now that we include fcntl--.h.
28356
28357         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
28358         (make_dir_parents): Treat ENOSYS like EEXIST.
28359
28360         Improve quality of diagnostics on restore_cwd failure.
28361         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
28362         (make_dir_parents): Last arg is now int * (for errno), not bool *.
28363         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
28364         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
28365         each time through the loop.  Do not diagnose restore_cwd failure;
28366         that is the caller's job (and perhaps the caller does not care).
28367
28368         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28369         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28370         If the file already exists but is not a directory, don't bother
28371         to try to make its parents.
28372         Close potential file descriptor leak if we can't chdir("/") (!).
28373         Don't always return true if chdir($PWD) fails; return true only
28374         if the requested action was done successfully (except for the
28375         chdir($PWD)).
28376         Don't log final directory unless we actually made it.
28377         Refactor to avoid duplicate code to fix up permissions.
28378         Don't attempt to fix up parent permissions if chdir($PWD) fails.
28379
28380         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28381         to make it a bit faster and (I hope) clearer.
28382         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28383         Fix bug in formats like %2N.
28384
28385         * lib/verify.h: New file.
28386
28387 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         Sync from coreutils.
28390         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28391
28392 2005-09-22  Jim Meyering  <jim@meyering.net>
28393
28394         Sync from coreutils.
28395
28396         * m4/lstat.m4 (gl_FUNC_LSTAT):
28397         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28398         Remove obsolete comment.
28399         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28400         * m4/xstrtod.m4: Likewise.
28401
28402         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28403
28404 2005-09-22  Jim Meyering  <jim@meyering.net>
28405
28406         Sync from coreutils.
28407
28408         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28409
28410         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28411         the .tm_year member, since otherwise gcc-4.0 would now warn about
28412         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28413
28414         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28415         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28416
28417         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28418         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28419         when run in a time zone for which daylight savings time is in effect
28420         for the starting date.
28421
28422         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
28423         stop us from restricting permissions of just-created absolute-named
28424         directories.
28425         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
28426         to restore initial working directory.
28427         * lib/mkdir-p.c (make_dir_parents): New parameter:
28428         different_working_dir, to tell caller if/when we change the working
28429         directory and are unable to return to the initial one.
28430         * lib/mkdir-p.h (make_dir_parents): Update prototype.
28431         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
28432         `return false'.  This fixes a bug introduced on 2004-07-30.
28433
28434         * lib/openat.c (fdopendir): Be sure to close the supplied
28435         file descriptor before returning.  This makes our replacement
28436         implementation a little closer to Solaris's, where fdopendir
28437         ties the file descriptor to the returned DIR* pointer.
28438         * lib/openat.c (unlinkat): New function.
28439         * lib/openat.h (unlinkat): Add prototype.
28440         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
28441         (openat_restore_fail): Rename from openat_restore_die.
28442         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28443
28444         Provide an alternative to exiting immediately upon save_cwd or
28445         restore_cwd failure.  Now, an application can arrange e.g.,
28446         to perform a longjump in that case.
28447         * lib/openat.c: Include dirname.h.
28448         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28449         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28450         and openat_restore_die rather than calling error directly.
28451         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28452
28453         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28454         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28455         define.
28456
28457         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28458         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28459                             int utc, int nanoseconds);
28460         Background:
28461         date should not have to allocate a megabyte of virtual memory to
28462         handle a format argument like +%1048575T.  When implemented with
28463         strftime, it must allocate such a buffer, use strftime to fill it
28464         in, print it, then free it.
28465         With fprintftime, it simply prints everything and exits.
28466         With no need for memory allocation, that's one fewer way to fail.
28467         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28468         optional field width, not before, so we accept %9:z, not %:9z.
28469         (my_strftime): Be sure to use L_('x') for literals.
28470
28471         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28472         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28473         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28474         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28475         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28476         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28477         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28478         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28479         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28480         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28481         * lib/xgethostname.c, lib/xreadlink.c:
28482         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28483
28484         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28485         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28486         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28487         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28488         and don't include <sys/file.h>).
28489
28490 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28491
28492         Sync from coreutils.
28493
28494         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28495         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28496         [!LDAV_DONE]: Avoid unused variable warning.
28497
28498 2005-09-21  Bruno Haible  <bruno@clisp.org>
28499
28500         * lib/unicodeio.h (unicode_to_mb): New declaration.
28501
28502 2005-09-20  Derek Price  <derek@ximbiot.com>
28503
28504         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28505         getaddrinfo.h.
28506
28507 2005-09-20  Bruno Haible  <bruno@clisp.org>
28508
28509         * gnulib-tool: Remove trailing slashes from the values specified for
28510         --source-base, --m4-base, --tests-base, --aux-dir.
28511         Suggested by Simon Josefsson <jas@extundo.com>.
28512
28513 2005-09-20  Bruno Haible  <bruno@clisp.org>
28514
28515         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28516         func_modules_to_filelist, func_import, func_create_testdir): Make all
28517         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28518         change when gnulib-tool is invoked in a different locale.
28519
28520 2005-09-19  Simon Josefsson  <jas@extundo.com>
28521
28522         * m4/socklen.m4: Fix typo.
28523
28524 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28525
28526         Use a consistent style for including <config.h>.
28527         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28528         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28529         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28530         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28531         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28532         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28533         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28534         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28535         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28536         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28537         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28538         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28539         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28540         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28541         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28542         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28543         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28544         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28545         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28546         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28547         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28548         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28549         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28550         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28551         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28552         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28553         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28554         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28555         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28556         lib/xstrtoumax.c, lib/yesno.c:
28557         Standardize inclusion of config.h.
28558         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28559         lib/inttostr.h:  Removed inclusion of config.h from header files.
28560         * lib/inttostr.c:  Adjusted in-tree users.
28561         * lib/timespec.h: Remove superfluous warning to include config.h.
28562         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28563         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28564         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28565         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28566         config.h with HAVE_CONFIG_H.
28567
28568 2005-09-19  Jim Meyering  <jim@meyering.net>
28569
28570         * modules/pathmax (License): Change to LGPL.
28571
28572 2005-09-19  Derek Price  <derek@ximbiot.com>
28573
28574         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28575
28576 2005-09-19  Bruno Haible  <bruno@clisp.org>
28577
28578         * gnulib-tool (import): Provide default for --tests-base.
28579
28580 2005-09-19  Bruno Haible  <bruno@clisp.org>
28581
28582         * doc/quote.texi: New file, extracted from gnulib.texi.
28583         * doc/ctime.texi: New file, extracted from gnulib.texi.
28584         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28585         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28586         * doc/gnulib.texi: Include them.
28587
28588 2005-09-18  Bruno Haible  <bruno@clisp.org>
28589
28590         Portability fix.
28591         * gnulib-tool (func_readlink): New function.
28592         (func_ln_if_changed): Use it.
28593
28594 2005-09-18  Bruno Haible  <bruno@clisp.org>
28595
28596         * gnulib-tool: Support --with-tests also with --import.
28597         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28598         (func_import): Use variables $testsbase and $inctests. Emit a
28599         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28600         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28601         SUBDIRS += $testsdir.
28602         (func_create_testdir): Update.
28603
28604 2005-09-18  Bruno Haible  <bruno@clisp.org>
28605
28606         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28607         instead of $dry_run.
28608         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28609         (func_ln_if_changed): Don't handle dry-run here.
28610         (func_import): In dry-run mode, detect more precisely which actions
28611         would be performed, and don't use "...ing" verbs.
28612
28613 2005-09-18  Bruno Haible  <bruno@clisp.org>
28614
28615         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28616         (func_import): Use join on two temporary files instead of three nested
28617         loops, in order to determine which files are new or old.
28618
28619 2005-09-18  Bruno Haible  <bruno@clisp.org>
28620
28621         * gnulib-tool (func_import): Comment out code that spits out the
28622         new files with --dry-run.
28623
28624 2005-09-18  Bruno Haible  <bruno@clisp.org>
28625
28626         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28627
28628 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         * lib/stat-time.h: New file.
28631         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28632         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28633         in a different way.
28634         (timespec_cmp): New function.
28635         * lib/utimecmp.c: Include stat-time.h.
28636         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28637         members exist, not on the obsolescent ST_MTIM_NSEC.
28638         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28639
28640 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28643
28644 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28645
28646         * MODULES.html.sh (File system functions): Add stat-time.
28647         * modules/stat-time: New file.
28648         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28649         is now done in a different way, by the stat-time module.
28650         * modules/utimecmp (Depends-on): Add stat-time.
28651
28652 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28653
28654         * m4/st_mtim.m4: Remove.  Superseded by...
28655         * m4/stat-time.m4: New file.
28656         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28657         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28658
28659 2005-09-15  Derek Price  <derek@ximbiot.com>
28660
28661         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28662
28663 2005-09-15  Derek Price  <derek@ximbiot.com>
28664
28665         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28666         * lib/regex_internal.c: Ditto, using this...
28667         (__GNUC_PREREQ): ...new macro.
28668         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28669         using...
28670         (__GNUC_PREREQ): ...this new macro.
28671
28672         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28673
28674 2005-09-15  Derek Price  <derek@ximbiot.com>
28675             Paul Eggert  <eggert@cs.ucla.edu>
28676
28677         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28678         changes, consolidating in...
28679         * lib/regex_internal.h: ...this file.
28680
28681 2005-09-13  Jim Meyering  <jim@meyering.net>
28682
28683         * lib/canon-host.c: Filter through gnu indent and reword comments
28684         slightly.
28685         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28686
28687 2005-09-13  Derek Price  <derek@ximbiot.com>
28688
28689         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28690         failure.
28691         Reported by Jim Meyering  <jim@meyering.net>.
28692
28693 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28694
28695         * lib/base64.c: Typo.
28696         (base64_encode): Put b64str in initialized data section.
28697
28698 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28699
28700         Merge glibc and coreutils changes into gnulib, plus a few
28701         extra fixes.
28702         * lib/md5.c: Use #error rather than a string.
28703         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28704         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28705         (__attribute__): Define to empty for non recent-GCC.
28706         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28707         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28708         Renamed from their non-__ counterparts, with new macros replacing
28709         them if not _LIBC.  Add __THROW attribute.
28710         (rol): Remove.
28711         (struct md5_ctx): Align buffer if using GCC.
28712         * lib/sha1.h (struct sha1_ctx): Likewise.
28713         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28714         The old name was backwards.
28715         (NOTSWAP): Remove; not used.
28716         (rol): New macro, moved here from md5.h.
28717         (sha1_process_block): Remove a FIXME that doesn't make sense.
28718
28719 2005-09-12  Derek Price  <derek@ximbiot.com>
28720
28721         Return usable errors from canon-host.
28722         * lib/canon-host.h: New file.
28723         * lib/canon-host.c (canon_host): Wrap...
28724         (canon_host_r): ...this new function, which now relies exclusively on
28725         getaddrinfo.
28726         (ch_strerror): New function.
28727         (last_cherror): New global.
28728         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28729         interface.
28730         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28731         void *.
28732         (freeaddrinfo): Free ai->ai_canonname when set.
28733
28734 2005-09-12  Derek Price  <derek@ximbiot.com>
28735
28736         Make canon-host require getaddrinfo.
28737         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28738         AC_LIBSOURCE canon-host.h.  Call...
28739         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28740         gl_GETADDRINFO.
28741         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28742
28743 2005-09-12  Derek Price  <derek@ximbiot.com>
28744
28745         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28746         LGPL.
28747         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28748
28749 2005-09-12  Derek Price  <derek@ximbiot.com>
28750
28751         * lib/gai_strerror.c: Include config.h when available.  Include
28752         getaddrinfo.h before other headers to test interface.
28753         Reported by Larry Jones <lawrence.jones@ugs.com>.
28754
28755 2005-09-12  Derek Price  <derek@ximbiot.com>
28756             Paul Eggert  <eggert@cs.ucla.edu>
28757
28758         * modules/glob (Files): Add glob-libc.h.
28759
28760 2005-09-12  Derek Price  <derek@ximbiot.com>
28761             Paul Eggert  <eggert@cs.ucla.edu>
28762
28763         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28764         glob_.h, glob-libc.h.
28765         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28766
28767 2005-09-12  Derek Price  <derek@ximbiot.com>
28768             Paul Eggert  <eggert@cs.ucla.edu>
28769
28770         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28771         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28772         protecting things that should be done only in gnulib contexts.
28773         * lib/glob_.h: New file, containing only the glob things needed for
28774         gnulib.
28775         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28776         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28777         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28778         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28779         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28780         and to respect the namespace rules better.
28781
28782 2005-09-08  Simon Josefsson  <jas@extundo.com>
28783
28784         * modules/socklen: New file.
28785
28786 2005-09-08  Simon Josefsson  <jas@extundo.com>
28787
28788         * m4/socklen.m4: New file.
28789
28790 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28791
28792         * modules/utimens (Files): Add m4/utimbuf.m4, since
28793         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28794         Reported by Sergey Poznyakoff.
28795
28796 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28797
28798         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28799         definitions, since that's the preferred style in glibc.
28800         Fix a minor spacing issue, and update copyright notice to match
28801         glibc's.
28802
28803 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28804
28805         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28806
28807 2005-09-06  Simon Josefsson  <jas@extundo.com>
28808
28809         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28810         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28811
28812 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28813
28814         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28815         warning.
28816
28817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28818
28819         * config/srclist.txt: Add glibc bug 1302.
28820
28821 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28822
28823         Change bitset word type from unsigned int to unsigned long int,
28824         as this has better performance on typical 64-bit hosts.
28825         Port bitset code to hosts with unusual word sizes.
28826         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28827         (build_collating_symbol):
28828         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28829         argument is a bitset.  This is merely a style issue, but it makes
28830         it clearer that an entire array is expected.
28831         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28832         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28833         Port to the case where bitset_word is not the same as unsigned int.
28834         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28835         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28836         Likewise.
28837         * lib/regexec.c (check_dst_limits_calc_pos_1,
28838         check_subexp_matching_top):
28839         (build_trtable, group_nodes_into_DFAstates):
28840         Likewise.
28841         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28842         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28843         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28844         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28845         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28846         * lib/regcomp.c (optimize_subexps, lower_subexp):
28847         Work even if bitset_word has holes in its bitwise representation.
28848         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28849         * lib/regexec.c (check_dst_limits_calc_pos_1,
28850         check_subexp_matching_top):
28851         Likewise.
28852         * lib/regex_internal.c (re_string_reconstruct):
28853         Don't assume UCHAR_MAX == 255.
28854         * lib/regex_internal.h (bitset_set_all): Likewise.
28855         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28856         All uses changed.
28857         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28858         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28859         All uses changed.
28860         (BITSET_WORD_MAX): New macro.
28861         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28862         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28863         (bitset_empty, bitset_copy):
28864         Prefer sizeof (bitset) to multiplying it out ourselves.
28865         (bitset_not_merge): Remove; unused.
28866         (bitset_contain): Return bool, not unsigned int with one bit on.
28867         All callers changed.
28868         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28869         alignment than re_node_set; do this by defining a new internal
28870         type struct dests_alloc and using it to allocate memory.
28871
28872 2005-09-05  Bruno Haible  <bruno@clisp.org>
28873
28874         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28875         links.
28876
28877 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28878
28879         * modules/size_max (Makefile.am): Add size_max.h
28880
28881 2005-09-04  Derek Price  <derek@ximbiot.com>
28882
28883         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28884
28885 2005-09-03  Simon Josefsson  <jas@extundo.com>
28886
28887         * gnulib-tool: Fix typo.
28888
28889 2005-09-03  Simon Josefsson  <jas@extundo.com>
28890
28891         * config/srclist.txt: Add glibc bug 1293.
28892
28893 2005-09-03  Derek Price  <derek@ximbiot.com>
28894
28895         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28896         From Larry Jones <lawrence.jones@ugs.com>.
28897
28898 2005-09-02  Simon Josefsson  <jas@extundo.com>
28899
28900         * modules/socklen: New file.
28901
28902 2005-09-02  Simon Josefsson  <jas@extundo.com>
28903
28904         * modules/havelib: New module.
28905
28906         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28907         Use havelib.
28908
28909 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28910
28911         Check for arithmetic overflow when calculating sizes, to prevent
28912         some buffer-overflow issues.  These patches are conservative, in the
28913         sense that when I couldn't determine whether an overflow was possible,
28914         I inserted a run-time check.
28915         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28916         macros.
28917         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28918         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28919         (re_xnrealloc, re_x2nrealloc): New inline functions.
28920         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28921         parse_bracket_exp):
28922         (build_equiv_class, build_charclass): Check for arithmetic overflow
28923         in size expression calculations.
28924         * lib/regex_internal.c (re_string_realloc_buffers):
28925         (build_wcs_upper_buffer, re_node_set_add_intersect):
28926         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28927         (re_dfa_add_node, register_state): Likewise.
28928         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28929         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28930         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28931         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28932
28933 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28934
28935         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28936         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28937
28938 2005-09-02  Bruno Haible  <bruno@clisp.org>
28939
28940         Support for lib vs. lib64 distinction on biarch platforms.
28941         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28942         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28944
28945 2005-09-02  Bruno Haible  <bruno@clisp.org>
28946
28947         * gnulib-tool (import): In the other first-use case, provide defaults
28948         as well.
28949
28950 2005-09-02  Bruno Haible  <bruno@clisp.org>
28951
28952         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28953         patches not yet found in the latest gettext release.
28954
28955 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28956
28957         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28958         to avoid a collision with bits/local_lim.h in glibc.
28959         All uses changed.  Problem reported by Dmitry V. Levin in
28960         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28961
28962         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28963         bugs in int versus size_t comparisons.
28964         (re_string_context_at): Fix bug where the code assumed that
28965         Idx is signed.
28966
28967         Use bool where appropriate.
28968         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28969         All callers changed.
28970         (calc_eclosure_iter): Likewise, for ROOT arg.
28971         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28972         (build_charclass_op): Likewise, for NON_MATCH arg.
28973         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28974         (re_string_construct_common): Likewise, for ICASE arg.
28975         * lib/regexec.c (re_search_2_stub, re_search_stub):
28976         Likewise, for RET_LEN arg.
28977         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28978         (set_regs): Likewise, for FL_BACKTRACK arg.
28979         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28980         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28981         (calc_eclosure_iter, parse_bracket_exp):
28982         Use bool for internal variables that are booleans.
28983         * lib/regexec.c (re_search_internal, check_matching,
28984         proceed_next_node):
28985         (set_regs, build_sifted_states, sift_states_bkref):
28986         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28987         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28988         (find_collation_sequence_value):
28989         Likewise.
28990         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28991         (re_node_set_compare):
28992         Return bool, not int. All callers changed.
28993         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28994         (build_trtable, check_node_accept): Likewise.
28995         * lib/regex_internal.h: Include stdbool.h.
28996
28997         Fix bugs uncovered when converting to bool.
28998         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28999         failure instead of charging ahead blindly.
29000         * lib/regex_internal.c (register_state): Likewise.
29001         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29002         for freeing internal storage.
29003         (group_nodes_into_DFA_states): Use unsigned int, not int, for
29004         bitset pieces used as boolean, to avoid undefined behavior
29005         on hosts that do int overflow checking.
29006
29007 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29008
29009         * config/srclist.txt: Add glibc bugs 1285-1287.
29010
29011 2005-09-01  Jim Meyering  <jim@meyering.net>
29012
29013         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29014         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29015         Require gl_STAT_MACROS, too.
29016
29017 2005-09-01  Bruno Haible  <bruno@clisp.org>
29018
29019         * gnulib-tool (import): In the first-use case, provide defaults.
29020
29021 2005-09-01  Bruno Haible  <bruno@clisp.org>
29022
29023         * gnulib-tool (func_import): Remove the .tmp files.
29024
29025 2005-09-01  Bruno Haible  <bruno@clisp.org>
29026
29027         * gnulib-tool (func_import): Fix handling of symbolic links.
29028
29029 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29030
29031         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29032         old glibc regex code mishandles strings longer than 2**31 bytes.
29033         This patch fixes this when the regex code is used in gnulib
29034         (i.e., outside glibc).
29035
29036         This patch should not affect the use of the regex code inside
29037         glibc.  No doubt this problem also needs to be handled for glibc
29038         as well, but the result will be an incompatible change to the
29039         glibc ABI, and the old ABI will have to be supported too.  That
29040         can be the the subject for another patch.
29041
29042         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29043         governing whether the rest of this patch is active.  By default,
29044         the macro is disabled and the patch has no effect.
29045         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29046         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29047         (struct re_pattern_buffer, re_search, re_search_2, re_match):
29048         (re_match_2, re_set_registers): Use the new types.
29049         * lib/regex_internal.h (Idx, re_hashval_t): New types.
29050         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29051         New macros.
29052         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29053         (re_string_context_at, bin_tree_t, re_dfastate_t):
29054         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29055         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29056         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29057         (re_string_char_size_at, re_string_wchar_at):
29058         (re_string_elem_size_at):
29059         Use the new types and macros to port to 64-bit hosts.
29060         Use unsigned types for internal values, so that the code
29061         mostly works even for arrays larger than SSIZE_MAX.
29062         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29063         (search_duplicated_node, calc_eclosure_iter, fetch_number):
29064         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29065         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29066         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29067         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29068         (calc_inveclosure, parse_dup_op, build_range_exp):
29069         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29070         (fetch_number, create_token_tree, mark_opt_subexp):
29071         Likewise.
29072         * lib/regex_internal.c (re_string_construct_common,
29073         create_ci_newstate):
29074         (create_cd_newstate, re_string_allocate, re_string_construct):
29075         (re_string_realloc_buffers, build_wcs_upper_buffer):
29076         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29077         (re_string_reconstruct, re_string_peek_byte_case):
29078         (re_string_fetch_byte_case, re_string_context_at):
29079         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29080         (re_node_set_init_copy, re_node_set_add_intersect):
29081         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29082         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29083         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29084         (re_acquire_state, re_acquire_state_context, register_state):
29085         Likewise.
29086         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29087         search_cur_bkref_entry):
29088         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29089         (re_search_internal, re_search_2_stub, re_search_stub)
29090         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29091         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29092         (update_cur_sifted_state, check_dst_limits):
29093         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29094         (check_subexp_limits, sift_states_bkref, merge_state_array):
29095         (check_subexp_matching_top, get_subexp, get_subexp_sub):
29096         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29097         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29098         (expand_bkref_cache, check_node_accept_bytes):
29099         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29100         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29101         (acquire_init_state_context, check_halt_node_context):
29102         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29103         (sift_states_backward, clean_state_log_if_needed):
29104         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29105         (find_recover_state, transit_state_sb, transit_state_mb):
29106         (transit_state_bkref, build_trtable, match_ctx_clean):
29107         Likewise.
29108         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29109         to work around an assumption that REG_MISSING is negative.
29110
29111         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29112         (seek_collating_symbol_entry) [defined _LIBC]:
29113         (lookup_collation_sequence_value) [defined _LIBC]:
29114         (build_range_exp, build_collating_symbol) [defined _LIBC]:
29115         Use prototypes rather than old-style function definitions.
29116         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29117         (transit_state_sb) [0]:
29118         (find_collation_sequence_value) [defined _LIBC]: Likewise.
29119
29120         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29121         rm_eo.
29122
29123         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29124         (optimize_subexps, lower_subexp):
29125         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29126         since the signed shift might overflow.  Use 1u<<31 instead.
29127         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29128         Likewise.
29129         * lib/regexec.c (check_dst_limits_calc_pos_1,
29130         check_subexp_matching_top): Likewise.
29131
29132         * lib/regcomp.c (optimize_subexps, lower_subexp):
29133         Use CHAR_BIT rather than 8, for clarity.
29134         * lib/regexec.c (check_dst_limits_calc_pos_1):
29135         (check_subexp_matching_top): Likewise.
29136         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29137         have to worry about portability issues when shifting it left.
29138         Remove no-longer-needed test for table_size > 0.
29139         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29140         in a word, as the resulting behavior is undefined.
29141         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29142         in one case, a <= should have been an <, and in another case the
29143         whole test was missing.
29144         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
29145         the standard name CHAR_BIT.
29146         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29147         this is not true on one's complement and signed-magnitude hosts.
29148
29149         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29150         next_last_offset.
29151         (struct re_dfa_t): Remove unused member states_alloc.
29152         * lib/regcomp.c (init_dfa): Don't initialize unused members.
29153
29154 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29155
29156         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29157         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
29158         and large-file glibc and in 32-bit large-file Solaris.
29159
29160 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29161
29162         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29163         lengths fit in regoff_t; this isn't true if regoff_t is the same
29164         width as size_t.
29165         * lib/regex.c (re_search_internal): 5th arg is LAST_START
29166         (= START + RANGE) instead of RANGE.  This avoids overflow
29167         problems when regoff_t is the same width as size_t.
29168         All callers changed.
29169         (re_search_2_stub): Check for overflow when adding the
29170         sizes of the two strings.
29171         (re_search_stub): Check for overflow when adding START
29172         to RANGE; if it occurs, substitute the extreme value.
29173
29174 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29175
29176         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29177
29178 2005-08-31  Jim Meyering  <jim@meyering.net>
29179
29180         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29181         a pointer-to-const.
29182         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29183         (register_state): Likewise.
29184         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29185         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29186         (group_nodes_into_DFAstates): Likewise.
29187
29188 2005-08-31  Jim Meyering  <jim@meyering.net>
29189
29190         * check-module: Add a FIXME comment.
29191
29192 2005-08-31  Eric Blake  <ebb9@byu.net>
29193
29194         * modules/unistd-safer (Files): Add unistd--.h.
29195         * modules/stdio-safer (Files): Add stdio--.h.
29196
29197 2005-08-31  Derek Price  <derek@ximbiot.com>
29198
29199         * lib/getdelim.c (getdelim): Return EOF on EOF.
29200         Reported by Larry Jones <lawrence.jones@ugs.com>.
29201
29202 2005-08-31  Bruno Haible  <bruno@clisp.org>
29203
29204         Avoid unnecessary diffs in the generated lib/Makefile.am.
29205         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29206         the generated files.
29207         (func_import): Don't set cmd.
29208
29209 2005-08-31  Bruno Haible  <bruno@clisp.org>
29210
29211         * lib/strstr.c: Include <stddef.h>, for NULL.
29212         * lib/strcasestr.c: Likewise.
29213         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29214
29215 2005-08-31  Bruno Haible  <bruno@clisp.org>
29216
29217         * gnulib-tool: New option --macro-prefix.
29218         (func_import): Use macro_prefix.
29219         (import): Handle option --macro-prefix.
29220
29221 2005-08-31  Bruno Haible  <bruno@clisp.org>
29222
29223         * gnulib-tool (import): Rename most ac_* variables to cached_*.
29224         Also use new variables cached_lgpl, cached_libtool.
29225
29226 2005-08-31  Bruno Haible  <bruno@clisp.org>
29227
29228         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29229         always instantiating them.
29230
29231 2005-08-31  Bruno Haible  <bruno@clisp.org>
29232
29233         * gnulib-tool (func_import): Read the previous cached settings
29234         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29235         earlier added by gnulib but are now dropped. Warn when a gnulib file
29236         overwrites a non-gnulib file.
29237
29238 2005-08-31  Bruno Haible  <bruno@clisp.org>
29239
29240         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29241         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29242         projects that don't keep autogenerated files in CVS. Put into
29243         actioncmd only the specified modules, not the transitive closure.
29244
29245 2005-08-31  Bruno Haible  <bruno@clisp.org>
29246
29247         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29248         Create directories that shall be filled.
29249         (import): Don't look for gl_* macros in configure.ac. Recurse across
29250         all directories containing a gnulib-cache.m4 files, if meaningful.
29251
29252 2005-08-31  Bruno Haible  <bruno@clisp.org>
29253
29254         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29255         (import): Set seen_libtool when we see gl_LIBTOOL.
29256
29257 2005-08-31  Bruno Haible  <bruno@clisp.org>
29258
29259         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29260         declaration macro definitions from generated gnulib.m4.
29261
29262 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
29263
29264         * lib/iconvme.h: Add prototype for iconv_alloc.
29265
29266 2005-08-29  Simon Josefsson  <jas@extundo.com>
29267
29268         * lib/iconvme.c: Fix errno.
29269
29270 2005-08-29  Bruno Haible  <bruno@clisp.org>
29271
29272         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29273         that it works when the directory contains spaces.
29274
29275 2005-08-29  Bruno Haible  <bruno@clisp.org>
29276
29277         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29278
29279 2005-08-29  Bruno Haible  <bruno@clisp.org>
29280
29281         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29282         Emit more advice.
29283
29284 2005-08-29  Bruno Haible  <bruno@clisp.org>
29285         and Stepan Kasal  <kasal@ucw.cz>
29286
29287         * check-module: If more parameters are given, check each of them
29288         separately; add more exceptions, as noted by Jim Meyering.
29289         (check_module): New procedure.
29290         (%exempt_header): Now contains all exceptions.
29291
29292 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29293
29294         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29295
29296 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29297
29298         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29299
29300 2005-08-28  Bruno Haible  <bruno@clisp.org>
29301
29302         * m4/gnulib-tool.m4: New file.
29303
29304 2005-08-27  Jim Meyering  <jim@meyering.net>
29305
29306         * modules/unistd-safer (Files): Add pipe-safer.c.
29307         * modules/fcntl-safer (Files): Add creat-safer.c.
29308
29309 2005-08-27  Jim Meyering  <jim@meyering.net>
29310
29311         * m4/stdlib-safer.m4: New file.  From coreutils.
29312         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29313         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29314         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29316         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29317
29318 2005-08-27  Jim Meyering  <jim@meyering.net>
29319
29320         * lib/fopen-safer.c: Merge minor changes from coreutils.
29321         * lib/dup-safer.c: Likewise.
29322         * lib/fd-safer.c: Likewise.
29323
29324         Merge from coreutils.
29325         * lib/stdio--.h: New file.
29326         * lib/stdlib--.h: New file.
29327         * lib/mkstemp-safer.c: New file.
29328
29329         GNU tar needs these.
29330         * lib/pipe-safer.c: New file.
29331         * lib/creat-safer.c: New file.
29332         * lib/fcntl--.h (creat): Define to creat_safer.
29333         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
29334         * lib/unistd--.h (pipe): Define to pipe_safer.
29335         * lib/unistd-safer.h: Declare pipe_safer.
29336
29337 2005-08-26  Simon Josefsson  <jas@extundo.com>
29338
29339         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
29340         Haible <bruno@clisp.org>.
29341
29342 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
29343
29344         * lib/regex_internal.h: Remove all references to
29345         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
29346         or better.
29347         (bitset_not, bitset_merge, bitset_not_merge):
29348         (bitset_mask, re_string_allocate, re_string_construct):
29349         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
29350         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
29351         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
29352         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
29353         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29354         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29355         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
29356         (re_acquire_state_context):
29357         Remove unnecessary forward decls.
29358         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
29359         Put __attribute at function definition,
29360         now that the function decl has been removed.
29361         * lib/regex_internal.c (re_string_peek_byte_case):
29362         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
29363         Likewise.
29364
29365 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
29366
29367         * m4/regex.m4: Add AC_PREREQ(2.50).
29368         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29369
29370 2005-08-25  Simon Josefsson  <jas@extundo.com>
29371
29372         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29373         __fsetlocking.
29374
29375 2005-08-25  Simon Josefsson  <jas@extundo.com>
29376
29377         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
29378         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
29379         GLIBC specific code.
29380
29381 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29382
29383         Make regex safe for g++.  This fixes one real bug (an "err"
29384         that should have been "*err").  g++ problem reported by
29385         Sam Steingold.
29386         * lib/regex_internal.h (re_calloc): New macro, consistent with
29387         re_malloc etc.  All callers of calloc changed to use re_calloc.
29388         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29389         not int.  All callers changed.
29390         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29391         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29392         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29393         (find_recover_state): Change "err" to "*err"; this fixes what
29394         appears to be a real bug.
29395         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29396         versus int.
29397
29398 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29399
29400         * modules/regex (Depends-on): Add malloc, since the code
29401         assumes that !malloc(0) means failure.
29402
29403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29404
29405         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29406
29407         alloca modernization/simplification for regex.
29408         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29409         needs to be at the start of the file, and can be moved into
29410         regex_internal.h and simplified.
29411         * lib/regex_internal.h: Include <alloca.h>.
29412         (__libc_use_alloca) [!defined _LIBC]: New macro.
29413         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29414         now works outside glibc.
29415
29416 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29417
29418         * config/srclist.txt: Add glibc bugs 1241, 1245.
29419
29420 2005-08-25  Jim Meyering  <jim@meyering.net>
29421
29422         * lib/open-safer.c: Include <config.h>.
29423         Otherwise, we'd lose LARGEFILE support in any file using
29424         e.g. "fcntl--.h"
29425
29426 2005-08-25  Bruno Haible  <bruno@clisp.org>
29427
29428         * m4/minmax.m4: Require autoconf 2.52.
29429         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
29430         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
29431         alternatives of translit over the alphabet.
29432         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
29433
29434 2005-08-24  Simon Josefsson  <jas@extundo.com>
29435
29436         * tests/test-getpass.c: New file.
29437
29438 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29439
29440         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
29441         for GNU regex features.
29442
29443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29446         * lib/regex.h (regerror): Likewise.
29447
29448         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29449         requires this.  (The code never needed it.)
29450
29451         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29452         All uses of recently-renamed identifiers changed to use the new,
29453         POSIX-compliant names.  The code will build and run just fine
29454         without these changes, but it's better to eat our own dog food
29455         and use the standard-conforming names.
29456
29457         * lib/regex.h: Fix a multitude of POSIX name space violations.
29458         These changes have an effect only for programs that define
29459         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29460         do not change anything for programs compiled in the normal way.
29461         Also, there is no effect on the ABI.
29462
29463         (_REGEX_SOURCE): New macro.
29464         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29465         defined and _GNU_SOURCE is not; this fixes a name space violation.
29466
29467         Rename the following macros to obey POSIX requirements.
29468         The old names are still visible as macros if _REGEX_SOURCE is defined.
29469         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29470         RE_BACKSLASH_ESCAPE_IN_LISTS.
29471         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29472         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29473         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29474         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29475         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29476         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29477         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29478         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29479         (REG_INTERVALS): renamed from RE_INTERVALS.
29480         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29481         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29482         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29483         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29484         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29485         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29486         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29487         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29488         RE_UNMATCHED_RIGHT_PAREN_ORD.
29489         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29490         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29491         (REG_DEBUG): renamed from RE_DEBUG.
29492         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29493         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29494         unusual, since we can't clash with the POSIX REG_ICASE.
29495         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29496         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29497         (REG_NO_SUB): renamed from RE_NO_SUB.
29498         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29499         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29500         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29501         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29502         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29503         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29504         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29505         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29506         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29507         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29508         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29509         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29510         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29511         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29512         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29513         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29514         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29515         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29516         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29517         (REG_FIXED): Renamed from REGS_FIXED.
29518         (REG_NREGS): Renamed from RE_NREGS.
29519
29520         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29521         of other REG_* macros, since POSIX says the user is allowed to
29522         #undef these macros selectively.
29523
29524         (reg_errcode_t): Update comment stating what other tables need
29525         to be consistent.
29526
29527         Rename the following enum values to obey POSIX requirements.
29528         The old names are still visible as macros.
29529         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29530         is not defined, since GNU is supposed to be a superset of POSIX as
29531         much as possible, and since we want reg_errcode_t to be a signed
29532         type for implementation consistency.
29533         (_REG_NOERROR): Renamed from REG_NOERROR.
29534         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29535         (_REG_BADPAT): Renamed from REG_BADPAT.
29536         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29537         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29538         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29539         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29540         (_REG_EBRACK): Renamed from REG_EBRACK.
29541         (_REG_EPAREN): Renamed from REG_EPAREN.
29542         (_REG_EBRACE): Renamed from REG_EBRACE.
29543         (_REG_BADBR): Renamed from REG_BADBR.
29544         (_REG_ERANGE): Renamed from REG_ERANGE.
29545         (_REG_ESPACE): Renamed from REG_ESPACE.
29546         (_REG_BADRPT): Renamed from REG_BADRPT.
29547         (_REG_EEND): Renamed from REG_EEND.
29548         (_REG_ESIZE): Renamed from REG_ESIZE.
29549         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29550         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29551         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29552         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29553         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29554
29555         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29556         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29557         changed.  But support the old name if the new one is not defined
29558         and if _REGEX_SOURCE.
29559
29560         Change the following member names in struct re_pattern_buffer.
29561         The old names are still supported if !_REGEX_SOURCE.
29562         The new names are always supported, regardless of _REGEX_SOURCE.
29563         (re_buffer): Renamed from buffer.
29564         (re_allocated): Renamed from allocated.
29565         (re_used): Renamed from used.
29566         (re_syntax): Renamed from syntax.
29567         (re_fastmap): Renamed from fastmap.
29568         (re_translate): Renamed from translate.
29569         (re_can_be_null): Renamed from can_be_null.
29570         (re_regs_allocated): Renamed from regs_allocated.
29571         (re_fastmap_accurate): Renamed from fastmap_accurate.
29572         (re_no_sub): Renamed from no_sub.
29573         (re_not_bol): Renamed from not_bol.
29574         (re_not_eol): Renamed from not_eol.
29575         (re_newline_anchor): Renamed from newline_anchor.
29576
29577         Change the following member names in struct re_registers.
29578         The old names are still supported if !_REGEX_SOURCE.
29579         The new names are always supported, regardless of _REGEX_SOURCE.
29580         (rm_num_regs): Renamed from num_regs.
29581         (rm_start): Renamed from start.
29582         (rm_end): Renamed from end.
29583
29584         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29585         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29586         Prepend __ to parameter names.
29587
29588         Undo yesterday's changes.
29589
29590 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29591
29592         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29593         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29594         lib/regex.c.
29595
29596 2005-08-24  Jim Meyering  <jim@meyering.net>
29597
29598         Sync from coreutils.
29599         * m4/fcntl-safer.m4: New file.
29600
29601         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29602         and object files for this module.
29603
29604 2005-08-24  Jim Meyering  <jim@meyering.net>
29605
29606         Sync from coreutils.
29607         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29608
29609 2005-08-24  Jim Meyering  <jim@meyering.net>
29610
29611         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29612         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29613
29614 2005-08-24  Jim Meyering  <jim@meyering.net>
29615
29616         * modules/fcntl-safer: New module.
29617         * modules/fts (Depends-on): Add fcntl-safer.
29618         * MODULES.html.sh (File descriptor based Input/Output):
29619         Add fcntl-safer.
29620
29621 2005-08-24  Bruno Haible  <bruno@clisp.org>
29622
29623         Support for unit test modules.
29624         * modules/README: Mention tests modules.
29625         * modules/TEMPLATE-TESTS: New file.
29626         * gnulib-tool: New options --extract-tests-module, --with-tests and
29627         --tests-base (unused for the moment).
29628         (testsbase, inctests): New variables.
29629         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29630         (func_verify_module): Exclude TEMPLATE-TESTS.
29631         (func_verify_nontests_module, func_verify_tests_module): New functions.
29632         (func_get_dependencies): Add implicit dependency for tests modules.
29633         (func_get_tests_module): New function.
29634         (func_modules_transitive_closure): When --with-tests was specified,
29635         include the unit tests as well, unless explicitly avoided.
29636         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29637         (func_emit_tests_Makefile_am): New function.
29638         (func_create_testdir): When --with-tests was specified, emit a
29639         tests/ directory.
29640         * MODULES.html.sh (Future developments): Update.
29641
29642 2005-08-24  Bruno Haible  <bruno@clisp.org>
29643
29644         * modules/tls-tests: New file.
29645         * tests/test-tls.c: New file, from GNU gettext.
29646
29647 2005-08-24  Bruno Haible  <bruno@clisp.org>
29648
29649         * modules/lock-tests: New file.
29650         * tests/test-lock.c: New file, from GNU gettext.
29651
29652 2005-08-24  Bruno Haible  <bruno@clisp.org>
29653
29654         * lib/lock.h: Add multiple inclusion guard.
29655         * lib/tls.h: Add multiple inclusion guard.
29656
29657 2005-08-24  Bruno Haible  <bruno@clisp.org>
29658
29659         * gnulib-tool: Add support for the --aux-dir option to
29660         --create-testdir, --create-megatestdir, --test, --megatest.
29661         (func_create_testdir, func_create_megatestdir): Optionally emit a
29662         AC_CONFIG_AUX_DIR directive.
29663         (create-testdir, create-megatestdir, test, megatest): Provide a
29664         default value for $auxdir.
29665
29666 2005-08-24  Bruno Haible  <bruno@clisp.org>
29667
29668         * gnulib-tool (import): Use compound statement instead of subshell
29669         where possible.
29670
29671 2005-08-24  Bruno Haible  <bruno@clisp.org>
29672
29673         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29674
29675 2005-08-24  Bruno Haible  <bruno@clisp.org>
29676
29677         * gnulib-tool (func_version): Update.
29678
29679 2005-08-24  Bruno Haible  <bruno@clisp.org>
29680
29681         * gnulib-tool (func_import, func_create_testdir,
29682         func_create_megatestdir): Quote all autoconf macro arguments.
29683
29684 2005-08-24  Bruno Haible  <bruno@clisp.org>
29685
29686         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29687         option --force, because --force causes the aclocal.m4 of each
29688         subdirectory to be newer than the corresponding config.h.in.
29689
29690 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29691
29692         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29693         All contents moved to gl_REGEX.
29694         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29695         assume that it does.
29696
29697 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29698
29699         * lib/regex.h (REG_NOSYS)
29700         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29701         Define, since POSIX requires it as of 2001.
29702         (_REG_ENOSYS)
29703         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29704         New private symbol, used to keep the enum signed in all cases.
29705         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29706         Youngman in
29707         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29708
29709         * lib/regex_internal.c (re_string_skip_chars, register_state):
29710         (calc_state_hash):
29711         Remove forward decls; no longer needed now that we use prototypes.
29712         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29713         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29714         (clean_state_log_if_needed): Likewise.
29715
29716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29717
29718         * config/srclist.txt: Add glibc bugs 1231-1233.
29719
29720 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29721
29722         Fix problems reported by Sam Steingold in
29723         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29724         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29725         assumed that reg_errcode_t is a signed type, which is not
29726         necessarily true if _XOPEN_SOURCE is not defined.
29727         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29728         since some compilers warn about it otherwise.
29729
29730 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29731
29732         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29733         (init_word_char, create_initial_state, duplicate_node_closure):
29734         (fetch_token, peek_token_bracket, build_range_exp):
29735         (build_collating_symbol): Remove forward decls; no longer needed
29736         now that we use prototypes.
29737
29738         * lib/regcomp.c:
29739         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29740         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29741         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29742         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29743         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29744         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29745         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29746         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29747         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29748         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29749         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29750         (build_charclass, build_charclass_op, fetch_number, create_tree):
29751         (create_token_tree, mark_opt_subexp, duplicate_tree):
29752         Use prototypes rather than old-style definitions.
29753
29754         * lib/regex_internal.c:
29755         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29756         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29757         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29758         (re_string_reconstruct, re_string_peek_byte_case):
29759         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29760         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29761         (re_node_set_init_copy, re_node_set_add_intersect):
29762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29764         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29765         (re_acquire_state, re_acquire_state_context, register_state):
29766         (create_ci_newstate, create_cd_newstate, free_state):
29767         Likewise.
29768         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29769         re_search_2):
29770         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29771         (re_search_internal, prune_impossible_nodes):
29772         (acquire_init_state_context, check_matching, static):
29773         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29774         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29775         (update_regs, sift_states_backward, build_sifted_states):
29776         (clean_state_log_if_needed, merge_state_array):
29777         (update_cur_sifted_state, add_epsilon_src_nodes):
29778         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29779         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29780         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29781         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29782         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29783         (check_arrival, check_arrival_add_next_nodes):
29784         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29785         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29786         (check_node_accept_bytes, check_node_accept, extend_buffers):
29787         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29788         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29789         (sift_ctx_init):
29790         Likewise.
29791
29792         * lib/regex_internal.h:
29793         (re_string_allocate, re_string_construct, re_string_reconstruct):
29794         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29795         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29796         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29797         (re_string_context_at, re_string_peek_byte_case):
29798         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29799         is defined, since we now use prototypes always.
29800
29801         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29802         C89 or better.  All uses removed.
29803
29804 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29805
29806         * config/srclist.txt: Add glibc bugs 1220-1227.
29807
29808 2005-08-20  Jim Meyering  <jim@meyering.net>
29809
29810         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29811         of unused local, dfa.
29812
29813 2005-08-20  Bruno Haible  <bruno@clisp.org>
29814
29815         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29816
29817 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29820         (re_node_set_insert_last, re_dfa_add_node):
29821         Rename local variables to avoid GCC shadowing warnings.
29822
29823 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29824
29825         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29826         [defined lint]: Suppress bogus uninitialized-variable warnings.
29827
29828         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29829         and let the caller return REG_ESPACE if out of space.  This
29830         removes an uninitialied-variable warning with GCC 4.0.1, and also
29831         avoids taking the address of a local variable.  All callers
29832         changed.
29833
29834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29835
29836         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29837         $LIBCSRC/posix/regexec.c.
29838         Add glibc bug 1217 for regcomp.c.
29839
29840 2005-08-19  Jim Meyering  <jim@meyering.net>
29841
29842         * lib/regexec.c (proceed_next_node): Redo local variables to
29843         avoid GCC shadowing warnings.
29844
29845 2005-08-18  Bruno Haible  <bruno@clisp.org>
29846
29847         * lib/strstr.c (strstr): Fix return value in multibyte case.
29848         * lib/strcasestr.c (strcasestr): Likewise.
29849
29850 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29851
29852         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29853
29854 2005-08-17  Jim Meyering  <jim@meyering.net>
29855
29856         Make the %s format (seconds since the epoch) work for a negative
29857         number and when used with a zero-padded field width, e.g. %015s.
29858
29859         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29860         label so that it precedes the code to set `digits'.  Otherwise,
29861         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29862         print `00-22'.  Now, it prints `-0022', as it should.
29863
29864 2005-08-17  Bruno Haible  <bruno@clisp.org>
29865
29866         * modules/strstr (Files): Add m4/mbrtowc.m4.
29867         (Depends-on): Add mbuiter.
29868
29869 2005-08-17  Bruno Haible  <bruno@clisp.org>
29870
29871         * modules/strcasestr: New file.
29872         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29873         strcasestr.
29874
29875 2005-08-17  Bruno Haible  <bruno@clisp.org>
29876
29877         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29878
29879 2005-08-17  Bruno Haible  <bruno@clisp.org>
29880
29881         * modules/mbuiter: New file.
29882         * MODULES.html.sh (Extended multibyte and wide character utilities):
29883         Add mbuiter.
29884
29885 2005-08-17  Bruno Haible  <bruno@clisp.org>
29886
29887         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29888         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29889
29890 2005-08-17  Bruno Haible  <bruno@clisp.org>
29891
29892         * m4/strcasestr.m4: New file.
29893
29894 2005-08-17  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29897         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29898
29899 2005-08-17  Bruno Haible  <bruno@clisp.org>
29900
29901         * lib/strcasestr.h: New file.
29902         * lib/strcasestr.c: New file.
29903
29904 2005-08-17  Bruno Haible  <bruno@clisp.org>
29905
29906         * lib/strcasecmp.c: Use mbuiter.h.
29907
29908 2005-08-17  Bruno Haible  <bruno@clisp.org>
29909
29910         * lib/mbuiter.h: New file.
29911
29912 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29913
29914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29915         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29916         and gl_GETOPT are both invoked via different paths (as happens
29917         with GNU tar CVS because it uses both argp and getopt), the former
29918         wins.
29919
29920 2005-08-16  Bruno Haible  <bruno@clisp.org>
29921
29922         * modules/tls: New file.
29923         * MODULES.html.sh (Multithreading): Add tls.
29924
29925 2005-08-16  Bruno Haible  <bruno@clisp.org>
29926
29927         * modules/strnlen1: New file.
29928         * MODULES.html.sh (String handling): Add strnlen1.
29929
29930 2005-08-16  Bruno Haible  <bruno@clisp.org>
29931
29932         * modules/strcase (Files): Add m4/mbrtowc.m4.
29933         (Depends-on): Add strnlen1, mbchar.
29934
29935 2005-08-16  Bruno Haible  <bruno@clisp.org>
29936
29937         * modules/mbiter: New file.
29938         * MODULES.html.sh (Extended multibyte and wide character utilities):
29939         Add mbiter.
29940
29941 2005-08-16  Bruno Haible  <bruno@clisp.org>
29942
29943         * modules/mbfile: New file.
29944         * MODULES.html.sh (Extended multibyte and wide character utilities):
29945         Add mbfile.
29946
29947 2005-08-16  Bruno Haible  <bruno@clisp.org>
29948
29949         * modules/mbchar: New file.
29950         * MODULES.html.sh (Extended multibyte and wide character utilities):
29951         New section.
29952
29953 2005-08-16  Bruno Haible  <bruno@clisp.org>
29954
29955         * m4/tls.m4: New file, from GNU gettext.
29956
29957 2005-08-16  Bruno Haible  <bruno@clisp.org>
29958
29959         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29960         always.
29961         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29962
29963 2005-08-16  Bruno Haible  <bruno@clisp.org>
29964
29965         * m4/mbiter.m4: New file.
29966
29967 2005-08-16  Bruno Haible  <bruno@clisp.org>
29968
29969         * m4/mbfile.m4: New file.
29970
29971 2005-08-16  Bruno Haible  <bruno@clisp.org>
29972
29973         * m4/mbchar.m4: New file.
29974
29975 2005-08-16  Bruno Haible  <bruno@clisp.org>
29976
29977         * lib/tls.h: New file, from GNU gettext.
29978         * lib/tls.c: New file, from GNU gettext.
29979
29980 2005-08-16  Bruno Haible  <bruno@clisp.org>
29981
29982         * lib/strnlen1.h: New file.
29983         * lib/strnlen1.c: New file.
29984
29985 2005-08-16  Bruno Haible  <bruno@clisp.org>
29986
29987         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29988         (mbi_init): Update.
29989         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29990         NUL byte, not after it.
29991
29992 2005-08-16  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/strcase.h (strcasecmp): Add note in comments.
29995         * lib/strncasecmp.c: Use code from strcasecmp.c.
29996         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29997         (strcasecmp): Work correctly in multibyte locales.
29998
29999 2005-08-16  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/mbiter.h: New file.
30002
30003 2005-08-16  Bruno Haible  <bruno@clisp.org>
30004
30005         * lib/mbfile.h: New file.
30006
30007 2005-08-16  Bruno Haible  <bruno@clisp.org>
30008
30009         * lib/mbchar.h: New file.
30010         * lib/mbchar.c: New file.
30011
30012 2005-08-16  Bruno Haible  <bruno@clisp.org>
30013
30014         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30015         the valid ones. Makes the comparison operations transitive:
30016         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30017         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30018
30019 2005-08-15  Simon Josefsson  <jas@extundo.com>
30020
30021         * modules/ssize_t (License): Change to 'unlimited'.
30022
30023         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30024
30025 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30026
30027         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30028         Add comments for each pending glibc patch.
30029
30030 2005-08-15  Bruno Haible  <bruno@clisp.org>
30031
30032         * lib/regex.h (__restrict_arr): Don't define to __restrict if
30033         __cplusplus is defined.
30034
30035 2005-08-14  Jim Meyering  <jim@meyering.net>
30036
30037         Sync from coreutils.
30038
30039         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30040         Use the hash-table-based cycle-detection code not just when
30041         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30042         Reported by James Youngman in
30043         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30044         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30045         FTS_TIGHT_CYCLE_CHECK.
30046         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30047         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30048         once again.
30049         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30050         * lib/fts.c (fd_safer): Remove decl.
30051         Include fcntl--.h rather than unistd-safer.h
30052         (fts_safe_changedir): Don't call fd_safer; no longer needed
30053         now that we include fcntl--.h.
30054
30055 2005-08-12  Simon Josefsson  <jas@extundo.com>
30056
30057         * modules/getndelim2: Use ssize_t module.
30058         * modules/getnline: Likewise.
30059         * modules/safe-read: Likewise.
30060         * modules/xreadlink: Likewise.
30061
30062         * modules/ssize_t: New file.
30063
30064 2005-08-12  Simon Josefsson  <jas@extundo.com>
30065
30066         * m4/readline.m4: Look for termcap, curses or ncurses if required.
30067
30068 2005-08-12  Simon Josefsson  <jas@extundo.com>
30069
30070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30071         ssize_t.
30072
30073 2005-08-12  Simon Josefsson  <jas@extundo.com>
30074
30075         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30076         readline, getdelim and check_version.
30077         (Support for systems lacking ISO C 99: Sizes of integer types):
30078         Add size_max.
30079
30080 2005-08-12  Bruno Haible  <bruno@clisp.org>
30081
30082         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30083
30084 2005-08-11  Simon Josefsson  <jas@extundo.com>
30085
30086         * modules/readline: New file.
30087
30088         * modules/strnlen (Files): Add strnlen.h.
30089
30090 2005-08-11  Simon Josefsson  <jas@extundo.com>
30091
30092         * m4/readline.m4: New file.
30093
30094 2005-08-11  Simon Josefsson  <jas@extundo.com>
30095
30096         * lib/readline.h, readline.c: New file.
30097
30098 2005-08-11  Simon Josefsson  <jas@extundo.com>
30099
30100         * doc/gnulib.texi (Initial import, Finishing touches): Mention
30101         gl_AVOID.
30102
30103 2005-08-11  Bruno Haible  <bruno@clisp.org>
30104
30105         * lib/strnlen.h (strnlen): Change parameter name to match comment.
30106
30107 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
30108
30109         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30110
30111 2005-08-10  Simon Josefsson  <jas@extundo.com>
30112
30113         * tests/test-iconvme.c: New file.
30114
30115 2005-08-10  Simon Josefsson  <jas@extundo.com>
30116
30117         * m4/strnlen.m4: New file.
30118
30119         * m4/strndup.m4: Don't check for strnlen declaration, done in
30120         strnlen.m4.
30121
30122 2005-08-10  Simon Josefsson  <jas@extundo.com>
30123
30124         * lib/strndup.c: Use strnlen.h.
30125
30126         * lib/strnlen.h: New file.
30127
30128 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30129
30130         * README: Typos.
30131
30132 2005-08-02  Simon Josefsson  <jas@extundo.com>
30133
30134         * modules/readline: New file.
30135
30136 2005-08-02  Simon Josefsson  <jas@extundo.com>
30137
30138         * modules/getdelim: New file.
30139
30140         * modules/getline: Rewrite, don't use getndelim2.
30141
30142 2005-08-02  Simon Josefsson  <jas@extundo.com>
30143
30144         * m4/getline.m4: Separate out getdelim stuff into separate module.
30145
30146         * m4/getdelim.m4: New file.
30147
30148 2005-08-02  Simon Josefsson  <jas@extundo.com>
30149
30150         * lib/getline.h, getline.c: Rewrite.
30151
30152         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30153
30154 2005-07-31  Bruno Haible  <bruno@clisp.org>
30155
30156         * lib/lock.h (gl_lock_initializer): New macro.
30157         (gl_lock_define_initialized): Use it.
30158         (gl_rwlock_initializer): New macro.
30159         (gl_rwlock_define_initialized): Use it.
30160         (gl_recursive_lock_initializer): New macro.
30161         (gl_recursive_lock_define_initialized): Use it.
30162
30163 2005-07-30  Karl Berry  <karl@gnu.org>
30164
30165         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30166         Report from Ben Pfaff, regarding getopt.
30167
30168 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
30169
30170         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30171         normal way.
30172         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30173         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
30174         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30175         (gl_GETOPT): Use the new macros.  Most of the implementation
30176         is moved to the new macros.  This is for programs like Emacs
30177         that don't want all the functionality of gl_GETOPT.
30178
30179 2005-07-26  Bruno Haible  <bruno@clisp.org>
30180
30181         * m4/lock.m4: Update from GNU gettext.
30182
30183 2005-07-26  Bruno Haible  <bruno@clisp.org>
30184
30185         * lib/lock.h: Update from GNU gettext.
30186         * lib/lock.c: Update from GNU gettext.
30187
30188 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30191         obsolescent AC_TRY_RUN.  Include the default includes files, for
30192         'exit'.
30193
30194 2005-07-24  Bruno Haible  <bruno@clisp.org>
30195
30196         * modules/visibility: New file.
30197         * MODULES.html.sh (Misc): Add visibility.
30198
30199 2005-07-24  Bruno Haible  <bruno@clisp.org>
30200
30201         * m4/visibility.m4: New file.
30202
30203 2005-07-24  Bruno Haible  <bruno@clisp.org>
30204
30205         * doc/visibility.texi: New file.
30206
30207 2005-07-22  Bruno Haible  <bruno@clisp.org>
30208
30209         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30210         $(ALLOCA_H), redundant through BUILT_SOURCES.
30211         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30212         redundant through BUILT_SOURCES.
30213         * modules/byteswap (Makefile.am): Remove explicit dependency on
30214         $(BYTESWAP_H), redundant through BUILT_SOURCES.
30215         * modules/fnmatch (Makefile.am): Remove explicit dependency on
30216         $(FNMATCH_H), redundant through BUILT_SOURCES.
30217         * modules/getopt (Makefile.am): Remove explicit dependency on
30218         $(GETOPT_H), redundant through BUILT_SOURCES.
30219         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30220         redundant through BUILT_SOURCES.
30221         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30222         redundant through BUILT_SOURCES.
30223         * modules/stdbool (Makefile.am): Remove explicit dependency on
30224         $(STDBOOL_H), redundant through BUILT_SOURCES.
30225         * modules/stdint (Makefile.am): Remove explicit dependency on
30226         $(STDINT_H), redundant through BUILT_SOURCES.
30227         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30228         Remove explicit dependency on $(SYSEXITS_H).
30229         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30230
30231 2005-07-18  Simon Josefsson  <jas@extundo.com>
30232
30233         * lib/check-version.c (check_version): Accept identical versions too.
30234
30235 2005-07-18  Bruno Haible  <bruno@clisp.org>
30236
30237         * modules/lock: New file.
30238         * MODULES.html.sh (Multithreading): New section.
30239
30240 2005-07-18  Bruno Haible  <bruno@clisp.org>
30241
30242         * m4/lock.m4: New file, from GNU gettext.
30243
30244 2005-07-18  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/lock.h: New file, from GNU gettext.
30247         * lib/lock.c: New file, from GNU gettext.
30248
30249 2005-07-18  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/lock.h (gl_once_t): New type.
30252         (gl_once_define, gl_once): New macros.
30253         * lib/lock.c (fresh_once): New variable.
30254         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30255         functions.
30256
30257 2005-07-16  Simon Josefsson  <jas@extundo.com>
30258
30259         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30260         workaround, suggested by Bruno.
30261
30262 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30263
30264         * modules/xalloc (Depends-on): Add xalloc-die.
30265         * modules/xvasprintf (Depends-on): Add xalloc-die.
30266
30267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30268
30269         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30270         with a minor change.
30271
30272 2005-07-15  Bruno Haible  <bruno@clisp.org>
30273
30274         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30275         When using lib/poll.c, define poll as rpl_poll.
30276
30277 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
30278
30279         * modules/argp (Depends-on): Remove unlocked-io.
30280
30281 2005-07-14  Derek Price  <derek@ximbiot.com>
30282
30283         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
30284         for glob symlink bug.
30285
30286 2005-07-14  Bruno Haible  <bruno@clisp.org>
30287
30288         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30289         Instead, test for *_unlocked function declarations directly.
30290
30291 2005-07-11  Simon Josefsson  <jas@extundo.com>
30292
30293         * modules/size_max: New file.
30294
30295         * modules/xsize: Depend on size_max module for size_max.m4.
30296
30297 2005-07-11  Simon Josefsson  <jas@extundo.com>
30298
30299         * lib/size_max.h: New file.
30300
30301 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30302
30303         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30304         copyright symbol and the year.
30305         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30306         (version_etc_va): Use parameterized copyright notice.
30307         Reword to conform to the current GNU coding standards.
30308
30309 2005-07-11  Karl Berry  <karl@gnu.org>
30310
30311         * doc/gnulib.texi (Quoting): new node.
30312         (Initial import): more info, from Patrice.
30313
30314 2005-07-11  Bruno Haible  <bruno@clisp.org>
30315
30316         * gnulib-tool (func_usage): Document option --avoid.
30317         (Command line options): Handle --avoid.
30318         (func_acceptable): New function.
30319         (func_modules_transitive_closure): Use it.
30320
30321 2005-07-11  Bruno Haible  <bruno@clisp.org>
30322
30323         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30324         Reported by Jim Meyering.
30325
30326 2005-07-10  Bruno Haible  <bruno@clisp.org>
30327
30328         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30329         Needed when size_t is smaller than 'unsigned int'.
30330         Reported by Paul Eggert.
30331
30332 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30333
30334         * modules/argp (Depends-on): Add unlocked-io
30335
30336 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30337
30338         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
30339         block of defines.
30340
30341 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30342
30343         * config/srclist.txt: Comment out regcomp.c, since we have a porting
30344         fix now.
30345
30346 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
30347         and Paul Eggert  <eggert@cs.ucla.edu>
30348
30349         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
30350         in wint_t, not wchar_t.  Remove now-unnecessary cast.
30351
30352 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30353
30354         * modules/regex (Files): Add lib/regex_internal.c,
30355         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
30356         (Depends-on): Add extensions.
30357         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
30358
30359 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30360
30361         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
30362         pathconf.
30363         * m4/same.m4 (gl_SAME): Likewise.
30364         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
30365
30366         * m4/regex.m4: Adjust to new libc regex implementation.
30367         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30368         all the .c and .h parts of (the new) regex.
30369         Quote the m4 stuff better.
30370         Check for RE_ICASE bug of old gnulib.
30371         Check for REG_STARTEND of recent libc.
30372         Rename local variables from jm_* to gl_*.
30373         Quote operand of "test -f".
30374         Say "recent enough" version of libc, not "version 2".
30375         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30376         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
30377         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30378         Remove check for btowc, isascii.
30379         Require AM_LANGINFO_CODESET.
30380
30381 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30382
30383         * lib/regex.c, regex.h: Sync from libc.
30384         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30385         * lib/regexec.c:
30386         New files, synced from libc, except that regex_internal.h
30387         currently has a small porting fix.
30388
30389 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30390
30391         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30392         regex_internal.c, regexec.c.
30393         Add regex_internal.h too, but as a comment, since the libc version
30394         is currently broken in gnulib mode.
30395
30396 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30397
30398         Support programs like Emacs that use gnulib but not gettext.
30399         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30400         * modules/gettext-h: New file.
30401         * modules/gettext (Files): Remove lib/gettext.h.
30402         (Depends-on): Add gettext-h.
30403         (Makefile.am): Remove lib_SOURCES.
30404         * modules/argmatch, modules/c-stack, modules/closeout:
30405         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30406         * modules/execute, modules/file-type, modules/getaddrinfo:
30407         * modules/getopt, modules/human, modules/javacomp:
30408         * modules/javaexec, modules/mkdir-p, modules/obstack:
30409         * modules/openat, modules/pagealign_alloc, modules/pipe:
30410         * modules/quotearg, modules/regex, modules/rpmatch:
30411         * modules/unicodeio, modules/userspec, modules/version-etc:
30412         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30413         * modules/xsetenv:
30414         Depend on gettext-h, not gettext.
30415
30416 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30417
30418         * gnulib-tool (func_import): Add support for 'public domain' license.
30419         * modules/alloca, modules/atexit, modules/memmove:
30420         Now public domain, not GPL.
30421         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
30422         * modules/realloc, modules/strerror, modules/strtod:
30423         Now LGPL, not GPL.
30424
30425 2005-07-05  Bruno Haible  <bruno@clisp.org>
30426
30427         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
30428         autoconf CVS. Needed for mingw.
30429
30430 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30431
30432         Remove the dependency of the strftime module on the tzset module.
30433         * modules/strftime (Depends-on): Remove dependency on tzset.
30434
30435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30436
30437         Remove the dependency of the strftime module on the tzset module.
30438         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
30439         gl_FUNC_TZSET_CLOBBER.
30440
30441 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30442
30443         Remove the dependency of the strftime module on the tzset module.
30444         * lib/strftime.c (my_strftime)
30445         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30446         Copy the input structure, to work around some of the bug with
30447         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30448         Solaris releases, you should also use the tzset module, but we won't
30449         require it as a dependency any more since we don't want LGPLed code
30450         to depend on GPLed code.
30451
30452 2005-07-02  Jim Meyering  <jim@meyering.net>
30453
30454         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30455         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30456         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30457         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30458
30459 2005-07-02  Jim Meyering  <jim@meyering.net>
30460
30461         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30462
30463 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30464
30465         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30466         declares only 'struct timespec;' (!).
30467
30468 2005-07-01  Jim Meyering  <jim@meyering.net>
30469
30470         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30471         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30472         * lib/save-cwd.c, tempname.c:
30473         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30474         and don't include <sys/file.h>).
30475
30476 2005-06-29  Jim Meyering  <jim@meyering.net>
30477
30478         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30479         type name.  Use the variable name instead.
30480         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30481         Likewise.
30482
30483 2005-06-28  Simon Josefsson  <jas@extundo.com>
30484
30485         * modules/check-version (Files): Add check-version.m4.
30486
30487 2005-06-28  Simon Josefsson  <jas@extundo.com>
30488
30489         * m4/check-version.m4: New file, suggested by Jim Meyering
30490         <jim@meyering.net>.
30491
30492 2005-06-28  Simon Josefsson  <jas@extundo.com>
30493
30494         * lib/check-version.h, lib/check-version.c: New files.
30495
30496 2005-06-28  Simon Josefsson  <jas@extundo.com>
30497
30498         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30499         collision with global variable.  Better indentation.  Don't
30500         increment buffer pointer beyond buffer end.  Based on comments
30501         from Paul Eggert <eggert@cs.ucla.edu>.
30502
30503         * lib/base64.h: Indent.
30504
30505 2005-06-28  Simon Josefsson  <jas@extundo.com>
30506
30507         * doc/gnulib.texi (Library version handling): New section.
30508
30509 2005-06-28  Jim Meyering  <jim@meyering.net>
30510
30511         * check-module (find_included_lib_files): Hard-code another
30512         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30513         but modules/fts-lgpl (correctly) does not list those files.
30514
30515         * modules/canonicalize (Files): Add lib/pathmax.h.
30516
30517 2005-06-25  Simon Josefsson  <jas@extundo.com>
30518
30519         * modules/check-version: New file.
30520
30521 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30522
30523         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30524         initializer of struct addrinfo, as an indication that we don't
30525         care how many members the structure has.
30526
30527 2005-06-24  Derek Price  <derek@ximbiot.com>
30528         and Bruno Haible  <bruno@clisp.org>
30529
30530         Remove stat module & update lstat.
30531         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30532         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30533         * m4/stat.m4: Remove this file.
30534
30535 2005-06-24  Derek Price  <derek@ximbiot.com>
30536         and Bruno Haible  <bruno@clisp.org>
30537
30538         Remove stat module & update lstat.
30539         * lib/stat.c: Remove this file...
30540         (slash_aware_lstat): ...moving this content and its support...
30541         * lib/lstat.c (rpl_lstat): ...into here.
30542         * lib/lstat.h: New file.
30543
30544 2005-06-24  Derek Price  <derek@ximbiot.com>
30545         and Bruno Haible  <bruno@clisp.org>
30546
30547         Remove stat module & update lstat.
30548         * config/srclist.txt (libc sources): Remove stat.
30549
30550 2005-06-24  Derek Price  <derek@ximbiot.com>
30551         and Bruno Haible  <bruno@clisp.org>
30552
30553         Remove stat module & update lstat.
30554         * MODULES.html.sh (stat): Remove.
30555         * MODULES.html: Regenerated.
30556         * modules/lstat (Description): Correct function name.
30557         (Files): Add "lstat.h".
30558         (Depends-on): Remove stat, add xalloc, stat-macros.
30559         * modules/stat: Remove this file.
30560         (Include): Add "lstat.h", remove <sys/stat.h>.
30561
30562 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30563
30564         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30565         (ranged_convert): Don't save conversion in a temporary struct.
30566         This causes a warning with GCC 4.0.0, and anyway in the typical
30567         case it's not worth the extra 100 bytes or so of code.
30568         (ranged_convert, __mktime_internal): When calling a function via a
30569         pointer P, use P () rather than (*P) (), as we now assume C89 or
30570         better.
30571
30572 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30573
30574         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30575         "who -r" failed to give output.  Problem reported by Tim Waugh.
30576
30577         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30578         (xcalloc): Use it to avoid needless tests.
30579         Problem reported by Jim Meyering.
30580
30581 2005-06-20  Derek Price  <derek@ximbiot.com>
30582
30583         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30584         unnecessary for Autoconfs > 2.59c.
30585
30586 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30587
30588         * lib/argp.h (__option_is_short): Check upper limit of
30589         __key. Isprint() requires its argument to have the value
30590         of an unsigned char or EOF.
30591
30592 2005-06-16  Jim Meyering  <jim@meyering.net>
30593
30594         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30595         when either N or S is zero.
30596
30597 2005-06-16  Derek Price  <derek@ximbiot.com>
30598
30599         * m4/bison.m4: Declare YACC & YFLAGS precious.
30600
30601 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30602
30603         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30604         multibyte string or pattern, fall back on unibyte matching.
30605         Problem reported by James Youngman.
30606
30607 2005-06-08  Bruno Haible  <bruno@clisp.org>
30608
30609         * modules/csharpcomp: New file.
30610         * MODULES.html.sh (C#): Add csharpcomp.
30611
30612 2005-06-08  Bruno Haible  <bruno@clisp.org>
30613
30614         * m4/csharpcomp.m4: New file, from GNU gettext.
30615
30616 2005-06-08  Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/csharpcomp.h: New file, from GNU gettext.
30619         * lib/csharpcomp.c: New file, from GNU gettext.
30620         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30621
30622 2005-06-08  Bruno Haible  <bruno@clisp.org>
30623
30624         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30625         warning on mingw.
30626
30627 2005-06-07  Derek Price  <derek@ximbiot.com>
30628
30629         Sync from CVS.
30630         * lib/glob_.h: Indent nested #ifdef.
30631
30632 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30633
30634         Sync from coreutils.
30635         Use "file name" when talking about file names, instead of "filename"
30636         or "path", as per the GNU coding standards.
30637         * lib/mkdir-p.c: Renamed from makepath.c.
30638         (make_dir_parents): Renamed from make_path.  All callers changed.
30639         * lib/mkdir-p.h: Likewise.  All includers changed.
30640         * lib/filenamecat.c: Renamed from path-concat.c.
30641         (file_name_concat): Renamed from path_concat.  All callers changed.
30642         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30643         * lib/filenamecat.h: Likewise.  All includers changed.
30644         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30645         in comments or local variable names.
30646         * lib/basename.c: Likewise.
30647         * lib/canonicalize.c, canonicalize.h: Likewise.
30648         * lib/dirname.c, dirname.h: Likewise.
30649         * lib/euidaccess.c: Likewise.
30650         * lib/exclude.c: Likewise
30651         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30652         * lib/fsusage.c, fsuage.h: Likewise.
30653         * lib/fts.c, fts_.h: Likewise.
30654         * lib/getcwd.c: Likewise.
30655         * lib/getloadavg.c: Likewise.
30656         * lib/mkstemp.c: Likewise.
30657         * lib/mountlist.c, mountlist.h: Likewise.
30658         * lib/openat.c, openat.h: Likewise.
30659         * lib/readlink-stub.c: Likewise.
30660         * lib/readutmp.c, readutmp.h: Likewise.
30661         * lib/rename.c: Likewise.
30662         * lib/rmdir.c: Likewise.
30663         * lib/same.c: Likewise.
30664         * lib/savedir.c: Likewise.
30665         * lib/stripslash.c: Likewise.
30666         * lib/tempname.c: Likewise.
30667         * lib/xreadlink.c: Likewise.
30668         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30669         All uses changed.
30670         * lib/exclude.h: Likewise.
30671
30672         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30673         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30674         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30675         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30676         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30677         files have been getting away with it for years (MORE/BSD 4.3
30678         is extinct now).
30679         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30681
30682         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30683         Define to 256, not 255, as per modern POSIX.
30684
30685 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30686
30687         Sync from coreutils.
30688         Use "file name" when talking about file names, instead of "filename"
30689         or "path", as per the GNU coding standards.
30690         * MODULES.html.sh: mkdir-p renamed from makepath.
30691         filenamecat renamed from path-concat.
30692         * modules/filenamecat: Renamed from modules/path-concat.
30693         (Files): filenamecat.h and filenamecat.c renamed from
30694         path-concat.h and path-concat.c.
30695         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30696         (Include): filenamecat.h, not path-concat.h.
30697         * modules/mkdir-p: Renamed from modules/makepath.
30698         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30699         makepath.c.
30700         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30701         (Include): mkdir-p.h, not makepath.h.
30702
30703 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30704
30705         Sync from coreutils.
30706         * m4/mkdir-p.m4: Renamed from makepath.m4.
30707         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30708         Rename files from makepath.c to mkdir-p.c, and from
30709         makepath.h to mkdir-p.h.
30710         * m4/filenamecat.m4: Renamed from path-concat.m4.
30711         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30712         Rename files from path-concat.c to filenamecat.c,
30713         and from path-concat.h to filenamecat.h.
30714         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30715         "file name" in local variables or comments.
30716         * m4/rename.m4: Likewise.
30717
30718 2005-06-01  Bruno Haible  <bruno@clisp.org>
30719
30720         * modules/csharpexec: New file.
30721         * MODULES.html.sh (C#): New section.
30722
30723 2005-06-01  Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/csharp.m4: New file, from GNU gettext.
30726         * m4/csharpexec.m4: New file, from GNU gettext.
30727
30728 2005-06-01  Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/csharpexec.h: New file, from GNU gettext.
30731         * lib/csharpexec.c: New file, from GNU gettext.
30732         * lib/csharpexec.sh.in: New file, from GNU gettext.
30733
30734 2005-05-31  Derek Price  <derek@ximbiot.com>
30735             Paul Eggert  <eggert@cs.ucla.edu>
30736
30737         Sync from cvs.
30738         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30739
30740 2005-05-31  Derek Price  <derek@ximbiot.com>
30741             Paul Eggert  <eggert@cs.ucla.edu>
30742
30743         Sync from cvs.
30744         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30745
30746 2005-05-29  Derek Price  <derek@ximbiot.com>
30747
30748         * config/srclist.txt (glob_.h, glob.c): Add these files.
30749
30750 2005-05-29  Derek Price  <derek@ximbiot.com>
30751
30752         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30753         * modules/glob: New file.
30754         * modules/getlogin_r: Add link to POSIX spec in description.
30755
30756 2005-05-29  Derek Price  <derek@ximbiot.com>
30757             Paul Eggert  <eggert@cs.ucla.edu>
30758
30759         * m4/glob.m4: New file.
30760
30761 2005-05-29  Derek Price  <derek@ximbiot.com>
30762             Paul Eggert  <eggert@cs.ucla.edu>
30763
30764         * lib/glob_.h, lib/glob.c: New files.
30765
30766 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30767
30768         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30769         * modules/fts-lgpl (Depends-on): Remove gettext.
30770
30771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30772
30773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30774         and don't require gt_INTTYPES_PRI.
30775
30776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30777
30778         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30779
30780         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30781         the configuration hassle isn't worth it.
30782         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30783         (LONGEST_MODIFIER, PRIuMAX): Remove.
30784
30785 2005-05-27  Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30788
30789 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30790
30791         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30792         _POSIX_PTHREAD_SEMANTICS for Solaris.
30793
30794 2005-05-25  Derek Price  <derek@ximbiot.com>
30795
30796         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30797
30798 2005-05-25  Derek Price  <derek@ximbiot.com>
30799             Paul Eggert  <eggert@cs.ucla.edu>
30800
30801         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30802         * lib/getlogin_r.c, getlogin_r.h: New files.
30803
30804 2005-05-25  Bruno Haible  <bruno@clisp.org>
30805             Derek Price  <derek@ximbiot.com>
30806
30807         * lib/getlogin_r.h: Simplify API documentation.
30808
30809 2005-05-23  Derek Price  <derek@ximbiot.com>
30810
30811         * modules/minmax (Files): Add m4/minmax.m4.
30812         (configure.ac): Add gl_MINMAX.
30813
30814 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30815
30816         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30817         so that unistd-safer.h (GPL'ed code) need not be included.
30818
30819 2005-05-22  Bruno Haible  <bruno@clisp.org>
30820
30821         * m4/minmax.m4: New file.
30822         Based on a patch by Derek Price <derek@ximbiot.com>.
30823
30824 2005-05-22  Bruno Haible  <bruno@clisp.org>
30825
30826         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30827         (INT64_MIN): Fix definition.
30828         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30829
30830         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30831         NEED_SIGNED_INT_TYPES.
30832
30833         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30834         HAVE_SYSTEM_INTTYPES.
30835
30836 2005-05-22  Bruno Haible  <bruno@clisp.org>
30837
30838         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30839         Also include <sys/param.h> if it defines MIN, MAX.
30840         Based on a patch by Derek Price <derek@ximbiot.com>.
30841
30842 2005-05-21  Jim Meyering  <jim@meyering.net>
30843
30844         * modules/fts (Files): Add m4/inttypes-pri.m4.
30845         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30846
30847 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         New fts module.
30850         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30851         (setup_dir, free_dir): New functions.
30852         (enter_dir, leave_dir): Define trivial
30853         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30854         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30855         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30856         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30857         Move to fts-cycle.c.
30858         (fts_open): Use setup_dir.
30859         (fts_close): Use free_dir.
30860         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30861         This adds a label and some gotos, but the alternatives were messier.
30862         Check for memory allocation failure when entering a dir.
30863         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30864         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30865         (FTS): New member fts_cycle, that is a union that contains the
30866         old active_dir_ht and cycle_state.  All uses changed to mention
30867         fts_cycle.ht and fts_cycle.state.
30868         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30869         fts.c, with the following changes:
30870         (setup_dir, free_dir): New functions.
30871         (enter_dir): Now returns bool.  Return true if successful, false
30872         if memory exhausted.  All callers changed.
30873         Do not bother partly cleaning up on
30874         memory allocation failure; that is free_dir's job.
30875         However, free ad if hash_insert fails, to avoid memory leak.
30876         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30877         fts->fts_options to see which union member to use.
30878
30879 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30880
30881         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30882         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30883
30884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30885
30886         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30887
30888 2005-05-20  Jim Meyering  <jim@meyering.net>
30889
30890         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30891         Now a macro, to pacify GCC.
30892
30893 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30894
30895         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30896         of -1.
30897
30898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30899
30900         * lib/chown.c (rpl_chown): Return -1 on failure.
30901
30902 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30903
30904         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30905         Don't check for stddef.h.
30906         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30907         don't use its results.
30908         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30909         since we include them unconditionally.  Don't require
30910         AM_STDBOOL_H, since stdbool is a prerequisite.
30911         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30912         since we assume C89 or better.
30913         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30914         as we don't use their results.
30915         Don't check for fchdir, memmove, memset, strrchr, as we use
30916         them unconditionally.
30917         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30918         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30919
30920 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30921
30922         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30923         Include <stddef.h> unconditionally, since we assume C89 now.
30924         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30925         * lib/fts.c: Include fts_.h first, to check interface.
30926         Do not include intprops.h; no longer needed.
30927         Include cycle-check.h and hash.h, since fts_.h no longer does.
30928         Remove unnecessary casts of closedir to void.
30929         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30930         decide whether to decrement nlinks.
30931         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30932         (FTS): Use struct hash_table * instead of Hash_table, so that
30933         we no longer need to include hash.h here.
30934
30935 2005-05-18  Jim Meyering  <jim@meyering.net>
30936
30937         * modules/dirfd (License): Change to LGPL.  Most of the code
30938         is already in the public domain.
30939
30940 2005-05-18  Jim Meyering  <jim@meyering.net>
30941
30942         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30943         Reported by Yoann Vandoorselaere.
30944
30945 2005-05-17  Jim Meyering  <jim@meyering.net>
30946
30947         * m4/fts.m4: New file, from coreutils.
30948
30949 2005-05-17  Jim Meyering  <jim@meyering.net>
30950
30951         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30952
30953 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30954
30955         Sync from coreutils.
30956         * m4/unlinkdir.m4: New file.
30957
30958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30959
30960         Sync from coreutils.
30961         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30962         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30963         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30964         White space changes only.
30965         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30966         special.
30967         * lib/yesno.c: Include getline.h, not ctype.h.
30968         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30969         Use getline to remove arbitrary restriction on response length.
30970
30971 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30972
30973         * config/srclist-update: Spell out "Street" in FSF postal
30974         mail address; this is the style the FSF seems to prefer.
30975
30976         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30977         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30978         this updates FSF postal mail address.
30979
30980         Sync from coreutils.
30981         * modules/unlinkdir: New file.
30982         * modules/yesno (Depends-on): Add getline.
30983         * MODULES.html.sh (File system functions): Add unlinkdir.
30984
30985 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30986
30987         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30988         lib/strsep.h:
30989         Change the initial comment to refer to GPL, not LGPL.
30990         gnulib-tool will change it to LGPL as needed.
30991
30992         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30993         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30994         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30995         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30996         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30997         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30998         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30999         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31000         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31001         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31002         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31003         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31004         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31005         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31006         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31007         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31008         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31009         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31010         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31011         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31012         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31013         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31014         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31015         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31016         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31017         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31018         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31019         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31020         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31021         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31022         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31023         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31024         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31025         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31026         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31027         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31028         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31029         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31030         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31031         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31032         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31033         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31034         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31035         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31036         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31037         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31038         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31039         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31040         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31041         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31042         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31043         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31044         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31045         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31046         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31047         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31048         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31049         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31050         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31051         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31052         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31053         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31054         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31055         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31056         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31057         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31058         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31059         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31060         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31061         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31062         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31063         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31064         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31065         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31066         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31067         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31068         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31069         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31070         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31071         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31072         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31073         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31074         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31075         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31076         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31077         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31078         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31079         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31080         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31081         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31082         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31083         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31084         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31085         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31086         lib/yesno.c, lib/yesno.h:
31087         Update FSF postal mail address.
31088
31089 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31090
31091         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31092         tests/test-memmem.c, tests/test-stpncpy.c:
31093         Update FSF postal mail address.
31094
31095 2005-05-13  Bruno Haible  <bruno@clisp.org>
31096
31097         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31098         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31099         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31100         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31101         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31102         Add support for 64-bit integers in the MSVC compiler.
31103
31104 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31105
31106         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31107
31108 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
31109
31110         * gnulib-tool (func_import): Sort and uniquify recommended includes.
31111
31112 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31113
31114         * doc/getdate.texi (General date syntax): Don't say that date
31115         date --iso-8601=ns generates acceptable dates; it doesn't yet.
31116         Problem reported by Nic Ferrier.
31117
31118 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31119
31120         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31121         specified in ai_socktype. Fix invalid ai_protocol
31122         check. ai_protocol is usually set to 0 or depending on
31123         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
31124         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
31125         ai_socktype / ai_protocol in the returned addrinfo structure.
31126
31127 2005-05-10  Simon Josefsson  <jas@extundo.com>
31128
31129         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31130         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31131
31132 2005-05-10  Karl Berry  <karl@gnu.org>
31133
31134         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31135         (from http://www.gnu.org/licenses).
31136         * doc/COPYING.LIB: also rename to COPYING.LESSER.
31137         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31138         fdl.texi suffices.
31139
31140 2005-05-10  Karl Berry  <karl@gnu.org>
31141
31142         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31143         (COPYING.DOC): remove.
31144
31145         * config/srclist-update: new FSF address.
31146
31147 2005-05-10  Derek Price  <derek@ximbiot.com>
31148
31149         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31150         possible.
31151
31152 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31153             Bruno Haible  <bruno@clisp.org>
31154
31155         * modules/inet_ntop: New file.
31156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31157         inet_ntop.
31158
31159 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31160             Bruno Haible  <bruno@clisp.org>
31161
31162         * m4/inet_ntop.m4: New file.
31163
31164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31165             Bruno Haible  <bruno@clisp.org>
31166
31167         * lib/inet_ntop.h: New file.
31168         * lib/inet_ntop.c: New file, from glibc with modifications.
31169
31170 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
31171
31172         * modules/time_r (License): Change to LGPL.
31173         * modules/extensions (License): Change to LGPL.  Actually,
31174         the license is more permissive than that, but currently gnulib-tool
31175         doesn't know how to handle more-permissive licenses.
31176
31177         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31178         Problem reported by Dave Love.
31179
31180 2005-05-08  Jim Meyering  <jim@meyering.net>
31181
31182         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31183         blank.
31184
31185 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31186
31187         * modules/argmatch (Depends-on): Add stdbool.
31188         * modules/backupfile (Depends-on): Likewise.
31189         * modules/chdir-long (Depends-on): Likewise.
31190         * modules/closeout (Depends-on): Likewise.
31191         * modules/cycle-check (Depends-on): Likewise.
31192         * modules/dirname (Depends-on): Likewise.
31193         * modules/fnmatch (Depends-on): Likewise.
31194         * modules/fsusage (Depends-on): Likewise.
31195         * modules/fwriteerror (Depends-on): Likewise.
31196         * modules/getcwd (Depends-on): Likewise.
31197         * modules/getloadavg (Depends-on): Likewise.
31198         * modules/hard-locale (Depends-on): Likewise.
31199         * modules/makepath (Depends-on): Likewise.
31200         * modules/mountlist (Depends-on): Likewise.
31201         * modules/nanosleep (Depends-on): Likewise.
31202         * modules/posixtm (Depends-on): Likewise.
31203         * modules/quotearg (Depends-on): Likewise.
31204         * modules/readtokens (Depends-on): Likewise.
31205         * modules/readtokens0 (Depends-on): Likewise.
31206         * modules/readutmp (Depends-on): Likewise.
31207         * modules/save-cwd (Depends-on): Likewise.
31208         * modules/strftime (Depends-on): Likewise.
31209         * modules/userspec (Depends-on): Likewise.
31210         * modules/utimecmp (Depends-on): Likewise.
31211         * modules/xgetcwd (Depends-on): Likewise.
31212         * modules/xnanosleep (Depends-on): Likewise.
31213         * modules/xstrtod (Depends-on): Likewise.
31214         * modules/yesno (Depends-on): Likewise.
31215
31216 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31219         needless checks.
31220
31221 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31222
31223         Merge from coreutils.  Among other things,
31224         add bulletproofing for cases where stdin, stdout, or stderr are closed.
31225         * lib/fd-safer.c: New file.
31226         * lib/fcntl-safer.h, open-safer.c: Remove.
31227         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31228         * lib/dup-safer.c: Include unistd-safer.h first.
31229         Don't include errno.h.
31230         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31231         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31232         * lib/file-type.c: Rely on file-type.h change.
31233         * lib/getloadavg.c: Include unistd-safer.h.
31234         (getloadavg): Use safer open.
31235         * lib/getusershell.c: Include "stdio-safer.h".
31236         (getusershell): Use safer fopen.
31237         * lib/long-options.c (long_options): Use NULL rather than 0.
31238         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31239         'free'.
31240         * lib/modechange.c: Likewise.
31241         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31242         (MODE_DONE): New constant.
31243         (struct mode_change): Remove 'next' member.
31244         (make_node_op_equals): New function; like the old one of the
31245         same name, except it allocates an array.
31246         (mode_compile, mode_create_from_ref): Use it.
31247         (mode_compile): Allocate result as an array, not a linked list.
31248         Parse octal string ourself, so that we catch mistakes like "+0".
31249         (mode_adjust): Arg is an array, not a linked list.
31250         * lib/modechange.c: Include stat-macros.h, xalloc.h.
31251         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31252         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31253         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31254         Remove.  This is now stat-macros.h's job.
31255         (talloc): Remove.  All callers replaced by xalloc, so that
31256         our invokers don't have to worry about reporting memory failures.
31257         (make_node_op_equals): Remove.
31258         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31259         New constants.
31260         (struct mode_change): Moved here from modechange.h.
31261         (mode_append_entry): Remove.
31262         (mode_compile): Remove MASKED_OPS arg, since it encouraged
31263         apps to have incorrect behavior.  Use simpler algorithm for head
31264         and tail.  Don't futz with umask; that's now the job of mode_adjust.
31265         Detect more invalid usages rather than having somewhat-random behavior.
31266         Don't insert an "a=" action, as that leads to incorrect behavior.
31267         (mode_compile, mode_create_from_ref): Return NULL on error instead
31268         of an enum, since now there's only one way to have an error.  All
31269         callers changed.
31270         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31271         at the correct time.  Simplify calculation of "+u" and its ilk.
31272         Don't mishandle "+X".
31273         (mode_free): Remove "register" and localize decls.
31274         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31275         (struct mode_change): Move to modechange.c; callers don't
31276         need to see this stuff.
31277         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31278         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31279         (mode_change, mode_adjust): Reflect the new signatures noted above.
31280         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31281         that might redefine system include files.
31282         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31283         (my_usleep): Use NULL rather than (void *) 0.
31284         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31285         Use siginterrupt to specify that system calls should be interrupted.
31286         (rpl_nanosleep): Move initialization of suspended closer to call of
31287         my_usleep.
31288         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31289         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31290         (desirable_utmp_entry): New function.
31291         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31292         using x2nrealloc, to simplify logic.
31293         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31294         size calculation.  Do not assume utmp file is a regular file.
31295         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31296         (READ_UTMP_CHECK_PIDS): New constant.
31297         * lib/save-cwd.c: Include unistd-safer.h.
31298         (save_cwd): Use fd_safer.
31299         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31300         [!_LIBC] Include "stat-macros.h" instead.
31301         * lib/unistd-safer.h (fd_safer): New decl.
31302
31303 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31304
31305         * modules/getloadavg (Depends-on): Add unistd-safer.
31306         * modules/getusershell (Depends-on): Add stdio-safer.
31307         * modules/lstat (Depends-on): Remove xalloc.
31308         * modules/mkstemp (Depends-on): Add stat-macros.
31309         * modules/modechange (Depends-on): Remove xstrtol.
31310         Add stat-macros, xalloc.
31311         * modules/save-cwd (Depends-on): Add unistd-safer.
31312         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31313         * modules/unistd-safer (Files): Add lib/fd-safer.c
31314         (Makefile.am): Remove lib_SOURCES.
31315
31316         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31317         Remove fcntl-safer; unistd-safer supersedes it.
31318
31319 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31320
31321         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31322         AC_HEADER_STAT.
31323         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31324         (gl_PREREQ_CHOWN): Remove.
31325         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31326         it.  Don't require AC_HEADER_STAT.
31327         (gl_PREREQ_LSTAT): Remove.
31328         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31329         Don't require AC_HEADER_STAT.
31330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31331         (gl_PREREQ_RMDIR): Remove.
31332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
31333         mention stat-macros.h or AC_HEADER_STAT, since we'll make
31334         the stat-macros module a prerequisite.
31335         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
31336         * m4/filemode.m4 (gl_FILEMODE): Likewise.
31337         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
31338         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
31339         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
31340         variable names.
31341         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
31342         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
31343         variable prefixes.
31344         * m4/fcntl-safer.m4: Remove.
31345         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
31346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
31347         Invoke gl_PREREQ_FD_SAFER.
31348         (gl_PREREQ_FD_SAFER): New macro.
31349         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
31350         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
31351         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
31352         Remove duplicate call to AC_LIBOBJ(readutmp).
31353         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
31354
31355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
31356         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
31357
31358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31359
31360         * MODULES.html.sh (Misc): Add byteswap.
31361
31362 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31363
31364         * modules/getcwd (Depends-on): Add extensions.
31365         * modules/openat (Depends-on): Likewise.
31366
31367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31368
31369         * modules/byteswap: New file.
31370
31371 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31372
31373         * m4/byteswap.m4: New file.
31374
31375 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31376
31377         * lib/byteswap_.h: New file.
31378
31379 2005-04-25  Karl Berry  <karl@gnu.org>
31380
31381         * m4/gettext.m4: Update from GNU gettext 0.14.4.
31382
31383 2005-04-25  Albert Chin  <china@thewrittenword.com>
31384
31385         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31386         Toolkit C bug.
31387
31388 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31389
31390         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31391         (func_ln_if_changed) Remove forcibly for no error message
31392         in case file does not exist.
31393
31394 2005-04-19  Simon Josefsson  <jas@extundo.com>
31395
31396         * gnulib-tool (Options): Make --symlink mean --symbolic.
31397
31398 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31399
31400         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31401
31402 2005-04-16  Simon Josefsson  <jas@extundo.com>
31403
31404         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31405
31406 2005-04-15  Simon Josefsson  <jas@extundo.com>
31407
31408         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31409
31410 2005-04-15  Simon Josefsson  <jas@extundo.com>
31411
31412         * gnulib-tool: Rename --symlink to --symbolic.
31413
31414 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31415
31416         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31417         symbolic links to files instead of copying/moving.  Add --aux-dir,
31418         specifying directory relative --dir where auxiliary build tools
31419         are placed.
31420
31421 2005-04-14  Bruno Haible  <bruno@clisp.org>
31422
31423         * modules/allocsa (License): Change to LGPL.
31424         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31425
31426 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31427
31428         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
31429         that "UTC +1 second" continues to work.  Problem reported
31430         by Dmitry V. Levin.
31431         (relunit_snumber): New rule.
31432         (relunit): Use it.
31433
31434 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31435
31436         * lib/getdate.y (universal_time_zone_table): New constant.
31437         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
31438         universal_time_zone_table.
31439         (lookup_zone): Prefer universal_time_zone_table to
31440         local_time_zone_table, so that "GMT" time stamps are allowed in
31441         London during the summer.  Problem reported by Ian Abbott.
31442
31443 2005-04-12  Jim Meyering  <jim@meyering.net>
31444
31445         * lib/human.c (humblock): Set *options even when returning due to
31446         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31447         warning from gcc-4.
31448
31449 2005-04-09  Jim Meyering  <jim@meyering.net>
31450
31451         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31452         -Wuninitialized: initialize tm0.tm_year.
31453
31454 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31455
31456         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31457         count, since there's no maximum.  All uses changed.
31458         Add member dsts_seen.
31459         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31460         not being INT_MAX.
31461         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31462         Use pc_rels_seen to decide whther a date is absolute.
31463
31464         * lib/getdate.y (number): Don't overwrite year.
31465         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31466         check.
31467
31468 2005-04-02  Simon Josefsson  <jas@extundo.com>
31469
31470         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31471         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31472
31473 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31474
31475         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31476         where no absolute path name can be longer than PATH_MAX.
31477
31478 2005-03-27  Jim Meyering  <jim@meyering.net>
31479
31480         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31481
31482 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31485         "one's complement" -> "ones' complement" in comment, as per Knuth.
31486         "value of type" -> "type or expression" in comment.
31487         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31488
31489 2005-03-26  Jim Meyering  <jim@meyering.net>
31490
31491         Comment nits.
31492         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31493         Correct typos: s/or/of/.
31494
31495 2005-03-26  Jim Meyering  <jim@meyering.net>
31496
31497         * modules/check-include-files: Move to ../ and rename to...
31498         * check-module: ...this.
31499
31500 2005-03-25  Jim Meyering  <jim@meyering.net>
31501
31502         * modules/xvasprintf (Files): Add xalloc.h.
31503
31504 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31505
31506         * modules/gettext (Files): config/config.rpath ->
31507         build-aux/config.rpath
31508         * modules/iconv (Files): Likewise.
31509         Problem reported by Oskar Liljeblad.
31510
31511 2005-03-23  Jim Meyering  <jim@meyering.net>
31512
31513         * modules/check-include-files: New script to check for
31514         missing dependencies, multiple includes, etc.
31515
31516         * modules/c-strtold (Depends-on): Add xalloc.
31517         * modules/c-strtod (Depends-on): Add xalloc.
31518         * modules/hash (Depends-on): Add xalloc.
31519         (Files): Remove lib/xalloc.h.
31520
31521         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31522         * modules/userspec (Files): Add lib/inttostr.h.
31523
31524 2005-03-23  Jim Meyering  <jim@meyering.net>
31525
31526         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31527
31528 2005-03-22  Jim Meyering  <jim@meyering.net>
31529
31530         * modules/stat-macros: New module.
31531         * modules/canonicalize, modules/euidaccess, modules/file-type,
31532         * modules/filemode, modules/lchown, modules/makepath,
31533         * modules/rmdir, modules/stat: Depend on new stat-macros module
31534         rather than listing lib/stat-macros.h manually.
31535         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31536
31537 2005-03-22  Jim Meyering  <jim@meyering.net>
31538
31539         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31540
31541 2005-03-22  Bruno Haible  <bruno@clisp.org>
31542
31543         * config/srclist.txt: Replace target directory 'config' with
31544         'build-aux'.
31545         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31546         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31547         ../build-aux/.
31548
31549 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * modules/chdir-long (Depends-on): Add mempcpy.
31552
31553         * modules/acl, modules/backupfile, modules/c-strtod,
31554         modules/c-strtold, modules/canon-host, modules/canonicalize,
31555         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31556         modules/exclude, modules/exitfail, modules/file-type,
31557         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31558         modules/getdate, modules/getline, modules/getpagesize,
31559         modules/getpass, modules/getugroups, modules/group-member,
31560         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31561         modules/inttostr, modules/long-options, modules/makepath,
31562         modules/md5, modules/memcasecmp, modules/memcoll,
31563         modules/modechange, modules/mountlist, modules/path-concat,
31564         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31565         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31566         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31567         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31568         modules/strftime, modules/strndup, modules/strverscmp,
31569         modules/timespec, modules/unlocked-io, modules/userspec,
31570         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31571         modules/yesno:
31572         Remove lib_SOURCES line from Makefile.am section, as this is now
31573         done automatically by the corresponding Autoconf macro.
31574
31575 2005-03-21  Jim Meyering  <jim@meyering.net>
31576
31577         Changes imported from coreutils.
31578
31579         * lib/cycle-check.c: Don't include xalloc.h.
31580
31581         * lib/path-concat.c: Don't include assert.h.
31582         (path_concat): Remove assertion that would have triggered
31583         for ABASE starting with more than one slash.
31584         Reported by Andreas Schwab.
31585
31586         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31587         properly when ABASE is an absolute file name.
31588         Correct the description of this function.
31589         Include <assert.h>.
31590         Add an assertion and a test driver.
31591         This fixes a bug introduced on 2004-07-02.
31592         Andreas Schwab reported the resulting failure of cp --parents:
31593         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31594
31595 2005-03-21  Jim Meyering  <jim@meyering.net>
31596
31597         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31598         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31599
31600 2005-03-21  Jim Meyering  <jim@meyering.net>
31601         and  Paul Eggert  <eggert@cs.ucla.edu>
31602
31603         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31604         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31605         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31606         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31607         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31608         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31609         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31610         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31611         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31612         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31613         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31614         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31615         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31616         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31617         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31618         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31619         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31620         for these modules.
31621
31622 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31625         (which shouldn't happen), generate nothing instead of returning 0
31626         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31627
31628 2005-03-16  Bruno Haible  <bruno@clisp.org>
31629
31630         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31631         HAVE_LONGLONG_64BIT.
31632
31633 2005-03-16  Bruno Haible  <bruno@clisp.org>
31634
31635         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31636         HAVE_LONGLONG_64BIT.
31637
31638 2005-03-16  Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31641         HAVE_LONGLONG_64BIT.
31642
31643 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31644
31645         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31646         reliably distinguish strftime failure from empty output on POSIX
31647         hosts.
31648
31649 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31650
31651         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31652         (iconv_string): Don't guess a size-zero buffer, as that might cause
31653         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31654         result would be 'too large', where 'too large' is (heuristically)
31655         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31656         overflow concerns.  This will prevent some unwanted malloc failures
31657         when the inputs are very large.
31658
31659 2005-03-15  Karl Berry  <karl@gnu.org>
31660
31661         * config/srclist.txt (config.rpath): from gettext.
31662         * config/config.rpath: update.
31663
31664 2005-03-15  Bruno Haible  <bruno@clisp.org>
31665
31666         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31667         to 'negate'.
31668
31669         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31670         variable.
31671
31672         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31673         results.
31674
31675 2005-03-14  Simon Josefsson  <jas@extundo.com>
31676
31677         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31678         <fx@gnu.org>.
31679
31680 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31681
31682         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31683         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31684         intprops.h.
31685         * lib/strtol.c: Likewise.
31686
31687 2005-03-14  Jim Meyering  <jim@meyering.net>
31688
31689         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31690         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31691         to be nonzero so that we (and caller) can detect the difference
31692         between a valid zero-length expansion and an error return, even
31693         when the underlying strftime fails before writing anything into
31694         that location.
31695
31696 2005-03-14  Bruno Haible  <bruno@clisp.org>
31697
31698         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31699         Update from GNU gettext 0.14.3.
31700
31701 2005-03-10  Jim Meyering  <jim@meyering.net>
31702
31703         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31704
31705 2005-03-10  Jim Meyering  <jim@meyering.net>
31706
31707         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31708         so that this module works on systems without fchdir.
31709
31710 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31711
31712         Factor int-properties macros into a single file, except for
31713         glibc-related files.
31714         * lib/intprops.h: New file.
31715         * lib/getloadavg.c: Include it instead of limits.h.
31716         (INT_STRLEN_BOUND): Remove.
31717         * lib/human.c: Include intprops.h.
31718         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31719         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31720         302/1000.
31721         * lib/inttostr.h: Include intprops.h instead of limits.h.
31722         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31723         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31724         for consistency with intprops.h.
31725         (time_t_is_integer, twos_complement_arithmetic): Use them.
31726         * lib/sig2str.h: Include <signal.h>, intprops.h.
31727         (INT_STRLEN_BOUND): Remove.
31728         * lib/strftime.c (TYPE_SIGNED): Remove.
31729         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31730         * lib/strtol.c: Adjust comments to match intprops.h.
31731         * lib/userspec.c: Include intprops.h.
31732         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31733         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31734         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31735         instead of rolling our own expressions.
31736         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31737
31738         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31739         instead of int.
31740         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31741         the right thing even if adding 1900 would overflow.  Similarly
31742         for tm_mon + 1 and tm_yday + 1.
31743         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31744         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31745         (DO_SIGNED_NUMBER): New macro.
31746         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31747
31748 2005-03-07  Bruno Haible  <bruno@clisp.org>
31749
31750         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31751
31752 2005-03-07  Bruno Haible  <bruno@clisp.org>
31753
31754         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31755
31756 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31757
31758         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31759         (func_import): Only replace files via --import when they have actually
31760         changed.
31761
31762 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31763
31764         * m4/mmap-anon.m4: New file.
31765         * m4/pagealign_alloc.m4: New file.
31766
31767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31768             Bruno Haible  <bruno@clisp.org>
31769
31770         * modules/pagealign_alloc: New file.
31771         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31772
31773 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31774             Bruno Haible  <bruno@clisp.org>
31775
31776         * lib/pagealign_alloc.h: New file.
31777         * lib/pagealign_alloc.c: New file.
31778
31779 2005-03-03  Bruno Haible  <bruno@clisp.org>
31780
31781         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31782         Use an all-permissive copyright notice, recommended by RMS.
31783
31784 2005-03-02  Bruno Haible  <bruno@clisp.org>
31785
31786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31787         of AIX, the replacement has to be done only after <string.h> is
31788         included, therefore not in config.h. stpncpy.h does the replacement,
31789         and stpncpy.c uses it.
31790
31791 2005-03-02  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31794         stpncpy.c uses it.
31795
31796 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31797
31798         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31799         The workaround isn't strictly needed for POSIX conformance, and
31800         it's too much of a pain to configure and maintain.  We'll ask
31801         people to fix their kernels instead.
31802         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31803         (NANOSLEEP_BUG_WORKAROUND): Remove.
31804         (xnanosleep): Remove the workaround.
31805
31806 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31809         Reported by Derek Price.
31810         (Include): Add "timespec.h".
31811
31812         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31813
31814 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31815
31816         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31817         to detect nanosleep bug.
31818
31819 2005-03-01  Bruno Haible  <bruno@clisp.org>
31820
31821         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31822
31823 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31824
31825         * modules/gethrxtime: New file.
31826         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31827         (Depends-on): Add gethrxtime.
31828         (configure.ac): Add gl_XNANOSLEEP.
31829         (Makefile.am): Remove lib_SOURCES line.
31830
31831 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31832
31833         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31834         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31835
31836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31837
31838         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31839         * lib/timespec.h (gettime): Return void, since it always
31840         succeeds now.  All uses changed.
31841         * lib/gettime.c (gettime) Likewise.
31842         [HAVE_NANOTIME]: Prefer nanotime.
31843         Assume gettimeofday succeeds, as POSIX requires.
31844         Assime time () succeeds, since other code already does.
31845         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31846         (timespec_subtract): Remove.
31847         (NANOSLEEP_BUG_WORKAROUND): New constant.
31848         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31849         things considerably.  Use it only on GNU/Linux hosts, since the
31850         workaround shouldn't be needed elsewhere.
31851
31852 2005-02-24  Bruno Haible  <bruno@clisp.org>
31853
31854         * modules/gettext (Files): Add m4/glibc2.m4.
31855
31856 2005-02-24  Bruno Haible  <bruno@clisp.org>
31857
31858         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31859         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31860         * m4/progtest.m4:
31861         Update from GNU gettext 0.14.2.
31862         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31863
31864 2005-02-24  Bruno Haible  <bruno@clisp.org>
31865
31866         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31867         * lib/config.charset: Update from GNU gettext 0.14.2.
31868
31869 2005-02-24  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/gettext.h: Update from GNU gettext 0.14.2.
31872
31873 2005-02-23  Simon Josefsson  <jas@extundo.com>
31874
31875         * m4/iconvme.m4: New file.
31876
31877 2005-02-23  Jim Meyering  <jim@meyering.net>
31878
31879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31880         change.
31881         Thanks to Bruno Haible for catching it.
31882
31883 2005-02-22  Simon Josefsson  <jas@extundo.com>
31884
31885         * modules/iconvme: New file.
31886
31887         * MODULES.html.sh: Add iconvme.
31888
31889 2005-02-22  Simon Josefsson  <jas@extundo.com>
31890
31891         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31892
31893 2005-02-22  Simon Josefsson  <jas@extundo.com>
31894
31895         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31896
31897 2005-02-22  Jim Meyering  <jim@meyering.net>
31898
31899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31900         s/ifndef/ifdef/.
31901
31902 2005-02-20  Neil Conway  <neilc@samurai.com>
31903
31904         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31905         returned by OSX/Darwin if the specified buffer is not large
31906         enough for the hostname.
31907
31908 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31909
31910         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31911         pass it to _help, otherwise the latter coredumps trying to
31912         dereference state.root_argp.
31913
31914 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31915
31916         * modules/chdir-long (Depends-on): Add memrchr.
31917         * modules/memrchr (Files): Add lib/memrchr.h.
31918         (Include): "memrchr.h".
31919
31920 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31921
31922         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31923
31924 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31925
31926         * lib/memrchr.h: New file.
31927         * lib/chdir-long.c: Include it.
31928         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31929         Don't bother including stddef.h.
31930
31931 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31932
31933         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31934         inclusion.
31935         Include <sys/types.h>, for dev_t.
31936         (ME_DUMMY, ME_REMOTE): Move from here....
31937         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31938         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31939         Dmitry V. Levin.
31940         Include mountlist.h first, to test the interface.
31941
31942 2005-01-29  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/progname.c (program_name): Initialize.
31945         Needed when linking statically on MacOS X.
31946
31947 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31948
31949         Sync from coreutils.
31950         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31951         (Depends-on): Add c-strtod.
31952         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31953
31954 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31955
31956         Sync from coreutils.
31957         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31958
31959         Remove files that are specific to coreutils.
31960         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31961
31962 2005-01-28  Bruno Haible  <bruno@clisp.org>
31963
31964         * modules/javacomp: New file.
31965         * MODULES.html.sh (Java): Add javacomp.
31966
31967 2005-01-28  Bruno Haible  <bruno@clisp.org>
31968
31969         * m4/javacomp.m4: New file, from GNU gettext.
31970
31971 2005-01-28  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/javacomp.sh.in: New file, from GNU gettext.
31974         * lib/javacomp.h: New file, from GNU gettext.
31975         * lib/javacomp.c: New file, from GNU gettext.
31976
31977 2005-01-26  Simon Josefsson  <jas@extundo.com>
31978
31979         * lib/gai_strerror.c: Use GPL in header.
31980
31981 2005-01-26  Bruno Haible  <bruno@clisp.org>
31982
31983         * modules/javaexec: New file.
31984         * MODULES.html.sh (Java): Add javaexec.
31985
31986 2005-01-26  Bruno Haible  <bruno@clisp.org>
31987
31988         * m4/javaexec.m4: New file, from GNU gettext.
31989
31990 2005-01-26  Bruno Haible  <bruno@clisp.org>
31991
31992         * lib/javaexec.sh.in: New file, from GNU gettext.
31993         * lib/javaexec.h: New file, from GNU gettext.
31994         * lib/javaexec.c: New file, from GNU gettext.
31995
31996 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31997
31998         * modules/lchown (Depends-on): Remove lchown.h
31999
32000 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32001
32002         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32003         must be defined if the header file was not found, in order
32004         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32005
32006 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32007
32008         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32009         initializers for struct pentry_state.
32010         (__argp_error): Check return value of __asprintf
32011         (__argp_failure): Translate error message
32012
32013         * lib/argp-parse.c: Removed braces around the expansion of N_()
32014
32015 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32016
32017         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32018         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32019         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32020         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32021         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32022         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32023         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32024         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32025         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32026         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32027         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32028         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32029         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32030         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32031         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32032         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32033         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32034         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32035         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32036         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32037         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32038         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32039         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32040         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32041         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32042         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32043         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32044         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32045         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32046         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32047         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32048         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32049         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32050         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32051         xstrtol.m4, xstrtoumax.m4, yesno.m4:
32052         Use an all-permissive copyright notice, recommended by RMS.
32053
32054 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32055
32056         * modules/chdir-long (Depends-on): Remove mempcpy.
32057
32058 2005-01-21  Jim Meyering  <jim@meyering.net>
32059
32060         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32061         same value as for Solaris 9.
32062
32063         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32064         component length.  This included changing the parameter to be
32065         of type `char *' rather than `char const *'.
32066         * lib/chdir-long.h (chdir_long): Update prototype.
32067
32068         * lib/openat.c (fdopendir, fstatat): New functions.
32069         * lib/openat.h: Include headers required for use of DIR and struct
32070         stat.
32071         [AT_SYMLINK_NOFOLLOW]: Define.
32072         (fdopendir, fstatat): Add prototypes.
32073
32074 2005-01-21  Bruno Haible  <bruno@clisp.org>
32075
32076         * modules/classpath: New file.
32077         * MODULES.html.sh (Java): Add classpath.
32078
32079 2005-01-21  Bruno Haible  <bruno@clisp.org>
32080
32081         * lib/classpath.h: New file, from GNU gettext.
32082         * lib/classpath.c: New file, from GNU gettext.
32083
32084 2005-01-20  Simon Josefsson  <jas@extundo.com>
32085
32086         * modules/version-etc-fsf: New file.
32087
32088 2005-01-20  Simon Josefsson  <jas@extundo.com>
32089
32090         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32091         * lib/version-etc.c: Remove version_etc_copyright.
32092         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32093         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32094
32095 2005-01-20  Simon Josefsson  <jas@extundo.com>
32096
32097         * lib/base64.h (isbase64): Add.
32098
32099         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32100         using a unsigned prototype, don't inline.
32101         (base64_decode): Use it.
32102
32103 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32104
32105         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32106         it.
32107
32108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32109
32110         * lib/save-cwd.c (save_cwd): Remove code to support the case
32111         where fchdir is missing or flaky.
32112
32113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32114
32115         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32116
32117 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32118
32119         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32120         AC_LIBSOURCES now does this.
32121         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32122         with new ullong_max module.
32123
32124 2005-01-19  Bruno Haible  <bruno@clisp.org>
32125
32126         * modules/sh-quote: New file.
32127         * MODULES.html.sh (Executing programs): Add sh-quote.
32128
32129 2005-01-19  Bruno Haible  <bruno@clisp.org>
32130
32131         * lib/sh-quote.h: New file, from GNU gettext.
32132         * lib/sh-quote.c: New file, from GNU gettext.
32133
32134 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32135
32136         Merge from coreutils.
32137         * m4/ullong_max.m4: New file.
32138         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32139         (gl_MACROS): Assume localeconv exists.
32140
32141 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         Merge changes from coreutils, as described below in several
32144         changelogs dated today.
32145
32146         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32147         (O_DIRECTORY): Remove; not needed here, since "." must be
32148         a directory.  All uses removed.
32149         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
32150         universal on Suns, and we also need to test for IRIX.
32151         Revamp code to use 'if' rather than '#if'.
32152         Avoid unnecessary comparison of cwd->desc to 0.
32153
32154         * lib/utimens.c (futimens): Robustify the previous patch, by checking
32155         for known valid error numbers rather than observed invalid ones.
32156
32157 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32158
32159         * modules/ullong_max: New file.
32160
32161         * modules/chdir-long, modules/openat: New files.
32162         * modules/save-cwd (Depends-on): Depend on chdir-long.
32163         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32164
32165 2005-01-18  Jim Meyering  <jim@meyering.net>
32166
32167         Merge from coreutils.
32168         * m4/chdir-long.m4, m4/openat.m4: New files.
32169         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32170         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
32171         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32172         is sane and DOES follow symlinks.  Besides, testing 20 different
32173         systems found no broken chown implementations.
32174         Prompted by a change in rsync's copy of this macro.
32175         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32176
32177         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32178
32179         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32180         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32181         NULL-means-set-to-current-time semantics.
32182         Remove temporary file immediately, rather than waiting
32183         for configure's at-exit trap code to do it.
32184
32185 2005-01-18  Jim Meyering  <jim@meyering.net>
32186
32187         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32188
32189         * lib/utimens.c (futimens): Account for the fact that futimes
32190         can also fail with errno == ENOSYS or errno == ENOENT.
32191         Patch from Dmitry V. Levin.
32192
32193         Change the name of the robust chdir function from chdir to chdir_long.
32194         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32195         (restore_cwd): Use chdir_long, not chdir.
32196         * lib/chdir-long.c: Renamed from chdir.c.
32197         * lib/chdir-long.h: Renamed from chdir.h.
32198         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32199         Hurd.
32200
32201 2005-01-18  Bruno Haible  <bruno@clisp.org>
32202
32203         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32204         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32205         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32206         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32207         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32208         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32209         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32210         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32211         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32212         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32213         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32214         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32215         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32216         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32217         Use an all-permissive copyright notice, recommended by RMS.
32218
32219 2005-01-18  Bob Proulx  <bob@proulx.com>
32220
32221         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32222         simplify offsetof() macro construct to avoid compile failure with
32223         native HP-UX 11.0 ANSI C compiler.
32224
32225 2005-01-17  Bruno Haible  <bruno@clisp.org>
32226
32227         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32228         redundant because stpncpy.m4 takes care of it.
32229
32230 2005-01-17  Bruno Haible  <bruno@clisp.org>
32231
32232         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32233
32234 2005-01-17  Bruno Haible  <bruno@clisp.org>
32235
32236         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32237         used.
32238
32239 2005-01-17  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/fwriteerror.h (fwriteerror): Change specification to include
32242         fclose.
32243         * lib/fwriteerror.c: Include <stdbool.h>.
32244         (fwriteerror): At the end, close the file stream. Record whether
32245         stdout was already closed.
32246
32247 2005-01-17  Bruno Haible  <bruno@clisp.org>
32248
32249         * lib/execute.c (environ): Declare if needed.
32250         * lib/pipe.c (environ): Likewise.
32251         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32252
32253 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32254
32255         * modules/argp: Depend on vsnprintf
32256
32257 2005-01-10  Jim Meyering  <jim@meyering.net>
32258
32259         * modules/closeout (Depends-on): Add atexit.
32260
32261 2005-01-06  Bruno Haible  <bruno@clisp.org>
32262
32263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32264
32265 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32266
32267         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32268         definitions to be after all include files, to avoid collisions.
32269         Problem reported by Bob Proulx.
32270
32271 2005-01-04  Jim Meyering  <jim@meyering.net>
32272
32273         Changes imported from coreutils.
32274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32275         as the mkstemp template, use a temporary directory and an
32276         8.3-friendly template to avoid trouble on systems like DJGPP.
32277         Reported by Juan M. Guerrero via Stepan Kasal.
32278         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32279         close. Remove the temporary directory right away, rather than waiting
32280         for configure's at-exit trap code to do it.
32281         Suggestion from Stepan Kasal.
32282
32283 2005-01-01  Simon Josefsson  <jas@extundo.com>
32284
32285         * gnulib-tool: Print #include directives when --import'ing.
32286
32287 2004-12-28  Simon Josefsson  <jas@extundo.com>
32288
32289         * tests/test-base64.c: Include required header files.  Remove
32290         unused variables.
32291
32292 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32293
32294         * modules/error (Depends-on): Remove gettext.
32295
32296 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32297
32298         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32299         not needed.  This removes a dependency on the gettext module.
32300         [defined _LIBC]: Do not include <libintl.h>; not needed.
32301
32302 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32303
32304         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32305         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32306
32307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32308
32309         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32310         HAVE_DECL_STRTOLD.
32311
32312 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32313
32314         * modules/getdate (Depends-on): Remove alloca-opt.
32315
32316 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32317
32318         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32319
32320 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32321
32322         * lib/argp-parse.c: Include <stddef.h>.
32323         (alignof, alignto): New macros.
32324         (parser_init): Don't assume that void * is aligned sufficiently
32325         for struct option.
32326
32327         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32328         need to extend the stack.
32329         (YYINITDEPTH): New macro, so that the initial stack isn't overly
32330         large.
32331
32332 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32333
32334         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
32335
32336 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32337
32338         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
32339         (2004-10-24) change.  Apparently this was a false alarm.
32340
32341         * modules/getdate: Depend on alloca-opt, not alloca.
32342
32343 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32344
32345         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
32346         Remove now-obsolete comment about AIX.
32347         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
32348         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
32349         (YYMAXDEPTH): New macro.
32350
32351 2004-12-18  Simon Josefsson  <jas@extundo.com>
32352
32353         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
32354
32355 2004-12-18  Bruno Haible  <bruno@clisp.org>
32356
32357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
32358
32359 2004-12-18  Bruno Haible  <bruno@clisp.org>
32360
32361         * lib/fatal-signal.c (fatal_signals): Make non-const.
32362         (init_fatal_signals): New function.
32363         (uninstall_handlers, install_handlers): Ignore signals that were set to
32364         SIG_IGN.
32365         (at_fatal_signal): Call init_fatal_signals.
32366         (init_fatal_signal_set): Likewise. Ignore signals that were set to
32367         SIG_IGN.
32368         Reported by Paul Eggert.
32369
32370 2004-12-18  Bruno Haible  <bruno@clisp.org>
32371
32372         * doc/alloca.texi: New file.
32373         * doc/alloca-opt.texi: New file.
32374
32375 2004-12-17  Jim Meyering  <jim@meyering.net>
32376
32377         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32378         Otherwise, install-sh could exit with improper exit status when
32379         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
32380
32381 2004-12-16  Simon Josefsson  <jas@extundo.com>
32382
32383         * tests/test-base64.c: Add license.
32384
32385 2004-12-15  Stepan Kasal  <address@hidden>
32386
32387         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32388
32389 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32390
32391         * modules/getcwd (Files): Add m4/d-ino.m4.
32392         Suggested by Mark D. Baushke.
32393
32394 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32395
32396         * lib/getdate.y (textint): New member "negative".
32397         (time_zone_hhmm): New function.
32398         Expect 14 shift-reduce conflicts, not 13.
32399         (o_colon_minutes): New rule.
32400         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32401         (yylex): Set the "negative" member of signed numbers.
32402
32403 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32404
32405         * doc/getdate.texi (Time of day items, Time zone items):
32406         Describe new formats +00:00, UTC+00:00.
32407
32408 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32409
32410         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32411         spurious "-l"s.  Problem reported by Stepan Kasal.
32412
32413 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32414
32415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32416         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32417
32418 2004-12-04  Simon Josefsson  <jas@extundo.com>
32419
32420         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
32421         Vandoorselaere <yoann@prelude-ids.org>.
32422
32423 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32424
32425         Changes imported from coreutils.
32426         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
32427         exist.
32428         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
32429
32430 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         Changes imported from coreutils.
32433         * lib/hard-locale.c: Assume <locale.h> exists.
32434         Include "strdup.h".
32435         (GLIBC_VERSION): New macro.
32436         (hard_locale): Assume setlocale exists.
32437         Rewrite to avoid #ifdef.
32438         Use strdup rather than malloc + strcpy.
32439         * lib/human.c: Assume <locale.h> exists.
32440         (human_readable): Assume localeconv exists.
32441
32442 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32443
32444         * modules/hard-locale (Depends-on): Add strdup.
32445
32446 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32447
32448         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32449         convert T2, not T.  (Imported from libc.)
32450
32451 2004-11-30  Simon Josefsson  <jas@extundo.com>
32452
32453         * modules/restrict (License): Change to LGPL.
32454
32455 2004-11-30  Simon Josefsson  <jas@extundo.com>
32456
32457         * m4/restrict.m4: Add copyright and copying conditions.
32458
32459 2004-11-30  Simon Josefsson  <jas@extundo.com>
32460
32461         * m4/base64.m4: New file.
32462
32463 2004-11-30  Simon Josefsson  <jas@extundo.com>
32464
32465         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32466         base64.
32467
32468         * tests/test-base64.c: New file.
32469
32470         * modules/base64: New file.
32471
32472 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32473
32474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32475         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32476
32477         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32478
32479 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32480
32481         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32482         (__getcwd.c): Don't restore errno; glibc doesn't.
32483         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32484         first, falling back to our code only if its results look suspicious.
32485         Ensure that the resulting buffer is only as large as necessary.
32486
32487         * lib/readutmp.c: Include readutmp.h first.
32488         Include <errno.h>, since readutmp.h no longer does that.
32489         * lib/readutmp.h: Don't include <errno.h>,
32490         <sys/param.h>, <time.h>; not needed to establish interface.
32491         (errno): Remove decl.
32492         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32493         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32494         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32495
32496 2004-11-28  Simon Josefsson  <jas@extundo.com>
32497
32498         * lib/base64.h, base64.c: New file.
32499
32500 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32501
32502         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32503
32504 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32507         (Depends-on): Remove pathmax, same.  Add mempcpy.
32508         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32509         (Makefile.am): Append getcwd.h to lib_SOURCES.
32510         (Include): Add getcwd.h.
32511         (Maintainer): Change from Jim Meyering to "all, glibc",
32512         since getdate now uses intended-for-glibc code.
32513         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32514         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32515
32516 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32517
32518         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32519         HP's ANSI C compiler.
32520         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32521         Declaring int functions causes warnings on some modern systems and
32522         shouldn't be needed to compile on ancient ones.
32523         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32524         defined.
32525
32526         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32527         with the following changes.
32528         (__set_errno): Parenthesize properly.
32529         Include <stdbool.h>.
32530         (MIN, MAX, MATCHING_INO): New macros.
32531         (__getcwd): Define with prototype, not K&R form.
32532         Use heuristics to allocate default buffer on stack if possible.
32533         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32534         behavior, and to avoid the PATH_MAX limit when computing
32535         ../../../../...
32536         Use MATCHING_INO to compare inode number to file.
32537         Check for arithmetic overflow in size calculations.
32538         Fix bug in reallocation of dot array that caused getcwd to fail
32539         on directories nested deeper than 75.
32540         Be more careful about saving errno on error.
32541         Do not use realloc; use only free+malloc, as this is a bit
32542         more flexible and avoids a needless copy operation.
32543         Do not inspect st_dev and st_ino for symbolic links; POSIX
32544         doesn't specify the latter.
32545         Check for closedir errors.
32546         Avoid needless casts.
32547         Use "#ifdef weak_alias" around weak_alias, to be like other
32548         glibc code.
32549         The following changes to getcwd.c have effect only when used in
32550         gnulib; they have no effect inside glibc proper.
32551         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32552         as alloca isn't used.
32553         (alloca, __alloca): Likewise.
32554         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32555         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32556         unconditionally, as gnulib assumes C89 or better.
32557         Do not include <sys/param.h>.
32558         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32559         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32560         better.
32561         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32562         Include <dirent.h> in a way that is compatible with modern Autoconf.
32563         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32564         New macros, if not already defined.
32565         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32566         Use "_LIBC", not "defined _LIBC", for consistency.
32567         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32568         a mempcpy module.
32569         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32570         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32571         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32572         credit only to Jim Meyering and adjust the copyright dates.
32573         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32574         <stdlib.h>, <unistd.h>, "pathmax.h".
32575         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32576         (INITIAL_BUFFER_SIZE): Remove.
32577         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32578
32579 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32582         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32583         Use the _ONCE methods, for efficiency.
32584         Check for fcntl.h.  In test program, include <errno.h>
32585         and <fcntl.h> if available.  Remove old K&R cruft from
32586         test program.  Check for common errors in GNU/Linux,
32587         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32588         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32590         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32591         name accordingly.
32592         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32593         accommodate new getcwd.c.
32594         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32595         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32596         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32597         that's all we need now.
32598
32599 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32600
32601         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32602         argp-parse.c depends on getopt internals, that means we should
32603         always use our getopt, to be on the safe side.
32604         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32605         order not to spoil the result of an eventual previous invocation
32606         of gl_GETOPT_SUBSTITUTE.
32607
32608 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32609
32610         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32611         redefinition warnings. To avoid them, include the defines
32612         in `#if !defined __need_getopt ... #endif'. The only place
32613         where __getopt_argv_const is used is in definitions
32614         of getopt_long and getopt_long_only below, which are as well
32615         protected by `#ifndef __need_getopt'.
32616         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32617         __need_getopt after including <stdio.h> and <unistd.h> These
32618         headers might have defined it.
32619
32620 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32621
32622         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32623
32624 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32625
32626         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32627         (futimens): New function, which uses futimes if available.
32628         (futimens, utimens): Support timespec==NULL, with same semantics
32629         as utime and utimens.
32630         * lib/utimens.h (futimens): New decl.
32631
32632 2004-11-23  Jim Meyering  <jim@meyering.net>
32633
32634         * lib/getopt_.h: Remove trailing blanks.
32635
32636 2004-11-23  Jim Meyering  <jim@meyering.net>
32637
32638         * lib/__fpending.c: Add comment.
32639
32640 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32641
32642         * modules/canonicalize (Depends-on): Add xreadlink.
32643         Problem reported by James Youngman.
32644
32645 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32646
32647         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32648         New macros.
32649         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32650         optopt): Use them instead of invoking ## directly; otherwise, the
32651         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32652
32653 2004-11-19  Bruno Haible  <bruno@clisp.org>
32654
32655         * lib/strtok_r.c: Move comments from here...
32656         * lib/strtok_r.h: ... to here.
32657
32658 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32659
32660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32661         implementations that mishandle size_t overflow.
32662
32663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32664
32665         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32666         might fail.  Problem reported by Yoann Vandoorselaere.
32667         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32668         implementations that mishandle size_t overflow.
32669
32670 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32671
32672         * modules/canon-host (Depends-on): Add strdup.
32673
32674 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32675
32676         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32677
32678 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * lib/canon-host.c: Include "strdup.h".
32681         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32682         Use strdup instead of malloc/strcpy to duplicate strings.
32683
32684         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32685         (human_space_before_unit): New constant.
32686         * lib/human.c (human_readable): Support it.
32687
32688         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32689         (xgetcwd): Set errno correctly when failing.
32690         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32691         the failure is actually due to a PATH_MAX problem.
32692
32693         Further getopt changes to make it more likely that glibc will
32694         buy the changes back.
32695         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32696         (getopt): Use it, so to preserve glibc semantic
32697         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32698         when compiling for libc.
32699         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32700         (getopt_long, getopt_long_only): Use it.
32701
32702         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32703         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32704         (getopt): Argv is now char * const *, as per standard.
32705         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32706         not char *__getopt_argv_const *.
32707         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32708         _getopt_long_only_r): Likewise.
32709         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32710         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32711         _getopt_long_r, _getopt_long_only_r): Likewise.
32712         * lib/getopt_.h (__getopt_argv_const): Remove.
32713         (getopt): Argv is now char * const *, as per standard.
32714
32715         * lib/getdate.y (tORDINAL): New token.
32716         (day, relunit): Allow it for relative times.
32717         (relative_time_table): Use tORDINAL for ordinals.
32718
32719 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32720
32721         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32722         Document that "second" isn't allowed as an ordinal number.
32723
32724 2004-11-16  Jim Meyering  <jim@meyering.net>
32725
32726         * modules/closeout (Depends-on): Add fpending.
32727
32728 2004-11-15  Jim Meyering  <jim@meyering.net>
32729
32730         * lib/closeout.c: Include "__fpending.h" once again.
32731         Include <stdbool.h>.
32732         (close_stdout): Don't fail just because stdout was closed initially,
32733         since some programs don't write to stdout in the normal course of
32734         operation (other than --version and --help), and we don't want this
32735         function to make e.g. `touch file >&-' fail.
32736         But do fail if it was closed and someone has tried to write to it.
32737         E.g., `printf foo >&-' must fail.
32738
32739 2004-11-13  Jim Meyering  <jim@meyering.net>
32740
32741         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32742
32743 2004-11-12  Simon Josefsson  <jas@extundo.com>
32744
32745         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32746         small doc fix is still pending.
32747
32748 2004-11-11  Simon Josefsson  <jas@extundo.com>
32749
32750         * modules/strtok_r: New file.
32751
32752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32753         strtok_r.
32754
32755 2004-11-11  Simon Josefsson  <jas@extundo.com>
32756
32757         * m4/strtok_r.m4: New file.
32758
32759         * m4/getopt.m4: Replace opterr.
32760
32761 2004-11-11  Simon Josefsson  <jas@extundo.com>
32762
32763         * lib/strtok_r.h, strtok_r.c: New file.
32764
32765 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32766
32767         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32768         of replacing opterr, getopt, etc.  This should handle the
32769         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32770
32771 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32772
32773         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32774         we can stop lying to compilers about the constness of argv when we
32775         are compiled outside glibc.
32776         (getopt, getopt_long, getopt_long_only): Use it.
32777         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32778         _getopt_internal, getopt): Likewise.
32779         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32780         _getopt_long_only_r): Likewise.
32781         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32782         _getopt_long_r, _getopt_long_only_r): Likewise.
32783
32784         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32785         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32786         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32787         the other external symbols.
32788         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32789         declaration, since the above renaming now works around collisions.
32790
32791 2004-11-11  Jim Meyering  <jim@meyering.net>
32792
32793         * lib/linebreak.c: Remove trailing blanks.
32794         * lib/alloca_.h: Likewise.
32795         * lib/acosl.c: Likewise.
32796         * lib/euidaccess.c: Likewise.
32797         * lib/allocsa.h: Likewise.
32798
32799 2004-11-10  Simon Josefsson  <jas@extundo.com>
32800
32801         * m4/getaddrinfo.m4: New file.
32802
32803 2004-11-10  Simon Josefsson  <jas@extundo.com>
32804
32805         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32806
32807 2004-11-10  Simon Josefsson  <jas@extundo.com>
32808
32809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32810         getaddrinfo.
32811
32812         * modules/getaddrinfo: New file.
32813
32814 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32815
32816         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32817
32818 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32819
32820         * lib/mktime.c (SHR): New macro, which is a portable
32821         substitute for >> that should work even on Crays.
32822         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32823         Problem reported by Mark D. Baushke in
32824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32825         * lib/getdate.y (SHR): Likewise.
32826         (tm_diff): Use it.
32827         * lib/strftime.c (SHR): Likewise.
32828         (tm_diff): Use it.
32829         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32830         quote_these_too, so that right shifts are well defined.  All uses
32831         changed.
32832
32833 2004-11-10  Jim Meyering  <jim@meyering.net>
32834
32835         Ensure that no close failure goes unreported.
32836         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32837         return early when it seems there's nothing to flush.
32838         Don't include __fpending.h.
32839
32840 2004-11-10  Jim Meyering  <jim@meyering.net>
32841
32842         * modules/closeout (Depends-on): Remove fpending.
32843
32844 2004-11-10  Jim Meyering  <jim@meyering.net>
32845
32846         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32847
32848 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32849
32850         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32851         gl_FUNC_STRFTIME.
32852         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32853         and AC_REQUIRE when possible, to avoid duplicate checks.
32854         Check for <wchar.h>.
32855
32856 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32857
32858         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32859
32860 2004-11-09  Bruno Haible  <bruno@clisp.org>
32861
32862         * m4/sockpfaf.m4: New file.
32863
32864 2004-11-05  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32867         Reported by Mark D. Baushke <mdb@cvshome.org>.
32868
32869 2004-11-04  Bruno Haible  <bruno@clisp.org>
32870
32871         2004-09-11  Bruno Haible  <bruno@clisp.org>
32872                 * allocsa.valgrind: New file.
32873         2004-02-06  Bruno Haible  <bruno@clisp.org>
32874                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32875                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32876                 Reported by Christopher Seip <chris.seip@hp.com>.
32877
32878 2004-11-04  Bruno Haible  <bruno@clisp.org>
32879
32880         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32881         (Makefile.am): Distribute it.
32882
32883 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32884
32885         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32886         with errno == ERANGE if the buffer is too small.
32887         Problem reported by Mark D. Baushke.
32888
32889 2004-11-03  Albert Chin  <china@thewrittenword.com>
32890             Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32893         equivalent, substitute $ac_type for equivalent type rather than
32894         blindly using uint32_t *always* which won't work if uint32_t is not
32895         available.  Define _UINT32_T to work around typedef of uint32_t if
32896         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32897         2.5.1.
32898
32899 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         * m4/jm-macros.m4: Sync from coreutils.
32902         (gl_MACROS): Check for mbrlen, for pathchk.
32903         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32904
32905 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32906
32907         * lib/xreadlink.c (MAXSIZE): New macro.
32908         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32909         size does not exceed MAXSIZE.  Avoid cast.
32910         As suggested by Mark D. Baushke in
32911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32912         if readlink fails with buffer size just under MAXSIZE, try again
32913         with MAXSIZE.
32914
32915 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32916
32917         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32918
32919 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32920         and  Paul Eggert  <eggert@cs.ucla.edu>
32921
32922         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32923         (get_date): Overparenthesize to avoid GCC warning.
32924
32925 2004-11-02  Bruno Haible  <bruno@clisp.org>
32926
32927         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32928         returns void.
32929
32930 2004-11-02  Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32933         function returns void.
32934
32935 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32936
32937         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32938         fflush_unlocked, flockfile, funlockfile, funlockfile,
32939         fputs_unlocked, putc_unlocked.
32940
32941 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32942
32943         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32944         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32945         already declared.
32946
32947 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32948
32949         * modules/getdate (Files): Add doc/getdate.texi.
32950         (Depends-on): Add setenv, xalloc.
32951
32952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32953
32954         * lib/getdate.y: Add support for TZ="foo" within a date string.
32955         Fix some bugs near time_t boundaries.  Reject dates with
32956         out-of-range components, e.g., "Sept 31".
32957         Include <stdlib.h>, "setenv.h", "xalloc.h".
32958         (ISDIGIT_LOCALE): Remove; unused.
32959         Note that the TZ and time functions used here are not reentrant.
32960         (mktime_ok, get_tz): New functions.
32961         (TZBUFSIZE): New constant.
32962         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32963         This requires that we sometimes generate our own TZ="XXX..." setting.
32964
32965 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32966
32967         * doc/getdate.texi: New file, from coreutils with modifications for
32968         the new TZ parsing.
32969
32970 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32971
32972         * lib/mktime.c (not_equal_tm): Remove redundant check.
32973
32974 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         * modules/regex (lib_SOURCES): Add regex.c.
32977         Reported by James Youngman in
32978         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32979
32980 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * lib/getdate.y: Use Bison 1.875 features, and some minor
32983         code cleanups.  This change does not affect semantics.
32984         Don't include <stdlib.h>; no longer needed.
32985         Don't include unlocked-io.h; only the "#if TEST" code uses
32986         stdio, and performance isn't crucial there.
32987         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32988         Bison 1.875 features as described below.
32989         All uses of "PC." replaced by "pc->".
32990         (YYSTYPE): Add a forward declaration.
32991         (yylex, yyerror): Use full prototypes in forward decls.
32992         Use "%pure-parser" rather than obsolescent "%pure_parser".
32993         Use %parse-param and %lex-param instead of obsolescent
32994         YYPARSE_PARAM and YYLEX_PARAM.
32995         (meridian_table, month_and_day_table, time_units_table,
32996         relative_time_table, time_zone_table, military_table,
32997         lookup_zone, lookup_word, get_date):
32998         Use NULL instead of 0 where appropriate.
32999         (to_hour): Avoid abort (), to avoid a dependency on
33000         stdlib.h.
33001         (yyerror, yylex): Now accepts parser_control * arg.
33002         (main) [TEST]: Use '\0' rather than 0 for char.
33003
33004 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33005
33006         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33007
33008 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33009
33010         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33011         It's now the caller's responsibility to handle the case where
33012         !HAVE_GETPAGESIZE && !defined getpagesize.
33013
33014         * lib/mktime.c (leapyear): Arg is long int, not int.
33015
33016 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33017
33018         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33019
33020 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33021
33022         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33023         missing.  Problem reported by James Youngman.
33024
33025 2004-10-16  Simon Josefsson  <jas@extundo.com>
33026
33027         * gnulib-tool: Fix comments.  Fix parse problem.
33028         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33029
33030 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33031
33032         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33033         implementation of getopt_long.  Problem reported by Alexander Taler in:
33034         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33035
33036 2004-10-15  Bruno Haible  <bruno@clisp.org>
33037
33038         * gnulib-tool: Untabify. Initialize supplied_libname.
33039         (func_usage): More homogenous output.
33040         (func_modules_transitive_closure, func_modules_to_filelist,
33041         func_emit_lib_Makefile_am): New functions.
33042         (func_import): New function, extracted from big case statement. Use
33043         func_get_license, func_modules_transitive_closure,
33044         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33045         opt_lgpl. Don't use test -a, as it's not portable.
33046         (func_create_testdir): Use func_modules_transitive_closure,
33047         func_modules_to_filelist, func_emit_lib_Makefile_am.
33048
33049 2004-10-15  Bruno Haible  <bruno@clisp.org>
33050
33051         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33052
33053 2004-10-15  Bruno Haible  <bruno@clisp.org>
33054
33055         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33056         the portions belonging to each module.
33057         Suggested by Derek Robert Price <derek@ximbiot.com>.
33058
33059 2004-10-12  Simon Josefsson  <jas@extundo.com>
33060
33061         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33062         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33063         to real functions.
33064
33065 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33066
33067         * modules/vsnprintf: New file.
33068
33069 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33070
33071         * m4/vsnprintf.m4: New file.
33072
33073 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33074
33075         * lib/vsnprintf.h: New file.
33076         * lib/vsnprintf.c: New file.
33077
33078 2004-10-11  Bruno Haible  <bruno@clisp.org>
33079
33080         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33081         vsnprintf.
33082
33083 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33084
33085         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33086
33087 2004-10-07  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33090         fits into the provided buffer.
33091
33092 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33093
33094         * lib/diacrit.c, diacrit.h: Add GPL notice.
33095
33096         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33097         notice.
33098         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33099         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33100         This avoids a potential constant-folding bug.
33101
33102 2004-10-05  Bruno Haible  <bruno@clisp.org>
33103
33104         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33105         for the declaration of strsep.
33106
33107 2004-10-05  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33110
33111 2004-10-04  Simon Josefsson  <jas@extundo.com>
33112
33113         * modules/memmem: New file.
33114         * tests/test-memmem.c: New file.
33115         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33116
33117 2004-10-04  Simon Josefsson  <jas@extundo.com>
33118
33119         * m4/memmem.m4: New file.
33120
33121 2004-10-04  Simon Josefsson  <jas@extundo.com>
33122
33123         * lib/memmem.h: New file.
33124         * lib/memmem.c: New file, taken from glibc.
33125
33126 2004-10-04  Simon Josefsson  <jas@extundo.com>
33127
33128         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33129         '#ifdef USE_UNLOCKED_IO'.
33130
33131 2004-10-04  Simon Josefsson  <jas@extundo.com>
33132
33133         * config/srclist.txt: Add memmem from glibc.
33134
33135 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33136
33137         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33138
33139         * modules/argmatch, modules/argp, modules/closeout, modules/error,
33140         modules/exclude, modules/getdate, modules/getline,
33141         modules/getndelim2, modules/getpass, modules/getpass-gnu,
33142         modules/getusershell, modules/linebuffer, modules/md5,
33143         modules/mountlist, modules/posixtm, modules/readtokens,
33144         modules/readutmp, modules/regex, modules/sha1,
33145         modules/version-etc, modules/yesno:
33146         Remove dependency on unlocked-io.
33147
33148 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33149
33150         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
33151
33152         * m4/unlocked-io.m4: Add copyright notice.
33153         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33154
33155 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33156
33157         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
33158         * lib/xmalloc.c (xmemdup): Likewise.
33159         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33160         XFREE): Remove these long-obsolescent macros.
33161         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33162         * lib/xstrdup.c: Remove.
33163
33164         * lib/regex.c (re_comp): Cast gettext return value to char *,
33165         Problem reported by Martin Neitzel via Mark D. Baushke.
33166
33167 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33168
33169         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33170         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33171         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33172         regex.c, sha1.c, version-etc.c, yesno.c:
33173         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33174         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33175         the includer's responsibility.
33176
33177         Sync from coreutils.
33178
33179         * lib/modechange.c (mode_compile): Don't decrement a pointer that
33180         points to the start of a string, as the C Standard says the
33181         resulting behavior is undefined.
33182
33183         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33184         simple -> simple_backups, numbered_existing ->
33185         numbered_existing_backups, numbered -> numbered_backups
33186         to avoid shadowing problems.  All uses changed.
33187         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33188         * lib/backupfile.c (check_extension, numbered_backup):
33189         Rename locals to avoid shadowing 'basename'.
33190         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33191         once.
33192
33193         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33194         * lib/.cvsignore: Add getopt.h.
33195
33196 2004-10-04  Bruno Haible  <bruno@clisp.org>
33197
33198         * modules/README: New file.
33199         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33200         not a module.
33201
33202 2004-10-02  Jim Meyering  <jim@meyering.net>
33203
33204         * lib/dirfd.h, getpagesize.h: Add copyright notice.
33205
33206 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33207
33208         * modules/strsep: New file.
33209
33210 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33211
33212         * m4/strsep.m4: New file.
33213
33214 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33215
33216         * lib/strsep.h: New file.
33217         * lib/strsep.c: New file.
33218
33219 2004-10-01  Simon Josefsson  <jas@extundo.com>
33220
33221         * lib/snprintf.c (snprintf): Handle size==0.
33222
33223 2004-10-01  Simon Josefsson  <jas@extundo.com>
33224             Bruno Haible  <bruno@clisp.org>
33225
33226         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33227         (snprintf): Declare 'args'.
33228
33229 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
33230
33231         * lib/snprintf.c: Remove comments as to why each header is needed.
33232
33233 2004-10-01  Bruno Haible  <bruno@clisp.org>
33234
33235         * MODULES.html.sh: Add strsep.
33236
33237 2004-09-30  Simon Josefsson  <jas@extundo.com>
33238
33239         * modules/snprintf: New file.
33240
33241 2004-09-30  Simon Josefsson  <jas@extundo.com>
33242
33243         * m4/snprintf.m4: New file.
33244
33245 2004-09-30  Simon Josefsson  <jas@extundo.com>
33246
33247         * lib/snprintf.h, lib/snprintf.c: New files.
33248
33249 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33250
33251         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33252         (hol_entry_help): Never translate an empty string.
33253         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33254         * lib/argp.h (OPTION_NO_TRANS): New option.
33255
33256 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33257
33258         * modules/argp (Maintainer): Replace Simon Josefsson
33259         by Sergey Poznyakoff.
33260
33261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33262
33263         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33264         changes merged back into glibc.
33265
33266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33267
33268         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33269
33270 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33271
33272         * lib/xvasprintf.c: Include xalloc.h.
33273         (xvasprintf): Use xalloc_die, not xmalloc_die.
33274
33275 2004-09-29  Bruno Haible  <bruno@clisp.org>
33276
33277         * modules/alloca-opt: New file, derived from modules/alloca.
33278         * modules/allocsa: Depend on alloca-opt instead of alloca.
33279         * modules/setenv: Likewise.
33280         * modules/vasnprintf: Likewise.
33281         * MODULES.html.sh: Add alloca-opt.
33282
33283 2004-09-28  Simon Josefsson  <jas@extundo.com>
33284
33285         * gnulib-tool: New parameter --lgpl, to asseert that modules are
33286         LGPL, and to replace license template from GPL to LGPL.
33287
33288 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * modules/dummy: Change license to LGPL.
33291
33292 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33293
33294         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33295
33296 2004-09-24  Simon Josefsson  <jas@extundo.com>
33297
33298         * modules/minmax (License): Change from GPL to LGPL.
33299
33300 2004-09-23  Simon Josefsson  <jas@extundo.com>
33301
33302         * gnulib-tool (--import): Typo.
33303
33304 2004-09-23  Simon Josefsson  <jas@extundo.com>
33305
33306         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33307
33308 2004-09-22  Bruno Haible  <bruno@clisp.org>
33309
33310         * modules/*: Add 'License' field.
33311         * gnulib-tool: Accept --extract-license option.
33312         (func_get_license): New function.
33313
33314 2004-09-21  Bruno Haible  <bruno@clisp.org>
33315
33316         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33317         Reported by Simon Josefsson.
33318
33319 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33320
33321         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33322         gl_AC_TYPE_LONG_LONG.
33323
33324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33325
33326         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33327
33328 2004-09-18  Simon Josefsson  <jas@extundo.com>
33329         and  Paul Eggert  <eggert@cs.ucla.edu>
33330
33331         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
33332         calls with autoreconf.  Define GL_LIB.
33333
33334 2004-09-14  Karl Berry  <karl@gnu.org>
33335
33336         * config/srclist.txt: unsync setenv.c, sigh.
33337
33338 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33339
33340         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
33341         Problem reported by Bruno Haible in:
33342         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
33343
33344 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33345
33346         * config/srclist.txt: Comment out argp-pvh.c.
33347
33348 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
33349
33350         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
33351         in case some system header has #define'd it.  Problem reported by
33352         Soeren D. Schulze in
33353         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
33354
33355 2004-09-09  Karl Berry  <karl@gnu.org>
33356
33357         * regex.[ch]: delete from the root.  These were supposed to be
33358                 synced with emacs cvs, but this has not happened for about
33359                 a year, and anyway nothing else uses emacs regex.[ch].
33360                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
33361                 lib/regex[.ch] is untouched.
33362
33363 2004-09-09  Bruno Haible  <bruno@clisp.org>
33364
33365         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
33366
33367 2004-09-09  Bruno Haible  <bruno@clisp.org>
33368
33369         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33370         modifications.
33371         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33372
33373 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33374
33375         * modules/xvasprintf: New file.
33376         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33377
33378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33379
33380         * lib/xvasprintf.h: New file.
33381         * lib/xvasprintf.c: New file.
33382         * lib/xasprintf.c: New file.
33383
33384 2004-09-08  Bruno Haible  <bruno@clisp.org>
33385
33386         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33387
33388 2004-09-08  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33391         length is > INT_MAX.
33392         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33393         more.
33394
33395 2004-09-08  Bruno Haible  <bruno@clisp.org>
33396
33397         * lib/stdint_.h: New file, taken from GNU clisp.
33398
33399 2004-09-08  Bruno Haible  <bruno@clisp.org>
33400             Oskar Liljeblad  <oskar@osk.mine.nu>
33401
33402         * modules/stdint: New file.
33403         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33404
33405 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33406
33407         Import from coreutils.
33408         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33409         strings on unbounded length.  alloca's performance benefits aren't
33410         that important here.
33411         (V_STRDUP): Remove.
33412         (parse_with_separator): New function, with most of the internals
33413         of the old parse_user_spec.  Allow user to omit both user and group,
33414         for compatibility with FreeBSD.
33415         Clone only the user name, not the entire spec.
33416         Do not set *uid, *gid unless entirely successful.
33417         Avoid memory leak in some failing cases.
33418         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33419         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
33420         (parse_user_spec): Rewrite to use parse_with_separator.
33421
33422 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33423
33424         * modules/userspec: Don't depend on alloca.
33425
33426 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33427
33428         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
33429
33430 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33431
33432         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
33433         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
33434         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
33435
33436 2004-08-16  Simon Josefsson  <jas@extundo.com>
33437
33438         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
33439         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
33440         Add --dry-run for --import.
33441         Let user provided command line parameters override configure.ac
33442         settings.
33443
33444 2004-08-12  Simon Josefsson  <jas@extundo.com>
33445
33446         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33447         as discussed with Paul Eggert in threads rooted at
33448         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33449         and
33450         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33451         Before, the test was empty, and relied on ELIDE_CODE in source
33452         code.)
33453         (gl_PREREQ_GETOPT): New macro.
33454         (gl_GETOPT): Use them.
33455
33456 2004-08-12  Simon Josefsson  <jas@extundo.com>
33457
33458         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33459         * lib/getopt_.h: Renamed from getopt.h.
33460
33461 2004-08-12  Simon Josefsson  <jas@extundo.com>
33462
33463         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33464         Change default library name from libfoo to libgnu.
33465         Now, if you have a configure.ac that says:
33466                 gl_SOURCE_BASE(gl)
33467                 gl_M4_BASE(gl/m4)
33468                 gl_MODULES(error getopt etcetera)
33469                 gl_INIT
33470         you can import all you need by running:
33471                 ../gnulib/gnulib-tool --import
33472
33473         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33474         (Makefile.am): Rewrite, use logic from argz.
33475         (Include): Use <getopt.h> instead of "getopt.h".
33476
33477 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33478
33479         * modules/argp (Files): Add m4/unlocked-io.m4.
33480         (Depends-on): Add extensions.
33481
33482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33483
33484         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33485         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33486         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33487         Check for program_invocation_name, program_invocation_short_name,
33488         flockfile, funlockfile, features.h, _getopt_long_only_r.
33489
33490 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33491
33492         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33493         its complicated substitute.
33494         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33495         and program_invocation_name.
33496         (__argp_basename) [!_LIBC]: Remove; the only use was
33497         replaced by its body.
33498         (__argp_short_program_name): Change condition from
33499         !defined __argp_short_program_name to
33500         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33501         to match argp-namefrob.h.
33502         (__argp_failure): Don't assume strerror_r returns char *.
33503         * lib/argp-parse.c (N_): Define unconditionally.
33504         (argp_default_options): Fill out initializers with 0 to avoid
33505         gcc warnings.
33506
33507 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33508
33509         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33510         getopt1.c.
33511
33512 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33513
33514         Merge from coreutils.
33515
33516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33517
33518         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33519         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33520
33521 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33522
33523         Merge from coreutils.
33524
33525         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33526         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33527         for Reliant Unix 5.43.
33528
33529         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33530         (union fooround): Use uintmax_t, not long int.
33531         The rest is a merge from libc:
33532         [defined _LIBC]: Include <shlib-compat.h>.
33533         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33534
33535         * lib/settime.c (settime): Recode to avoid warning with
33536         Sun Forte C 6U2.
33537
33538         * lib/strverscmp.c: Convert to UTF-8.
33539
33540 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33541
33542         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33543         m4/uintmax_t.m4.
33544
33545 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33546
33547         * modules/xalloc-die: New file.
33548         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33549
33550         * modules/md5 (Files): Add m4/uint32_t.m4.
33551         * modules/sha1: Renamed from modules/sha.
33552         (Files):
33553         Rename lib/sha.h to lib/sha1.h.
33554         Rename lib/sha.c to lib/sha1.c.
33555         Rename m4/sha.m4 to m4/sha1.m4.
33556         (lib_SOURCES): Likewise.
33557         (configure.ac): Rename gl_SHA to gl_SHA1.
33558         (Include): sha.h -> sha1.h.
33559
33560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33563         * m4/sha1.m4: Renamed from sha.m4.
33564         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33565
33566 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33567
33568         * lib/obstack.h (obstack_empty_p):
33569         Don't assume that chunk->contents is suitably aligned.
33570         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33571         Likewise. Problem reported by Benno in
33572         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33573
33574         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33575         readable.  This could be improved further but it'd take some work.
33576
33577 2004-08-08  Simon Josefsson  <jas@extundo.com>
33578
33579         * modules/xgethostname (Depends-on): Remove exit and error (not
33580         used).
33581
33582         * modules/getpass-gnu: Add getpass.h.
33583         (Depends-on): Add stdbool.
33584         * modules/getpass: Add getpass.h.
33585
33586 2004-08-08  Simon Josefsson  <jas@extundo.com>
33587
33588         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33589         Check getpass declaration.
33590
33591 2004-08-08  Simon Josefsson  <jas@extundo.com>
33592
33593         * lib/xgethostname.c: Don't include error.h (not used).
33594
33595         * lib/getpass.h: Add.
33596         * lib/getpass.c: Include getpass.h first.
33597
33598 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33599
33600         * lib/xalloc-die.c: New file.
33601         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33602         All uses removed.
33603         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33604         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33605         xalloc-die.c.
33606         (_, N_, xalloc_die): Move to xalloc-die.c.
33607         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33608         so that we needn't mess with xalloc_msg_memory_exhausted.
33609
33610         * lib/sha1.h: Renamed from sha.h.
33611         (SHA1_H): Renamed from _SHA_H.
33612         (sha1_ctx): Renamed from sha_ctx.
33613         (sha1_init_ctx): Renamed from sha_init_ctx.
33614         (sha1_process_block): Renamed from sha_process_block.
33615         (sha1_process_bytes): Renamed from sha_process_bytes.
33616         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33617         (sha1_read_ctx): Renamed from sha_read_ctx.
33618         (sha1_stream): Renamed from sha_stream.
33619         (sha1_buffer): Renamed from sha_buffer.
33620         * lib/sha1.c: Likewise; renamed from sha.c.
33621         Do not include <sys/types.h>.
33622         Include <stddef.h> rather than <stdlib.h>.
33623
33624 2004-08-08  Bruno Haible  <bruno@clisp.org>
33625
33626         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33627         FILESYSTEM_PREFIX_LEN.
33628         * lib/progreloc.c: Likewise.
33629         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33630
33631 2004-08-06  Simon Josefsson  <jas@extundo.com>
33632
33633         * modules/progname (Depends-on): Don't depend on stdbool.
33634
33635 2004-08-06  Simon Josefsson  <jas@extundo.com>
33636
33637         * modules/getsubopt: New file.
33638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33639         getsubopt.
33640
33641 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33642
33643         More merge from coreutils.
33644
33645         * m4/utimens.m4, m4/utimecmp.m4: New files.
33646         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33647         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33648         prereq.m4, sha.m4: Import changes from coreutils.
33649
33650 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33651
33652         More merge from coreutils.
33653         * modules/raise, modules/readtokens0, modules/utimens:
33654         * modules/utimecmp, module/xnanosleep: New files.
33655         * modules/strftime: Add lib/strftime.h.
33656         Change include from <time.h> to "strftime.h".
33657         * modules/yesno: Add lib/yesno.h.
33658         * modules/backupfile: Remove lib/addext.c.
33659         * modules/euidaccess: Add stat-macros.h.
33660         * modules/canonicalize, modules/euidaccess,
33661         modules/filemode, modules/lchown, modules/makepath,
33662         modules/rmdir, modules/stat: Likewise.
33663
33664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33665
33666         Merge from tar.
33667         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33668         SIZE_MAX is a valid preprocessor constant.
33669         (__argp_basename): Change from "#ifndef _LIBC"
33670         to "#ifndef __argp_short_program_name", so that
33671         we don't compile these functions for tar.
33672
33673         More merges from coreutils.
33674         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33675         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33676         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33677         * lib/addext.c: Remove; no longer needed.
33678         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33679         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33680         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33681         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33682         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33683         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33684         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33685         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33686         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33687         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33688         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33689         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33690         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33691         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33692         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33693         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33694         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33695         Import changes from coreutils.
33696
33697 2004-08-05  Simon Josefsson  <jas@extundo.com>
33698
33699         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33700
33701 2004-08-05  Simon Josefsson  <jas@extundo.com>
33702
33703         * m4/getsubopt.m4: New file.
33704
33705 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33706
33707         Merge from coreutils.
33708
33709         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33710         * m4/getcwd-path-max.m4: New files.
33711
33712         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33713         FILESYSTEM_PREFIX_LEN ->
33714         FILE_SYSTEM_PREFIX_LEN.
33715         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33716         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33717         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33718         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33719
33720         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33721         prerequisite modules now handle the DOS stuff.
33722         Don't check for unistd.h.
33723
33724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33725
33726         Merge from coreutils.
33727
33728         * lib/.gdb-history: Remove; this doesn't belong here.
33729
33730         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33731         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33732         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33733         * lib/getcwd.c: New files.
33734
33735         * lib/dirname.h: Include <stdbool.h>.
33736         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33737         for consistency with POSIX terminology.  All uses changed.
33738         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33739         (strip_trailing_slashes): Use bool for booleans.
33740         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33741
33742         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33743         sometimes returns a positive errno value even when it succeeds.
33744         (print_errno_message) [!LIBC]: Fall back on strerror if
33745         __strerror_r fails.
33746
33747         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33748         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33749         (longest_relative_suffix): New function.
33750         (path_concat): Use it.  Assume first argument is not NULL.
33751         Port to DOS.  Omit redundant separators.
33752         Report an error instead of returning NULL.
33753         Use mempcpy instead of memcpy.
33754         (xpath_concat): Remove: not declared or used.
33755
33756         * lib/same.h: Include <stdbool.h>
33757         (same_name): Return bool, not int.
33758         * lib/same.c (same_name): Likewise.
33759         (errno): Don't declare; we assume C89 or better now.
33760
33761         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33762         if not already defined.
33763
33764         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33765         * lib/dup-safer.c (errno): Likewise.
33766
33767 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33768
33769         Merge from coreutils.
33770         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33771         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33772         * modules/path-concat: Don't depend on strdup.
33773
33774 2004-08-03  Simon Josefsson  <jas@extundo.com>
33775
33776         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33777         * lib/progname.h: Don't include stdbool.h.
33778
33779 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33780
33781         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33782         * MODULES.html.sh (func_all_modules): Remove fatal.
33783
33784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33785
33786         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33787
33788 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33789
33790         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33791         working.
33792
33793 2004-08-02  Simon Josefsson  <jas@extundo.com>
33794
33795         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33796         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33797         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33798
33799 2004-08-01  Simon Josefsson  <jas@extundo.com>
33800
33801         * lib/xgetdomainname.c: Include stdlib.h, for free().
33802
33803 2004-07-19  Bruno Haible  <bruno@clisp.org>
33804
33805         * MODULES.html.sh (func_all_modules): Add dummy.
33806
33807 2004-07-16  Simon Josefsson  <jas@extundo.com>
33808
33809         * modules/dummy: New file.
33810
33811 2004-07-16  Simon Josefsson  <jas@extundo.com>
33812
33813         * lib/dummy.c: New file.
33814
33815 2004-07-16  Bruno Haible  <bruno@clisp.org>
33816
33817         * lib/backupfile.h: Add extern "C" for C++.
33818         * lib/closeout.h: Likewise.
33819         * lib/copy-file.h: Likewise.
33820         * lib/findprog.h: Likewise.
33821         * lib/full-write.h: Likewise.
33822         * lib/pathname.h: Likewise.
33823         * lib/progname.h: Likewise.
33824         * lib/stpcpy.h: Likewise.
33825         * lib/stpncpy.h: Likewise.
33826         * lib/strcase.h: Likewise.
33827         * lib/strstr.h: Likewise.
33828         * lib/xalloc.h: Likewise.
33829
33830         * lib/mbswidth.h: Add extern "C" for C++.
33831         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33832
33833 2004-07-13  Robert Millan  <robertmh@gnu.org>
33834
33835         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33836
33837 2004-07-09  Simon Josefsson  <jas@extundo.com>
33838
33839         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33840         failed without this.)
33841
33842 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33843
33844         * modules/chown (Files): Add lib/fchown-stub.c, since
33845         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33846
33847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33848
33849         * lib/fchown-stub.c: New file.
33850
33851 2004-06-24  Jim Meyering  <jim@meyering.net>
33852
33853         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33854
33855 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33856
33857         * modules/argz: Omit "#include".
33858
33859         * MODULES.html.sh (func_all_modules): Add calloc, to match
33860         2004-06-01 addition of calloc module.
33861
33862 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33863
33864         * m4/argz.m4: New file, which is autoupdated from libtool.
33865
33866 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33867
33868         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33869         libtool.
33870
33871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33872
33873         * config/srclist-update: Don't insist on "USA." before the
33874         close-comment, as libtool omits the period and puts the */ on a
33875         separate line.
33876         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33877         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33878
33879 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33880
33881         * modules/argz: New file.
33882         * MODULES.html.sh (func_all_modules): Add argz.
33883
33884 2004-06-12  Jim Meyering  <jim@meyering.net>
33885         and  Paul Eggert  <eggert@cs.ucla.edu>
33886
33887         * modules/hash (Files): Add lib/xalloc.h.
33888         * modules/pipe (Depends-on): Add wait-process.
33889         * modules/stat (Depends-on): Add xalloc.
33890         * modules/userspec (Files): Add lib/userspec.h.
33891         * modules/xstrto
33892
33893         Upgrade from gettext-0.13.
33894         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33895         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33896         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33897
33898 2004-06-10  Jim Meyering  <jim@meyering.net>
33899
33900         * lib/calloc.c: New file.
33901
33902 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33903
33904         * lib/getdate.y (yylex): Allow space between sign and number.
33905         Problem reported by Dan Jacobson.
33906
33907 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33908
33909         Merge from coreutils CVS.
33910
33911         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33912         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33913         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33914         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33915         xstrtol.m4: Fix copyright date and/or serial number.
33916
33917         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33918         See if we need an fchown replacement.
33919         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33920         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33921         and use the replacement function if we detect either defect.
33922
33923         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33924         gl_UTIMECMP.
33925
33926 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33927         and  Jim Meyering  <jim@meyering.net>
33928
33929         Merge from coreutils CVS.
33930
33931         * lib/stat-macros.h: New file, with contents from file-type.h
33932         and coreutils' system.h.
33933         * lib/file-type.c: Include "stat-macros.h".
33934         * lib/file-type.h (file_type): Move all macro definitions to new file,
33935         stat-macros.h.
33936
33937         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33938         Wrap old code with this conditional.
33939         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33940         function that does not dereference symlinks.
33941         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33942
33943         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33944         dependency problems.
33945         (xreadlink): Accept new arg SIZE, for efficiency.
33946         All decls and uses changed.
33947         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33948
33949         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33950         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33951
33952         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33953         sysexits.h.
33954
33955 2004-06-01  Jim Meyering  <jim@meyering.net>
33956
33957         * m4/calloc.m4: New file.
33958
33959 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33960
33961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33962         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33963         Also, fix a typo in a diagnostic.
33964
33965 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33966
33967         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33968         or AC_FUNC_REALLOC.
33969
33970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33971
33972         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33973         macros to be defined.
33974         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33975         the allocator returns NULL because the requested size is zero.
33976
33977 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33978
33979         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33980         var.  Add comment explaining why libc still defines it.  This
33981         merges the following patch from glibc:
33982         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33983
33984 2004-05-20  Andreas Schwab  <schwab@suse.de>
33985
33986         * m4/free.m4: Replace free if it not known to work, not the other
33987         way round.
33988
33989 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33990
33991         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33992         present in glibc since revision 1.1 of this file.
33993         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33994         obstack_alignment_mask, obstack_alloc, obstack_base,
33995         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33996         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33997         obstack_grow0, obstack_init, obstack_int_grow,
33998         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33999         obstack_next_free, obstack_object_size, obstack_ptr_grow,
34000         obstack_ptr_grow_fast, obstack_room): Remove declarations of
34001         nonexistent functions.
34002
34003 2004-05-18  Karl Berry  <karl@gnu.org>
34004
34005         * config/srclist.txt: break link for vasnprintf.c.
34006
34007 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34008
34009         Port obstack to the AS/400, where pointers are 16 bytes wide and
34010         you cannot cast an integer to a valid pointer.  This patch is
34011         currently waiting to be integrated into glibc; see
34012         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34013
34014         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34015         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34016         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34017         (struct obstack): temp member is now a union of a pointer and
34018         an integer, instead of an integer.  All integer uses changed.
34019         This does not affect the physical layout of struct obstack,
34020         except on hosts (like the AS/400) where the size or alignment of
34021         void * is greater than that of ptrdiff_t.
34022         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34023         __STDC__)]: Store temporary in pointer member of union, not
34024         integer member.
34025         * lib/obstack.c: Include <stddef.h>, for offsetof.
34026         (struct fooalign): Remove; it doesn't need a name.
34027         (union fooround): Change double to long double, and add void *.
34028         (DEFAULT_ALIGNMENT): Use offsetof to compute.
34029         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34030         not a macro.  Hence the values are always int; so remove all
34031         casts-to-int in uses.
34032
34033 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34034
34035         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34036         we can get this patch merged into glibc.
34037
34038 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34039             Paul Eggert  <eggert@cs.ucla.edu>
34040
34041         * m4/argp: Depend on alloca.
34042
34043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34044             Paul Eggert  <eggert@cs.ucla.edu>
34045
34046         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34047         freecoding.
34048
34049 2004-05-17  Bruno Haible  <bruno@clisp.org>
34050
34051         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34052         precision that consists of a '.' followed by an empty digit string.
34053         Patch by Tor Lillqvist <tml@iki.fi>.
34054
34055 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34056
34057         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34058         for backward compatibility with older code.  We need our own
34059         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
34060         it under some other name, and our alloca.h will define it.
34061
34062 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34063             Derek Price  <derek@ximbiot.com>
34064
34065         * lib/alloca.c: Include <alloca.h>, to get our interface.
34066         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34067         include <alloca.h> first.  Use C89 prototype for alloca; this
34068         requires including <stddef.h> for size_t.  Use extern "C" if C++.
34069         Use #elif for simplicity, since we can assume C89 now.
34070         Don't try to source the system alloca.h since it will not be found
34071         and to prevent recursively including its replacement.
34072         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34073         * lib/regex.c: Likewise.
34074
34075 2004-05-16  Derek Price  <derek@ximbiot.com>
34076             Paul Eggert  <eggert@cs.ucla.edu>
34077
34078         getline cleanup.  This changes the getndelim2 API: both order of
34079         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34080         no delimiter).
34081
34082         * lib/getline.c: Don't include stddef.h or stdio.h, since our
34083         interface does that.
34084         (getline): Always use getdelim, so that we don't have two
34085         copies of this code.
34086         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34087         if available.
34088         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34089         (GETNDELIM2_MAXIMUM): New macro.
34090         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
34091         instead of the old practice of delim2==0.  All callers changed.
34092         Return -1 on overflow, instead of returning junk.
34093         Do not set *linesize unless allocation succeeds.
34094         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34095         that we include sys/types.h.
34096         * lib/getnline.h: Likewise.
34097         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34098         (getndelim2): Reorder arguments.
34099         * lib/getnline.c (getnline, getndelim):
34100         Don't discard the NMAX argument.
34101         (getnline): Invoke getndelim, to avoid code duplication.
34102         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34103         of (size_t) -1 by callers of the getnline family.
34104
34105 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34106
34107         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34108         Check for gettimeofday.
34109         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34110         Check for settimeofday, stime.
34111
34112 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         * lib/nanosleep.c (suspended): Change its type from int to
34115         sig_atomic_t volatile.
34116         (first_call): Make it private to rpl_nanosleep, and have it
34117         be zero initially as that's a bit faster.
34118         (my_usleep): Round up fractional times instead of truncating them,
34119         as this is the usual meaning for 'sleep'.
34120
34121         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34122         doesn't work.
34123         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34124         (ENOSYS): Define if not defined.
34125         (settime): Fall back on stime if it exists and settimeofday fails.
34126         But don't bother with fallbacks if a method fails with errno == EPERM.
34127
34128 2004-05-11  Jim Meyering  <jim@meyering.net>
34129
34130         Prior to this change, the save_cwd caller required read access to the
34131         current directory on most systems (ones with the fchdir function).
34132
34133         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34134         fails, try write-only, and finally, resort to using xgetcwd.
34135
34136 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34137
34138         * lib/obstack.c, obstack.h: Import changes from libc.
34139
34140 2004-04-28  Bruno Haible  <bruno@clisp.org>
34141
34142         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34143         also implicitly appends .exe to executables.
34144         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34145         accepts Windows pathnames.
34146         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34147         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34148         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34149         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34150         Reported by Derek Robert Price <derek@ximbiot.com>.
34151
34152 2004-04-21  Karl Berry  <karl@gnu.org>
34153
34154         * config/srclist.txt (localcharset.c): break sync.
34155
34156 2004-04-20  Paul Eggert  <eggert@twinsun.com>
34157
34158         * m4/host-os.m4: Add a copyright notice.
34159
34160 2004-04-20  Jim Meyering  <jim@meyering.net>
34161
34162         Change UTILS_ to gl_ in AC_DEFINE'd names.
34163         Change utils_- and jm_-prefixed variables, too.
34164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34165         UTILS_FUNC_MKDIR_TRAILING_SLASH.
34166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34167
34168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34169         Don't emit trailing blanks.
34170         Also rename jm_-prefixed variables to have gl_ prefix.
34171
34172         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34173         Also rename jm_-prefixed variables to have gl_ prefix.
34174
34175         * m4/jm-macros.m4: Reflect the renamings.
34176         * m4/prereq.m4: Likewise.
34177
34178 2004-04-20  Jim Meyering  <jim@meyering.net>
34179
34180         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34181         memory.
34182
34183 2004-04-20  Jim Meyering  <jim@meyering.net>
34184             Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34187         memory when realloc fails.
34188
34189 2004-04-19  Jim Meyering  <jim@meyering.net>
34190
34191         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34192         now that readutmp.c may call `free (0)'.
34193
34194 2004-04-19  Bruno Haible  <bruno@clisp.org>
34195
34196         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34197         * m4/inttypes_h.m4: Likewise.
34198         * m4/stdint_h.m4: Likewise.
34199         * m4/intmax_t.m4: Likewise.
34200         * m4/uintmax_t.m4: Likewise.
34201
34202 2004-04-18  Jim Meyering  <jim@meyering.net>
34203
34204         * m4/prereq.m4: Don't forbid jm_ prefix.
34205
34206         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34207         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34208         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34209         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34210         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34211         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34212         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34213         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34214         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34215         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34216         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34217         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34218         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34219         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34220         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34221         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34222         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34223         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34224         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34225
34226 2004-04-18  Jim Meyering  <jim@meyering.net>
34227
34228         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34229         failure, don't leak memory and do call END_UTMP_ENT.
34230
34231 2004-04-16  Jim Meyering  <jim@meyering.net>
34232
34233         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
34234         coreutils' stat program.
34235         (gl_PREREQ): Don't require jm_PREREQ_STAT.
34236
34237 2004-04-11  Paul Eggert  <eggert@twinsun.com>
34238
34239         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34240         C89.
34241         (CHAR_BIT): Remove, since we assume C89.
34242         Include <stdint.h> if available, as per current Autoconf CVS advice.
34243
34244 2004-03-31  Jim Meyering  <jim@meyering.net>
34245
34246         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34247         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34248         * m4/xalloc.m4: Likewise.
34249
34250 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34251
34252         Merge from coreutils.
34253
34254         * m4/inttostr.m4: New file.
34255         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34256         Require AM_STDBOOL_H and gl_TIMESPEC instead.
34257         Require gl_CLOCK_TIME.
34258         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34259
34260 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34261
34262         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34263         not bool, to be more consistent with Unix conventions.
34264         Suggested by Bruno Haible.
34265
34266         Merge from coreutils.
34267
34268         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34269         * lib/umaxtostr.c: New files.
34270
34271         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34272         the usual <time.h> dance.
34273         (get_date): Change signature to support fractional time stamps.
34274         All callers changed.
34275         * lib/getdate.y: Include "getdate.h" first, as we can now
34276         assume C89 and don't need to worry about 'const'.
34277         Similarly, include "unlocked-io.h" near start, not in middle.
34278         Include <limits.h>.
34279         (textint.value): Use long int rather than int.
34280         (textint.digits): Use size_t rather than int.
34281         (BILLION, LOG10_BILLION): New constants.
34282         (parser_control): New member rel_ns.  Members day_ordinal,
34283         time_zone, month, day, hour, minutes, rel_year, rel_month,
34284         rel_day, rel_hour, rel_minutes, rel_seconds
34285         are now long int, not int.  Member seconds is now struct timespec,
34286         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34287         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34288         not int.
34289         (%union.intval): Now long int, not int.
34290         New member timespec.
34291         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34292         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34293         (spec): Now is a timespec or an item list.
34294         (timespec, items): New nonterminals.
34295         (time, rel, relunit, number, get_date):
34296         Add support for fractional seconds.
34297         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34298         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34299         (to_hour): First arg is now long int, not int.
34300         (to_year): Returns long int, not int.
34301         Don't treat year -70 like 70.
34302         (tm_diff): Returns long int, not int.
34303         (lookup_word): Use bool instead of int when appropriate.
34304         (yylex): Use size_t for count, not int.
34305         Detect overflow when parsing large integer constants.
34306         Add support for fractions.
34307         (get_date): Make pointers 'const' if possible.
34308         Use more-portable code to detect integer overflow.
34309         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
34310         Don't use ctime; it's not reliable if the year has >4 digits.
34311
34312         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34313         This is for compatibility with BSD.
34314
34315         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34316         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34317         From coreutils' system.h.
34318
34319         * lib/userspec.c: Don't include "posixver.h".
34320         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34321         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34322         compatible extension.  Simplify code by removing a boolean int
34323         that was always nonzero if a string was nonnull.
34324
34325 2004-03-30  Jim Meyering  <jim@meyering.net>
34326
34327         Merge from coreutils.
34328
34329         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34330         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34331         on some systems one must include <grp.h> before it.
34332         Reported by Christian Krackowizer.
34333
34334 2004-03-30  Jim Meyering  <jim@meyering.net>
34335
34336         Merge from coreutils.
34337
34338         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
34339
34340         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
34341         an empty input stream.
34342
34343         * lib/readtokens.c: Include <stdbool.h>.
34344         (readtoken): Use `size_t' rather than int/long.
34345         All callers adjusted.
34346         Use `bool' rather than `int' where appropriate.
34347         Use memset rather than an explicit loop.
34348         Use x2nrealloc rather than xrealloc.
34349         Allow the use of `\0' as a delimiter.
34350         (readtokens): Likewise.
34351         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
34352
34353 2004-03-30  Jim Meyering  <jim@meyering.net>
34354
34355         * m4/realloc.m4: Remove file, since now it does no more than
34356         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
34357         the `configure.ac' section of module/realloc.
34358         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
34359
34360 2004-03-30  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
34363         nonnull.
34364
34365 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34366
34367         Merge changes to getloadavg.c from coreutils and Emacs.
34368
34369         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34370         Define to an expression, not to the empty string.
34371         Include cloexec.h and xalloc.h.
34372         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34373         Use set_cloexec_flag rather than rolling our own.
34374         * lib/cloexec.c, lib/cloexec.h: New files.
34375
34376 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34377
34378         * m4/cloexec.m4: New file.
34379
34380 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34381
34382         * lib/getopt.h: Sync with libc CVS.
34383
34384 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34385             Bruno Haible  <bruno@clisp.org>
34386
34387         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34388         mbswidth.
34389
34390 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34391             Bruno Haible  <bruno@clisp.org>
34392
34393         * lib/mbswidth.h: Include <wchar.h> only if
34394         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34395         <wchar.h>.
34396         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34397
34398 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34399
34400         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34401         Sync with libc CVS.
34402         * lib/getopt_int.h: New file, also synced from libc.
34403
34404 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34405
34406         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34407         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34408         Bring back getopt.c, getopt.h, getopt1.c.
34409
34410 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34411
34412         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34413         All uses changed.  Check for sa_sigaction member; this fixes
34414         a bug first reported by Jason Andrade in
34415         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34416
34417 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34418
34419         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
34420         '#if' expressions.  Unlike the code it replaces, it does not
34421         depend on (defined _SC_PAGESIZE).  However, it does depend on
34422         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
34423         first reported by Jason Andrade in
34424         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34425
34426 2004-02-25  Simon Josefsson  <jas@extundo.com>
34427
34428         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
34429
34430 2004-02-25  Simon Josefsson  <jas@extundo.com>
34431
34432         * lib/strdup.h: New file.
34433         * lib/strdup.c: Include it.
34434         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
34435         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
34436
34437 2004-02-23  Karl Berry  <karl@gnu.org>
34438
34439         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
34440         (from fencepost.gnu.org:/gd/gnuorg).
34441
34442 2004-02-23  Karl Berry  <karl@gnu.org>
34443
34444         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34445         * config/srclist.txt: add maintain/standards documents.
34446
34447 2004-02-18  Bruno Haible  <bruno@clisp.org>
34448
34449         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34450         Reported by Derek Robert Price <derek@ximbiot.com>.
34451
34452 2004-02-16  Karl Berry  <karl@gnu.org>
34453
34454         * config/mkinstalldirs, install-sh: update from automake.
34455
34456 2004-02-06  Karl Berry  <karl@gnu.org>
34457
34458         * m4/po.m4: update from gettext 0.14.1.
34459
34460 2004-02-06  Karl Berry  <karl@gnu.org>
34461
34462         * lib/config.charset: update from gettext 0.14.1.
34463
34464 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34465
34466         Add comments and code, prompted by suggestions from Bruno Haible
34467         for sh-quote.
34468         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34469         describing the enum quoting_style values.
34470         * lib/quotearg.c (quotearg_alloc): New function.
34471         (quotearg_buffer_restyled): Treat lone { and } as special.
34472         Treat = as special.  Work around bug with older shells
34473         that "see" a '\' that is really the 2nd byte of a multibyte char.
34474         Quote empty string with shell_quoting_style.
34475
34476 2004-02-03  Bruno Haible  <bruno@clisp.org>
34477
34478         * m4/pipe.m4: New file, from GNU gettext.
34479
34480 2004-02-03  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/pipe.h: New file, from GNU gettext.
34483         * lib/pipe.c: New file, from GNU gettext.
34484
34485 2004-01-27  Bruno Haible  <bruno@clisp.org>
34486
34487         * m4/execute.m4: New file, from GNU gettext.
34488
34489 2004-01-27  Bruno Haible  <bruno@clisp.org>
34490
34491         * lib/execute.h: New file, from GNU gettext.
34492         * lib/execute.c: New file, from GNU gettext.
34493         * lib/w32spawn.h: New file, from GNU gettext.
34494
34495 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34496
34497         Merge from diffutils.
34498
34499         * lib/file-type.c (file_type): Add typed memory objects.
34500         * lib/file-type.h (S_TYPEISTMO): New macro.
34501
34502         * lib/c-stack.h (c_stack_action): Remove argv argument.
34503         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34504         (die): Don't calculate message unless segv_action returns.
34505         (get_stack_location, min_address_from_argv, max_address_from_argv,
34506         volatile stack_base, volatile_stack_size): Remove.
34507         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34508         that every segmentation violation is a stack overflow.  (Ouch!)
34509         See Debian bug 136249 (still outstanding) for more info about why
34510         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34511
34512 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34513
34514         Exit-status fix from coreutils.
34515
34516         Use exit_failure consistently in place of EXIT_FAILURE,
34517         so that program exit statuses are consistent on failure.
34518
34519         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34520         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34521         * lib/argmatch.h: Comment fix to match the above.
34522         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34523         Now a macro referring to exit_failure, instead of a separate
34524         variable.  Include "exitfail.h" to get it.
34525         * lib/xstrtol.h: Include "exitfail.h".
34526         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34527
34528         * lib/long-options.c (parse_long_options): Use prototype
34529         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34530         for clarity.
34531
34532 2004-01-21  Jim Meyering  <jim@meyering.net>
34533
34534         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34535         so as not to conflict with a different-sized __mktime_internal
34536         function in GNU libc.
34537         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34538         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34539
34540 2004-01-20  Karl Berry  <karl@gnu.org>
34541
34542         * config/config.guess: update from config.
34543
34544         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34545
34546 2004-01-20  Bruno Haible  <bruno@clisp.org>
34547
34548         Safer stack allocation.
34549         * lib/setenv.c: Include allocsa.h.
34550         (alloca): Remove fallback definition.
34551         (freea): Remove macro.
34552         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34553         instead of freea.
34554
34555 2004-01-20  Bruno Haible  <bruno@clisp.org>
34556
34557         * m4/eealloc.m4: New file, from GNU gettext.
34558
34559 2004-01-20  Bruno Haible  <bruno@clisp.org>
34560
34561         * m4/allocsa.m4: New file, from GNU gettext.
34562
34563 2004-01-20  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/xallocsa.h: New file, from GNU gettext.
34566         * lib/xallocsa.c: New file, from GNU gettext.
34567
34568 2004-01-20  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34571
34572 2004-01-20  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34575         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34576         specially.
34577
34578 2004-01-20  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34581         patch.
34582
34583 2004-01-20  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34586
34587 2004-01-20  Bruno Haible  <bruno@clisp.org>
34588
34589         * lib/eealloc.h: New file.
34590
34591 2004-01-20  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/binary-io.h: Avoid warnings on Cygwin.
34594
34595 2004-01-20  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/allocsa.h: New file, from GNU gettext.
34598         * lib/allocsa.c: New file, from GNU gettext.
34599
34600 2004-01-18  Karl Berry  <karl@gnu.org>
34601
34602         * doc/gpl.texi, doc/lgpl.texi: new files.
34603
34604 2004-01-18  Karl Berry  <karl@gnu.org>
34605
34606         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34607         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34608
34609 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34610
34611         Merge from coreutils.
34612
34613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34614         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34615         (gl_DEFAULT_POSIX2_VERSION): Move
34616         the documentation from 'configure' into 'config.hin',
34617         so that 'configure --help' isn't burdened by it and
34618         we don't have to worry about its formatting there.
34619         Reword the documentation so that it's more succinct
34620         and can be run together into a single paragraph.
34621         * m4/same.m4 (gl_SAME): Check for pathconf.
34622
34623 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34624
34625         Merge from coreutils.
34626
34627         * lib/posixver.c: Include posixver.h.
34628
34629         * lib/same.c: Include <stdbool.h>, <limits.h>.
34630         (_POSIX_NAME_MAX): Define if not defined.
34631         (MIN): New macro.
34632         (same_name): If file names are silently truncated, report
34633         that the file names are the same if they are the same after
34634         the silent truncation.
34635
34636         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34637         conversion function.
34638         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34639         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34640         longer needed.
34641
34642 2004-01-15  Jim Meyering  <jim@meyering.net>
34643
34644         Merge from coreutils.
34645
34646         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34647         if no library is required.
34648         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34649         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34650         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34651         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34652         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34653         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34654         value, $ac_cv_search_crypt, if it's "none required".
34655         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34656         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34657         not gl_FUNC_GETLOADAVG.
34658         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34659         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34660
34661 2004-01-15  Jim Meyering  <jim@meyering.net>
34662
34663         Merge from coreutils.
34664
34665         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34666         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34667         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34668
34669         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34670         optional configure-time default.
34671
34672         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34673
34674         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34675
34676 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34677
34678         Merge from coreutils.
34679
34680         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34681         value, $ac_cv_search_nanosleep, if it's "none required".
34682
34683 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34684
34685         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34686         with like-named macro in fnmatch.c.
34687         (EXT): Use an internal constant instead.
34688
34689         Merge fnmatch patches from glibc.
34690         * lib/fnmatch.c (mbsinit): Remove define.
34691         Add libc_hidden_ver (__fnmatch, fnmatch).
34692         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34693         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34694
34695 2004-01-14  Karl Berry  <karl@gnu.org>
34696
34697         * config/install-sh: update from automake.
34698
34699 2004-01-13  Karl Berry  <karl@gnu.org>
34700
34701         * config/install-sh: update from automake.
34702
34703 2004-01-09  Karl Berry  <karl@gnu.org>
34704
34705         * config/install-sh: update from automake.
34706
34707 2004-01-05  Karl Berry  <karl@gnu.org>
34708
34709         * config/config.{sub,guess}: update from config.
34710
34711 2003-12-31  Karl Berry  <karl@gnu.org>
34712
34713         * config/depcomp: update from automake.
34714
34715 2003-12-14  Karl Berry  <karl@gnu.org>
34716
34717         * lib/config.charset: update from gettext-runtime.
34718
34719 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34720
34721         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34722         Bug reported by Alfred M. Szmidt.
34723
34724 2003-12-03  Bruno Haible  <bruno@clisp.org>
34725
34726         * m4/gettext.m4: Upgrade from gettext-0.13.
34727         * m4/po.m4: Upgrade from gettext-0.13.
34728         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34729         * m4/intmax.m4: New file, from gettext-0.13.
34730         * m4/printf-posix.m4: New file, from gettext-0.13.
34731
34732 2003-11-29  Karl Berry  <karl@gnu.org>
34733
34734         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34735
34736 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34737             Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/printf-parse.h: Don't include sys/types.h.
34740         (ARG_NONE): New macro.
34741         (char_directive): Change type of *arg_index fields to size_t.
34742         * lib/printf-parse.c: Don't include sys/types.h.
34743         (SSIZE_MAX): Remove macro.
34744         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34745         Remove unnecessary overflow check.
34746         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34747         fields.
34748
34749 2003-11-25  Bruno Haible  <bruno@clisp.org>
34750
34751         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34752
34753 2003-11-25  Bruno Haible  <bruno@clisp.org>
34754
34755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34756         gt_TYPE_SSIZE_T.
34757
34758 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34759
34760         * modules/alloca: Remove dependency on xalloc.
34761
34762 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34763
34764         * lib/alloca.c: Remove dependency on xalloc module.
34765         (xalloc_die): Remove.
34766         (memory_full) [!defined emacs]: New macro.
34767         [!defined emacs]: Don't include xalloc.h.
34768         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34769         address arithmetic overflows.  Change datatypes a bit to avoid
34770         unnecessary casts.
34771
34772 2003-11-22  Jim Meyering  <jim@meyering.net>
34773
34774         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34775         s/size/size_t/.
34776
34777 2003-11-21  Karl Berry  <karl@gnu.org>
34778
34779         * config/config.{sub,guess}: update from config.
34780
34781 2003-11-18  Karl Berry  <karl@gnu.org>
34782
34783         * config/config.{sub,guess}: update from config.
34784
34785         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34786
34787 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34788
34789         * README: Mention that S+T cannot overflow if S is the size of
34790         an existing object and T is sufficiently small.
34791
34792 2003-11-17  Jim Meyering  <jim@meyering.net>
34793
34794         On systems without utime and without a utimes function capable of
34795         dealing with a NULL struct utimbuf* argument, this utime replacement
34796         could -- in unusual circumstances -- leak a file descriptor.
34797         * lib/utime.c: Include <unistd.h> and <errno.h>.
34798         (utime_null): Be sure to close `fd' and to preserve errno.
34799         Reported by Geoff Collyer via Arnold Robbins.
34800
34801 2003-11-17  Bruno Haible  <bruno@clisp.org>
34802
34803         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34804         (Depends-on): Add xsize.
34805
34806 2003-11-17  Bruno Haible  <bruno@clisp.org>
34807
34808         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34809
34810 2003-11-17  Bruno Haible  <bruno@clisp.org>
34811
34812         * lib/vasnprintf.c (alloca): Remove fallback definition.
34813         (freea): Remove definition.
34814         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34815         Reported by Paul Eggert.
34816
34817 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34818             Bruno Haible  <bruno@clisp.org>
34819
34820         Protect against address arithmetic overflow.
34821         * lib/printf-args.h: Include stddef.h.
34822         (arguments): Change type of field 'count' to size_t.
34823         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34824         'unsigned int' where appropriate.
34825         * lib/printf-parse.h: Include sys/types.h.
34826         (char_directive): Change type of *arg_index fields to ssize_t.
34827         (char_directives): Change type of fields 'count', max_*_length to
34828         size_t.
34829         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34830         (SSIZE_MAX): Define fallback value.
34831         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34832         instead of 'int' where appropriate. Check a_allocated, d_allocated
34833         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34834         * lib/vasnprintf.c: Include xsize.h.
34835         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34836         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34837         overflow. Avoid wraparound when converting a width or precision from
34838         decimal to binary.
34839
34840 2003-11-16  Bruno Haible  <bruno@clisp.org>
34841
34842         Update from GNU gettext.
34843         * lib/printf-parse.c: Generalize to it can be compiled for wide
34844         strings.
34845         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34846         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34847         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34848         SNPRINTF): New macros.
34849         Don't include <alloca.h> if the file is used inside libintl.
34850         (local_wcslen): New function, for Solaris 2.5.1.
34851         (VASNPRINTF): Use it instead of wcslen.
34852
34853 2003-11-16  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/xsize.h (xmax): New function.
34856         (xsum, xsum3, xsum4): Declare as "pure" functions.
34857
34858 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34859
34860         * modules/xalloc (Files): Undo latest change, since xalloc.h
34861         no longer needs SIZE_MAX or PTRDIFF_MAX.
34862
34863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34864
34865         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34866         gl_PTRDIFF_MAX.
34867
34868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34869
34870         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34871         "return", to pacify some unknown compiler.  Problem reported
34872         by Joerg Schilling.
34873
34874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34875
34876         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34877         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34878         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34879         heuristic is just as accurate as far as we know, and it removes a
34880         dependency on size_max.m4 and ptrdiff_max.m4.
34881
34882 2003-11-11  Bruno Haible  <bruno@clisp.org>
34883
34884         * modules/xsize (Files): Add m4/size_max.m4.
34885         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34886
34887 2003-11-11  Bruno Haible  <bruno@clisp.org>
34888
34889         * m4/size_max.m4: New file.
34890         * m4/ptrdiff_max.m4: New file.
34891         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34892         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34893         (gl_XALLOC): Invoke it.
34894
34895 2003-11-11  Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34898         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34899         defined.
34900
34901 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34902
34903         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34904         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34905         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34906         From Bruno Haible.
34907         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34908         not (size_t) -1, since it's defined here.
34909
34910 2003-11-09  Karl Berry  <karl@gnu.org>
34911
34912         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34913
34914 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34915
34916         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34917         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34918         Reject sizes of exactly SIZE_MAX bytes.
34919         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34920         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34921
34922 2003-11-05  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34925         SIZE_MAX defined in <limits.h> on Solaris.
34926
34927 2003-11-04  Jim Meyering  <jim@meyering.net>
34928
34929         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34930         variable names, rather than @VAR@.
34931         * modules/poll: Likewise.
34932
34933 2003-11-04  Bruno Haible  <bruno@clisp.org>
34934
34935         * modules/xsize: New file.
34936         * modules/linebreak: Depend on xsize.
34937         * MODULES.html.sh (func_all_modules): Add xsize.
34938
34939 2003-11-04  Bruno Haible  <bruno@clisp.org>
34940
34941         * m4/xsize.m4: New file.
34942
34943 2003-11-04  Bruno Haible  <bruno@clisp.org>
34944
34945         * lib/xsize.h: New file.
34946         * lib/linebreak.c: Include xsize.h.
34947         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34948         argument for overflow.
34949         Suggested by Paul Eggert.
34950
34951 2003-11-03  Karl Berry  <karl@gnu.org>
34952
34953         * config/config.{guess,sub}: update from config.
34954
34955 2003-11-03  Jim Meyering  <jim@meyering.net>
34956
34957         * modules/userspec (lib_SOURCES): Add userspec.h.
34958         (Include): Add "userspec.h".
34959         Improve description.
34960
34961 2003-11-03  Jim Meyering  <jim@meyering.net>
34962
34963         * lib/userspec.c: Include "userspec.h".
34964         * lib/userspec.h: New file.
34965
34966 2003-11-03  Bruno Haible  <bruno@clisp.org>
34967
34968         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34969
34970 2003-11-03  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34973         available, to avoid (extremely rare) race condition.
34974         Suggested by Paul Eggert.
34975
34976 2003-11-02  Karl Berry  <karl@gnu.org>
34977
34978         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34979
34980 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34981
34982         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34983         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34984         (read_filesystem_list): Set and use me_type_malloced.
34985         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34986         whatever the type happens to be), for brevity and consistency.
34987         Check for size calculation overflow on Alphas running OSF/1.
34988
34989 2003-10-31  Jim Meyering  <jim@meyering.net>
34990
34991         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34992
34993         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34994
34995 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34996             Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34999         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35000
35001 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35002
35003         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35004         netbsd*-gnu*.  Suggested by Robert Millan.
35005
35006 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35007
35008         * modules/group-member: Depend on stdbool.
35009
35010 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35011
35012         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35013
35014 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35015
35016         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
35017         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
35018         after the 'gnu' in these cases.  This fixes some bugs in the
35019         previous change, and is based on suggestions by Robert Millan.
35020
35021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35022
35023         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35024         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
35025         no longer needed.
35026         * lib/quotearg.c (quotearg_n_options): Use it.
35027         * lib/group-member.c: Include <stdbool.h>.
35028         (free_group_info): Arg is now const *; don't free arg.
35029         (get_group_info): Now returns bool and accepts struct group_info *,
35030         rather than returning a malloc'ed struct group_info *.
35031         All uses changed.  Check for overflow in internal size calculation.
35032
35033         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35034         rather than xmalloc/xrealloc.
35035         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35036         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
35037         conformance bug: the old code used a pointer after freeing the
35038         storage that it addressed.
35039         * lib/hash.c (hash_initialize): Simplify the code by using
35040         xalloc_oversized rather than doing it by hand.
35041         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35042         the buffer preserved.  Use free and xmalloc instead.
35043         * lib/quotearg.c (quotearg_n_options): Likewise.
35044         Use a simpler test for size overflow.  Don't use xalloc_oversized
35045         because unsigned int might be wider than size_t (!); this suggests
35046         that we should switch from unsigned int to size_t for slot numbers.
35047
35048 2003-10-28  Paul Eggert  <eggert@twinsun.com>
35049
35050         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35051         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
35052         NetBSD kernels.  Requested by Richard Stallman.
35053
35054 2003-10-27  Paul Eggert  <eggert@twinsun.com>
35055
35056         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35057         to allocate the returned structure.  Do not allocate a subarray,
35058         as x2nrealloc will do that.
35059         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35060         instead of xnrealloc.
35061         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35062
35063 2003-10-27  Bruno Haible  <bruno@clisp.org>
35064
35065         * lib/stdbool_.h: Better support for BeOS.
35066
35067 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35068
35069         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35070         now uses inline.
35071
35072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35073
35074         * lib/xalloc.h (xalloc_oversized): New static inline function, for
35075         callers that want to do their own size-overflow checking.  Include
35076         <stdbool.h>, since xalloc_oversized returns bool.
35077         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
35078         to use xalloc_oversized.
35079
35080         Add two functions x2realloc, x2nrealloc, for programs that grow
35081         arrays dynamically by doubling their sizes.
35082         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35083         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35084         New functions.
35085
35086         Port to C99 semantics for 'inline' of external functions.
35087         Bug reported by Bruno Haible.
35088         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35089         with the old contents of xnmalloc.
35090         (xnmalloc, xmalloc): Use it.
35091         (xnrealloc_inline): New static inline function,
35092         with the old contents of xnrealloc.
35093         (xnrealloc, xrealloc): Use it.
35094
35095         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35096         that.
35097
35098 2003-10-26  Karl Berry  <karl@gnu.org>
35099
35100         * config/srclist.txt (COPYING.DOC): no longer available from
35101         /gd/gnuorg; don't know where the ultimate source is.
35102
35103 2003-10-25  Paul Eggert  <eggert@twinsun.com>
35104
35105         Fix several address-calculation bugs in the hash modules,
35106         plus some minor code cleanup.
35107
35108         * lib/hash.h: Include <stdbool.h>, for bool.
35109         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35110         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35111         hash_get_n_entries, hash_get_max_bucket_length,
35112         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35113         hash_rehash): Use size_t rather than unsigned.
35114         * lib/hash.c (struct hash_table, hash_get_n_buckets,
35115         hash_get_n_buckets_used, hash_get_n_entries,
35116         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35117         hash_get_entries, hash_do_for_each, hash_string, is_prime,
35118         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35119         Likewise.
35120         (SIZE_MAX): Define if not defined.
35121         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35122         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35123         hash_print):
35124         Use const * when possible.
35125         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35126         (check_tuning): Fix bug: if tuning parameters were very close to
35127         0 or 1, rounding errors could have caused subscript violations.
35128         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35129         (hash_initialize): Add 'fail:' label
35130         to free table and return NULL, and use it to simplify code.
35131         Use calloc rather than clearing the storage ourself.
35132         (hash_initialize, hash_rehash): Check for arithmetic overflow in
35133         buffer size calculations.
35134         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35135         Include <stddef.h>, for size_t.
35136         * lib/hash-pjw.c (hash_pjw): Likewise.
35137         Switch to method described by Bruno Haible.
35138         Include <limits.h>, for CHAR_BIT.
35139         (SIZE_BITS): New macro.
35140
35141 2003-10-23  Paul Eggert  <eggert@twinsun.com>
35142
35143         * m4/getline.m4 (AM_FUNC_GETLINE):
35144         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35145         hosts.  Problem reported by Derek Robert Price in
35146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35147         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35148         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35149
35150 2003-10-21  Paul Eggert  <eggert@twinsun.com>
35151
35152         * lib/getndelim2.c (getndelim2): When size calculation overflows,
35153         ceiling the allocation at NMAX bytes rather than silently
35154         discarding input bytes before NMAX is reached.  This makes
35155         a difference only if NMAX exceeds SIZE_MAX / 2.
35156
35157         * lib/obstack.c: Merge from glibc.
35158         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35159         Add libc_hidden_def (_obstack_newchunk).
35160         (_obstack_free) [! defined _LIBC]: Remove.
35161         [defined _LIBC]: Make a strong alias from obstack_free, rather than
35162         a clone of the function body.
35163         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35164         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35165
35166         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35167         glibc.
35168         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35169         arg to memcpy.
35170
35171         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35172         (obstack_ptr_grow_fast, obstack_int_grow_fast):
35173         Don't use lvalue casts, as GCC plans to remove support for them
35174         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
35175         was also present in the non-GCC version, indicating that this
35176         code had always been buggy and had never been widely used.
35177         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35178         Use the fast variant of each macro, rather than copying the
35179         definiens of the fast variant; that way, we'll be more likely to
35180         catch future bugs in the fast variants.
35181
35182 2003-10-20  Bruno Haible  <bruno@clisp.org>
35183
35184         * modules/wait-process: New file.
35185         * MODULES.html.sh (func_all_modules): Add wait-process.
35186
35187 2003-10-20  Bruno Haible  <bruno@clisp.org>
35188
35189         * m4/wait-process.m4: New file.
35190
35191 2003-10-20  Bruno Haible  <bruno@clisp.org>
35192
35193         * lib/wait-process.h: New file, from GNU gettext.
35194         * lib/wait-process.c: New file, from GNU gettext.
35195
35196 2003-10-19  Jim Meyering  <jim@meyering.net>
35197
35198         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35199         HPUX 10.20.
35200
35201 2003-10-18  Karl Berry  <karl@gnu.org>
35202
35203         * config/config.guess: update from config.
35204
35205 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35206
35207         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35208         (getgroups): First arg is int, not size_t.
35209         Don't let 'free' mangle errno.
35210
35211 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35212
35213         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35214
35215 2003-10-16  Karl Berry  <karl@gnu.org>
35216
35217         * config/config.{guess,sub}: update from config.
35218
35219 2003-10-16  Jim Meyering  <jim@meyering.net>
35220
35221         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35222         memcpy.
35223
35224 2003-10-15  Paul Eggert  <eggert@twinsun.com>
35225
35226         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35227         (SIZE_MAX): Remove.
35228         (new_exclude, add_exclude_file): Initial size no longer needs to
35229         be a power of 2.
35230         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35231         our own address arithmetic overflow checking.
35232
35233         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35234         (fnmatch): Do not alloca more than 2000 wide characters;
35235         instead, use malloc for large buffers.
35236         Check for address arithmetic overflow, and return -1
35237         with errno set to ENOMEM in that case.
35238         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35239         (NEW_PATTERN): Do not alloca more than 8000 bytes;
35240         instead, return -1.  Check for address arithmetic overflow.
35241
35242 2003-10-14  Paul Eggert  <eggert@twinsun.com>
35243
35244         Handle invalid suffixes and overflow independently, so that
35245         callers can treat them independently as needed.  Fix some bugs in
35246         suffix handling, e.g., "100k@" was not diagnosed as an invalid
35247         suffix for a human-readable blocksize.  The major caller-visible
35248         change is the addition of a new
35249         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35250         that both overflow and suffix chars were found.
35251
35252         * lib/human.c (humblock): Don't check separately for invalid suffix
35253         char; that is xstrtoumax's job (now that its bug is fixed).
35254         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35255         INTMAX_MAX]: New macros.
35256         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35257         TYPE_MAXIMUM): New macros.
35258         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35259         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35260         if overflow occurs, as it's what __strtol does and it's more useful
35261         in practice.
35262         (__xstrtol): If __strtol reports some error other than ERANGE,
35263         reflect it to the caller as LONGINT_INVALID.  If it reports
35264         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35265         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35266         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35267         value.
35268         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
35269         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35270         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35271         [defined UINTMAX_MAX]: New macros.
35272
35273 2003-10-14  Bruno Haible  <bruno@clisp.org>
35274
35275         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35276
35277 2003-10-14  Bruno Haible  <bruno@clisp.org>
35278
35279         * m4/sig_atomic_t: New file, from GNU gettext.
35280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35281
35282 2003-10-14  Bruno Haible  <bruno@clisp.org>
35283
35284         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35285         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35286         Also use volatile where needed.
35287
35288 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35289
35290         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35291         Change maintainer from Bruno Haible to 'all'.
35292
35293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35294
35295         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35296
35297 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35298
35299         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35300         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35301         and define in terms of the other primitives.
35302         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35303         (SIZE_MAX): Define if not already defined.
35304         (array_size_overflow): New function.
35305         (xalloc_die): Abort instead of exiting if 'error' returns.
35306         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35307         (xmalloc, xrealloc): Use them.
35308         (xcalloc): Check for address arithmetic overflow.
35309         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35310         a bit faster than strcpy.
35311
35312 2003-10-10  Simon Josefsson  <jas@extundo.com>
35313
35314         * modules/argp (Depends-on): Add restrict and strcase.
35315
35316 2003-10-10  Simon Josefsson  <jas@extundo.com>
35317
35318         * m4/argp.m4: Add AC_C_INLINE.
35319
35320 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35321
35322         Merge getpass from libc, plus a few fixes.
35323
35324         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35325         Include <stdbool.h>.
35326         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35327         __fsetlocking to empty.
35328         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35329         do include <bits/libc-lock.h>.
35330         Do not include <fcntl.h>; not needed.
35331         [_LIBC]: Include <wchar.h>.
35332         (NOTCANCEL_MODE): New macro.
35333         (flockfile, funlockfile) [_LIBC]: New macros.
35334         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
35335         [!_LIBC]: New macros.
35336         (call_fclose): New function.
35337         (getpass): Use it.  Save tty stream separately; this simplifies the
35338         code and makes it more reliable if stdin happens to equal stdout.
35339         Invoke __fsetlocking on tty.
35340         Handle thread cancellation if needed.
35341         Namespace cleanup (use __tcgetattr, __getline).
35342         Use bool for Booleans.
35343         [USE_IN_LIBIO]: Handle wide streams.
35344         [!_LIBC]: Unconditionally do the fseek, since we don't know what
35345         stream might go where.
35346
35347         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
35348         doesn't have to include <stdio.h> before us.
35349         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
35350         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
35351         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
35352         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
35353         if not declared, so that we can use getpass.c code from libc without
35354         rewriting it.
35355         (flockfile, ftrylockfile, funlockfile): New macros.
35356
35357 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35358
35359         * modules/getpass: Depend on stdbool.
35360
35361 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35362
35363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
35364
35365 2003-10-07  Karl Berry  <karl@gnu.org>
35366
35367         * config/config.{guess,sub}: update from config.
35368
35369 2003-10-06  Jim Meyering  <jim@meyering.net>
35370             Bruno Haible  <bruno@clisp.org>
35371
35372         This lets translators provide better translations for the
35373         "Written by ..." part of --version output.
35374         * lib/version-etc.h: Include stdarg.h.
35375         (version_etc_copyright): Declare as readonly.
35376         (version_etc): Make this function variadic with a NULL-terminated list
35377         of author name strings.
35378         (version_etc_va): New declaration.
35379         * lib/version-etc.c: Include stdarg.h, stdlib.h.
35380         (version_etc_copyright): Declare as readonly.
35381         (version_etc_va): New function. Provide a different translatable string
35382         for each possible number of authors < 10. Abbreviate when there are 10
35383         authors or more.
35384         (version_etc): Make this function variadic. Call version_etc_va.
35385         Suggestion from Gary V. Vaughan.
35386
35387         * lib/long-options.h (parse_long_options): Change prototype: the
35388         authors string is moved to the end and becomes variadic.
35389         * lib/long-options.c: Include stdarg.h.
35390         (parse_long_options): Make this function variadic, too.
35391         Call version_etc_va, not version_etc.
35392
35393 2003-10-06  Bruno Haible  <bruno@clisp.org>
35394
35395         * modules/version-etc-2: Remove file.
35396         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35397
35398 2003-10-06  Bruno Haible  <bruno@clisp.org>
35399
35400         * modules/fatal-signal: New file.
35401         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35402
35403 2003-10-06  Bruno Haible  <bruno@clisp.org>
35404
35405         * m4/fatal-signal.m4: New file.
35406         * m4/signalblocking.m4: New file, from GNU gettext.
35407
35408 2003-10-06  Bruno Haible  <bruno@clisp.org>
35409
35410         * lib/version-etc-2.h: Remove file.
35411         * lib/version-etc-2.c: Remove file.
35412
35413 2003-10-06  Bruno Haible  <bruno@clisp.org>
35414
35415         * lib/fatal-signal.h: New file, from GNU gettext.
35416         * lib/fatal-signal.c: New file, from GNU gettext.
35417
35418 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35419
35420         * README: Rework advice for preventing empty .o files.
35421         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
35422         not <sys/types.h>.
35423
35424 2003-10-04  Karl Berry  <karl@gnu.org>
35425
35426         * lib/argp*: update from libc.
35427
35428 2003-10-04  Karl Berry  <karl@gnu.org>
35429
35430         * config/config.{guess,sub}: update from config.
35431
35432 2003-10-02  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/lchown (Include): Add lchown.h.
35435         * modules/time_r (Include): Use "..." syntax.
35436         * modules/xgetdomainname (Include): Add xgetdomainname.h.
35437
35438 2003-10-01  Simon Josefsson  <jas@extundo.com>
35439
35440         * MODULES.html.sh (func_all_modules): Move gethostname from section
35441         'based on' to section 'lacking' POSIX:2001.
35442
35443 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35444
35445         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35446         to output mode on the same stream.
35447
35448 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35449
35450         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35451         Fix arg typo in previous patch.
35452
35453 2003-09-28  Jim Meyering  <jim@meyering.net>
35454
35455         * lib/error.c: Correct cpp indentation.
35456
35457 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35458
35459         * modules/free: New file.
35460
35461 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35462
35463         * m4/free.m4: New file.
35464
35465 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35466
35467         * lib/minmax.h (MIN, MAX)
35468         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35469         Omit the special code that used __typeof__, since we worry that
35470         it could be more trouble than it's worth.  See:
35471         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35472         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35473
35474         * lib/free.c: New file.
35475
35476 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35477
35478         Trivial fixes to Makefile.am parts of module listings.
35479         * modules/strstr: Append strstr.h to lib_SOURCES.
35480         * modules/strcase: Likewise, for strcase.h.
35481
35482 2003-09-27  Karl Berry  <karl@gnu.org>
35483
35484         * config/mkinstalldirs: update from automake.
35485
35486 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35487
35488         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35489         (error_tail): Do not loop, reallocating temporary buffer, since
35490         the output cannot contain more wide characters than the input
35491         contains bytes, the size must be big enough already.  This avoids
35492         one potential size overflow calculation.  Check for size overflow
35493         when calculating temporary buffer size.  Free temporary buffer
35494         when done, if it was allocated with malloc; this plugs a memory
35495         leak.  Remove casts from void * to pointers, that are no longer
35496         needed now that we're assuming C89 or better.
35497
35498         Merge error changes from glibc.
35499
35500         * lib/error.c, error.h: Update copyright notice header to match glibc.
35501         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35502         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35503         Disable cancellation while printing error.
35504         * lib/error.h: Prepend __ to parameter names.
35505
35506 2003-09-26  Jim Meyering  <jim@meyering.net>
35507
35508         * lib/error.c (error_tail): Move some declarations
35509         into inner scope where the local variables are used.
35510
35511 2003-09-26  Bruno Haible  <bruno@clisp.org>
35512
35513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35514         stpncpy().
35515         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35516
35517 2003-09-26  Bruno Haible  <bruno@clisp.org>
35518
35519         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35520         (stpncpy): Define as alias for gnu_stpncpy.
35521         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35522
35523 2003-09-25  Simon Josefsson  <jas@extundo.com>
35524
35525         * lib/xgetdomainname.h: New file.
35526         * lib/xgetdomainname.c: New file.
35527
35528 2003-09-25  Simon Josefsson  <jas@extundo.com>
35529             Bruno Haible  <bruno@clisp.org>
35530
35531         * modules/getdomainname: New file.
35532         * modules/xgetdomainname: New file.
35533         * MODULES.html.sh (func_all_modules): Add getdomainname,
35534         xgetdomainname.
35535
35536 2003-09-25  Simon Josefsson  <jas@extundo.com>
35537             Bruno Haible  <bruno@clisp.org>
35538
35539         * m4/getdomainname.m4: New file.
35540
35541 2003-09-25  Simon Josefsson  <jas@extundo.com>
35542             Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/getdomainname.h: New file.
35545         * lib/getdomainname.c: New file.
35546
35547 2003-09-25  Karl Berry  <karl@gnu.org>
35548
35549         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35550
35551 2003-09-25  Karl Berry  <karl@gnu.org>
35552
35553         * config/install-sh: update from automake.
35554
35555 2003-09-25  Bruno Haible  <bruno@clisp.org>
35556
35557         * modules/version-etc-2: New file, from modules/version-etc with
35558         modifications.
35559         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35560
35561 2003-09-25  Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35564         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35565
35566 2003-09-24  Simon Josefsson  <jas@extundo.com>
35567
35568         * modules/xgethostname: Add xgethostname.h.
35569
35570 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35571
35572         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35573         the buffer associated with the argument.  Bug reported by
35574         Simon Josefsson.
35575
35576 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35577
35578         * README: Document assumptions that 'int' is at least 32 bits
35579         wide, that integer arithmetic is 2's complement without overflow,
35580         that there are no holes in integer values, that adding sizes of
35581         two nonoverlapping objects can't overflow, and that all-bits-zero
35582         yields scalar zero.  Fix spelling and capitalization typos.
35583
35584 2003-09-19  Karl Berry  <karl@gnu.org>
35585
35586         * lib/argp.h: update from libc.
35587
35588 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35589
35590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35591         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35592         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35593
35594 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35595
35596         * gnulib-tool: Use "test -h", not "test -L", for portability
35597         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35598         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35599         (sed_extract_prog): Issue s commands one-by-one, rather than
35600         using \| in one s command.
35601
35602 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35603
35604         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35605         input error, instead of returning NULL the next time we are called
35606         (and therefore losing track of errno).
35607
35608 2003-09-16  Bruno Haible  <bruno@clisp.org>
35609
35610         * gnulib-tool (func_create_testdir): Warn about duplicated
35611         dependencies.
35612
35613 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35614
35615         * modules/argmatch, modules/fatal, modules/obstack,
35616         modules/xalloc, modules/xgethostname: Sort dependencies by
35617         importance, not alphabetically.
35618
35619 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35620
35621         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35622         fails, so that the caller gets the proper errno.
35623
35624         * lib/readutmp.c (read_utmp): Likewise.
35625         Check for fstat error.  Close stream and free storage
35626         when failing.
35627
35628 2003-09-14  Karl Berry  <karl@gnu.org>
35629
35630         * config/srclist.txt (strdup.c): disable for c89 changes.
35631
35632 2003-09-14  Jim Meyering  <jim@meyering.net>
35633
35634         * lib/getloadavg.c: Correct cpp indentation.
35635         * lib/strdup.c: Likewise.
35636         * lib/vasnprintf.c: Likewise.
35637
35638 2003-09-14  Bruno Haible  <bruno@clisp.org>
35639
35640         * modules/fwriteerror: New file.
35641         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35642
35643 2003-09-14  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/fwriteerror.h: New file.
35646         * lib/fwriteerror.c: New file.
35647
35648 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35649
35650         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35651         modules/xgethostname, modules/xalloc: Depend on exit.
35652
35653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35654
35655         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35656
35657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35658         and AC_MINIX, too, so that their extensions are available.
35659
35660         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35661         This macro has been superseded by gl_BACKUPFILE.
35662
35663         More patches to assume C89 or better.
35664
35665         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35666
35667         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35668         unconditionally.
35669         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35670         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35671         Include <string.h>, <stdlib.h> unconditionally.
35672         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35673         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35674         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35675         headers or for string.h.
35676         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35677         or strtoul.
35678
35679         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35680         headers.
35681         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35682         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35683         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35684         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35686         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35687         memcpy, memset.
35688         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35689         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35690         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35691         strtol.
35692         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35693         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35694         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35695         strtoul.
35696
35697 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35698
35699         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35700         * lib/obstack.c [!defined _LIBC]: Likewise.
35701         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35702         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35703         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35704
35705         More changes to assume C89 or better.
35706
35707         * lib/error.c (error_tail): Assume vprintf.
35708
35709         * lib/argmatch.c (getenv): Remove decl.
35710         * lib/progreloc.c (get_full_program_name): Define via prototype.
35711         * lib/setenv.c (clearenv): Likewise.
35712         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35713         needed.
35714         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35715         (malloc, memcpy): Remove decls.
35716         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35717         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35718         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35719         (memcpy): Remove macro.
35720         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35721         (__P): Remove.  All uses removed.
35722         (PTR): Remove.  All uses changed to void *.
35723         (CHAR_BIT, NULL): Remove.
35724         (spaces, zeros, memset_space, memset_zero)
35725         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35726         Remove.
35727         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35728         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35729         Define with prototype.
35730         Remove now-unnecessary prototype decl.
35731         (extra_args_spec): Assume ANSI C.  All uses changed.
35732         (extra_args_spec_iso): Remove.
35733         (my_strftime, emacs_strftimeu): Define via prototype.
35734         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35735         unconditionally.
35736         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35737         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35738         (strtoul, strtol): Remove decls.
35739         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35740         LONG_MAX): Remove.
35741         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35742         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35743         (LOCALE_PARAM_PROTO): New macro.
35744         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35745         (INTERNAL (strtol), strtol): Define with a prototype.
35746         (PARAMS): Remove.  All uses removed.
35747         * lib/tempname.c: Include <string.h> unconditionally.
35748         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35749         * lib/xgethostname.c (main): Define with a prototype.
35750         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35751         Include <stdlib.h> unconditionally.
35752         (calloc, malloc, realloc, free): Remove decls.
35753         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35754         Include <stdlib.h> unconditionally.  Sort include file names.
35755         (strtod): Remove.
35756         (xstrtod): Define with a prototype.
35757         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35758         (strtol, strtoul): Remove decls.
35759
35760 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35761
35762         More patches to assume C89 or better.
35763         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35764         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35765         string.h, memchr, STDC_HEADERS.
35766
35767 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35768
35769         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35770         Include <stdlib.h>, <string.h> unconditionally.
35771         Remove now-unnecessary cast to char *.
35772         * lib/strnlen.c: Include <string.h> unconditionally.
35773         * lib/yesno.c (yesno): Define with a prototype.
35774
35775 2003-09-11  Bruno Haible  <bruno@clisp.org>
35776
35777         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35778
35779 2003-09-10  Jim Meyering  <jim@meyering.net>
35780
35781         * lib/error.c: Correct indentation of cpp directives.
35782
35783 2003-09-10  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35786         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35787         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35788         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35789         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35790         <stdlib.h> and <string.h> checks.
35791         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35792         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35793
35794 2003-09-10  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/strcspn.c: Include <string.h> unconditionally.
35797         * lib/strpbrk.c: Include <string.h> unconditionally.
35798         * lib/strstr.c: Include <string.h> unconditionally.
35799         * lib/unicodeio.c: Include <string.h> unconditionally.
35800         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35801         * lib/unsetenv.c: Likewise.
35802         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35803         * lib/yesno.c: Include <stdlib.h> unconditionally.
35804         (rpmatch): Add prototype.
35805
35806 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35807
35808         More patches to assume C89 or better.
35809         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35810         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35811         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35812         or for string.h.
35813         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35814         stdlib.h.
35815         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35816         C headers.
35817         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35818         string.h.
35819         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35820         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35821         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35822         or for string.h.
35823         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35824         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35825         C headers.
35826         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35827         memcpy.
35828         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35829         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35830         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35831         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35832         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35833         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35834         string.h, free.
35835         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35836         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35837         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35838         C headers, or for string.h.
35839         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35840         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35841         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35842         headers, memory.h, stdlib.h, string.h, strings.h.
35843         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35844         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35845         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35846         strchr.
35847         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35848         headers, memory.h, string.h.
35849         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35850         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35851         free.
35852         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35853         headers.
35854         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35855         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35856         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35857         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35858         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35859
35860 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35861
35862         More K&R removal.
35863
35864         * lib/acosl.c (main): Use a prototype.
35865         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35866         tanl.c: Likewise.
35867
35868         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35869
35870         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35871         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35872         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35873         with a prototype.
35874         * lib/getopt.c (const): Remove macro.
35875         Include <string.h> unconditionally.
35876         (my_index): Remove; all uses changed to strchr.
35877         (strlen): Remove decl.
35878         (exchange): Remove forward decl; no longer needed.
35879         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35880         Define with prototype.
35881         * lib/getopt1.c (const): Remove macro.
35882         (getopt_long, getopt_long_only, main): Define with prototype.
35883
35884         * lib/getugroups.c: Include <string.h> unconditionally.
35885
35886         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35887         (getusershell, setusershell, endusershell, readname, main):
35888         Define with prototypes.
35889
35890         * lib/group-member.c: Include group-member.h first.
35891         Include <stdlib.h> unconditionally.
35892
35893         * lib/hard-locale.c: Include hard-locale.h first.
35894         Include <stdlib.h>, <string.h> unconditionally.
35895
35896         * lib/hash.c (free, malloc): Remove decls.
35897         Include <stdlib.h> unconditionally.
35898
35899         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35900         (getenv): Do not declare.
35901
35902         * lib/idcache.c: Include <string.h> unconditionally.
35903
35904         * lib/long-options.c: Include long-options.h first, to test interface.
35905         Include <stdlib.h> unconditionally.
35906
35907         * lib/makepath.c: Include makepath.h first, to test interface.
35908         Include <stdlib.h> and <string.h> unconditionally.
35909
35910         * lib/linebuffer.c: Include <stdlib.h>.
35911         (free): Remove decl.
35912
35913         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35914         stddef.h. rpl_malloc returns void *, not char *.
35915         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35916         prototype.
35917
35918         * lib/md5.h: Include <limits.h> unconditionally.
35919         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35920         (__P): Remove; all uses removed.
35921         * lib/md5.c: Include "md5.h" first.
35922         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35923         md5_buffer, md5_process_bytes, md5_process_block):
35924         Define with prototypes.
35925         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35926         * lib/sha.c: Include "sha.h" first.
35927         Include <stdlib.h>, <string.h> unconditionally.
35928
35929         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35930         * lib/memcmp.c (__ptr_t): Likewise.
35931         * lib/memrchr.c (__ptr_t): Likewise.
35932         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35933         Include <string.h> unconditionally.
35934         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35935         * lib/memchr.c: Include <stdlib.h> unconditionally.
35936         * lib/memchr.c (LONG_MAX): Remove.
35937         * lib/memrchr.c (LONG_MAX): Likewise.
35938         * lib/memchr.c (__memchr): Define via a prototype.
35939         * lib/memrchr.c (__memrchr): Likewise.
35940         * lib/memcmp.c (__P): Remove, and remove all uses.
35941         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35942         Remove forward decls; no longer needed.
35943         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35944         Use types required by C89 in prototype.
35945
35946         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35947         * lib/savedir.c: Likewise.
35948         * lib/mkdir.c (free): Remove decl.
35949         * lib/rmdir.c (rmdir): Define with a prototype.
35950         * lib/savedir.c: Include savedir.h first, to test interface.
35951
35952         * lib/mktime.c (STDC_HEADERS): Remove.
35953         Include <stdlib.h>, <string.h> unconditionally.
35954
35955         * lib/modechange.c: Include <stdlib.h> unconditionally.
35956         (malloc): Remove decl.
35957
35958         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35959         (free): Remove decl.
35960
35961         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35962         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35963         (This type really should be intptr_t, but that's a C99ism.)
35964         (_obstack_memcpy): Remove: all uses changed to memcpy.
35965         Include <string.h> unconditionally.
35966         (struct obstack): Assume __STDC__ for types of members
35967         chunkfun, freefun, extra_arg.
35968         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35969         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35970         obstack_begin, obstack_specify_allocation,
35971         obstack_specify_allocation_with_arg, obstack_chunkfun,
35972         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35973         Remove unprototyped decls and the macros that use them.
35974         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35975         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35976         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35977         (defined __STDC__ && __STDC__)]:
35978         Remove nonprototyped code.
35979         Include <stdlib.h> unconditionally.
35980         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35981         _obstack_allocated_p, _obstack_free, obstack_free,
35982         _obstack_memory_used, print_and_abort):
35983         Define using prototypes.
35984         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35985         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35986         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35987         obstack_next_free, obstack_object_size, obstack_room) [0]:
35988         Remove unused, unprototyped code.
35989
35990         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35991
35992         * lib/physmem.c (physmem_total, physmem_available, main): Define
35993         with prototypes.
35994
35995         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35996         (main): Define with a prototype.
35997
35998         * lib/posixver.c (getenv): Remove decl.
35999
36000         * lib/putenv.c (malloc): Returns void *, not char *.
36001         Include <string.h> unconditionally.
36002         (strchr, memcpy, NULL): Do not define.
36003
36004         * lib/readtokens.c: Include readtokens.h first, to test interface.
36005         Include <stdlib.h>, <string.h> unconditionally.
36006         (init_tokenbuffer): Define with a prototype.
36007
36008         * lib/regex.c (PARAMS): Remove.  All uses removed.
36009         All uses of _RE_ARGS removed, too.
36010         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36011         unconditionally.
36012         (bzero): Assume memset exists.
36013         (memcmp, memcpy, NULL): Remove.
36014         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36015         char, or assignments to local vars of type signed char.
36016         (init_syntax_once, PREFIX(extract_number_and_incr),
36017         PREFIX(print_partial_compiled_pattern),
36018         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36019         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36020         PREFIX(regex_grow_registers), PREFIX(regex_compile),
36021         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36022         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36023         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36024         wcs_compile_range, byte_compile_range, truncate_wchar,
36025         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36026         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36027         count_mbs_length, wcs_re_match_2_internal,
36028         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36029         PREFIX(alt_match_null_string_p),
36030         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36031         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36032         regfree, PREFIX(extract_number)): Define with prototype.  Remove
36033         now-unnecessary declaration, if any.
36034         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36035         regcomp, regexec):
36036         Remove now-unnecessary casts among pointer types.
36037         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
36038
36039         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36040         (free): Remove decl.
36041
36042         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36043
36044         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36045         (free): Remove decl.
36046
36047         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36048         * lib/xgetcwd.c: Likewise.
36049
36050         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36051         (free): Remove decl.
36052
36053         * lib/strchrnul.c (strchrnul): Define with a prototype.
36054         Fix bug: c_in was not converted to char before searching.
36055
36056         The following changes are not K&R related:
36057
36058         * lib/group-member.h: Include <sys/types.h>, so that this file is
36059         self-contained.
36060         * lib/makepath.h: Likewise.
36061
36062         * lib/getusershell.c (readname, default_index, line_size, readname):
36063         Use size_t, not int, for sizes.
36064         (readname): If the size overflows, report an error instead of
36065         looping forever.
36066
36067 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36068
36069         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36070         libc.
36071
36072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36073
36074         * README: New section: portability guidelines.
36075
36076 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36077
36078         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36079         C89 spec.
36080
36081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36082
36083         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36084
36085 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36086
36087         Assume C89 or better; remove K&R cruft.
36088         A few of these changes were first proposed by Derek Robert Price
36089         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36090
36091         * lib/addext.c: Include <string.h> unconditionally.
36092         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36093         Don't declare getenv or malloc.
36094
36095         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36096         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36097         (NULL): Remove.
36098         (find_stack_direction, alloca): Use prototypes.
36099
36100         * lib/atexit.c (atexit): Define using a prototype.
36101
36102         * lib/basename.c, dirname.c, stripslash.c:
36103         Include <string.h> unconditionally.
36104
36105         * lib/bcopy.c: Include <stddef.h>.
36106         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36107
36108         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36109
36110         * lib/error.h (error, error_at_line, error_print_progname)
36111         [! (defined (__STDC__) && __STDC__)]: Remove decls.
36112         * lib/error.c: Include error.h first, to check interface.
36113         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36114         (VA_START): Remove; all uses changeed to va_start.
36115         (exit, strerror): Remove decls.
36116         (error_print_progname): Prototype uncondionally.
36117         Don't include <errno.h>; no longer needed.
36118         (private_strerror): Remove.
36119         (error_tail): Always define.
36120         (error, error_at_line): Assume C89 or better; always use prototypes.
36121         * lib/fatal.c: Include "fatal.h" first, to test interface.
36122         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36123         (VA_START): Remove; all uses changed to va_start.
36124         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36125         this case.
36126         (exit): Remove decl.
36127         (fatal): Prototype unconditionally.  Assume va_start works.
36128         Abort at end, to pacify gcc.
36129
36130         * lib/euidaccess.c (main): Define with a prototype.
36131
36132         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36133
36134         * lib/exitfail.c: Include <stdlib.h> unconditionally.
36135
36136         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
36137         prototypes.
36138         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36139         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36140         (getenv): Remove decl.
36141         (fnmatch): Define using a prototype.
36142         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36143         (FCT): Define using a prototype.
36144
36145         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36146
36147         * lib/gethostname.c: Include <stddef.h>.
36148         (gethostname): Define with prototype.  Length is size_t, not int.
36149
36150 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36151
36152         Assume C89 or better; remove K&R cruft.
36153         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36154         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36155         string.h, getenv, malloc.
36156         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36157         headers.
36158         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36159         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36160         do not check for strerror.
36161         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36162         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36163         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36164         do not check for doprnt or vprintf.
36165         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
36166         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36167
36168 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36169
36170         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36171         getversion.c should have been removed then, but was accidentally
36172         preserved.
36173
36174         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36175         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36176
36177 2003-09-08  Karl Berry  <karl@gnu.org>
36178
36179         * config/config.sub, config.guess, srclistvars.sh: update from savannah
36180                 config, forget about prep.
36181
36182         * config/depcomp, missing: update from automake.
36183
36184 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36185
36186         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
36187         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36188
36189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36190
36191         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36192         copy_tm_result.  Bug reported by Simon Josefsson in
36193         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36194
36195 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36196
36197         * m4/time_r.m4: New file.
36198         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36199         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36200         is. Check for timegm declaration.
36201         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36202         Do not check for gmtime_r.
36203         Replace mktime if __mktime_internal does not exist and if mktime
36204         hasn't been replaced already.
36205
36206 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36207
36208         * lib/time_r.c, lib/time_r.h: New files.
36209
36210         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36211         __localtime_r.
36212         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
36213         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36214
36215         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36216         __gmtime_r.
36217         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36218         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36219         Include <time_r.h>.
36220
36221         * lib/timegm.c: Switch to glibc implementation, with the following
36222         changes:
36223         [defined HAVE_CONFIG_H]: Include <config.h>.
36224         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36225         (__mktime_internal) [!defined _LIBC]: New decl.
36226         (__gmtime_r) [!defined _LIBC]: New macro and function.
36227         (timegm): Use a prototype, since gnulib assumes C89.
36228         Do not bother declaring tmp to be const, as it's not really usefu.
36229         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36230         (timegm): Declare only if HAVE_DECL_TIMEGM.
36231
36232 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36233
36234         * MODULES.html.sh (func_all_modules): Add time_r.
36235         * modules/time_r: New file.
36236         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36237         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
36238
36239 2003-09-03  Paul Eggert  <eggert@twinsun.com>
36240
36241         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36242         Bug reported by Lute Kamstra in
36243         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36244
36245         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36246         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
36247         course with correspondingly smaller numbers for tomorrow and
36248         yesterday.  From Tadayoshi Funaba.  Originally installed into
36249         sh-utils on 1999-08-07, but the patch got lost (I guess during the
36250         coreutils merge?).
36251
36252 2003-08-31  Simon Josefsson  <jas@extundo.com>
36253
36254         * modules/timegm: New file.
36255         * MODULES.html.sh (func_all_modules): Add timegm.
36256
36257 2003-08-31  Simon Josefsson  <jas@extundo.com>
36258
36259         * m4/timegm.m4: New file.
36260
36261 2003-08-31  Simon Josefsson  <jas@extundo.com>
36262
36263         * lib/timegm.h: New file.
36264         * lib/timegm.c: New file.  Based on
36265         wget-1.8.2/src/http.c:mktime_from_utc.
36266
36267 2003-08-31  Karl Berry  <karl@gnu.org>
36268
36269         * lib/argp.h: update from libc.
36270
36271 2003-08-28  Bruno Haible  <bruno@clisp.org>
36272
36273         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36274         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36275         followed by '#define fnmatch fnmatch_posix' gives an error.
36276
36277 2003-08-28  Bruno Haible  <bruno@clisp.org>
36278
36279         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36280         warning on QNX, which defines O_BINARY to 000000.
36281
36282 2003-08-27  Jim Meyering  <jim@meyering.net>
36283
36284         * m4/mkstemp.m4: Require that the system mkstemp be able to create
36285         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
36286         would fail after 32.  Reported by Danny Levinson.  Details here:
36287         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36288
36289 2003-08-24  Bruno Haible  <bruno@clisp.org>
36290
36291         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36292         MSVC7 <stdio.h> is included later.
36293
36294 2003-08-22  Simon Josefsson  <jas@extundo.com>
36295
36296         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36297
36298 2003-08-20  Karl Berry  <karl@gnu.org>
36299
36300         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36301
36302 2003-08-20  Bruno Haible  <bruno@clisp.org>
36303
36304         * modules/progname: New file.
36305         * MODULES.html.sh (func_all_modules): Add progname.
36306
36307 2003-08-20  Bruno Haible  <bruno@clisp.org>
36308
36309         * lib/progname.h: New file, from GNU gettext.
36310         * lib/progname.c: New file, from GNU gettext.
36311         * lib/progreloc.c: New file, from GNU gettext.
36312
36313 2003-08-19  Jim Meyering  <jim@meyering.net>
36314
36315         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36316         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36317
36318 2003-08-19  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36321         more.
36322
36323 2003-08-19  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/xstrdup.c: Assume <string.h> exists.
36326
36327 2003-08-18  Paul Eggert  <eggert@twinsun.com>
36328
36329         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
36330         in makefile rules.
36331
36332 2003-08-18  Jim Meyering  <jim@meyering.net>
36333
36334         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
36335         * m4/lib-ld.m4: Likewise.
36336
36337 2003-08-18  Jim Meyering  <jim@meyering.net>
36338
36339         * lib/setenv.h: Indent nested cpp directive.
36340         * lib/vasnprintf.c: Remove trailing blanks.
36341
36342 2003-08-17  Simon Josefsson  <jas@extundo.com>
36343
36344         * modules/xstrndup: New file.
36345         * MODULES.html.sh (func_all_modules): Add xstrndup.
36346
36347 2003-08-17  Simon Josefsson  <jas@extundo.com>
36348
36349         * modules/argp: Fix autoconf macro name. Add more dependencies.
36350
36351 2003-08-17  Simon Josefsson  <jas@extundo.com>
36352
36353         * m4/xstrndup.m4: New file.
36354
36355 2003-08-17  Simon Josefsson  <jas@extundo.com>
36356
36357         * m4/argp.m4: New file.
36358
36359 2003-08-17  Simon Josefsson  <jas@extundo.com>
36360             Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/xstrndup.h: New file.
36363         * lib/xstrndup.c: New file.
36364
36365 2003-08-17  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/strndup (Files, Include): Add lib/strndup.h.
36368
36369 2003-08-17  Bruno Haible  <bruno@clisp.org>
36370
36371         * modules/euidaccess (Files): Add lib/euidaccess.h.
36372
36373 2003-08-17  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/strndup.h: New file.
36376
36377 2003-08-17  Bruno Haible  <bruno@clisp.org>
36378
36379         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36380         like AC_GNU_SOURCE.
36381         * modules/extensions (configure.ac): Comment out the invocation of
36382         gl_USE_SYSTEM_EXTENSIONS.
36383
36384 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36385
36386         Merges from coreutils, etc.
36387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36388         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36389         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36390         fixing a typo.
36391         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36392         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36393
36394 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36395
36396         Document merge from coreutils.
36397         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36398         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36399         * modules/utime: Add m4/utimes-null.m4.
36400
36401 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36402
36403         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36404         space, undoing this 2003-08-12 change:
36405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36406
36407 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36408
36409         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36410         strtoul.c from libc, undoing this 2003-08-12 change:
36411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36412
36413 2003-08-16  Jim Meyering  <jim@meyering.net>
36414
36415         Merges from coreutils.
36416         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36417         prefix.  Adjust cache variables similarly.  Create 500 rather than
36418         just 300 files, to exercise bug on Darwin6.5, too.
36419         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
36420         $missing_dir.
36421         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
36422         AM_SYS_POSIX_TERMIOS.
36423         Reported by mkc@mathdogs.com.
36424         Also change use of $am_cv_sys_posix_termios
36425         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
36426         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
36427         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
36428         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
36429         in /proc/mounts until it finds one with matching device number.  This
36430         is unnecessary when the FILE argument *is* a mount point.  No stat call
36431         is necessary in that case.  So, disable the statvfs-testing code on
36432         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
36433         as RedHat bug# 84846.
36434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36435         to 1MB, so as not to render systems with no stack size limit (e.g.,
36436         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36437         Include <unistd.h>.  On some systems,
36438         it is required for the definition of _SC_PAGESIZE.
36439
36440 2003-08-16  Jim Meyering  <jim@meyering.net>
36441
36442         Merge from coreutils.
36443         * lib/xstrtoimax.c: #else #if -> #elif.
36444         * lib/xstrtoumax.c: Likewise.
36445
36446 2003-08-16  Jim Meyering  <jim@meyering.net>
36447
36448         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36449         * m4/utimes.m4: Removed.
36450         * m4/utimes-null.m4: Renamed from utimes.m4.
36451
36452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36453         to 1MB, so as not to render systems with no stack size limit (e.g.,
36454         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36455         Include <unistd.h>.  On some systems,
36456         it is required for the definition of _SC_PAGESIZE.
36457
36458 2003-08-16  Jim Meyering  <jim@meyering.net>
36459         and Paul Eggert  <eggert@cs.ucla.edu>
36460
36461         Merges from coreutils, etc.
36462
36463         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36464         using the latest version from cvs.  This avoids problems with #line
36465         directives using a vendor (Sun) compiler.
36466         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36467         Don't set GETGROUPS_LIB here; now it's
36468         done via getgroups.m4's wrapper function.
36469         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36470         rather than just in sh-util/configure.in, so that the
36471         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36472         same.
36473         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36474         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36475         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36476         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36477         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36478         Remove code that is now done by the newly-required macros.
36479         Append $(EXEEXT) to DF_PROG.
36480         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36481         Do not invoke or require the following here,
36482         since prereq.m4 or some gnulib .m4 now does this for us:
36483         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36484         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36485         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36486         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36487         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36488         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36489         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36490         AC_FUNC_OBSTACK.
36491         Do not replace the following functions, as this is now the job
36492         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36493         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36494         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36495         atexit getpass, strdup, getpagesize.
36496         Replace 'raise'.
36497         Do not check for the following functions, as this is now the job
36498         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36499         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36500         setregid.
36501         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36502         Check for sys/sysctl.h.
36503         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36504         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36505         of checking for ssize_t ourselves.
36506
36507         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36508         Require every macro that gnulib/modules/* suggests for us.
36509         (jm_PREREQ_ADDEXT): New macro.
36510         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36511         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36512
36513         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36514         (gl_PHYSMEM): Use it.
36515         Also check for `table' function.
36516         Check for new headers and functions.
36517         Add check for sys/sysmp.h.
36518         With suggestions from Kaveh Ghazi.
36519         Ignore headers that are present but cannot be compiled.  This
36520         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36521         C 5.4.
36522
36523 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36524
36525         Document merge from coreutils.
36526         * modules/userspec: Depend on posixver.
36527         * modules/strftime: Depend on tzset.
36528
36529 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36530
36531         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36532         rather than tab, after '#' in shell-script copyright notices.
36533         Suggested by Bruno Haible.
36534
36535 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36536
36537         * config/srclist-update: Use three spaces, rather than tab, after '#'
36538         in shell-script copyright notices.  Suggested by Bruno Haible.
36539         Remove unnecessary parenthesization in regular expression.
36540
36541 2003-08-15  Jim Meyering  <jim@meyering.net>
36542
36543         Merge from coreutils.
36544         * lib/xgethostname.c: Include <stdlib.h>.
36545         (xghostname): Don't exit for anything other than memory-related
36546         failure; just return NULL.
36547         * lib/userspec.c: Include "posixver.h".
36548         (parse_user_spec): Accept `.' as a separator only
36549         in pre-POSIX-200112 mode.
36550         * lib/strtoimax.c: Use #elif rather than #else #if.
36551         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36552         Remove function, now that we can rely on a working tzset function.
36553         [!_LIBC]: Ensure that the required autoconf test has been run.
36554         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36555         Use underlying_strftime for %r.
36556         * lib/sha.c: Merge in some clean-up and optimization changes from
36557         glibc.
36558         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36559         Ensure that it is a multiple of 64.
36560         Rearrange loop exit tests so as to avoid performing an
36561         additional fread after encountering an error or EOF.
36562         * lib/realloc.c: Update copyright date.
36563
36564 2003-08-15  Jim Meyering  <jim@meyering.net>
36565         and Paul Eggert  <eggert@twinsun.com>
36566
36567         Merge from coreutils.
36568         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36569         member but strut utmpx does not.  Needed for AIX 4.3.3.
36570         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36571
36572 2003-08-15  Jim Meyering  <jim@meyering.net>
36573         and Paul Eggert  <eggert@cs.ucla.edu>
36574
36575         Merges from coreutils, etc.
36576         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36577         Require gl_FUNC_TZSET_CLOBBER.
36578         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36579         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36580         members.
36581
36582 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36583
36584         Help the merge from coreutils.
36585         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36586         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36587         * m4/tzset.m4: Use it too.
36588
36589 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36590
36591         * modules/tzset: New file.
36592
36593 2003-08-14  Jim Meyering  <jim@meyering.net>
36594
36595         Merges from coreutils.
36596         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36597         variable names, rather than @FNMATCH_H@.
36598         * modules/alloca: Likewise for $(ALLOCA_H).
36599
36600         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36601         the three copies of the literal target, `fnmatch.h'.
36602         * modules/alloca (alloca.h): Likewise.
36603
36604 2003-08-14  Jim Meyering  <jim@meyering.net>
36605
36606         Merge from coreutils.
36607         * m4/tzset.m4: New file.
36608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36609         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36610         otherwise, AIX 5.1 systems would end up using the latter.
36611         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36612         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36613         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36614         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36615
36616 2003-08-14  Jim Meyering  <jim@meyering.net>
36617
36618         Merge from coreutils.
36619         * lib/obstack.h: Whitespace changes.
36620         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36621         and xcalloc return values.
36622         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36623         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36624         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36625         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36626         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36627         error from mntctl.
36628         Use mntctl's return value to drive the entry-processing loop, since
36629         we can't rely on the value of the vmt_length member in the last
36630         entry.  On some systems doing so could result in exhausting
36631         virtual memory.  Based in part on a patch from Mike Jetzer.
36632
36633 2003-08-14  Jim Meyering  <jim@meyering.net>
36634         and Paul Eggert  <eggert@twinsun.com>
36635
36636         Merges from coreutils, plus other fixes.
36637         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36638         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36639         for credits and details.  Thanks to Kaveh Ghazi for helping
36640         to keep these files in sync.
36641         (ARRAY_SIZE): Define it.
36642         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36643         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36644         (memcasecmp): Don't assume size_t fits in unsigned int.
36645         Remove casts and duplicate code.
36646         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36647         (memcpy): Remove definition.
36648         Merge in some clean-up and optimization changes from glibc.
36649         [BLOCKSIZE]: Move definition to top of file.
36650         Ensure that it is a multiple of 64.
36651         Rearrange loop exit tests so as to avoid performing an
36652         additional fread after encountering an error or EOF.
36653         * lib/md5.h (md5_uintptr): Define.
36654         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36655         return to the initial working directory.  Preserve errno
36656         for caller.
36657         * lib/idcache.c: Include "xalloc.h".
36658         (xmalloc, xrealloc): Remove decls.
36659         (getuser): Remove casts no longer required in C89.
36660         * lib/human.c: Include stdio.h, for sprintf.
36661         * lib/group-member.c: Include "xalloc.h".
36662         (xmalloc, xrealloc): Remove decls.
36663         (get_group_info): Remove casts no longer required in C89.
36664         * lib/getusershell.c (readname): Remove casts no longer required in
36665         C89.
36666         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36667         * lib/getline.c: Whitespace fix, from coreutils.
36668
36669 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36670
36671         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36672         Check for isascii.
36673
36674         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36675         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36676         Undo previous (whitespace-only) change.
36677
36678 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36679
36680         * lib/exclude.c: Include <ctype.h>
36681         (IN_CTYPE_DOMAIN): New macro.
36682         (is_space): New fn.
36683         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36684         and empty lines.
36685
36686         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36687         Undo previous (whitespace-only) change.
36688
36689 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36690
36691         * config/srclist-update: Change update back to the old behavior,
36692         leaving whitespace alone.  Use one 'sed' command rather than a
36693         pipeline.
36694         (fixlicense): Now a variable, not a function.
36695         (remove_trailing_blanks): Remove.
36696         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36697         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36698         Undo previous (whitespace-only) change.
36699
36700 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36701
36702         Merge from coreutils.
36703         * modules/euidaccess: Add lib_SOURCES, include for new
36704         file euidaccess.h
36705
36706 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36707
36708         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36709         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36710         Normalize leading white space and remove trailing white space.
36711
36712         Merge from coreutils
36713         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36714
36715         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36716         0.12.1.  These files are now being upgraded automatically by
36717         ../config/srclist-update.
36718
36719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36720
36721         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36722         Normalize leading white space and remove trailing white space.
36723         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36724         notice, as per ../config/srclist-update.
36725
36726         Merge from coreutils.
36727         * lib/euidaccess.h: New file.
36728         * lib/euidaccess.c: Include it.
36729         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36730         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36731         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36732
36733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36734
36735         * config/srclist-update: Add copyright notice.
36736         (remove_id_lines, remove_trailing_blanks): New constants.
36737         (fixfile): Use them to normalize spacing a bit in copied files.
36738         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36739         Normalize leading white space and remove trailing white space.
36740
36741         * config/texinfo.tex: Sync with texinfo.
36742
36743         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36744         strtoul.c from libc, to merge coreutils whitespace changes.
36745
36746         * config/srclist.txt: Get the following m4 files from gettext:
36747         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36748         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36749         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36750         wint_t.m4.
36751
36752 2003-08-12  Karl Berry  <karl@gnu.org>
36753
36754         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36755         been made.
36756
36757 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36758
36759         * modules/gnu-source, m4/gnu-source.m4:
36760         Remove; we're assuming Autoconf 2.54 or later now.
36761         Suggested by Bruno Haible.
36762         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36763
36764 2003-08-11  Bruno Haible  <bruno@clisp.org>
36765
36766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36767
36768 2003-08-11  Bruno Haible  <bruno@clisp.org>
36769
36770         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36771         (vasnprintf): Use it instead of wcslen.
36772
36773 2003-08-11  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36776         value to ensure that _Bool promotes to int. Use #define for _Bool when
36777         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36778
36779 2003-08-10  Karl Berry  <karl@gnu.org>
36780
36781         * lib/regex.h: update from libc (whitespace fix).
36782
36783 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36784
36785         Merge some files from coreutils.  These changes were
36786         originally made by Jim Meyering.
36787         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36788         many older Unixes require this.
36789         * lib/alloca.c (alloca): Remove cast to argument of free;
36790         no longer needed in C89.
36791         * lib/alloca_.h, regex.h: Fix white space to match
36792         what GNU indent does.
36793
36794 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36795
36796         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36797         apparently Emacs's Unicode mode got confused before my 2003-08-05
36798         checkin.
36799
36800 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36801
36802         * m4/extensions.m4: New file.
36803         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36804         Require gl_USE_SYSTEM_EXTENSIONS.
36805         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36806         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36807
36808 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36809
36810         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36811         * modules/extensions, modules/gnu-source: New files.
36812         * modules/timespec, modules/unlocked-io: Depend on extensions.
36813
36814 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36815
36816         * modules/restrict: New file.
36817         * MODULES.html.sh (func_all_modules): Add restrict.
36818         * modules/regex: Depend on restrict.
36819
36820 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36821
36822         * m4/restrict.m4: New file.
36823         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36824
36825 2003-08-07  Bruno Haible  <bruno@clisp.org>
36826
36827         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36828         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36829
36830 2003-08-07  Bruno Haible  <bruno@clisp.org>
36831
36832         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36833         makes the module 'getndelim2' compatible with the module 'getline'.
36834
36835 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36836
36837         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36838         byte with "\201" to avoid glitches when editing that source file
36839         with multi-gnome-terminal.
36840
36841 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36842
36843         * lib/bumpalloc.h: Remove.
36844
36845 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36846
36847         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36848         * modules/bumpalloc: Remove.
36849
36850 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36851
36852         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36853         GNU coding style.
36854
36855         Merge from coreutils.
36856         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36857         1. From glibc.
36858         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36859         from Karl Berry, implemented by Jim Meyering.
36860         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36861         from Dmitry V. Levin.
36862         Remove anachronistic cast of xrealloc.
36863         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36864         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36865         type. Otherwise, it wouldn't compile with at least /bin/cc on
36866         ymp-cray-unicos9.0.2.X.
36867         Combine two mostly-identical uses of alloca into one.
36868         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36869
36870 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36871
36872         [From Emacs.]
36873
36874         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36875         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36876         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36877         obsolete NLIST_NAME_UNION.
36878         [__GNU__]: Undef BSD and FSCALE.
36879         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36880
36881 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36882
36883         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36884         an enum type, so that it's guaranteed to promote to int.  See:
36885         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36886
36887 2003-08-03  Karl Berry  <karl@gnu.org>
36888
36889         * config/depcomp: update from automake.
36890
36891 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36892
36893         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36894         (strerror): Don't assume that a printable int fits in 14 bytes.
36895
36896 2003-07-31  Bruno Haible  <bruno@clisp.org>
36897
36898         * modules/getpass-gnu: New file.
36899         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36900
36901 2003-07-31  Bruno Haible  <bruno@clisp.org>
36902
36903         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36904
36905 2003-07-24  Karl Berry  <karl@gnu.org>
36906
36907         * config/missing: update from automake.
36908
36909 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36910             Bruno Haible  <bruno@clisp.org>
36911
36912         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36913         * lib/getline.c (getline, getdelim): Likewise.
36914         Remove _GNU_SOURCE define; now it's defined in config.h through
36915         m4/getline.m4.
36916
36917 2003-07-23  Karl Berry  <karl@gnu.org>
36918
36919         * config/config.sub: update from prep.
36920
36921 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36922
36923         * modules/xalloc (Depends-on): Add exitfail.
36924         * modules/xmemcoll: Likewise.
36925
36926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36927
36928         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36929         over-parenthesization in macros.
36930
36931         Sync with coreutils.
36932
36933         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36934         required by C99.
36935
36936         Use `exit_failure' for xalloc and xmemcoll instead of their own
36937         private exit-failure variables.
36938         * lib/xalloc.h (xalloc_exit_failure): Remove.
36939         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36940         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36941         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36942         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36943         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36944
36945 2003-07-20  Jim Meyering  <jim@meyering.net>
36946
36947         * modules/closeout (Depends-on): Add exitfail.
36948         Suggestion from Bruno Haible.
36949
36950 2003-07-19  Karl Berry  <karl@gnu.org>
36951
36952         * config/config.sub: update from prep.
36953
36954 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36955
36956         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36957         Remove.
36958         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36959         to test that it can stand by itself.  Include "exitfail.h".
36960         Clients should set exit_failure instead.
36961         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36962
36963 2003-07-18  Bruno Haible  <bruno@clisp.org>
36964
36965         * modules/getndelim2: New file.
36966         * modules/getline: Share files with module getndelim2.
36967         * modules/getnline: Depend on getndelim2 instead of sharing files with
36968         it. Add getnline.c to lib_SOURCES.
36969         * MODULES.html.sh (func_all_modules): Add getndelim2.
36970
36971 2003-07-18  Bruno Haible  <bruno@clisp.org>
36972
36973         * m4/getndelim2.m4: New file.
36974         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36975         invoke gl_PREREQ_GETNDELIM2.
36976         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36977         gl_PREREQ_GETNDELIM2.
36978         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36979         gl_GETNDELIM2.
36980
36981 2003-07-18  Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/getndelim2.h: New file.
36984         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36985         getndelim2.h.
36986         (getndelim2): Make non-static. Change return type to ssize_t.
36987         * lib/getline.h: Change argument names.
36988         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36989         * lib/getnline.c: Include getndelim2.h.
36990
36991 2003-07-18  Andreas Schwab  <schwab@suse.de>
36992
36993         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36994
36995 2003-07-17  Karl Berry  <karl@gnu.org>
36996
36997         * config/config.sub: update from prep.
36998
36999 2003-07-17  Bruno Haible  <bruno@clisp.org>
37000
37001         * modules/getnline: New file.
37002         * modules/getline: Add lib/getndelim2.c to source file list.
37003         * MODULES.html.sh (func_all_modules): Add getnline.
37004
37005 2003-07-17  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/getnline.m4: New file.
37008
37009 2003-07-17  Bruno Haible  <bruno@clisp.org>
37010
37011         * m4/Makefile.am.in: Remove file.
37012         * m4/Makefile.am: Remove file.
37013         * m4/Makefile.in: Remove file.
37014
37015 2003-07-17  Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/getnline.h: New file.
37018         * lib/getnline.c: New file.
37019         * lib/getndelim2.c: New file, extracted from getline.c.
37020         (getndelim2): Renamed from getdelim2, with added nmax argument.
37021         * lib/getline.c: Include getndelim2.c.
37022         (getdelim2): Moved out to getndelim2.c.
37023         (getline, getdelim): Update.
37024
37025 2003-07-17  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/Makefile.am: Remove file.
37028         * lib/Makefile.in: Remove file.
37029
37030 2003-07-17  Bruno Haible  <bruno@clisp.org>
37031
37032         * configure.in: Remove file.
37033         * Makefile.in: Remove file.
37034
37035 2003-07-17  Bruno Haible  <bruno@clisp.org>
37036
37037         * MODULES.html.sh: Put the </BODY> right before </HTML>.
37038
37039 2003-07-16  Karl Berry  <karl@gnu.org>
37040
37041         * config/srclist-update: was running fixlicense twice, which caused
37042                 texinfo.tex to be nullified for some reason.  Simplify,
37043                 $gplsrc is no longer needed as far as I can see?
37044
37045 2003-07-16  Jim Meyering  <jim@meyering.net>
37046
37047         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
37048
37049 2003-07-15  Paul Eggert  <eggert@twinsun.com>
37050
37051         * config/srclist.txt: Get the following files from gettext-runtime/intl
37052         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37053         ref-del.sin.  From Bruno Haible.
37054         * config/srclist-update (fixfile): Change grep pattern again, since the
37055         previous fix didn't work (there was another trailing $).  Use
37056         '[$]' to escape the $s.
37057
37058 2003-07-15  Karl Berry  <karl@gnu.org>
37059
37060         * lib/vasnprintf.c: update from gettext.
37061
37062 2003-07-15  Karl Berry  <karl@gnu.org>
37063
37064         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37065         gets expanded when surrounded by '$'.
37066
37067 2003-07-15  Jim Meyering  <jim@meyering.net>
37068
37069         * modules/save-cwd: Don't depend on error.  From Derek Price.
37070
37071 2003-07-15  Jim Meyering  <jim@meyering.net>
37072
37073         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37074
37075 2003-07-14  Simon Josefsson  <jas@extundo.com>
37076
37077         * modules/mempcpy: New file.
37078         * MODULES.html.sh (func_all_modules): Add mempcpy.
37079
37080 2003-07-14  Simon Josefsson  <jas@extundo.com>
37081
37082         * m4/mempcpy.m4: New file.
37083
37084 2003-07-14  Simon Josefsson  <jas@extundo.com>
37085
37086         * lib/mempcpy.h: New file.
37087         * lib/mempcpy.c: New file.
37088
37089 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37090
37091         * modules/getdate, modules/posixtm: Depend on mktime.
37092
37093 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37094
37095         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37096         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37097         unicodeio.c, unicodeio.h, unlocked-io.h:
37098         Switch from LGPL to GPL.
37099
37100 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37101
37102         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37103         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37104         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37105         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37106         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
37107         updated automatically by ../config/srclist-update.  This changes
37108         their license from LPGL to GPL.
37109
37110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37111
37112         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
37113         assumed to refer to the root of the most recent stable gettext version.
37114         * config/srclistvars.sh: Add defaults for eggert.
37115         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37116         Match "This program" as well as "The program".  This is needed
37117         for gettext.
37118
37119 2003-07-14  Jim Meyering  <jim@meyering.net>
37120
37121         Don't emit diagnostics.  Let callers do that.
37122         * lib/save-cwd.c: Don't include "error.h".
37123         (save_cwd): Don't call error.  Ensure that errno is valid
37124         when returning nonzero.
37125
37126         * lib/save-cwd.h (restore_cwd): Update prototype.
37127         * lib/save-cwd.c (restore_cwd): Remove two parameters.
37128         Simplify.  Don't call error upon failure.  Let callers do that.
37129         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37130         when auditing is enabled.  But don't bother updating the #if.
37131
37132 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
37133
37134         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37135         it breaks C++ compilation.
37136         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37137
37138 2003-07-10  Simon Josefsson  <jas@extundo.com>
37139
37140         * modules/strchrnul (Makefile.am): Add strchrnul.h.
37141
37142 2003-07-10  Jim Meyering  <jim@meyering.net>
37143
37144         * m4/clock_time.m4: Remove trailing blank.
37145         * m4/intmax_t.m4: Likewise.
37146
37147 2003-07-10  Jim Meyering  <jim@meyering.net>
37148
37149         * lib/vasnprintf.c: Remove trailing blanks.
37150         Make cpp indentation consistent.
37151
37152 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37153
37154         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37155         posixver.c, strftime.c, strnlen.c, strverscmp.c:
37156         Switch from LGPL to GPL.
37157
37158 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37159
37160         * config/srclist.txt: Sort sublists.  Add
37161         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37162         that differ from gnulib for one reason or another; we'd like this list
37163         to be smaller but for now let's document what we have.
37164
37165 2003-07-08  Paul Eggert  <eggert@twinsun.com>
37166
37167         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37168         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
37169         and sweeter "eval x=$x".
37170         * config/srclist.txt: Get lib/argp* from glibc.
37171
37172 2003-07-07  Paul Eggert  <eggert@twinsun.com>
37173
37174         * lib/mktime.c: Fix some boundary cases and remove need for floating
37175         point.
37176
37177         Issue a compile-time diagnostic if time_t is floating point, or if
37178         two's complement arithmetic is not in effect, or if arithmetic
37179         right shift does not propagate the sign.  These assumptions were
37180         all in the original code but they weren't checked.
37181
37182         (TIME_T_MIDPOINT, verify): New macros.
37183         (__isleap): Remove; it has integer overflow problems.
37184         (leapyear): New function, without those problems.
37185         (ydhms_tm_diff): Remove; splitting into two parts.
37186         (ydhms_diff): New function, containing the arithmetic part of
37187         the old ydhms_tm_diff function.  Issue a compile-time
37188         diagnostic if we are not using C99 integer division.
37189         Avoid casts when possible.
37190         (guess_time_tm): New function, containing the checking part of
37191         the old ydhms_tm_diff function.  Return the new value, rather than
37192         the difference between it and the old.  Accept a new argument T
37193         so that *T specifies the old value.  Check for overflow in the result.
37194
37195         (__mktime_internal): Use a time_t offset, not a long int offset.
37196         This undoes the 2003-06-04 change, which is no longer needed now
37197         that we have better overflow checking.
37198         (localtime_offset): Likewise.
37199
37200         (__mktime_internal): Avoid harmful overflow on hosts where time_t
37201         and long are 64-bit but int is only 32-bit.
37202         (ydhms_diff): Use long int to store year1 and yday1.
37203         Issue a compile-time diagnostic if long int is not wide enough.
37204
37205         (__mktime_internal): Use long int to store adjusted year and yday.
37206         Use plain C rather than preprocessor commands, if that doesn't
37207         affect efficiency.
37208         Check for overflow (and try to repair) after each probe
37209         rather than checking only at the very end.  This avoids some bugs
37210         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37211         does not equal GMT offset at maximum time).
37212         Use integer to check for overflow rather than floating point; this
37213         is more portable to non-IEEE hosts, and is a tad faster.
37214         When we detect that we are oscillating between two values,
37215         don't check whether tm_isdst has the requested value, since
37216         we already know the answer.  When tm_isdst has the wrong value,
37217         use a different heuristic to find the right one, based on the
37218         extreme values actually observed in practice in tz2003a,
37219         rather than the (overly optimistic) "previous 3 calendar quarters".
37220
37221         (not_equal_tm, print_tm, check_result): Use "const T" rather than
37222         "T const" to accommodate glibc style.
37223         (check_result): Use less-confusing report format.  "long" -> "long int.
37224         (main): Likewise.
37225         Don't loop if the iteration overflows time_t.
37226         Allow a negative step in the iteration.
37227
37228 2003-07-06  Karl Berry  <karl@gnu.org>
37229
37230         * config/depcomp: update from automake.
37231         * config/config.sub: update from prep.
37232
37233 2003-07-03  Karl Berry  <karl@gnu.org>
37234
37235         * config/config.guess: update from prep.
37236
37237 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37238
37239         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37240         xreadlink.c now includes it unconditionally.
37241
37242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37243
37244         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37245         having it depend on HAVE_SYS_TYPES_H.
37246
37247 2003-07-01  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37250         <sys/types.h> should be sufficient.
37251         Reported by Paul Eggert.
37252
37253 2003-06-26  Karl Berry  <karl@gnu.org>
37254
37255         * config/depcomp: update from automake.
37256
37257 2003-06-26  Bruno Haible  <bruno@clisp.org>
37258
37259         * modules/human: Depend on module stdbool.
37260
37261 2003-06-25  Bruno Haible  <bruno@clisp.org>
37262
37263         * modules/readlink: New file.
37264         * modules/xreadlink: Depend on it.
37265         * MODULES.html.sh (func_all_modules): Add readlink.
37266
37267 2003-06-25  Bruno Haible  <bruno@clisp.org>
37268
37269         * m4/readlink.m4: New file.
37270
37271 2003-06-25  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/readlink.c: New file.
37274
37275 2003-06-22  Karl Berry  <karl@gnu.org>
37276
37277         * config/srclist.txt: update mkinstalldirs from automake.
37278         * config/mkinstalldirs: update.
37279
37280 2003-06-22  Bruno Haible  <bruno@clisp.org>
37281
37282         Portability to mingw32.
37283         * m4/ssize_t.m4: New file, from GNU gettext.
37284         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37285         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37286
37287 2003-06-22  Bruno Haible  <bruno@clisp.org>
37288
37289         * modules/safe-read: Add m4/ssize_t.m4.
37290         * modules/xreadlink: Add m4/ssize_t.m4.
37291
37292 2003-06-20  Bruno Haible  <bruno@clisp.org>
37293
37294         Assume C89, so PARAMS isn't needed.
37295         * lib/unicodeio.h (PARAMS): Remove.
37296         * lib/unicodeio.c: Don't use PARAMS.
37297
37298 2003-06-18  Karl Berry  <karl@gnu.org>
37299
37300         * config/config.{guess,sub}: update from prep.
37301
37302 2003-06-18  Jim Meyering  <jim@meyering.net>
37303
37304         Merge changes from coreutils.
37305         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37306         Remove explicit declarations of xmalloc and realloc.
37307         Include xalloc.h.
37308         (read_utmp): Remove anachronistic cast of xmalloc.
37309
37310 2003-06-17  Paul Eggert  <eggert@twinsun.com>
37311
37312         Assume C89, so PARAMS isn't needed.
37313         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
37314         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37315         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37316         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37317         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37318         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37319         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37320         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37321         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37322         lib/xstrtod.h, lib/xstrtol.h: Likewise.
37323         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37324         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37325         no longer needed. Anyway, config.h should always be included before any
37326         other file.
37327
37328 2003-06-11  Simon Josefsson  <jas@extundo.com>
37329
37330         * modules/sysexits: New file.
37331         * MODULES.html.sh (func_all_modules): Add sysexits.
37332
37333 2003-06-11  Simon Josefsson  <jas@extundo.com>
37334
37335         * lib/sysexit_.h: New file.
37336
37337 2003-06-11  Derek Price  <derek@ximbiot.com>
37338
37339         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
37340         necessary.
37341
37342 2003-06-11  Bruno Haible  <bruno@clisp.org>
37343
37344         * m4/sysexits.m4: New file.
37345
37346 2003-06-10  Simon Josefsson  <jas@extundo.com>
37347
37348         * lib/argp.h: New file, from glibc.
37349         * lib/argp-ba.c: New file, from glibc.
37350         * lib/argp-eexst.c: New file, from glibc.
37351         * lib/argp-fmtstream.c: New file, from glibc.
37352         * lib/argp-fmtstream.h: New file, from glibc.
37353         * lib/argp-fs-xinl.c: New file, from glibc.
37354         * lib/argp-help.c: New file, from glibc.
37355         * lib/argp-namefrob.h: New file, from glibc.
37356         * lib/argp-parse.c: New file, from glibc.
37357         * lib/argp-pv.c: New file, from glibc.
37358         * lib/argp-pvh.c: New file, from glibc.
37359         * lib/argp-xinl.c: New file, from glibc.
37360
37361 2003-06-10  Simon Josefsson  <jas@extundo.com>
37362
37363         * modules/strchrnul: New file.
37364
37365 2003-06-10  Simon Josefsson  <jas@extundo.com>
37366
37367         * modules/argp: New file.
37368
37369 2003-06-10  Simon Josefsson  <jas@extundo.com>
37370
37371         * m4/strchrnul.m4: New file.
37372
37373 2003-06-10  Simon Josefsson  <jas@extundo.com>
37374
37375         * lib/strchrnul.h: New file.
37376         * lib/strchrnul.c: New file.
37377
37378 2003-06-10  Bruno Haible  <bruno@clisp.org>
37379
37380         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37381
37382 2003-06-07  Karl Berry  <karl@gnu.org>
37383
37384         * config/config.{guess,sub}: update from prep.
37385
37386 2003-06-07  Jim Meyering  <jim@meyering.net>
37387
37388         * modules/strtod: Use $(...) notation, not @...@ for
37389         AC_REPLACE'd variables.
37390         * modules/localcharset: Likewise.
37391
37392 2003-06-07  Jim Meyering  <jim@meyering.net>
37393
37394         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37395         in place of my name in the copyright comment.
37396         Remove definition and uses of __P.
37397
37398         From coreutils.
37399         * lib/stat.c: Don't declare xmalloc explicitly.
37400         Instead, include "xalloc.h".
37401         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37402         xrealloc, and xcalloc return values.
37403         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37404         Improve comment.
37405         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37406
37407 2003-06-07  Bruno Haible  <bruno@clisp.org>
37408
37409         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37410         avoid AC_CONFIG_LINKS.
37411         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37412         fnmatch.h, to avoid AC_CONFIG_LINKS.
37413         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37414
37415 2003-06-07  Bruno Haible  <bruno@clisp.org>
37416
37417         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37418         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37419         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37420         directory.
37421         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
37422         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37423         directory.
37424
37425 2003-06-06  Jim Meyering  <jim@meyering.net>
37426
37427         Merge from coreutils.
37428         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
37429         Consolidate declarations and initializations of *_base* locals.
37430
37431         Merge from coreutils.
37432         This avoids a core dump on systems without GNU putenv,
37433         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
37434         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
37435         (unsetenv): New static function, from GNU libc.
37436         (rpl_putenv): Use it.
37437
37438         * lib/modechange.c: Remove trailing blanks.
37439
37440         Merge from coreutils.
37441         * lib/fsusage.c: Remove declaration of statfs.
37442         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37443
37444         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37445
37446 2003-06-06  Jim Meyering  <jim@meyering.net>
37447
37448         * lib/stdbool_.h: Renamed from stdbool.h.in.
37449
37450 2003-06-06  Jim Meyering  <jim@meyering.net>
37451             Bruno Haible  <bruno@clisp.org>
37452
37453         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37454         Adjust Makefile.am snippet not to redirect directly to target.
37455         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37456
37457 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37458
37459         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37460         mismatch, look in future quarters as well as past.  This fixes a
37461         bug when processing fall-backwards gaps immediately after a long
37462         period of daylight-saving time.
37463
37464         * lib/mktime.c: Assume freestanding C89 or better.
37465         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37466         (__P): Remove; not used.
37467         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37468         (mktime, not_equal_tm, print_tm, check_result,
37469         main): Use prototypes.  Use const * where appropriate.
37470         (main): Fix typo in testing code that uncovered by above changes.
37471         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37472
37473 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37474
37475         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37476         locale.h, localeconv.  This merges changes from coreutils.
37477
37478         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37479         It can be removed after the next Autoconf is released.
37480         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37481         needed.
37482
37483 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37484
37485         * lib/mktime.c: Fix Debian bug 177940
37486         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37487         (localtime_offset): Now long int, not time_t, because we want it
37488         to be guaranteed to be signed.  All uses changed.
37489         (__mktime_internal): If overflow would occur when adding offset,
37490         don't add it.
37491
37492         Merge 'human' changes from coreutils.  Rewrite to support
37493         locale-specific notations like thousands separators.
37494         * lib/human.c: Simplify authorship notice.
37495         Include human.h immediately after config.h.
37496         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37497         <limits.h>: Do not include, since human.h does.
37498         (SIZE_MAX, UINTMAX_MAX): New macros.
37499         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37500         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37501         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37502         (power_letter): Renamed from suffixes.
37503         (generate_suffix_backwards): Remove.
37504         (adjust_value): Now takes int style (because of human.h changes)
37505         and long double value (for greater precision on some platforms).
37506         (group_number): New function.
37507         (human_readable): Use it.  Use integer options, not enum.
37508         Put the options before the sizes in the arg list.
37509         Support all the new options.
37510         The old human_readable function has been removed;
37511         use inttostr.h instead.
37512         (human_readable, default_block_size, humblock):
37513         Use uintmax_t, not int, for block sizes.
37514         (human_readable_inexact, block_size_types): Remove.
37515         (block_size_opts): New constant.
37516         (human_options): Renamed from human_block_size, with new signature
37517         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37518         * lib/human.h: Add copyright and authorship notice.
37519         Include <limits.h> and <stdbool.h> unconditionally.
37520         (PARAMS): Remove.  All uses removed.
37521         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37522         (enum human_inexact_style): Remove tag; now a nameless enum.
37523         (human_floor, human_ceiling, human_round_to_even): Now have
37524         values 2, 0, 1 rather than -1, 1, 0.
37525         (human_group_digits, human_suppress_point_zero, human_autoscale,
37526         human_base_1024, human_SI, human_B): New constants.
37527         (human_readable_inexact, human_block_size): Remove.
37528         (human_readable): Size args are now uintmax_t, not int.
37529         (human_options): New decl.
37530
37531         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37532         unnecessary now that we assume C89 or better.  This change
37533         imported from coreutils.
37534
37535         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37536         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37537         in the 2003-05-30 sync from glibc.
37538
37539         .h files should stand alone, but we shouldn't include <sys/types.h>
37540         if we can get away with just <stddef.h>.
37541
37542         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37543         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37544         rather than <sys/types.h>, as we merely need size_t.
37545         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37546         to get size_t.
37547         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37548         Include <stdio.h>, to get FILE.
37549         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37550         memcasecmp.h has included <stddef.h> and all we need is size_t.
37551         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37552         our interface, instead of including <sys/types.h>
37553
37554 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37555
37556         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37557         now, as glibc mktime is buggy on non-glibc systems.
37558
37559 2003-06-03  Karl Berry  <karl@gnu.org>
37560
37561         * config/config.sub: update from prep.
37562
37563 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37564
37565         [from coreutils]
37566         Fix some minor time-related bugs with POSIX time arguments.
37567         Some valid time stamps were being rejected (notably -1, and
37568         time stamps before 1900 on 64-bit hosts).  And some invalid
37569         time stamps were being accepted, e.g. September 31.
37570
37571         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37572         that we can return (time_t) -1 successfully.
37573         * lib/posixtm.c: Likewise.
37574         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37575         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37576         (t): Remove static var.
37577         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37578         of static var.  All uses changed.
37579         (year): Do not reject years before 1900; they can occur with
37580         64-bit time_t.
37581         (posix_time_parse): Do not check for out-of-range components;
37582         that is now the caller's responsibility, since our checks were
37583         only approximations.
37584         (posixtime): Use mktime to check for out-of-range components,
37585         since it knows them exactly.
37586         If mktime returns (time_t) -1, check whether an error actually occurred
37587         by invoking localtime on -1.
37588         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37589         posixtime failures better.
37590         Improve the test data (in comments only).
37591
37592 2003-06-02  Karl Berry  <karl@gnu.org>
37593
37594         * config/mkinstalldirs (version): new variable.
37595         (--version): new option.
37596         (usage): improve message.
37597
37598 2003-05-30  Karl Berry  <karl@gnu.org>
37599
37600         * lib/mktime.c: update from libc.
37601
37602 2003-05-30  Bruno Haible  <bruno@clisp.org>
37603
37604         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37605         * config/config.rpath: Upgrade to gettext-0.12.1.
37606
37607 2003-05-30  Bruno Haible  <bruno@clisp.org>
37608
37609         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37610         * m4/nls.m4: New file, from gettext-0.12.1.
37611         * m4/po.m4: New file, from gettext-0.12.1.
37612         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37613
37614 2003-05-30  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37617         * lib/localcharset.h: Likewise.
37618         * lib/localcharset.c: Likewise.
37619
37620 2003-05-29  Karl Berry  <karl@gnu.org>
37621
37622         * config/config.rpath: update from gettext.
37623
37624 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37625
37626         Assume the headers required for C89 freestanding compilers.
37627         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37628         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37629         * m4/human.m4 (gl_HUMAN): Likewise.
37630         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37631         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37632         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37633         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37635         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37636
37637 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37638
37639         Assume the headers required for C89 freestanding compilers.
37640         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37641         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37642         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37643         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37644         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37645         define, since <limits.h> is guaranteed to do that.
37646         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37647         * lib/exclude.c: Include <stdbool.h> unconditionally.
37648         * lib/tempname.c: Include <stddef.h> unconditionally.
37649         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37650         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37651         <stddef.h> does that.
37652         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37653         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37654         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37655         needed.
37656         * lib/xstrtol.c: Likewise.
37657         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37658         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37659
37660         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37661         warnings on some platforms.
37662
37663         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37664         arbitrarily.
37665
37666 2003-05-26  Jim Meyering  <jim@meyering.net>
37667
37668         Merge in a change from coreutils:
37669         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37670         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37671         that condition, rather than `-1' which is slightly misleading.
37672         Change the name of the cache variable to have the gl_ prefix.
37673         Prompted by a patch from Richard Dawe for DJGPP.
37674
37675 2003-05-24  Karl Berry  <karl@gnu.org>
37676
37677         * config/config.guess: update from prep.
37678
37679 2003-05-22  Karl Berry  <karl@gnu.org>
37680
37681         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37682
37683 2003-05-20  Karl Berry  <karl@gnu.org>
37684
37685         * config/config.guess: update from prep.
37686
37687 2003-05-18  Karl Berry  <karl@gnu.org>
37688
37689         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37690         might actually be set by the user.
37691
37692         * config/depcomp, install-sh, mdate-sh: update from automake.
37693
37694 2003-05-17  Bruno Haible  <bruno@clisp.org>
37695
37696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37697         invalid expansion for AC_EGREP_CPP.
37698         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37699         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37700         Suggested by Akim Demaille <akim@epita.fr> in
37701         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37702
37703 2003-05-12  Jim Meyering  <jim@meyering.net>
37704
37705         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37706         the space-padded-by-default conversion specifiers, %e, %k, %l.
37707
37708 2003-05-12  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37711         the string is longer than 4 KB.
37712
37713 2003-05-11  Karl Berry  <karl@gnu.org>
37714
37715         * config/config.{guess,sub}: update from prep.
37716
37717 2003-05-09  Bruno Haible  <bruno@clisp.org>
37718
37719         * modules/error: Add m4/strerror_r.m4 to file list.
37720
37721 2003-05-03  Bruno Haible  <bruno@clisp.org>
37722
37723         Upgrade to Unicode-4.0.
37724         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37725         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37726         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37727         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37728         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37729         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37730         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37731         Change width of U+E0100..U+E01EF from 1 to 0.
37732
37733 2003-04-25  Jim Meyering  <jim@meyering.net>
37734
37735         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37736         of type size_t, not int.
37737
37738 2003-04-25  Bruno Haible  <bruno@clisp.org>
37739
37740         * lib/copy-file.c: Include <stddef.h>, for size_t.
37741
37742 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37743
37744         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37745         code which expansion is under static control.  Patch imported from
37746         Akim Demaille's patch to Bison; see
37747         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37748
37749 2003-04-14  Bruno Haible  <bruno@clisp.org>
37750
37751         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37752
37753 2003-04-11  Jim Meyering  <jim@meyering.net>
37754
37755         Merge changes from Coreutils.
37756
37757         2003-03-22  Jim Meyering  <jim@meyering.net>
37758
37759         * lib/strftime.c (widen): Cast alloca return value to proper type.
37760
37761         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37762
37763         From GNU libc.
37764         * lib/strftime.c (my_strftime): Handle very large width
37765         specifications for numeric values correctly.  Improve checks for
37766         overflow.
37767
37768         2003-01-19  Jim Meyering  <jim@meyering.net>
37769
37770         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37771         definitions.
37772         (nl_get_alt_digit) [! defined my_strftime]: Define.
37773         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37774         _nl_get_alt_digit and _nl_get_walt_digit.
37775
37776         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37777         libc. These changes have no effect outside of _LIBC.
37778
37779 2003-04-10  Bruno Haible  <bruno@clisp.org>
37780
37781         * modules/findprog: New file.
37782         * MODULES.html.sh (func_all_modules): Add it.
37783
37784 2003-04-10  Bruno Haible  <bruno@clisp.org>
37785
37786         * m4/findprog.m4: New file.
37787         * m4/eaccess.m4: New file.
37788
37789 2003-04-10  Bruno Haible  <bruno@clisp.org>
37790
37791         * lib/findprog.h: New file, from GNU gettext.
37792         * lib/findprog.c: New file, from GNU gettext.
37793
37794 2003-04-05  Jim Meyering  <jim@meyering.net>
37795
37796         Merge changes from Coreutils.
37797
37798         * lib/exclude.h (PARAMS): Remove definition and uses.
37799         * lib/exclude.c: Remove uses of `PARAMS'.
37800
37801         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37802         Add test-cases for DOS filenames. Declare program_name.
37803         (main): Set up program_name.  Patch by Rich Dawe.
37804
37805         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37806         error from mntctl.
37807         Use mntctl's return value to drive the entry-processing loop, since
37808         we can't rely on the value of the vmt_length member in the last
37809         entry.  On some systems doing so could result in exhausting
37810         virtual memory.  Based in part on a patch from Mike Jetzer.
37811
37812 2003-04-04  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/linebreak: New file.
37815         * MODULES.html.sh (func_all_modules): Add it.
37816
37817 2003-04-04  Bruno Haible  <bruno@clisp.org>
37818
37819         * m4/linebreak.m4: New file.
37820
37821 2003-04-04  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/linebreak.h: New file, from GNU gettext.
37824         * lib/linebreak.c: New file, from GNU gettext with slight
37825         modifications.
37826         * lib/lbrkprop.h: New file, from GNU gettext.
37827
37828 2003-04-03  Bruno Haible  <bruno@clisp.org>
37829
37830         * modules/utf8-ucs4: New file.
37831         * modules/utf16-ucs4: New file.
37832         * modules/ucs4-utf8: New file.
37833         * modules/ucs4-utf16: New file.
37834         * MODULES.html.sh (func_all_modules): Add them.
37835
37836 2003-04-03  Bruno Haible  <bruno@clisp.org>
37837
37838         * m4/utf-ucs4.m4: New file.
37839         * m4/ucs4-utf.m4: New file.
37840
37841 2003-04-03  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/utf8-ucs4.h: New file, from GNU gettext.
37844         * lib/utf16-ucs4.h: New file, from GNU gettext.
37845         * lib/ucs4-utf8.h: New file, from GNU gettext.
37846         * lib/ucs4-utf16.h: New file, from GNU gettext.
37847
37848 2003-04-02  Bruno Haible  <bruno@clisp.org>
37849
37850         * modules/binary-io: New file.
37851         * MODULES.html.sh (func_all_modules): Add it.
37852
37853 2003-04-02  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/binary-io.h: New file, from GNU gettext.
37856
37857 2003-04-01  Bruno Haible  <bruno@clisp.org>
37858
37859         * modules/pathname: New file.
37860         * MODULES.html.sh (func_all_modules): Add it.
37861
37862 2003-04-01  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/pathname.h: New file, from GNU gettext.
37865         * lib/concatpath.c: New file, from GNU gettext.
37866
37867 2003-03-30  Bruno Haible  <bruno@clisp.org>
37868
37869         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37870
37871 2003-03-30  Bruno Haible  <bruno@clisp.org>
37872
37873         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37874         function chown() doesn't exist.
37875
37876 2003-03-28  Bruno Haible  <bruno@clisp.org>
37877
37878         * modules/copy-file: New file.
37879         * MODULES.html.sh (func_all_modules): Add it.
37880
37881 2003-03-28  Bruno Haible  <bruno@clisp.org>
37882
37883         * m4/copy-file.m4: New file.
37884
37885 2003-03-28  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/copy-file.h: New file, from GNU gettext.
37888         * lib/copy-file.c: New file, from GNU gettext.
37889
37890 2003-03-18  Jim Meyering  <jim@meyering.net>
37891
37892         * lib/quote.c (quote_n): Fix typo in comment.
37893
37894 2003-03-18  Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37897         checking.
37898         * m4/onceonly_2_57.m4: Likewise.
37899
37900 2003-03-17  Bruno Haible  <bruno@clisp.org>
37901
37902         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37903         (m4_quote): Remove macro.
37904         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37905
37906 2003-03-14  Jim Meyering  <jim@meyering.net>
37907
37908         Merge changes from Coreutils.
37909         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37910         to be const, in order to avoid warnings.
37911         (obstack_room): Likewise.
37912         (obstack_empty_p): Likewise.
37913
37914 2003-03-14  Bruno Haible  <bruno@clisp.org>
37915
37916         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37917         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37918
37919 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37920
37921         Merge changes from Bison.
37922         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37923         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37924         when compiling Bison 1.875's `bitset bset = obstack_alloc
37925         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37926         * lib/hash.c: Include <stdbool.h> unconditionally.
37927
37928 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37929
37930         * m4/onceonly.m4 (m4_quote): New macro.
37931         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37932         Quote AC_FOREACH variable-expansions properly.
37933
37934 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37935
37936         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37937
37938 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37939
37940         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37941         Reported by Bruce Becker; see:
37942         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37943
37944 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37945             Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37948         Reported by John Hughes, see
37949         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37950
37951 2003-02-20  Bruno Haible  <bruno@clisp.org>
37952
37953         * MODULES.html.sh (func_all_modules): Add poll.
37954
37955 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37956
37957         * modules/poll: New file.
37958
37959 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37960
37961         * lib/poll_.h: New file.
37962         * lib/poll.c: New file.
37963
37964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37965
37966         * m4/poll.m4: New file.
37967
37968 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37969
37970         * modules/mathl: New file.
37971
37972 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37973
37974         * lib/mathl.h: New file.
37975         * lib/acosl.c: New file.
37976         * lib/asinl.c: New file.
37977         * lib/atanl.c: New file.
37978         * lib/ceill.c: New file.
37979         * lib/cosl.c: New file.
37980         * lib/expl.c: New file.
37981         * lib/floorl.c: New file.
37982         * lib/frexpl.c: New file.
37983         * lib/ldexpl.c: New file.
37984         * lib/logl.c: New file.
37985         * lib/sincosl.c: New file.
37986         * lib/sinl.c: New file.
37987         * lib/sqrtl.c: New file.
37988         * lib/tanl.c: New file.
37989         * lib/trigl.c: New file.
37990         * lib/trigl.h: New file.
37991
37992 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37993
37994         * m4/mathl.m4: New file.
37995
37996 2003-02-18  Bruno Haible  <bruno@clisp.org>
37997
37998         * MODULES.html.sh (func_all_modules): Add mathl.
37999
38000 2003-02-17  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/mkdtemp: New module.
38003         * MODULES.html.sh (func_all_modules): Add it.
38004
38005 2003-02-17  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38008
38009 2003-02-17  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/mkdtemp.h: New file, from GNU gettext.
38012         * lib/mkdtemp.c: New file, from GNU gettext.
38013
38014 2003-02-02  Jim Meyering  <jim@meyering.net>
38015
38016         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38017         e.g. glibc-2.2.93.
38018
38019 2003-01-31  Bruno Haible  <bruno@clisp.org>
38020
38021         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38022         'rpl_rename'.
38023         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38024         'rpl_strnlen'.
38025         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38026         'rpl_strtod'.
38027         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38028         'rpl_utime'.
38029
38030 2003-01-31  Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/rename.c: #undef rename before defining rpl_rename.
38033         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38034
38035 2003-01-30  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/vasnprintf, modules/vasprintf: New modules.
38038         * MODULES.html.sh (func_all_modules): Add them.
38039
38040 2003-01-30  Bruno Haible  <bruno@clisp.org>
38041
38042         * m4/signed.m4: New file, from GNU gettext.
38043         * m4/longdouble.m4: New file, from GNU gettext.
38044         * m4/wchar_t.m4: New file, from GNU gettext.
38045         * m4/wint_t.m4: New file, from GNU gettext.
38046         * m4/vasnprintf.m4: New file.
38047         * m4/vasprintf.m4: New file.
38048
38049 2003-01-30  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/printf-args.h: New file, from GNU gettext.
38052         * lib/printf-args.c: New file, from GNU gettext.
38053         * lib/printf-parse.h: New file, from GNU gettext.
38054         * lib/printf-parse.c: New file, from GNU gettext.
38055         * lib/vasnprintf.h: New file, from GNU gettext.
38056         * lib/vasnprintf.c: New file, from GNU gettext.
38057         * lib/asnprintf.c: New file, from GNU gettext.
38058         * lib/vasprintf.h: New file, from GNU gettext with modifications.
38059         * lib/vasprintf.c: New file, from GNU gettext.
38060         * lib/asprintf.c: New file, from GNU gettext.
38061
38062 2003-01-29  Bruno Haible  <bruno@clisp.org>
38063
38064         * modules/stpncpy: New module.
38065         * MODULES.html.sh (func_all_modules): Add it.
38066
38067 2003-01-29  Bruno Haible  <bruno@clisp.org>
38068
38069         * m4/stpncpy.m4: New file.
38070
38071 2003-01-29  Bruno Haible  <bruno@clisp.org>
38072
38073         * lib/stpncpy.h: New file, from GNU gettext with modifications.
38074         * lib/stpncpy.c: New file, from GNU gettext with modifications.
38075
38076 2003-01-28  Bruno Haible  <bruno@clisp.org>
38077
38078         * modules/c-ctype: New module.
38079         * MODULES.html.sh (func_all_modules): Add it.
38080
38081 2003-01-28  Bruno Haible  <bruno@clisp.org>
38082
38083         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38084         Paul Eggert.
38085         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38086         Paul Eggert.
38087
38088 2003-01-27  Bruno Haible  <bruno@clisp.org>
38089
38090         * modules/xsetenv: New module.
38091         * MODULES.html.sh (func_all_modules): Add it.
38092
38093 2003-01-27  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/xsetenv.h: New file, from GNU gettext.
38096         * lib/xsetenv.c: New file, from GNU gettext.
38097
38098 2003-01-23  Jim Meyering  <jim@meyering.net>
38099
38100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38101         from working on systems without dirfd (at least Irix and OSF1/Tru64).
38102
38103 2003-01-23  Bruno Haible  <bruno@clisp.org>
38104
38105         * modules/minmax: New module.
38106         * MODULES.html.sh (func_all_modules): Add it.
38107
38108 2003-01-23  Bruno Haible  <bruno@clisp.org>
38109
38110         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38111         Eggert.
38112
38113 2003-01-22  Bruno Haible  <bruno@clisp.org>
38114
38115         * modules/exit: New module.
38116         * MODULES.html.sh (func_all_modules): Add it.
38117
38118 2003-01-22  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/exit.h: New file, from GNU gettext.
38121
38122 2003-01-19  Bruno Haible  <bruno@clisp.org>
38123
38124         * gnulib-tool: Recognize option --extract-maintainer.
38125         (func_get_maintainer): New function.
38126         * modules/*: Add Maintainer entry.
38127
38128 2003-01-16  Jim Meyering  <jim@meyering.net>
38129
38130         * m4/regex.m4: The `regex' struct is both input and output.
38131         Initialize it before each use.  Patch by Tim Waugh.
38132
38133 2003-01-16  Bruno Haible  <bruno@clisp.org>
38134
38135         * MODULES.html.sh: Add a table of contents. Add the module name as
38136         leftmost column. Add hyperlinks.
38137
38138 2003-01-15  Bruno Haible  <bruno@clisp.org>
38139
38140         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38141
38142 2003-01-15  Bruno Haible  <bruno@clisp.org>
38143
38144         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38145         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38146         suffix.
38147
38148 2003-01-15  Bruno Haible  <bruno@clisp.org>
38149
38150         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38151
38152 2003-01-15  Bruno Haible  <bruno@clisp.org>
38153
38154         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38155         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38156
38157 2003-01-14  Jim Meyering  <jim@meyering.net>
38158
38159         * lib/same.c (same_name): Tweak a comment.
38160
38161 2003-01-14  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38164         when a string comparison is sufficient.
38165
38166 2003-01-14  Bruno Haible  <bruno@clisp.org>
38167
38168         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38169         'unsigned int'.
38170
38171 2003-01-14  Bruno Haible  <bruno@clisp.org>
38172
38173         * lib/hash-pjw.c: Add comment about low quality of this function.
38174
38175 2003-01-13  Bruno Haible  <bruno@clisp.org>
38176
38177         * modules/stpcpy: Distribute lib/stpcpy.h.
38178         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38179
38180 2003-01-13  Bruno Haible  <bruno@clisp.org>
38181
38182         * modules/*: Add a description.
38183         * modules/strpbrk: Fix Makefile.am snippet.
38184         * modules/strtoimax: Fix dependencies.
38185         * modules/strtoumax: Likewise.
38186
38187 2003-01-13  Bruno Haible  <bruno@clisp.org>
38188
38189         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38190         * modules/alloca (Makefile.am): All object files depend on alloca.h.
38191         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38192
38193 2003-01-13  Bruno Haible  <bruno@clisp.org>
38194
38195         * gnulib-tool (func_create_testdir): Store config/* files in the main
38196         directory.
38197         * config.rpath: Move to ...
38198         * config/config.rpath: ... here.
38199         * modules/gettext: Contains config/config.rpath, not config.rpath.
38200         * modules/iconv: Likewise.
38201
38202 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38203
38204         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38205         to avoid collisions with libcurses and libreadline.
38206
38207         * m4/getstr.m4: Remove.
38208         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38209
38210 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38211
38212         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38213         to avoid collisions with libcurses and libreadline.
38214
38215         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38216         * lib/getstr.h, getstr.c: Remove.
38217         * lib/getline.c: Include "getline.h", to check interface.
38218         Move body of old getstr.c here: this defines MIN_CHUNK and
38219         declares getdelim2, which is renamed from getstr.
38220         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38221
38222         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38223         All uses changed.
38224         * lib/linebuffer.h: Likewise.
38225         (readline): Remove backward-compatibility macro.
38226
38227 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38228
38229         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38230         to avoid collisions with libcurses and libreadline.
38231         * getstr: Remove.
38232         * MODULES.html.sh: Remove getstr.
38233         * modules/getline: Depend on unlocked-io, not getstr.
38234
38235 2003-01-12  Jim Meyering  <jim@meyering.net>
38236
38237         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
38238
38239 2003-01-10  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/alloca: Change Makefile.am requirements. Simplify Include
38242         requirements. Add lib/alloca_.h to file list.
38243
38244 2003-01-10  Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38247
38248 2003-01-10  Bruno Haible  <bruno@clisp.org>
38249
38250         * lib/alloca_.h: New file.
38251         * lib/getdate.y: Unconditionally include alloca.h.
38252         * lib/makepath.c: Likewise.
38253         * lib/setenv.c: Likewise.
38254         * lib/userspec.c: Likewise.
38255
38256 2003-01-09  Karl Berry  <karl@gnu.org>
38257
38258         * MODULES.html.sh: include `dirname $0` in PATH, to find
38259         gnulib-tool.
38260
38261 2003-01-09  Bruno Haible  <bruno@clisp.org>
38262
38263         * modules/stdbool: Change configure.ac, Makefile.am requirements.
38264         Simplify Include requirements. Add lib/stdbool.h.in to file list.
38265
38266 2003-01-09  Bruno Haible  <bruno@clisp.org>
38267
38268         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38269
38270 2003-01-09  Bruno Haible  <bruno@clisp.org>
38271
38272         * lib/stdbool.h.in: New file.
38273
38274 2003-01-09  Bruno Haible  <bruno@clisp.org>
38275
38276         * gnulib-tool (func_all_modules): Ignore files ending in ~.
38277         * MODULES.html.sh: Likewise.
38278
38279 2003-01-08  Jim Meyering  <jim@meyering.net>
38280
38281         * lib/full-write.c: Undefine and define-away `const' after inclusion
38282         of errno.h, not before.  Suggestion from Bruno Haible.
38283
38284 2003-01-08  Bruno Haible  <bruno@clisp.org>
38285
38286         * modules/full-read: Depend on full-write.
38287
38288 2003-01-08  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/safe-read.c: Include specification header first, to ensure its
38291         selfcontainedness.
38292         * lib/full-write.c: Likewise.
38293
38294 2003-01-07  Jim Meyering  <jim@meyering.net>
38295
38296         * lib/full-write.c: Rework so that it may serve to define full_read,
38297         too.
38298         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38299
38300 2003-01-07  Bruno Haible  <bruno@clisp.org>
38301
38302         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38303         <inttypes.h>.
38304         * lib/xstrtol.h: Likewise.
38305         * lib/xstrtoimax.c: Likewise.
38306         * lib/xstrtoumax.c: Likewise.
38307         * lib/human.h: Likewise.
38308
38309         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38310         on systems that have <inttypes.h> but not <stdint.h>.
38311
38312 2003-01-07  Bruno Haible  <bruno@clisp.org>
38313
38314         * MODULES.html.sh: Add copyright notice.
38315         (missed_files): Omit CVS directory entries.
38316         (func_module): Make it work with sed-3.02.
38317         * MODULES.txt: Remove file.
38318
38319 2003-01-06  Jim Meyering  <jim@meyering.net>
38320
38321         * lib/version-etc.c: Update year in translatable copyright string.
38322
38323 2003-01-03  Karl Berry  <karl@gnu.org>
38324
38325         * config/config.{guess,sub}: update from prep.
38326
38327 2003-01-02  Karl Berry  <karl@gnu.org>
38328
38329         * doc/COPYING.DOC: belatedly updated to 1.2.
38330
38331 2003-01-01  Karl Berry  <karl@gnu.org>
38332
38333         * gnulib-tool (func_verify_module): report module name $module in
38334         error message, not $1.
38335         * gnulib-tool (create-testdir): don't complain if destdir couldn't
38336         be created, only if it doesn't exist.
38337         * gnulib-tool (last_checkin_date): don't expand the $Date here.
38338
38339 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38340
38341         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
38342
38343 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38344
38345         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
38346         memcmp if strcoll doesn't work.
38347
38348 2002-12-31  Bruno Haible  <bruno@clisp.org>
38349
38350         * lib/utime.c (utime_null): No need to call ftruncate if the file was
38351         nonempty.
38352
38353 2002-12-31  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/memcoll.c (STRCOLL): New macro.
38356         (memcoll): Use it.
38357
38358 2002-12-31  Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/localcharset.h: New file.
38361         * lib/localcharset.c: Include it.
38362         * lib/unicodeio.c: Likewise.
38363
38364 2002-12-31  Bruno Haible  <bruno@clisp.org>
38365
38366         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38367         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38368
38369 2002-12-31  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/getline.h: Include <stddef.h>, for size_t.
38372
38373         * lib/unicodeio.h: Include <stddef.h>, for size_t.
38374         * lib/unicodeio.c: Don't include <stddef.h>.
38375
38376 2002-12-31  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38379         HAVE_TM_ZONE.
38380
38381 2002-12-24  Karl Berry  <karl@gnu.org>
38382
38383         * config/config.guess: update from prep.
38384
38385 2002-12-24  Bruno Haible  <bruno@clisp.org>
38386
38387         General infrasructure.
38388         * m4/README: Rewritten.
38389         * m4/onceonly.m4: New file.
38390         * m4/onceonly_2_57.m4: New file.
38391
38392         Module atexit.
38393         * m4/atexit.m4: New file.
38394
38395         Module strtod.
38396         * m4/strtod.m4: New file.
38397
38398         Module strtol.
38399         * m4/strtol.m4: New file.
38400
38401         Module strtoul.
38402         * m4/strtoul.m4: New file.
38403
38404         Module memchr.
38405         * m4/memchr.m4: New file.
38406
38407         Module memcmp.
38408         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38409         (jm_FUNC_MEMCMP): Invoke it.
38410
38411         Module memcpy.
38412         * m4/memcpy.m4: New file.
38413
38414         Module memmove.
38415         * m4/memmove.m4: New file.
38416
38417         Module memset.
38418         * m4/memset.m4: New file.
38419
38420         Module strcspn.
38421         * m4/strcspn.m4: New file.
38422
38423         Module strpbrk.
38424         * m4/strpbrk.m4: New file.
38425
38426         Module strstr.
38427         * m4/strstr.m4: New file.
38428
38429         Module strerror.
38430         * m4/strerror.m4: New file.
38431
38432         Module mktime.
38433         * m4/mktime.m4: Renamed from jm-mktime.m4.
38434         (gl_PREREQ_MKTIME): New macro.
38435         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
38436
38437         Module malloc.
38438         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
38439         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
38440         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
38441
38442         Module realloc.
38443         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38444         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38445         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38446
38447         Module strftime.
38448         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38450         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38451         gl_TM_GMTOFF.
38452         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38453
38454         Module xalloc.
38455         * m4/xalloc.m4: New file.
38456
38457         Module alloca.
38458         * m4/alloca.m4: New file.
38459
38460         Module putenv.
38461         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38462         (jm_FUNC_PUTENV): Invoke it.
38463
38464         Module setenv.
38465         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38466         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38467         when invoked twice.
38468         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38469         gt_FUNC_SETENV.
38470
38471         Module memrchr.
38472         * m4/memrchr.m4: New file.
38473
38474         Module stpcpy.
38475         * m4/stpcpy.m4: New file.
38476
38477         Module strcase.
38478         * m4/strcase.m4: New file.
38479
38480         Module strdup.
38481         * m4/strdup.m4: New file.
38482
38483         Module strnlen.
38484         * m4/strnlen.m4: New file.
38485
38486         Module strndup.
38487         * m4/strndup.m4: New file.
38488
38489         Module xstrtod.
38490         * m4/xstrtod.m4: New file.
38491
38492         Module xstrtol.
38493         * m4/xstrtol.m4: New file.
38494
38495         Module getdate.
38496         * m4/getdate.m4: New file.
38497
38498         Module unlocked-io.
38499         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38500         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38501         * m4/jm-glibc-io.m4n: Remove file.
38502
38503         Module long-options.
38504         * m4/long-options.m4: New file.
38505
38506         Module md5.
38507         * m4/md5.m4: New file.
38508
38509         Module sha.
38510         * m4/sha.m4: New file.
38511
38512         Module getstr.
38513         * m4/getstr.m4: New file.
38514
38515         Module getline.
38516         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38517         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38518         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38519         simply getline. Infoke gl_PREREQ_GETLINE.
38520
38521         Module obstack.
38522         * m4/obstack.m4: New file.
38523
38524         Module hash.
38525         * m4/hash.m4: New file.
38526
38527         Module readtokens.
38528         * m4/readtokens.m4: New file.
38529
38530         Module strverscmp.
38531         * m4/strverscmp.m4: New file.
38532
38533         Module stdbool.
38534         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38535         OSF/1.
38536
38537         Module strtoll.
38538         * m4/strtoll.m4: New file.
38539
38540         Module strtoull.
38541         * m4/strtoull.m4: New file.
38542
38543         Module strtoimax.
38544         * m4/strtoimax.m4: New file.
38545
38546         Module strtoumax.
38547         * m4/strtoumax.m4: New file.
38548
38549         Module xstrtoimax.
38550         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38551         jm_AC_PREREQ_XSTRTOIMAX.
38552         Moved the strtol prerequisites to strtol.m4.
38553         Moved the strtoll prerequisites to strtoll.m4.
38554         Moved the strtoimax prerequisites to strtoimax.m4.
38555
38556         Module xstrtoumax.
38557         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38558         jm_AC_PREREQ_XSTRTOUMAX.
38559         Moved the strtoul prerequisites to strtoul.m4.
38560         Moved the strtoull prerequisites to strtoull.m4.
38561         Moved the strtoumax prerequisites to strtoumax.m4.
38562
38563         Module chown.
38564         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38565         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38566
38567         Module dup2.
38568         * m4/dup2.m4: New file.
38569
38570         Module ftruncate.
38571         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38572         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38573
38574         Module getgroups.
38575         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38576         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38577
38578         Module gettimeofday.
38579         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38580         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38581         gl_PREREQ_GETTIMEOFDAY.
38582
38583         Module mkdir.
38584         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38585         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38586
38587         Module mkstemp.
38588         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38589         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38590         jm_AC_TYPE_UINTMAX_T.
38591         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38592
38593         Module stat.
38594         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38595         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38596
38597         Module lstat.
38598         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38599         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38600
38601         Module timespec.
38602         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38603         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38604         * m4/st_mtim.m4: Indentation.
38605
38606         Module nanosleep.
38607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38608         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38609         gl_PREREQ_NANOSLEEP.
38610
38611         Module regex.
38612         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38613         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38614         (gl_REGEX): New macro.
38615
38616         Module rename.
38617         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38618         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38619
38620         Module rmdir.
38621         * m4/rmdir.m4: New file.
38622
38623         Module utime.
38624         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38625         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38626         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38627
38628         Module dirname.
38629         * m4/dirname.m4: New file.
38630
38631         Module getopt.
38632         * m4/getopt.m4: New file.
38633
38634         Module unistd-safer.
38635         * m4/unistd-safer.m4: New file.
38636
38637         Module fnmatch.
38638         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38639         declaration.
38640         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38641         (gl_FUNC_FNMATCH_POSIX): New macro.
38642         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38643         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38644         simply fnmatch.
38645
38646         Module exclude.
38647         * m4/exclude.m4: New file.
38648
38649         Module human.
38650         * m4/human.m4: New file.
38651
38652         Module acl.
38653         * m4/acl.m4: Nop.
38654
38655         Module backupfile.
38656         * m4/backupfile.m4: New file.
38657         * m4/d-ino.m4: Indentation.
38658
38659         Module fsusage.
38660         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38661         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38662         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38663
38664         Module dirfd.
38665         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38666         requirements.
38667
38668         Module euidaccess.
38669         * m4/euidaccess.m4: New file.
38670
38671         Module file-type.
38672         * m4/file-type.m4: New file.
38673
38674         Module fileblocks.
38675         * m4/fileblocks.m4: New file.
38676
38677         Module filemode.
38678         * m4/filemode.m4: New file.
38679
38680         Module isdir.
38681         * m4/isdir.m4: New file.
38682
38683         Module lchown.
38684         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38685         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38686
38687         Module makepath.
38688         * m4/makepath.m4: New file.
38689
38690         Module modechange.
38691         * m4/modechange.m4: New file.
38692
38693         Module mountlist.
38694         * m4/mountlist.m4: New file.
38695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38696         Indentation.
38697
38698         Module path-concat.
38699         * m4/path-concat.m4: New file.
38700
38701         Module pathmax.
38702         * m4/pathmax.m4: New file.
38703
38704         Module same.
38705         * m4/same.m4: New file.
38706
38707         Module save-cwd.
38708         * m4/save-cwd.m4: New file.
38709
38710         Module savedir.
38711         * m4/savedir.m4: New file.
38712
38713         Module xgetcwd.
38714         * m4/xgetcwd.m4: New file.
38715         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38716
38717         Module xreadlink.
38718         * m4/xreadlink.m4: New file.
38719
38720         Module safe-read.
38721         * m4/safe-read.m4: New file.
38722
38723         Module safe-write.
38724         * m4/safe-write.m4: New file.
38725
38726         Module closeout.
38727         * m4/closeout.m4: New file.
38728
38729         Module stdio-safer.
38730         * m4/stdio-safer.m4: New file.
38731
38732         Module getpass.
38733         * m4/getpass.m4: New file.
38734
38735         Module getugroups.
38736         * m4/getugroups.m4: New file.
38737
38738         Module group-member.
38739         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38740         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38741
38742         Module idcache.
38743         * m4/idcache.m4: New file.
38744
38745         Module userspec.
38746         * m4/userspec.m4: New file.
38747
38748         Module gettime.
38749         * m4/clock_time.m4: New file.
38750         * m4/gettime.m4: New file.
38751
38752         Module settime.
38753         * m4/settime.m4: New file.
38754
38755         Module posixtm.
38756         * m4/posixtm.m4: New file.
38757
38758         Module gethostname.
38759         * m4/gethostname.m4: New file.
38760
38761         Module canon-host.
38762         * m4/canon-host.m4: New file.
38763
38764         Module gettext.
38765         * m4/codeset.m4: New file, from gettext-0.11.5.
38766         * m4/gettext.m4: New file, from gettext-0.11.5.
38767         * m4/glibc21.m4: New file, from gettext-0.11.5.
38768         * m4/iconv.m4: New file, from gettext-0.11.5.
38769         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38770         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38771         * m4/inttypes.m4: New file, from gettext-0.11.5.
38772         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38773         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38774         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38775         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38776         * m4/lib-link.m4: New file, from gettext-0.11.5.
38777         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38778         * m4/progtest.m4: New file, from gettext-0.11.5.
38779         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38780         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38781         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38782
38783         Module localcharset.
38784         * m4/localcharset.m4: New file.
38785
38786         Module hard-locale.
38787         * m4/hard-locale.m4: New file.
38788
38789         Module mbswidth.
38790         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38791         onceonly macros.
38792         * m4/mbrtowc.m4: Add comment.
38793
38794         Module memcasecmp.
38795         * m4/memcasecmp.m4: New file.
38796
38797         Module memcoll.
38798         * m4/memcoll.m4: New file.
38799
38800         Module unicodeio.
38801         * m4/unicodeio.m4: New file.
38802
38803         Module rpmatch.
38804         * m4/rpmatch.m4: New file.
38805
38806         Module yesno.
38807         * m4/yesno.m4: New file.
38808
38809         Module exitfail.
38810         * m4/exitfail.m4: New file.
38811
38812         Module c-stack.
38813         * m4/c-stack.m4 (gl_C_STACK): New macro.
38814         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38815
38816         Module error.
38817         * m4/error.m4 (gl_ERROR): New macro.
38818         (jm_PREREQ_ERROR): Use onceonly macros.
38819
38820         Module fatal.
38821         * m4/fatal.m4: New file.
38822
38823         Module getloadavg.
38824         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38825         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38826
38827         Module getpagesize.
38828         * m4/getpagesize.m4: New file.
38829
38830         Module getusershell.
38831         * m4/getusershell.m4: New file.
38832
38833         Module physmem.
38834         * m4/physmem.m4: New file.
38835
38836         Module posixver.
38837         * m4/posixver.m4: New file.
38838
38839         Module quotearg.
38840         * m4/quotearg.m4: New file.
38841
38842         Module quote.
38843         * m4/quote.m4: New file.
38844
38845         Module readutmp.
38846         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38847
38848         Module sig2str.
38849         * m4/sig2str.m4: New file.
38850
38851         Other.
38852         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38853         ulonglong.m4.
38854         * m4/intmax_t.m4: New file.
38855         * m4/d-type.m4: Indentation.
38856         * m4/jm-macros.m4: Update.
38857         * m4/prereq.m4 (jm_PREREQ): Update.
38858         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38859         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38860         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38861         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38862         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38863         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38864         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38865         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38866         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38867         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38868         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38869         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38870         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38871         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38872         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38873         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38874         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38875         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38876         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38877
38878 2002-12-24  Bruno Haible  <bruno@clisp.org>
38879
38880         * MODULES.txt: Update according to m4/ changes.
38881
38882         Module gettext.
38883         * config.rpath: New file, from gettext-0.11.5.
38884
38885         * modules/*: New module descriptions.
38886         * gnulib-tool: New file.
38887         * MODULES.html.sh: New file.
38888
38889 2002-12-21  Karl Berry  <karl@gnu.org>
38890
38891         * doc/fdl.texi: update to version 1.2.
38892
38893 2002-12-19  Karl Berry  <karl@gnu.org>
38894
38895         * config/config.guess: update from prep.
38896
38897 2002-12-18  Bruno Haible  <bruno@clisp.org>
38898
38899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38900         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38901
38902 2002-12-17  Bruno Haible  <bruno@clisp.org>
38903
38904         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38905         stdlib.h, string.h.
38906
38907 2002-12-17  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/canon-host.c (strdup): Remove unused declaration.
38910
38911         * lib/fsusage.c: Include full_read.h.
38912         (get_fs_usage): Use full_read instead of safe_read.
38913
38914         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38915
38916 2002-12-12  Karl Berry  <karl@gnu.org>
38917
38918         * config/config.guess: update from prep.
38919
38920 2002-12-11  Bruno Haible  <bruno@clisp.org>
38921
38922         * m4/setenv.m4: New file, from gettext-0.11.5.
38923
38924 2002-12-11  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38927         not unsetenv().
38928         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38929         modifications:
38930
38931         2002-12-11  Bruno Haible  <bruno@clisp.org>
38932
38933                 * setenv.c (alloca): Fall back to malloc.
38934                 (freea): New macro.
38935                 (setenv): Use freea() to free memory allocated with alloca().
38936
38937         2002-11-13  Bruno Haible  <bruno@clisp.org>
38938
38939                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38940                 function declarations.
38941                 * unsetenv.c (unsetenv): Likewise.
38942
38943         2002-03-04  Bruno Haible  <bruno@clisp.org>
38944
38945                 Portability to AIX 4.3.3.
38946                 * unsetenv.c: New file, extracted from setenv.c.
38947                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38948
38949         2001-12-20  Bruno Haible  <bruno@clisp.org>
38950
38951                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38952                 use malloc instead. For SunOS 4.
38953
38954         2001-12-11  Bruno Haible  <bruno@clisp.org>
38955
38956                 * setenv.c: Declare alloca.
38957                 (compar_fn_t): New typedef.
38958                 (KNOWN_VALUE, STORE_VALUE): Use it.
38959
38960         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38961         setenv.h.
38962
38963 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38964
38965         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38966         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38967         Choose values that are less likely to collide with system fnmatch
38968         options.
38969         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38970         defined (e.g., a pure POSIX system).
38971         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38972         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38973
38974 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38975
38976         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38977         a pain in practice to deal with generated m4 files.  This change
38978         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38979
38980         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38981         and jm-glibc-io.m4, as they are no longer a special case.
38982         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38983         kludge and the auto-generation stuff.  Check only whether the
38984         functions are declared, not whether they exist, since older hosts
38985         that don't declare the functions can't use the optimization anyway.
38986
38987 2002-12-06  Jim Meyering  <jim@meyering.net>
38988
38989         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38990
38991         Merge in changes from libc's misc/error.c, in preparation
38992         for the merge of gnulib's changes back into libc.
38993
38994         * lib/error.c (_): Define only if not already defined.
38995         Move definition to follow all #include directives.
38996         Include unlocked-io.h only if !_LIBC.
38997         [_LIBC]: Include <libio/libioP.h>.
38998         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38999         (fflush): Tweak definition to use INTUSE.
39000         (putc): Define.
39001
39002 2002-12-05  Paul Eggert  <eggert@twinsun.com>
39003
39004         * lib/alloca.c [defined emacs]: Include "lisp.h".
39005         (xalloc_die) [defined emacs]: New macro.
39006         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39007         [! defined emacs]: Include <xalloc.h>.
39008         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39009         (pointer): Typedef to POINTER_TYPE *.
39010         (malloc): Remove decl; we now always use xmalloc.
39011         (alloca): Use old-style definition, since Emacs needs this.
39012         Check for arithmetic overflow when computing combined size.
39013
39014 2002-12-04  Paul Eggert  <eggert@twinsun.com>
39015
39016         Do not generate unlocked-io.h automatically, since it's easier to
39017         maintain it by hand.
39018
39019         * lib/unlocked-io.h: New file, from GNU diffutils,
39020         but with proper copyright notice and attribution.
39021         * lib/gen-uio: Remove.
39022         * lib/Makefile.am: Add copyright notice.
39023         (libfetish_a_SOURCES): Add unlocked-io.h.
39024         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39025         (DISTCLEANFILES, io_functions): Remove macros.
39026         (EXTRA_DIST): Remove gen_uio.
39027         (unlocked-io.h): Remove rule.
39028
39029 2002-12-04  Jim Meyering  <jim@meyering.net>
39030
39031         Reflect the fact that stat.c and lstat.c are no longer generated.
39032         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39033         (DISTCLEANFILES): Likewise.
39034         (EXTRA_DIST): Likewise.
39035         (all_local): Don't depend on stat.c or lstat.c.
39036         (stat.c, lstat.c): Remove rules.
39037         (EXTRA_DIST): Remove xstat.in.
39038
39039         * lib/xstat.in: Remove file.  Contents moved into stat.c.
39040         * lib/stat.c: New file.  Contents mostly from xstat.in.
39041         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39042         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39043
39044         * lib/safe-read.c: Rework so that it may serve to define safe_write,
39045         too.
39046         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39047
39048 2002-12-03  Jim Meyering  <jim@meyering.net>
39049
39050         * lib/safe-read.c, safe-write.c: Change variable names and comments,
39051         but not semantics, to minimize the differences between these two files.
39052         (safe_read): Change comment to mention SAFE_READ_ERROR.
39053
39054         * lib/safe-read.c (IS_EINTR): Define.
39055         (safe_read): Use IS_EINTR in place of in-function cpp directives.
39056
39057 2002-12-02  Jim Meyering  <jim@meyering.net>
39058
39059         * lib/safe-read.c (EINTR): Define.
39060         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39061         (INT_MAX): Provide fallback.
39062         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39063
39064         * lib/safe-read.h (SAFE_READ_ERROR): Define.
39065
39066 2002-12-02  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39069         Define, taken from safe-read.c.
39070         (INT_MAX): Provide fallback.
39071         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39072         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39073
39074         * lib/safe-read.c (EINTR): Remove definition.
39075         (safe_read): Don't use EINTR if it is absent.
39076
39077 2002-12-01  Jim Meyering  <jim@meyering.net>
39078
39079         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39080         zero.
39081         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39082
39083 2002-11-27  Paul Eggert  <eggert@twinsun.com>
39084
39085         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39086         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39087         with `if (! (value < limit)) abort ();', for readability.
39088
39089 2002-11-26  Karl Berry  <karl@gnu.org>
39090
39091         * lib/strdup.c: copy from libc again, with jim's ok.
39092         * lib/.cppi-disable: re-add strdup.c
39093
39094 2002-11-25  Karl Berry  <karl@gnu.org>
39095
39096         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39097         instead of "strtol.c".
39098
39099 2002-11-25  Karl Berry  <karl@gnu.org>
39100
39101         * config/install-sh: update from automake for variable quoting, $0 in
39102         error msgs, etc.
39103
39104         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39105         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39106         entry.
39107
39108 2002-11-25  Jim Meyering  <jim@meyering.net>
39109
39110         * lib/mktime.c: Sync from libc, now that it has the latest fix.
39111
39112 2002-11-24  Karl Berry  <karl@gnu.org>
39113
39114         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39115         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39116
39117 2002-11-24  Jim Meyering  <jim@meyering.net>
39118
39119         Update from coreutils:
39120
39121         * lib/mktime.c: Merge in changes from libc.
39122
39123         Avoid a link-time failure on some Linux systems.
39124         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39125         (otherwise).
39126         (__mon_yday): Declare with the STATIC attribute.
39127         (__mktime_internal): Likewise.
39128         Based on a report from Greg Schafer.
39129
39130 2002-11-23  Jim Meyering  <jim@meyering.net>
39131
39132         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39133         Use `unsigned', not `int', as type of index.
39134
39135         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39136
39137         * lib/fsusage.c: Remove unneeded parentheses around operands of
39138         `defined'.
39139
39140 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39141
39142         * lib/quotearg.h: Allow multiple inclusion by surrounding with
39143         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
39144         so that we can be included first.
39145         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
39146         * lib/quotearg.c: Include quotearg.h immediately after config.h.
39147         No need to include stddef.h or sys/types.h any more.
39148         Surround local include files with "", not "<>".
39149         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39150         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39151         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39152         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39153         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39154         (ISPRINT): Remove; no longer needed now that we assume C89.
39155
39156         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39157         Preserve errno.
39158
39159         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39160         quotearg_char): Use SIZE_MAX rather than
39161         (size_t) -1 when we are talking about "infinity".
39162
39163         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39164
39165 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39166
39167         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39168         hint that one should use `if (! x) abort ();' rather than `assert
39169         (x);', and anyway it's one less thing to worry about configuring.
39170         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39171         hash_rehash, hash_insert): Use abort rather than assert.
39172
39173 2002-11-22  Bruno Haible  <bruno@clisp.org>
39174
39175         * lib/safe-read.h: Assume C89. Add comments.
39176         (safe_read): Change return type to size_t.
39177         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39178         byte counts > SSIZE_MAX correctly.
39179         * lib/safe-write.h: New file.
39180         * lib/safe-write.c: New file.
39181         * lib/full-read.h: New file.
39182         * lib/full-read.c: New file.
39183         * lib/full-write.h: Assume C89. Add comments.
39184         * lib/full-write.c: Include safe-write.h.
39185         (full_write): Rewritten to use safe_write.
39186         Suggested by Jim Meyering and Paul Eggert.
39187
39188 2002-11-21  Jim Meyering  <jim@meyering.net>
39189
39190         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39191
39192         Merge in changes from the coreutils.
39193
39194         2002-09-25  Paul Eggert  <eggert@twinsun.com>
39195         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39196         <stdint.h>.
39197         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39198         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39199         int.  Work more efficiently if X is the same width as uintmax_t.
39200         Do not compare X to -1, to avoid bogus compiler warning.
39201         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39202         Don't assume that f_frsize and f_bsize are the same type.
39203
39204         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39205         warning on FreeBSD.
39206
39207         * lib/makepath.c (make_path): Restore umask *before* creating the final
39208         component.
39209         (make_path): Minor reformatting.
39210
39211         * lib/xmalloc.c: Adjust to work with new autoconf macros,
39212         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39213         HAVE_MALLOC/HAVE_REALLOC.
39214
39215         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39216         dummy ones.  At least on GNU/Linux systems, `auto' means something
39217         else.
39218         From Michael Stone.
39219
39220 2002-11-21  Bruno Haible  <bruno@clisp.org>
39221
39222         Remove case insensitive option matching.
39223         * lib/argmatch.h (argcasematch): Remove declaration.
39224         (ARGCASEMATCH): Remove macro.
39225         (__xargmatch_internal): Remove case_sensitive argument.
39226         (XARGMATCH): Update.
39227         (XARGCASEMATCH): Remove macro.
39228         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39229         case_sensitive argument.
39230         (argcasematch): Remove function.
39231         (__xargmatch_internal): Remove case_sensitive argument.
39232         (main): Use XARGMATCH instead of XARGCASEMATCH.
39233
39234         * lib/xmalloc.c: Change compile-time error message. Add comment about
39235         required autoconf version.
39236
39237 2002-11-20  Paul Eggert  <eggert@twinsun.com>
39238
39239         Merge argmatch cleanups from Bison.  Assume C89.
39240
39241         * lib/argmatch.c: Include config.h here, not in argmatch.h.
39242         Include stdlib.h, for EXIT_FAILURE.
39243         Always include <string.h>, since we assume C89.
39244         (EXIT_FAILURE): Remove pre-C89 bug workaround.
39245         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39246         Include <stddef.h> instead, since it's all we need for size_t.
39247         (PARAMS): Remove.  All uses removed.
39248         (ARRAY_CARDINALITY): Do not bother to #undef.
39249         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39250         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39251         Remove unnecessary parentheses.
39252         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39253         Insert necessary parentheses.
39254         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39255         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39256
39257 2002-11-19  Bruno Haible  <bruno@clisp.org>
39258
39259         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39260         * lib/mbswidth.h: Include <stddef.h>, for size_t.
39261
39262         * lib/mbswidth.h (PARAMS): Remove macro.
39263         (mbswidth, mbsnwidth): Use ANSI C function declarations.
39264         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39265
39266         * lib/gcd.h (PARAMS): Remove macro.
39267         (gcd): Use ANSI C function declarations.
39268         * lib/gcd.c (gcd): Likewise.
39269
39270 2002-11-15  Bruno Haible  <bruno@clisp.org>
39271
39272         * lib/strcspn.c: Include <stddef.h>.
39273         (strcspn): Use ANSI C function declaration. Change return type to
39274         size_t. Use NULL.
39275         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39276         (strpbrk): Use NULL.
39277         * lib/strpbrk.h (PARAMS): Remove macro.
39278         (strpbrk): Use ANSI C function declaration.
39279         * lib/strstr.c: Don't include <sys/types.h>.
39280         * lib/strstr.h (PARAMS): Remove macro.
39281         (strstr): Use ANSI C function declarations.
39282
39283 2002-11-14  Karl Berry  <karl@gnu.org>
39284
39285         * config/mkinstalldirs: `do' on separate line, instead of
39286         `for var; do'.
39287
39288 2002-11-06  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39291         * lib/gcd.c (gcd): Likewise.
39292
39293 2002-11-05  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/gcd.h: New file, from gettext-0.11.5.
39296         * lib/gcd.c: New file, from gettext-0.11.5.
39297
39298 2002-11-05  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39301         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39302         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39303         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39304
39305         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39306         <libintl.h>.
39307         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39308         <libintl.h>.
39309
39310         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39311         * lib/human.c: Include gettext.h instead of <libintl.h>.
39312         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39313         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39314         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39315         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39316         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39317         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39318         (textdomain): Remove definition.
39319         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39320
39321         * lib/long-options.c: Remove include of <libintl.h> and definition of
39322         _.
39323         * lib/same.c: Remove include of <libintl.h> and definition of _.
39324
39325 2002-11-04  Owen Taylor  <otaylor@redhat.com>
39326
39327         * lib/config.charset: A few additions for Solaris.
39328
39329 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39330
39331         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
39332         * lib/localcharset.c (locale_charset): Declare as extern "C".
39333
39334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39335
39336         * lib/config.charset: msdos in uk_UA uses CP1125.
39337
39338 2002-11-04  Bruno Haible  <bruno@clisp.org>
39339
39340         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
39341         * lib/strcase.h: New file, from GNU gettext-0.11.5.
39342         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
39343         * lib/strstr.h: New file, from GNU gettext-0.11.5.
39344         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
39345
39346 2002-11-04  Bruno Haible  <bruno@clisp.org>
39347
39348         * lib/localcharset.c (locale_charset): Don't return an empty string.
39349
39350 2002-11-04  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
39353         aliases.
39354
39355 2002-11-04  Bruno Haible  <bruno@clisp.org>
39356
39357         * lib/config.charset: Update for newest glibc. Add canonical names
39358         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
39359
39360 2002-11-04  Bruno Haible  <bruno@clisp.org>
39361
39362         * lib/config.charset: Add support for NetBSD.
39363
39364 2002-11-04  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39367
39368 2002-11-01  Bruno Haible  <bruno@clisp.org>
39369
39370         * configure.in: Add AC_CONFIG_AUX_DIR call.
39371         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39372         test/Makefile.
39373         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39374
39375 2002-09-28  Karl Berry  <karl@gnu.org>
39376
39377         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39378         installed automake until the next release, since changes have been
39379         made.
39380
39381 2002-09-25  Karl Berry  <karl@gnu.org>
39382
39383         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39384         * lib/getopt*: copy from libc/posix.
39385         * lib/gettext.h: copy from gettext.
39386         * lib/.cppi-disable: add strdup.c, gettext.h.
39387
39388 2002-09-25  Karl Berry  <karl@gnu.org>
39389
39390         * config/srclist.txt: enable gettext.h check.
39391         * config/config.{guess,sub}: update from prep.
39392         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39393                 from automake 1.6.3.
39394         See srclist*.
39395
39396 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39397
39398         * regex.c (PATFETCH): Remove the translating fetch.
39399         (PATFETCH_RAW): Rename to PATFETCH.
39400         (set_image_of_range): New fun.
39401         (SET_RANGE_TABLE_WORK_AREA): Use it.
39402         (regex_compile): Don't translate the pattern chars so eagerly.
39403         Only do it when inserting an `exactn' bytecode or when handling
39404         a char-range.
39405         (mutually_exclusive_p): Avoid empty statement.
39406
39407 2002-07-06  Jim Meyering  <meyering@lucent.com>
39408
39409         * m4/README: Don't mention Makefile.am.in.
39410         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39411
39412 2002-07-01  Jim Meyering  <meyering@lucent.com>
39413
39414         * lib/c-stack.c: Include sys/time.h.
39415         From Volker Borchert.
39416
39417 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39418
39419         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
39420
39421 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39422
39423         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
39424         New macro.  Use it uniformly instead of
39425         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
39426         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
39427         reported by Vin Shelton.
39428
39429 2002-06-22  Paul Eggert  <eggert@twinsun.com>
39430
39431         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
39432         Do not assume SA_SIGINFO behavior.
39433         Bug reported by Jim Meyering on NetBSD 1.5.2.
39434
39435 2002-06-22  Jim Meyering  <meyering@lucent.com>
39436
39437         * m4/c-stack.m4: New file, from diffutils-2.8.2.
39438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
39439
39440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
39441         now that configure.ac uses AC_GNU_SOURCE.
39442         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39443         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39444
39445         Update to latest tools.  Suggestions from Paul Eggert.
39446         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39447         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39448         * m4/fnmatch.m4: Likewise.
39449         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39450         to AC_HEADER_STDBOOL
39451
39452 2002-06-22  Jim Meyering  <meyering@lucent.com>
39453
39454         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39455         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39456
39457 2002-06-22  Jim Meyering  <meyering@lucent.com>
39458
39459         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39460
39461         * lib/exitfail.c, exitfail.h: Likewise.
39462         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39463
39464         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39465         of fnmatch.h.
39466         (EXTRA_DIST): Add fnmatch_loop.c.
39467         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39468
39469         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39470         * lib/fnmatch.c: Update from diffutils-2.8.2.
39471         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39472         * lib/fnmatch.h: Remove file.
39473
39474 2002-06-21  Jim Meyering  <meyering@lucent.com>
39475
39476         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39477         * m4/mbrtowc.m4: Likewise.
39478
39479         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39480         * m4/mbswidth.m4: Reflect name change:
39481         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39483
39484         * m4/lib-link.m4: Update from gettext-0.11.2.
39485         * m4/gettext.m4: Likewise.
39486
39487         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39488         From Alfred M. Szmidt.
39489
39490 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39491
39492         * lib/file-type.h: Report an error if neither S_ISREG nor
39493         S_IFREG is defined, instead of using a test specific to glibc
39494         2.2.  This should be safe, since POSIX requires S_ISREG and
39495         Unix Version 7 had S_IFREG.  We don't need to check for
39496         <sys/types.h> since we don't use any symbols that it defines.
39497
39498 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39499
39500         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39501         $@-t, so that each temporary file name is unique and valid in the first
39502         8 characters, for operation under DOS.
39503
39504 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39505
39506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39507
39508 2002-06-15  Jim Meyering  <meyering@lucent.com>
39509
39510         Work even with DJGPP 2.03, which lacks support for symlinks.
39511         From Richard Dawe.
39512         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39513         is defined.
39514         * lib/lchown.c (S_ISLNK): Likewise.
39515
39516 2002-06-15  Jim Meyering  <meyering@lucent.com>
39517
39518         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39519         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39520         have been included before this file.
39521
39522 2002-06-14  Jim Meyering  <meyering@lucent.com>
39523
39524         * lib/file-type.h: Use the version from diffutils-2.8.2.
39525         * lib/file-type.c: Likewise.
39526
39527 2002-06-07  Jim Meyering  <meyering@lucent.com>
39528
39529         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39530         They're needed at least for NetBSD 1.5.2.
39531         ($statxfs_includes): Include those same headers.
39532         ($statxfs_includes): Include sys/vfs.h if available.
39533         ($statxfs_includes): Likewise for sys/statvfs.h.
39534         Check for the following members in both structs statfs and statvfs:
39535         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39536
39537 2002-06-01  Jim Meyering  <meyering@lucent.com>
39538
39539         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39540         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39541
39542 2002-05-28  Jim Meyering  <meyering@lucent.com>
39543
39544         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39545         Reported by Volker Borchert.
39546
39547 2002-05-27  Jim Meyering  <meyering@lucent.com>
39548
39549         Fix a problem seen only on nonconforming systems whereby ls.c's
39550         use of localtime, and then of gettimeofday would cause trouble:
39551         the localtime call used to initialize rpl_gettimeofday's save
39552         mechanism would clobber ls's current local time information so
39553         that in any long listing the first file would always be listed
39554         with date 1970-01-01.  Analysis by Volker Borchert.
39555
39556         * lib/gettimeofday.c (localtime): Undefine.
39557         (rpl_localtime): New function.
39558
39559 2002-05-27  Jim Meyering  <meyering@lucent.com>
39560
39561         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39562         localtime.
39563
39564         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39565         use the replacement function; it wouldn't resolve at link time.
39566         Reported by Volker Borchert.
39567
39568 2002-05-22  Jim Meyering  <meyering@lucent.com>
39569
39570         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39571         file-type.h.
39572         * lib/file-type.h: New file.
39573         * lib/file-type.c (file_type): New file/function.  Extracted from
39574         diffutils.
39575
39576 2002-04-30  Jim Meyering  <meyering@lucent.com>
39577
39578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39579
39580 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39581
39582         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39583
39584 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39585
39586         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39587         Do not check for alloca.h (no longer used) or stdbool.h (was never
39588         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39589
39590 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39591
39592         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39593
39594 2002-04-29  Jim Meyering  <meyering@lucent.com>
39595
39596         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39597         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39598         Use AC_FUNC_STRNLEN here instead.
39599
39600         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39601         With autoconf-2.53a, it's part of AC_PROG_CC.
39602
39603 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39604
39605         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39607
39608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39609
39610         * lib/sig2str.h, lib/sig2str.c: New files.
39611         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39612
39613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39614
39615         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39616         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39617         of 127, since 64 is the largest conceivable number for ancient
39618         nonstandard hosts.
39619         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39620
39621 2002-04-28  Jim Meyering  <meyering@lucent.com>
39622
39623         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39624
39625 2002-04-24  Jim Meyering  <meyering@lucent.com>
39626
39627         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39628         (jm_PREREQ): Use it.
39629
39630         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39631         mach/mach.h fcntl.h.
39632         Check for this function: setlocale.
39633
39634 2002-04-24  Jim Meyering  <meyering@lucent.com>
39635
39636         * lib/gettext.h: New file, from Gettext.
39637         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39638         (libfetish_a_SOURCES): Add gettext.h.
39639
39640 2002-04-16  Jim Meyering  <meyering@lucent.com>
39641
39642         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39643         ut_pid, ut_id, ut_exit.
39644
39645 2002-04-16  Jim Meyering  <meyering@lucent.com>
39646
39647         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39648         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39649         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39650
39651 2002-04-12  Jim Meyering  <meyering@lucent.com>
39652
39653         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39654         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39655         existence of the getmntinfo function.  Needed for Darwin 5.3.
39656
39657         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39658         This is necessary at least on Darwin 5.3.
39659
39660         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39661         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39662         strnlen.o in the library, and that makes some versions of ranlib
39663         object.
39664
39665 2002-04-12  Jim Meyering  <meyering@lucent.com>
39666
39667         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39668
39669 2002-04-09  Jim Meyering  <meyering@lucent.com>
39670
39671         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39672         to be more precise.  Rather than saying we're checking whether the
39673         function `works', say what we're testing.
39674         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39675         Reported by Bruno Haible.
39676
39677 2002-03-10  Jim Meyering  <meyering@lucent.com>
39678
39679         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39680         Suggestion from Santiago Vila.
39681
39682 2002-03-08  Jim Meyering  <meyering@lucent.com>
39683
39684         * lib/rename.c: Mention that this wrapper is needed also on
39685         mips-dec-ultrix4.4 systems.
39686
39687 2002-03-02  Jim Meyering  <meyering@lucent.com>
39688
39689         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39690         not HAVE_CLOCK_SETTIME.
39691
39692 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39693
39694         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39695         Check for clock_settime.
39696
39697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39698
39699         * lib/nanosleep.h: Rename to....
39700         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39701
39702         * lib/gettime.c: New file.
39703         * lib/settime.c: New file.
39704         * lib/stime.c: Remove.
39705
39706         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39707         timespec.h.  Remove nanosleep.h.
39708
39709 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39710
39711         * m4/acl.m4: New file.
39712         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39713         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39714
39715 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39716
39717         * lib/acl.c, lib/acl.h: New files.
39718         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39719
39720 2002-02-24  Jim Meyering  <meyering@lucent.com>
39721
39722         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39723         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39724         cause trouble.  Reported by Nelson Beebe.
39725
39726 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39727
39728         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39729         compilers that don't know that xalloc_die never returns.
39730
39731 2002-02-20  Jim Meyering  <meyering@lucent.com>
39732
39733         * lib/getdate.c: Regenerate using bison-1.33.
39734
39735 2002-02-17  Jim Meyering  <meyering@lucent.com>
39736
39737         * config/config.guess (main): Don't use `head -1'; it's no longer
39738         portable. Use `sed 1q' instead.
39739
39740 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39741
39742         * m4/codeset.m4: Upgrade to gettext-0.11.
39743         * m4/gettext.m4: Upgrade to gettext-0.11.
39744         * m4/glibc21.m4: Upgrade to gettext-0.11.
39745         * m4/iconv.m4: Upgrade to gettext-0.11.
39746         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39747         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39748         * m4/lib-ld.m4: New file, from gettext-0.11.
39749         * m4/lib-link.m4: New file, from gettext-0.11.
39750         * m4/lib-prefix.m4: New file, from gettext-0.11.
39751         * m4/progtest.m4: Upgrade to gettext-0.11.
39752
39753 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39754
39755         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39756         (jm_PREREQ): Use it.
39757
39758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39759
39760         * lib/posixver.c, lib/posixver.h: New files.
39761         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39762
39763 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39764             Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39767         (fwrite_success_callback): New declaration.
39768         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39769         print_unicode_char. Call failure callback instead of error.
39770         (fwrite_success_callback): New function.
39771         (exit_failure_callback): New function.
39772         (fallback_failure_callback): New function.
39773         (print_unicode_char): Call unicode_to_mb.
39774
39775 2002-01-26  Jim Meyering  <meyering@lucent.com>
39776
39777         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39778         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39779
39780 2002-01-26  Jim Meyering  <meyering@lucent.com>
39781
39782         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39783
39784 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39785
39786         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39787
39788 2002-01-22  Jim Meyering  <meyering@lucent.com>
39789
39790         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39791         Otherwise, some versions of automake would omit the rule that makes
39792         Makefile from Makefile.in.
39793
39794 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39795
39796         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39797         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39798         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39799         (memcoll): Set errno to zero if there is no error.
39800
39801         * lib/quotearg.c (quotearg_buffer_restyled):
39802         Fix bug with quoting buffers containing NUL when backslashing escapes.
39803         This bug was exposed by the other changes in this patch.
39804         (quotearg_n_options): New arg ARGSIZE.
39805         All callers changed.
39806         (quoting_options_from_style): New function.
39807         (quotearg_n_style): Use it.
39808         (quotearg_n_style_mem): New function.
39809
39810         * lib/quotearg.h (quotearg_n_style_mem): New function.
39811
39812 2002-01-19  Jim Meyering  <meyering@lucent.com>
39813
39814         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39815         Remove useless quotes: DF_PROG="df".
39816         * m4/strnlen.m4: New file.
39817
39818 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39819
39820         * lib/backupfile.c (ISDIGIT): Comment fix.
39821         * lib/getdate.y (ISDIGIT): Likewise.
39822         * lib/posixtm.c (ISDIGIT, year): Likewise.
39823         * lib/strverscmp.c (ISDIGIT): Likewise.
39824         * lib/userspec.c (ISDIGIT): Likewise.
39825
39826 2002-01-16  Jim Meyering  <meyering@lucent.com>
39827
39828         * lib/getdate.y: Add three semicolons, each just before a closing
39829         brace. Bison (as of version 1.31) no longer papers over that mistake.
39830
39831 2002-01-05  Jim Meyering  <meyering@lucent.com>
39832
39833         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39834
39835 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39836
39837         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39838         not silently exit merely because the output buffer happens to
39839         have nothing pending.
39840
39841 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39842
39843         See the big note in ../ChangeLog.
39844         * lib/human.c (suffixes): Prefer K to k for 1024.
39845         (generate_suffix_backwards): New function.
39846         (human_readable_inexact): Use it.
39847         * lib/xstrtol.c (__xstrtol): If there is no number but there
39848         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39849         Accept 'K' as well as 'k'.
39850
39851 2001-12-15  Jim Meyering  <meyering@lucent.com>
39852
39853         * lib/regex.h (__restrict_arr): Update from libc.
39854
39855         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39856         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39857         (STREQ): Define.
39858
39859 2001-12-14  Jim Meyering  <meyering@lucent.com>
39860
39861         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39862         Suggestion from Bruno Haible.
39863
39864 2001-12-10  Jim Meyering  <meyering@lucent.com>
39865
39866         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39867         xrealloc, Instead, include "xalloc.h".
39868         (initbuffer): Don't cast xmalloc return value to char*.
39869         (readline): Reword comment.
39870         Don't cast xrealloc return value to char*
39871         Return NULL, not 0.
39872
39873 2001-12-09  Jim Meyering  <meyering@lucent.com>
39874
39875         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39876         about `signed and unsigned type in conditional expression'.
39877         * lib/posixtm.c (posix_time_parse): Likewise.
39878
39879         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39880
39881         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39882         to avoid a pedantic warning.
39883
39884         * lib/getstr.c: Don't include assert.h.
39885         (getstr): Remove warning-evoking assertions.
39886         Return -1 if offset parameter is out of bounds.
39887         Change the type of a local from int to size_t.
39888
39889         * lib/strftime.c (my_strftime_localtime_r): Include this function
39890         definition in the `#if ! HAVE_TM_GMTOFF' block.
39891
39892         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39893         Include xalloc.h instead.
39894
39895 2001-12-02  Jim Meyering  <meyering@lucent.com>
39896
39897         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39898         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39899         included.
39900
39901         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39902         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39903
39904 2001-11-30  Akim Demaille  <akim@epita.fr>
39905
39906         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39907         before being defined.
39908
39909 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39910
39911         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39912         First arg is int, not unsigned.
39913         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39914         (SIZE_MAX, UINT_MAX): New macros.
39915         (quotearg_n_options): Abort if N is negative.
39916         Avoid overflow check on hosts where size_t is 64 bits and int
39917         is 32 bits, as overflow is impossible there.
39918         Fix off-by-one typo that caused unnecessary reallocation.
39919
39920 2001-11-27  Jim Meyering  <meyering@lucent.com>
39921
39922         * lib/tempname.c: Merge with version from libc.
39923         * lib/regex.c: Likewise.
39924
39925         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39926         systems for which STDC_HEADERS is 0, it was not included, resulting in
39927         a warning about an integer-to-pointer conversion problem with getenv.
39928         Reported by Volker Borchert.
39929
39930 2001-11-26  Jim Meyering  <meyering@lucent.com>
39931
39932         * lib/gtod.h: Remove file.
39933         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39934         * lib/gettimeofday.c: Don't include gtod.h.
39935         (GTOD_init): Remove function.
39936         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39937         Suggestion from Volker Borchert.
39938
39939 2001-11-23  Jim Meyering  <meyering@lucent.com>
39940
39941         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39942         it.
39943         * lib/hash.c (struct hash_table): Define it here instead.
39944
39945 2001-11-22  Jim Meyering  <meyering@lucent.com>
39946
39947         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39948
39949 2001-11-20  Jim Meyering  <meyering@lucent.com>
39950
39951         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39952         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39953
39954 2001-11-19  Jim Meyering  <meyering@lucent.com>
39955
39956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39957         directory.  Use "conftestXXXXXX" as the template.
39958         Suggestion from Paul Eggert.
39959
39960         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39961         immediately, so the test doesn't mistakenly hit the max-open-files
39962         limit.
39963
39964 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39965
39966         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39967         (TEMPORARIES): New macro.
39968         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39969         removes an artificial limitation (e.g. HP-UX 10.20, where
39970         TMP_MAX is 17576).
39971
39972 2001-11-18  Jim Meyering  <meyering@lucent.com>
39973
39974         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39975
39976 2001-11-18  Jim Meyering  <meyering@lucent.com>
39977
39978         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39979         on SunOS 4.
39980
39981         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39982         files will be created before anything else.
39983
39984 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39985
39986         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39987         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39988
39989 2001-11-17  Jim Meyering  <meyering@lucent.com>
39990
39991         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39992         Prompted by a report from Bob Proulx.
39993
39994         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39995         Instead, require UTILS_FUNC_MKSTEMP.
39996
39997 2001-11-17  Jim Meyering  <meyering@lucent.com>
39998
39999         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40000         Now, that's done as part of AC_FUNC_STRTOD.
40001
40002 2001-11-17  Jim Meyering  <meyering@lucent.com>
40003
40004         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40005         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40006         rather than group writable.  Patch by Juan F. Codagnone.
40007
40008         * lib/readtokens.c: Remove explicit declarations of xmalloc and
40009         xrealloc, Instead, include "xalloc.h".
40010
40011         * lib/mountlist.c: Include unlocked-io.h after all system headers.
40012         Remove explicit declarations of xmalloc, xrealloc,
40013         and xstrdup.  Instead, include "xalloc.h".
40014
40015         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40016         unlocked-io.h.
40017         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40018         Likewise.
40019         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40020
40021         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40022         Reported by Padraig Brady.
40023
40024         * lib/mkstemp.c: #undef mkstemp.
40025         Include config.h.
40026         (rpl_mkstemp): Rename from mkstemp.
40027         Protoize.
40028
40029 2001-11-16  Jim Meyering  <meyering@lucent.com>
40030
40031         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40032         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40033         determine the amount of total physical memory, use pstat_getstatic.
40034         HPUX-11 doesn't define _SC_PHYS_PAGES.
40035         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40036         If sysconf couldn't be used to determine the amount of available
40037         physical memory, use both pstat_getstatic and pstat_getdynamic.
40038         Based on a patch from Bob Proulx.
40039
40040 2001-11-10  Jim Meyering  <meyering@lucent.com>
40041
40042         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40043         (jm_PREREQ): Use it.
40044
40045 2001-11-09  Jim Meyering  <meyering@lucent.com>
40046
40047         * m4/jm-macros.m4: Require autoconf-2.52f.
40048         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40049         Use these AC_-prefixed names, not the AM_-prefixed ones.
40050
40051         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
40052
40053 2001-11-05  Jim Meyering  <meyering@lucent.com>
40054
40055         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40056
40057 2001-11-04  Jim Meyering  <meyering@lucent.com>
40058
40059         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40060         $DEFS.
40061
40062 2001-11-03  Jim Meyering  <meyering@lucent.com>
40063
40064         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40065         of AC_DEFUN.
40066
40067         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40068         know the name of the variable in the macro definition.
40069
40070 2001-11-03  Jim Meyering  <meyering@lucent.com>
40071
40072         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40073         in argmatch_to_argument call.
40074
40075         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40076         argument.
40077
40078         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40079         e.g., a fault due to an attempt to free a NULL pointer.
40080
40081 2001-11-01  Jim Meyering  <meyering@lucent.com>
40082
40083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40084         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40085
40086 2001-11-01  Jim Meyering  <meyering@lucent.com>
40087
40088         * lib/dirfd.c, lib/dirfd.h: New files.
40089         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40090
40091         * lib/hash.c (hash_print) [TESTING]: Clean up.
40092
40093 2001-10-22  Paul Eggert  <eggert@twinsun.com>
40094
40095         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40096         to avoid a warning if -Wall.
40097
40098 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
40099
40100         * README: New file
40101         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40102         (per RMS's instructions, this is now the canonical source)
40103         * lgpl/, gpl/: New directories.
40104
40105 2001-10-21  Paul Eggert  <eggert@twinsun.com>
40106
40107         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40108
40109 2001-10-21  Jim Meyering  <meyering@lucent.com>
40110
40111         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
40112         this code would end up calling gettext even in packages built
40113         with --disable-nls.
40114         * lib/getopt.c (_): Likewise.
40115         * lib/regex.c (_): Likewise.
40116
40117 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40118
40119         * m4/error.m4 (jm_PREREQ_ERROR):
40120         Do not invoke AC_CHECK_FUNCS with strerror_r, as
40121         AC_FUNC_STRERROR_R does that.
40122         Check for strerror declaration.
40123
40124         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40125         are supposed to have them these days.
40126         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40127         Merge changes from latest Autoconf CVS.
40128         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40129         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40130         POSIX decided to standardize on the int flavor of strerror_r.
40131
40132 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40133
40134         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40135         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40136         Use strerror_r that is only a macro, even if it is not a function.
40137         (strerror): Check for HAVE_DECL_STRERROR before declaring.
40138         (private_strerror): Use prototypes, not old-style function definition.
40139         (print_errno_message): New function.
40140         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40141         char*-flavored one.
40142         (error_tail, error, error_at_line): Use it.
40143
40144 2001-10-11  Jim Meyering  <meyering@lucent.com>
40145
40146         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40147         and quote_n (1, ... to avoid clobbering a buffer.
40148
40149 2001-10-05  Jim Meyering  <meyering@lucent.com>
40150
40151         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40152         hash-pjw.h.
40153         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40154         * lib/hash-pjw.h: New file.
40155
40156 2001-09-30  Jim Meyering  <meyering@lucent.com>
40157
40158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40159         `struct fsstat' has the `f_fstypename' member.
40160         Use that to define FS_TYPE, which is now used to make
40161         the getfsstat link test tighter.
40162
40163 2001-09-30  Jim Meyering  <meyering@lucent.com>
40164
40165         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40166         Include <sys/ucred.h>, for Apple Darwin.
40167         Include sys/mount.h and sys/fs_types.h only if available.
40168         (FS_TYPE): Define.
40169         (read_filesystem_list): Use FS_TYPE.
40170
40171 2001-09-29  Paul Eggert  <eggert@twinsun.com>
40172
40173         * lib/exclude.c (excluded_filename): 0 -> false, since it's
40174         a boolean context.
40175
40176 2001-09-29  Jim Meyering  <meyering@lucent.com>
40177
40178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40179         [one-argument getmntent function]): Include stdio.h before mntent.h.
40180         SunOS 4.1.x needs it for the declaration of `FILE'.
40181         Patch by Volker Borchert.
40182
40183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40184         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40185         sys/fs_types.h, and make the link-test for getfsstat guard #include
40186         directives with appropriate #if HAVE_*_H tests so that we can
40187         detect getfsstat on Apple Darwin1.3.7 systems.
40188         Reported by Nelson Beebe.
40189         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40190
40191 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40192
40193         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40194         #defines strtoimax.  Also treat the other strto* functions
40195         like strtoimax.
40196
40197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40198         Check for strtoul and strtoumax,
40199         as those declarations are made even in the signed case.
40200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40201         Likewise, for strtol and strtoimax.
40202
40203 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40204
40205         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40206         #defines strtoimax.  Also treat the other strto* functions
40207         like strtoimax.
40208
40209         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40210         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40211         (strtoimax, strtoumax): Do not declare if already defined as a macro.
40212
40213 2001-09-26  Jim Meyering  <meyering@lucent.com>
40214
40215         Most macros in unlocked-io.h had the wrong number of arguments.
40216         * lib/gen-uio: New script.
40217         (USE_UNLOCKED_IO): Define to 1 if not already defined.
40218         * lib/unlocked-io.hin: Remove file.
40219         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40220         rather than trying to embed it here.
40221         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
40222         Reported by Padraig Brady.
40223
40224 2001-09-25  Volker Borchert  <bt@teknon.de>
40225
40226         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40227         `result'.
40228
40229 2001-09-24  Jim Meyering  <meyering@lucent.com>
40230
40231         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40232
40233 2001-09-23  Jim Meyering  <meyering@lucent.com>
40234
40235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40236         instead of the mere test for existence of mntent.h.  The latter
40237         would get a false-positive on AIX 3.4 systems.
40238         In the outer getmntent if-block, don't die if neither of the getmntent
40239         tests succeeds.  Instead, just fall through and continue with the
40240         remaining tests.
40241
40242 2001-09-23  Jim Meyering  <meyering@lucent.com>
40243
40244         * lib/mountlist.c: Remove useless parentheses in #if directives.
40245         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40246         the deprecated MOUNTED symbol is no longer defined in mntent.h.
40247
40248 2001-09-22  Jim Meyering  <meyering@lucent.com>
40249
40250         * m4/gettext.m4: New file.  From gettext.
40251         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40252         * m4/progtest.m4: Likewise
40253         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40254         * m4/glibc21.m4: Likewise.
40255
40256         * m4/libintl.m4: Remove.  No longer used.
40257
40258 2001-09-22  Jim Meyering  <meyering@lucent.com>
40259
40260         * lib/localcharset.c: Update from latest gettext.
40261         * lib/config.charset: Likewise.
40262
40263 2001-09-20  Jim Meyering  <meyering@lucent.com>
40264
40265         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40266         strtoimax.
40267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40268         strtoumax.
40269
40270 2001-09-20  Jim Meyering  <meyering@lucent.com>
40271
40272         * lib/xstrtol.c (strtoimax): Guard declaration with
40273         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40274         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40275         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40276         (strtoumax): Likewise, for completeness (it wasn't necessary).
40277
40278 2001-09-17  Paul Eggert  <eggert@twinsun.com>
40279
40280         * lib/strtoimax.c (HAVE_LONG_LONG):
40281         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40282         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40283         to work around bug in IBM C compiler.
40284
40285 2001-09-17  Jim Meyering  <meyering@lucent.com>
40286
40287         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40288         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40289         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40290         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40291         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40292         whenever the right hand side need not be expanded by the shell.
40293
40294 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40295
40296         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40297         library.  It's not correct, as some older glibcs are buggy.
40298         fnmatch wasn't fixed until glibc 2.2.
40299
40300         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40301         special shell magic here.
40302
40303 2001-09-16  Jim Meyering  <meyering@lucent.com>
40304
40305         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40306         * m4/jm-macros.m4: Require it.
40307
40308 2001-09-16  Jim Meyering  <meyering@lucent.com>
40309
40310         * lib/mkdir.c: New file.
40311
40312 2001-09-15  Jim Meyering  <meyering@lucent.com>
40313
40314         * m4/jm-macros.m4: Check for help2man.
40315
40316 2001-09-11  Jim Meyering  <meyering@lucent.com>
40317
40318         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40319         The body, by Paul Eggert, was moved here from configure.in.
40320         * m4/jm-macros.m4: Require UTILS_HOST_OS.
40321
40322 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40323
40324         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40325         (jm_PREREQ): Use it.
40326
40327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40328
40329         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
40330         Use ssize_t, not int, to store result of readlink.
40331         Check for ssize_t overflow as well as size_t overflow,
40332         as POSIX says the result of readlink is implementation-defined
40333         when ssize_t overflows.
40334         Remove unnecessary cast to char*.
40335         Use free+malloc instead of realloc, as the storage doesn't need
40336         to be preserved and it's clearer and can be more efficient that way.
40337         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
40338         * lib/xreadlink.h (xreadlink): Update prototype.
40339
40340 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40341
40342         * lib/xgetcwd.c: Revert some of the previous change; intead,
40343         fix the HAVE_GETCWD_NULL code to behave more like the
40344         !HAVE_GETCWD_NULL code used to.
40345
40346         Include "xalloc.h".
40347         (xgetcwd): Do not return NULL when memory is exhausted; instead,
40348         invoke xalloc_die.
40349
40350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40351
40352         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
40353         sys/param.h, as pathmax.h includes them.
40354
40355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40356
40357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
40358         (jm_PREREQ_XGETCWD): New macro.
40359
40360         * m4/getcwd.m4: New file.
40361
40362 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40363
40364         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
40365         like the HAVE_GETCWD_NULL code.
40366         Include pathmax.h if not HAVE_GETCWD.
40367         Do not include xalloc.h.
40368         (INITIAL_BUFFER_SIZE): New symbol.
40369         Do not use xmalloc / xrealloc, since the caller is responsible for
40370         handling errors.  Preserve errno around `free' during failure.
40371         Do not overrun buffer when using getwd.
40372
40373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40374
40375         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40376         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40377         getcwd (NULL, 0).
40378
40379 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40380
40381         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40382         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
40383         spotted by Jim Meyering.
40384
40385 2001-09-03  Jim Meyering  <meyering@lucent.com>
40386
40387         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40388         failure.
40389
40390 2001-09-02  Jim Meyering  <meyering@lucent.com>
40391
40392         * lib/error.c: Update from GNU libc.
40393
40394 2001-09-01  Jim Meyering  <meyering@lucent.com>
40395
40396         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40397         Used by df.
40398
40399 2001-09-01  Jim Meyering  <meyering@lucent.com>
40400
40401         * lib/xreadlink.c: New file.
40402         * lib/xreadlink.h: New file.
40403         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40404         xreadlink.h.
40405
40406         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40407         doesn't conflict with sparc Solaris 7's definition in
40408         /usr/include/sys/int_types.h.
40409
40410         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40411         files.
40412         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40413         and strncasecmp as r-values.  Unixware didn't have declarations.
40414
40415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40416
40417         * lib/xstrtol.h: Add copyright notice.
40418         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40419         LONGINT_INVALID_SUFFIX_CHAR.
40420
40421 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40422
40423         * lib/xstrtol.c (strtoimax): New decl.
40424
40425 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40426
40427         * lib/xgetcwd.c: Don't include pathmax.h.
40428         Include stdlib.h and unistd.h if available.
40429         Include xalloc.h.
40430         (xmalloc, xstrdup, free): Remove decls.
40431         (xgetcwd): Don't assume sizes fit in unsigned.
40432         Check for overflow when computing sizes.
40433         Simplify reallocation code.
40434
40435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40436
40437         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
40438         a directory's st_size can have an arbitrary value, so the old
40439         usage could waste an arbitrary amount of memory.  All uses
40440         changed.
40441         * lib/savedir.h: Update prototype.
40442
40443 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40444
40445         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40446
40447         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40448         old strtoimax.c.
40449
40450         Also, make the following further changes to make this file's
40451         configuration more similar to that of strtol.c:
40452         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40453         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40454         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40455         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40456         changed to signed values.
40457
40458         And make the following changes as well:
40459         Fix copyright notice, as 1999 was missing.
40460         (verify): New macro.
40461         (strtoimax): Check sizes at compile-time, not run-time.
40462         Prefer strtol to strtoll if both work.
40463         (main): Remove; it was not that useful and was a pain to maintain.
40464
40465         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40466
40467 2001-08-31  Jim Meyering  <meyering@lucent.com>
40468
40469         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40470         Use an initial, malloc'd, buffer of length 128 rather than
40471         a statically allocated one of length 1024.
40472
40473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40474
40475         Simplify code, partly by assuming autoconf 2.52 semantics.
40476
40477         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40478
40479         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40480         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40481         All uses removed.
40482         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40483         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40484         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40485         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40486         jm_AC_HEADER_INTTYPES_H.
40487         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40488
40489         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40490
40491         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40492         Quote first arg of AC_DEFUN.
40493         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40494         since they are needed to parse the include file even if we need
40495         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40497         but with opposite signedness.
40498
40499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40500
40501         Merge 'exclude' changes from tar 1.13.22.
40502         This fixes one or two unlikely storage allocation overflow bugs,
40503         but doesn't change user-visible behavior otherwise.
40504
40505 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40506
40507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40508         (jm_PREREQ_EXCLUDE): New macro.
40509
40510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40511
40512         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40513         tm to be declared.
40514
40515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40516
40517         * lib/hash.c: Remove '2001' from copyright notice.
40518
40519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40520
40521         * lib/full-write.h: New file.
40522         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40523         * lib/full-write.c: Correct credits, as cccp.c no longer
40524         exists and anyway it was so heavily changed from the old cccp
40525         code as to be unrecognizable.  Include full-write.h.
40526         (full_write) Return size_t, with short writes meaning failure.
40527         All callers changed.  This fixes a bug with large buffers
40528         on 64-bit hosts.
40529         * lib/utime.c: Include full-write.h.
40530
40531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40532
40533         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40534         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40535         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40536         Include if available.
40537         (<xalloc.h>): Include
40538         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40539         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40540         collide with FNM macros.
40541         (struct patopts): New struct.
40542         (struct exclude): Use it, as exclude patterns now come with options.
40543         (new_exclude): Support above changes.
40544         (new_exclude, add_exclude_file):
40545         Initial size must now be a power of two to simplify overflow checking.
40546         (free_exclude, fnmatch_no_wildcards): New function.
40547         (excluded_filename): No longer requires options arg, as the options
40548         are determined by add_exclude.  Now returns bool, not int.
40549         (excluded_filename, add_exclude):
40550         Add support for the fancy new exclusion options.
40551         (add_exclude, add_exclude_file): Now takes int options arg.
40552         Check for arithmetic overflow when computing sizes.
40553         (add_exclude_file): xrealloc might modify errno, so don't
40554         realloc until after errno might be used.
40555
40556         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40557         New macros.
40558         (free_exclude): New decl.
40559         (add_exclude, add_exclude_file): Now takes int options arg.
40560         (excluded_filename): No longer requires options arg, as the options
40561         are determined by add_exclude.  Now returns bool, not int.
40562
40563 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40564
40565         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40566
40567 2001-08-27  Jim Meyering  <meyering@lucent.com>
40568
40569         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40570
40571         * lib/version-etc.c (N_): Remove definition.
40572         Revert most of last change.
40573         Instead, simply don't mark the `Copyright...' string for translation.
40574         Based on advice from Paul Eggert.
40575
40576         * lib/strtoxmax.c: Tweak comment.
40577
40578 2001-08-26  Jim Meyering  <meyering@lucent.com>
40579
40580         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40581
40582         * m4/xstrtoimax.m4: New file.
40583         * m4/xstrtoumax.m4: Add comments explaining why we
40584         AC_REPLACE_FUNCS(strtol).
40585
40586 2001-08-26  Jim Meyering  <meyering@lucent.com>
40587
40588         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40589         of copyright with `%s' so translators don't get an untranslated
40590         message in 2002.
40591         (COPYRIGHT_YEAR): Define.
40592         (version_etc): Use fprintf rather than fputs.
40593         Suggestion from Ulrich Drepper.
40594
40595         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40596
40597         * lib/strtoll.c: New file, from GNU libc.
40598         * lib/xstrtoimax.c: New file.
40599
40600         * lib/xstrtol.h: Add xstrtoimax.
40601         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40602         * lib/strtoimax.c: New file.  Likewise, but first define
40603         STRTOUXMAX_SIGNED.
40604
40605         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40606         ...
40607         * lib/strtoxmax.c: ... then renamed to this.
40608
40609 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40610
40611         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40612         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40613         (jm_AC_TYPE_INTMAX_T): New macro.
40614         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40615
40616         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40617
40618         * m4/longlong.m4: Renamed from ulonglong.m4.
40619         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40620         * m4/uintmax_t.m4: Removed.
40621
40622 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40623
40624         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40625         Port to Solaris 8, where 'sed' requires a space after the 'r'
40626         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40627         Redirect output to $tmp just once.
40628
40629 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40630
40631         * lib/addext.c (<errno.h>): Include.
40632         (errno): Declare if not defined.
40633         (addext): Work correctly when pathconf returns -1 and leaves
40634         errno alone because there is no limit.  Also, work even if
40635         pathconf returns a value greater than SIZE_MAX.
40636
40637 2001-08-12  Jim Meyering  <meyering@lucent.com>
40638
40639         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40640         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40641         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40642         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40643         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40644         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40645         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40646         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40647         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40648         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40649         utime.m4, utimes.m4, xstrtoumax.m4:
40650         Quote the first argument in each use of AC_DEFUN.
40651
40652 2001-08-12  Jim Meyering  <meyering@lucent.com>
40653
40654         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40655         Simply `return getcwd (NULL, 0);'.
40656         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40657         Use 1300 as initial value for length, not PATH_MAX.
40658
40659         * lib/pathmax.h: Clean up cpp syntax.
40660
40661 2001-08-12  Jim Meyering  <meyering@lucent.com>
40662
40663         * lib/gettimeofday.c: New file.
40664         * lib/gtod.h: New file.
40665         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40666
40667 2001-08-05  Jim Meyering  <meyering@lucent.com>
40668
40669         * m4/jm-macros.m4: Require autoconf-2.52.
40670
40671 2001-08-04  Jim Meyering  <meyering@lucent.com>
40672
40673         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40674         stmt, to get in sync with glibc.
40675
40676 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40677
40678         The following changes are from gettext 0.10.39 as maintained by
40679         Bruno Haible.
40680
40681         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40682         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40683         with inverted sense.  All uses changed.
40684
40685         * lib/mbswidth.c: Don't include <limits.h>.
40686         Include <stdlib.h> and <string.h> unconditionally.
40687         (iswcntrl, mbsinit, ISCNTRL): New macros.
40688         (mbsnwidth): Use K&R style function declarations.
40689         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40690         can optimize it when MB_CUR_MAX == 1.
40691         The width of control characters is zero, not 1.
40692
40693 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40694
40695         The following changes are from gettext 0.10.39 as maintained by
40696         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40697
40698         * m4/codeset.m4: Upgrade to serial AM1.
40699         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40700         all uses changed.  Quote first arg of AC_DEFUN.
40701         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40702
40703         * m4/iconv.m4: Upgrade to serial AM2.
40704         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40705         Add --with-libconv-prefix.
40706         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40707         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40708         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40709         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40710         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40711
40712         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40713         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40714         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40715         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40716         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40717         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40718         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40719         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40720         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40721
40722         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40723         string.h any more.
40724
40725         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40726         not the default value.
40727
40728         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40729         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40730         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40731         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40732         Also check for iswcntrl, used for wcwidth fallback.
40733         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40734         to Autoconf 2.13.
40735
40736 2001-08-03  Jim Meyering  <meyering@lucent.com>
40737
40738         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40739         as it was in the original.  Reported by Paul Eggert.
40740
40741 2001-07-16  Jim Meyering  <meyering@lucent.com>
40742
40743         * m4/gettimeofday.m4: New file.
40744         Prompted by a report from Bernhard Baehr.
40745
40746 2001-07-15  Jim Meyering  <meyering@lucent.com>
40747
40748         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40749         stuff. Now it's in ../Makefile.cfg.
40750
40751 2001-07-15  Jim Meyering  <meyering@lucent.com>
40752
40753         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40754         (BUILT_SOURCES): Add unlocked-io.h.
40755         (io_functions): Define.
40756         (unlocked-io.h): New rule.
40757         (DISTCLEANFILES): Add unlocked-io.h.
40758         (all-local): Depend on unlocked-io.h, to ensure it is created.
40759
40760         * lib/unlocked-io.hin: New file
40761
40762         * lib/regex.c: Update from glibc.
40763
40764 2001-07-05  Jim Meyering  <meyering@lucent.com>
40765
40766         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40767         recommendation.
40768         (libfetish_a_SOURCES): Put all .h files here instead.
40769         Remove a thus-exposed (better checks in automake) duplicate and
40770         two unnecessary .h files.
40771
40772 2001-07-04  Jim Meyering  <meyering@lucent.com>
40773
40774         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40775         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40776         distcheck failure.
40777
40778 2001-07-02  Jim Meyering  <meyering@lucent.com>
40779
40780         The following changes were prompted by suggestions from Bruno Haible.
40781
40782         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40783         is now generated.
40784         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40785         definition of EXTRA_DIST.
40786         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40787         ensure that the generated file is created/updated whenever the list
40788         of $(unlocked_functions) is changed.
40789         (jm-glibc-io.m4): New rule.
40790         (unlocked-io.h): New rule -- currently unused.
40791
40792 2001-06-24  Jim Meyering  <meyering@lucent.com>
40793
40794         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40795         unmatched right bracket, rather than kludging it with an extra,
40796         falsely-matching quote in a comment.  Patch by Akim Demaille.
40797
40798 2001-06-11  Jim Meyering  <meyering@lucent.com>
40799
40800         * lib/regex.c: Update from GNU libc.
40801
40802 2001-05-27  Jim Meyering  <meyering@lucent.com>
40803
40804         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40805         Check for ut_type in struct utmp.
40806
40807 2001-05-27  Jim Meyering  <meyering@lucent.com>
40808
40809         * lib/readutmp.h (UT_TYPE): Define.
40810
40811 2001-05-24  Jim Meyering  <meyering@lucent.com>
40812
40813         * lib/argmatch.c: Include "quote.h".
40814         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40815         quote function.  Reported by Göran Uddeborg.
40816
40817 2001-05-22  Jim Meyering  <meyering@lucent.com>
40818
40819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40820         now that we use the package-supplied version unconditionally.
40821         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40822
40823 2001-05-21  Jim Meyering  <meyering@lucent.com>
40824
40825         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40826         shell syntax errors.
40827
40828 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40829
40830         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40831
40832 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40833
40834         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40835         Don't bother to check library strftime, since
40836         we'll be using our own my_strftime function anyway.
40837         Define my_strftime instead of strftime.
40838
40839 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40840
40841         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40842         which is not yet declared.
40843
40844 2001-05-15  Jim Meyering  <meyering@lucent.com>
40845
40846         * m4/regex.m4: Use proper quoting so brackets appear in the test
40847         program.
40848         Reported by, and with help from, Bruno Haible.
40849
40850 2001-05-13  Jim Meyering  <meyering@lucent.com>
40851
40852         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40853         undefined.
40854
40855 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40856
40857         dirname code cleanup.  base_name now behaves more compatibly
40858         with POSIX basename when given file names that have trailing
40859         slashes, and similarly for dir_name.  Add new primitives
40860         base_len and dir_len.  Put the directory-name-related decls
40861         into dirname.h.
40862
40863         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40864         * lib/backupfile.c (base_name): Likewise.
40865         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40866         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40867         * lib/makepath.c (strip_trailing_slashes): Likewise.
40868         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40869         ISSLASH): Likewise.
40870         * lib/rename.c (strip_trailing_slashes): Likewise.
40871         * lib/same.c (base_name): Likewise.
40872         * lib/stripslash.c (ISSLASH): Likewise.
40873
40874         * lib/addext.c: Include <dirname.h> after size_t is defined.
40875         * lib/backupfile.c: Likewise.
40876
40877         * lib/addext.c (addext): Use base_len to trim redundant
40878         trailing slashes instead of doing it ourselves.
40879         But do not trim the last slash if it is not redundant.
40880
40881         * lib/backupfile.c (find_backup_file_name,
40882         max_backup_version): Use base_len instead of rolling it ourselves.
40883         Handle the case of "" and (on DOS) "C:" correctly.
40884
40885         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40886         needed. Include <string.h>, <dirname.h>.
40887         (base_name): Allow file names ending in slashes, other than names
40888         that are all slashes.  In this case, return the basename followed
40889         by the slashes.  This is more general, and can be used in places
40890         where the original base_name purposely had an assertion failure.
40891         (base_len): New function.
40892
40893         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40894         Do not include <assert.h>; no longer needed.
40895         Include xalloc.h.
40896         (memrchr): Remove decl.
40897         (dir_name_r): Remove.
40898         (dir_len): Renamed from dirlen.  All callers changed.
40899         Rewrite in terms of base_name, for simplicity and consistency.
40900         (dir_name): Never return NULL.  All callers changed.
40901         Do not include <stdlib.h> in test program; no longer needed.
40902         return 0; is fine for test program.
40903
40904         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40905         New macros.
40906         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40907
40908         * lib/path-concat.c (path_concat): Use base_len to compute
40909         base length, not strlen; this means we cannot rely on memcpy
40910         to null-terminate.
40911
40912         * lib/same.c (STREQ): Remove.
40913         (same_name): Handle the case where the basename ends in trailing '/'.
40914
40915         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40916         a slash was stripped.  Do not strip the last slash after a
40917         file system prefix.
40918
40919 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40920
40921         * lib/Makefile.am (libfetish_a_SOURCES):
40922         Add strftime.c, since we now compile it on all hosts.
40923
40924         * lib/strftime.c (my_strftime):
40925         Define to nstrftime if emacs, but only if my_strftime is not defined.
40926         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40927         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40928         Add one more extra argument: a nanoseconds value.
40929         All uses changed.
40930         (ns): New macro.
40931         (my_strftime function): Add %N format.
40932         (emacs_strftimeu): Renamed from emacs_strftime,
40933         with extra ut argument.
40934
40935 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40936
40937         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40938
40939 2001-04-21  Jim Meyering  <meyering@lucent.com>
40940
40941         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40942         doesn't interfere.
40943
40944 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40945
40946         * m4/ftruncate.m4: Check for chsize.
40947         Link with ftruncate.o unconditionally if ftruncate is missing.
40948         This was required when cross-compiling to i586-mingw32msvc.
40949
40950 2001-04-08  Jim Meyering  <meyering@lucent.com>
40951
40952         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40953         recomputed; that's necessary when the offset spans a DST transition.
40954         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40955
40956 2001-04-02  Jim Meyering  <meyering@lucent.com>
40957
40958         * lib/regex.h, regex.c: Update from GNU libc.
40959
40960 2001-03-24  Jim Meyering  <meyering@lucent.com>
40961
40962         * m4/jm-macros.m4: Require autoconf-2.49d.
40963
40964 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40965
40966         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40967
40968 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40969
40970         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40971
40972 2001-03-17  Jim Meyering  <meyering@lucent.com>
40973
40974         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40975         now that the version in autoconf is equivalent.
40976         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40977
40978         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40979         Suggestion from Akim Demaille.
40980
40981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40982         (jm_PREREQ_TEMPNAME): New function.
40983
40984 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40985
40986         * lib/tempname.c (uint64_t): Define to uintmax_t if
40987         not defined, and if UINT64_MAX is not defined.
40988         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40989         Reported by John David Anglin.
40990
40991 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40992
40993         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40994         resolve alias if codeset is empty.
40995         * lib/config.charset (BeOS): Use wildcard syntax.
40996
40997 2001-03-13  Jim Meyering  <meyering@lucent.com>
40998
40999         * lib/path-concat.c (path_concat)
41000         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41001         concatenating e.g., `C:' and `foo'.
41002         From Bruno Haible.
41003
41004 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41005
41006         * lib/localcharset.c (locale_charset): Don't use
41007         setlocale(LC_CTYPE,NULL). Don't return NULL.
41008         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41009
41010 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41011
41012         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41013         support for DOS/DJGPP.
41014
41015 2001-03-01  Paul Eggert  <eggert@twinsun.com>
41016
41017         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41018         lacks mkstemp.  Compile our own tempname.c if we compile our own
41019         mkstemp.c, as mkstemp relies on tempname.
41020
41021 2001-03-01  Jim Meyering  <meyering@lucent.com>
41022
41023         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41024         AH_VERBATIM really does output its argument verbatim.
41025
41026 2001-02-28  Paul Eggert  <eggert@twinsun.com>
41027
41028         * lib/Makefile.am (libfetish_a_SOURCES):
41029         Add dup-safer.c, fopen-safer.c.
41030         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41031
41032         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41033         * lib/unistd-safer.h: New files.
41034
41035 2001-02-25  Paul Eggert  <eggert@twinsun.com>
41036
41037         The mkstemp replacement is taken from glibc 2.2.2, with some
41038         portability fixes for use outside glibc, as follows:
41039
41040         * lib/tempname.c (struct_stat64): New macro.
41041         (direxists, __gen_tempname): Use it.
41042         This avoids a portability problem with Solaris 8.
41043
41044         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41045         (<stddef.h>, <stdint.h>, <string.h>):
41046         Include only if STDC_HEADERS || _LIBC.
41047         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41048         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41049         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41050         (__set_errno): Define this macro if <errno.h> doesn't.
41051         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41052         Define these macros if <stdio.h> doesn't.
41053         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41054         Define these macros if <sys/stat.h>
41055         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41056         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41057         __xstat64): Define if not _LIBC.
41058         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41059         (__gen_tempname): Invoke gettimeofday only if
41060         HAVE_GETTIMEOFDAY || _LIBC;
41061         otherwise, fall back on plain "time".
41062         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41063
41064         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41065
41066         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41067
41068 2001-02-18  Paul Eggert  <eggert@twinsun.com>
41069
41070         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41071
41072 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41073
41074         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41075         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41076         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41078
41079 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41080
41081         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41082         Remove workaround macros for hosts that have mbrtowc but not
41083         mbstate_t, as we now insist on proper declarations for both
41084         before using mbrtowc.
41085
41086 2001-02-17  Jim Meyering  <meyering@lucent.com>
41087
41088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41089         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41090         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41091         UnixWare 7.1.1.
41092
41093         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41094         rather than AC_CACHE_VAL.
41095
41096 2001-02-17  Jim Meyering  <meyering@lucent.com>
41097
41098         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
41099         around included file name.
41100
41101         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41102
41103         * lib/strftime.c: Update from GNU libc (the only changes were to
41104         comments).
41105
41106 2001-02-17  Jim Meyering  <meyering@lucent.com>
41107
41108         * lib/regex.c: Update from libc.
41109
41110 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
41111
41112         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41113         clash.
41114
41115 2001-02-16  Paul Eggert  <eggert@twinsun.com>
41116
41117         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41118         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
41119         Reported by Mark Hounschell via Paul Eggert.
41120
41121 2001-02-07  Jim Meyering  <meyering@lucent.com>
41122
41123         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41124
41125 2001-02-05  Jim Meyering  <meyering@lucent.com>
41126
41127         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41128         it includes the patch required for `large file' support with at least
41129         HP-UX's 10.20 /bin/cc.
41130
41131 2001-02-03  Jim Meyering  <meyering@lucent.com>
41132
41133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41134         AS_IF, now that it works once again (mysteriously).
41135         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41136
41137 2001-01-30  Jim Meyering  <meyering@lucent.com>
41138
41139         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41140         * m4/chown.m4: Rename conftestchown to conftest.chown.
41141         * m4/rename.m4: s/conftestdir/conftest.d1/ and
41142         s/conftestdir2/conftest.d2/.
41143         * m4/utimes.m4: s/conftestdata/conftest.data/
41144         Inspired by Pavel Roskin's change in autoconf.
41145
41146 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
41147
41148         * lib/config.charset: Update for FreeBSD 4.2.
41149
41150 2001-01-27  Jim Meyering  <meyering@lucent.com>
41151
41152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41153         a use of AS_IF.
41154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41155
41156 2001-01-26  Jim Meyering  <meyering@lucent.com>
41157
41158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41159         quotearg.c includes it.
41160
41161 2001-01-26  Jim Meyering  <meyering@lucent.com>
41162
41163         * lib/quotearg.c: Include stddef.h.
41164         * lib/quote.c: Include stddef.h.
41165         Reported by Axel Kittenberger.
41166
41167         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41168         line in double quotes so that it evokes a better diagnostic.
41169         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41170         Reported by Axel Kittenberger.
41171
41172 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
41173
41174         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41175         as if it was a `charset'.
41176
41177 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41178
41179         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41180         has const.
41181
41182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41183
41184         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41185         to avoid a warning.  Add back 'const' to inptr.
41186
41187 2001-01-20  Jim Meyering  <meyering@lucent.com>
41188
41189         Be sure that headers are checked before used in code compiled
41190         for the type checks.
41191         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41192         In place of that, invoke jm_CHECK_ALL_TYPES.
41193         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41194         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41195         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41196         The check for ssize_t was mistakenly run before the test for unistd.h.
41197
41198         The configure-time check for stdbool.h was missing.
41199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41200         (jm_PREREQ_HASH): New function.
41201
41202 2001-01-17  Jim Meyering  <meyering@lucent.com>
41203
41204         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41205         for autoconf-2.49c.
41206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41207
41208 2001-01-16  Jim Meyering  <meyering@lucent.com>
41209
41210         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41211         From Bruno Haible.
41212
41213 2001-01-14  Jim Meyering  <meyering@lucent.com>
41214
41215         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41216         foo and bar.  Create conftestdir/ in the script, not in the C code.
41217         Remove directories in the script, not in the C code.
41218         Remove conftestdir{,2} before trying to create the directory.
41219         Make the entire configure script fail if the mkdir fails.
41220
41221 2001-01-14  Jim Meyering  <meyering@lucent.com>
41222
41223         * lib/rename.c: New file.  From Volker Borchert.
41224         Include stdlib.h, string.h or strings.h, and xalloc.h.
41225         Use strip_trailing_slashes rather than open-coding it.
41226
41227 2001-01-03  Paul Eggert  <eggert@twinsun.com>
41228
41229         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41230
41231 2001-01-03  Jim Meyering  <meyering@lucent.com>
41232
41233         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41234         of local `inptr' to avoid warning with some system declarations of
41235         iconv.
41236
41237 2001-01-02  Volker Borchert  <bt@teknon.de>
41238
41239         * m4/rename.m4: New file.
41240         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41241
41242 2001-01-01  Jim Meyering  <meyering@lucent.com>
41243
41244         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41245         even on systems with utmpx.h.  It's necessary for the declaration of
41246         utmp's ut_user member.  Reported by Andreas Jaeger.
41247
41248         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41249         available. They are required for the declarations of getgrgid and
41250         getpwuid resp.
41251         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41252         Reported by Andreas Jaeger.
41253
41254 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
41255
41256         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41257         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41258         so `make install' also works in VPATH builds.
41259
41260 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
41261
41262         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41263         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41264         can be used in subdirectories.
41265
41266 2000-12-29  Paul Eggert  <eggert@twinsun.com>
41267
41268         * lib/modechange.c: Do not assume that mode_t uses the
41269         traditional octal encoding.  E.g. "chmod 1 FOO" should set
41270         the other-execute bit of FOO even if S_IXOTH != 1.
41271
41272         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41273         WOTH, XOTH, ALLM): New macros.
41274         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41275          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41276         Use them.
41277         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41278         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41279         (mode_compile):
41280         No need to use uintmax_t; unsigned long is long enough.
41281         Don't bother to get suffix since we don't use it.
41282
41283 2000-12-26  Jim Meyering  <meyering@lucent.com>
41284
41285         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41286         better with autoheader.
41287
41288 2000-12-24  Jim Meyering  <meyering@lucent.com>
41289
41290         * lib/hash.c (is_prime): Return explicit boolean values.
41291         (hash_get_first): Return NULL to appease Irix5.6's 89.
41292         Reported by Nelson Beebe.
41293
41294 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41295
41296         * lib/localcharset.c (locale_charset): Add support for Win32.
41297
41298 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41299
41300         * lib/physmem.h, lib/physmem.c: New files.
41301
41302         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41303         (noinst_HEADERS): Add physmem.h.
41304
41305         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41306         't' for compatibility with Solaris 8 sort.
41307
41308 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41309
41310         * lib/config.charset: Add support for BeOS.
41311
41312 2000-12-17  Jim Meyering  <meyering@lucent.com>
41313
41314         * m4/dos.m4 (jm_AC_DOS): New file and macro.
41315         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41316
41317 2000-12-16  Jim Meyering  <meyering@lucent.com>
41318
41319         This bug had a serious impact on chown: `chown N:M FILE' (for integer
41320         N and M) would have treated it like `chown N:N FILE'.
41321
41322         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41323
41324 2000-12-16  Jim Meyering  <meyering@lucent.com>
41325
41326         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41327         SHELLS_FILE to a file name that's useful on djgpp systems.
41328         Include stdlib.h.
41329         (ADDITIONAL_DEFAULT_SHELLS): Define.
41330         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41331         Based mostly on a patch from Prashant TR.
41332
41333 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
41334
41335         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
41336         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
41337         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
41338
41339 2000-12-08  Andreas Schwab  <schwab@suse.de>
41340
41341         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
41342         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
41343
41344 2000-12-07  Jim Meyering  <meyering@lucent.com>
41345
41346         * lib/stripslash.c (ISSLASH): Define.
41347         (strip_trailing_slashes): Use ISSLASH rather than comparing against
41348         `/'.
41349         From Prashant TR.
41350
41351         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
41352         (dir_name_r): Declare this function as static.
41353         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
41354         manifest itself on a name containing a mix of slashes and
41355         backslashes.
41356         Make this function work with names starting with a DOS-style
41357         drive letter and colon prefix.
41358         (dir_name): Append `.' if necessary.
41359         Based mostly on patches from Prashant TR and Eli Zaretskii.
41360
41361         * lib/dirname.h (dir_name_r): Remove prototype.
41362
41363 2000-12-06  Paul Eggert  <eggert@twinsun.com>
41364
41365         * m4/off_t-format.m4: Remove this file.
41366         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41367
41368 2000-12-06  Jim Meyering  <meyering@lucent.com>
41369
41370         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41371         replacement strtoull, we may well need the replacement strtoul, too.
41372         Check for declarations of strtoul and strtoull.
41373         Check for strtol.  Mainly as a cue to cause automake to include
41374         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41375         Check for limits.h -- strtol.c needs it.
41376
41377 2000-12-05  Jim Meyering  <meyering@lucent.com>
41378
41379         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41380
41381 2000-12-04  Jim Meyering  <meyering@lucent.com>
41382
41383         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41384         Also include memory.h, stdlib.h, unistd.h if appropriate.
41385         Reported by Andreas Jaeger (conflicting declaration of malloc).
41386
41387 2000-12-02  Jim Meyering  <meyering@lucent.com>
41388
41389         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41390         * m4/jm-macros.m4 (jm_MACROS): require it.
41391
41392 2000-12-02  Jim Meyering  <meyering@lucent.com>
41393
41394         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41395
41396 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41397
41398         * lib/memrchr.c: Include <config.h> before any system include file.
41399
41400 2000-11-30  Jim Meyering  <meyering@lucent.com>
41401
41402         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41403
41404 2000-11-30  Jim Meyering  <meyering@lucent.com>
41405
41406         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41407
41408 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41409
41410         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41411
41412 2000-11-26  Jim Meyering  <meyering@lucent.com>
41413
41414         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41415
41416 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41417
41418         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41419         size of (size_t) -1; it's not portable.
41420
41421 2000-11-17  Jim Meyering  <meyering@lucent.com>
41422
41423         * lib/strstr.c: Update from GNU libc.
41424
41425 2000-11-17  Akim Demaille  <akim@epita.fr>
41426
41427         * lib/obstack.h: Formatting changes.
41428         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
41429         prevent type checking.
41430         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
41431         cast the value to (void *): assigning a `foo *' to a `void *'
41432         variable is valid.
41433         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
41434
41435 2000-11-16  Jim Meyering  <meyering@lucent.com>
41436
41437         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
41438
41439 2000-11-11  Jim Meyering  <meyering@lucent.com>
41440
41441         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41442
41443 2000-11-10  Jim Meyering  <meyering@lucent.com>
41444
41445         * lib/obstack.h: Update from GNU libc.
41446         * lib/obstack.c: Likewise.
41447
41448 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41449
41450         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41451
41452 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41453
41454         * lib/getusershell.c (setusershell): Use rewind rather than
41455         fseek/fseeko, to avoid configuration hassles with fseeko.
41456         Don't bother opening SHELLS_FILE if shellstream is NULL;
41457         it's not necessary.
41458
41459 2000-11-05  Jim Meyering  <meyering@lucent.com>
41460
41461         * lib/makepath.h (make_dir): Declare.
41462         * lib/makepath.c (make_dir): Remove `static' attribute.
41463         Tweak a comment.
41464
41465 2000-11-04  Jim Meyering  <meyering@lucent.com>
41466
41467         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41468
41469 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41470
41471         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41472         last one in a bucket, advance to the next bucket.
41473
41474 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41475
41476         * lib/fnmatch.c: Do not comment out all the code if we are using
41477         the GNU C library, because in some cases we are replacing buggy
41478         code in the GNU C library itself.
41479
41480 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41481
41482         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41483         (regex_compile): Catch bogus \(\1\).
41484
41485 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41486
41487         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41488         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41489         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41490
41491 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41492
41493         * lib/error.h, getline.h, modechange.h:
41494         Remove "2000" from Copyright line, as the file hasn't been
41495         changed this year other than in the copyright notice.
41496
41497         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41498         was changed this year.
41499
41500 2000-10-29  Jim Meyering  <meyering@lucent.com>
41501
41502         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41503         renaming.
41504         * m4/ls-mntd-fs.m4: Likewise
41505
41506 2000-10-29  Jim Meyering  <meyering@lucent.com>
41507
41508         * lib/xstat.in: Fix grammar in comment.
41509
41510 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41511
41512         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41513         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41514         doesn't define __restrict_arr.
41515
41516 2000-10-28  Jim Meyering  <meyering@lucent.com>
41517
41518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41519         (jm_PREREQ_MEMCHR): New function.
41520
41521 2000-10-28  Jim Meyering  <meyering@lucent.com>
41522
41523         * lib/memchr.c: Update from libc.
41524         Adjust for portability:
41525         [HAVE_STDLIB_H]: Include stdlib.h.
41526         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41527         Undef __memchr, too.
41528         [!weak_alias]: Define __memchr to memchr.
41529
41530         * lib/regex.c: Update from libc.
41531         * lib/regex.h: Likewise.
41532         * lib/getopt1.c: Likewise.
41533         * lib/memcmp.c: Likewise.
41534
41535         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41536         Avoid using fseek, when possible -- it's broken by design.
41537         Patch by Ulrich Drepper.
41538
41539 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41540
41541         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41542         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41543         Giving in to popular pressure to shut up the compiler with casts.
41544
41545 2000-10-26  Jim Meyering  <meyering@lucent.com>
41546
41547         * lib/strftime.c: Update from libc.
41548
41549 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41550
41551         * regex.c: More `unsigned char' -> `re_char' changes.
41552         Also change several `int' into `re_wchar_t'.
41553         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41554         (PUSH_FAILURE_POINTER): Don't cast any more.
41555         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41556         We want GCC to complain, since this piece of code makes
41557         re_match non-reentrant, which *should* be fixed.
41558         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41559         (EXTEND_BUFFER): Use RETALLOC.
41560         (SET_LIST_BIT): Don't cast.
41561         (re_wchar_t): New type.
41562         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41563         that those two functions will always properly return.
41564         (IMMEDIATE_QUIT_CHECK): Cast to void.
41565         (analyse_first): Use recursion rather than an explicit stack.
41566         (re_compile_fastmap): Can't fail anymore.
41567         (re_search_2): Don't check re_compile_fastmap for failure.
41568         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41569         Now also sets the new value (passed in a new argument).
41570         (re_match_2_internal): Use it.
41571         Also, use a new var `reg' of type size_t when looping through regs
41572         rather than reuse the inappropriate `mcnt'.
41573
41574 2000-10-25  Jim Meyering  <meyering@lucent.com>
41575
41576         * lib/obstack.c: Update from libc.
41577
41578 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41579
41580         * regex.c (regex_compile): Change the way of handling a range from
41581         a char less than 256 to a char not less than 256.
41582
41583 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41584
41585         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41586         NT-Emacs only.
41587         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41588         so that re_search functions only quit when callers expect them to.
41589
41590 2000-10-23  Jim Meyering  <meyering@lucent.com>
41591
41592         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41593         wrong.  That set_locale call must not have any side effects.
41594         From Paul Eggert.
41595
41596 2000-10-22  Jim Meyering  <meyering@lucent.com>
41597
41598         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41599         [CYCLIC]: Remove now-unused definition.
41600
41601         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41602         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41603         Suggestion from Ulrich Drepper.
41604
41605 2000-10-21  Jim Meyering  <meyering@lucent.com>
41606
41607         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41608         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41610
41611 2000-10-21  Jim Meyering  <meyering@lucent.com>
41612
41613         * lib/dirname.c (memrchr): Declare if necessary.
41614         (dir_name): Remove the restriction that there be no
41615         trailing slashes.  Now, this code skips past them, effectively
41616         ignoring them.
41617         [TEST_DIRNAME] (main): New unit tests.
41618
41619         * lib/memrchr.c: New file from GNU libc.
41620         Undef __memrchr, too.
41621         [!weak_alias]: Define __memrchr to memrchr.
41622         Guard weak_alias use with `#ifdef weak_alias'.
41623
41624 2000-10-21  Jim Meyering  <meyering@lucent.com>
41625
41626         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41627         (dir_name): Use dir_name_r.
41628         * lib/dirname.h (dir_name_r): Declare it.
41629
41630 2000-10-17  Jim Meyering  <meyering@lucent.com>
41631
41632         * lib/quote.h (PARAMS): Define and use.
41633         Reported by Akim Demaille.
41634
41635         * lib/getopt.c: Update from libc.
41636
41637 2000-10-16  Jim Meyering  <meyering@lucent.com>
41638
41639         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41640         setlocale.
41641         From Jan Fedak.
41642
41643 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41644
41645         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41646
41647 2000-09-25  Jim Meyering  <meyering@lucent.com>
41648
41649         * lib/md5.h (rol): Define (from GnuPG).
41650
41651         * lib/sha.c: Give credit (GnuPG) where due.
41652         (M): Use rol rather than open-coding it.
41653         Add a FIXME comment.
41654
41655 2000-09-21  Jim Meyering  <meyering@lucent.com>
41656
41657         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41658         Reported by Michael Stone.
41659
41660 2000-09-20  Jim Meyering  <meyering@lucent.com>
41661
41662         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41663         (noinst_HEADERS): Add sha.h.
41664         Based on code from Scott G. Miller and from GnuPG.
41665
41666 2000-09-18  Jim Meyering  <meyering@lucent.com>
41667
41668         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41669         LIBS. Otherwise, everyone ends up linking with -lelf for some
41670         configurations.
41671         Reported by Mike Stone.
41672
41673 2000-09-15  Jim Meyering  <meyering@lucent.com>
41674
41675         * lib/regex.c: Update from libc.
41676
41677 2000-09-10  Jim Meyering  <meyering@lucent.com>
41678
41679         * lib/getopt.c (_getopt_internal): Update from glibc.
41680
41681 2000-09-09  Jim Meyering  <meyering@lucent.com>
41682
41683         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41684         think it should be used as a general replacement for isascii.
41685         * lib/fnmatch.c: Likewise.
41686         * lib/mbswidth.c: Likewise
41687         * lib/regex.c: Likewise.
41688
41689         Don't use atoi.
41690         * lib/userspec.c: Include sys/param.h and limits.h.
41691         Include xstrtol.h.
41692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41693         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41694         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41695         UID, GID.  Check range.
41696
41697 2000-09-06  Jim Meyering  <meyering@lucent.com>
41698
41699         * lib/getopt.c (_getopt_internal): Update from glibc.
41700
41701 2000-08-30  Jim Meyering  <meyering@lucent.com>
41702
41703         * lib/strftime.c: Merge in changes from GNU libc.
41704
41705 2000-08-26  Jim Meyering  <meyering@lucent.com>
41706
41707         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41708         * m4/fpending.m4: New file.
41709
41710 2000-08-26  Jim Meyering  <meyering@lucent.com>
41711
41712         * lib/closeout.c: Include "__fpending.h".
41713         (close_stdout_status): Return right away if there's nothing to flush.
41714
41715         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41716         * lib/__fpending.c: New file.
41717         * lib/__fpending.h: New file.
41718
41719 2000-08-20  Jim Meyering  <meyering@lucent.com>
41720
41721         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41722         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41723         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41724
41725 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41726
41727         Improve fileutils installation on systems where running
41728         programs (like install) can't be unlinked.
41729         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41730         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41731
41732 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41733
41734         Standardize on "memory exhausted" instead of "Memory exhausted"
41735         or "virtual memory exhausted".
41736         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41737         "virtual memory exhausted".
41738         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41739         our own message.
41740         * lib/userspec.c (parse_user_spec): Likewise.
41741         * lib/bumpalloc.h: comment fix
41742         * lib/same.c, userspec.c: Include xalloc.h.
41743
41744         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41745         not char *const and pointing to a constant array.
41746         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41747         (xrealloc): Comment fix.
41748
41749         * lib/userspec.c (parse_user_spec):
41750         Don't translate a message until just before returning,
41751         to avoid unnecessary translation.
41752
41753 2000-08-07  Jim Meyering  <meyering@lucent.com>
41754
41755         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41756         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41757         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41758         getgroups.c, gethostname.c, getopt.h, group-member.c,
41759         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41760         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41761         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41762         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41763         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41764         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41765         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41766         yesno.c: Back out Copyright date changes for each file with no change
41767         this year.  This eases coordination with other programs using the same
41768         source code modules.  From Paul Eggert.
41769
41770 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41771
41772         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41773         not char, for compatibility with glibc 2.1.3 strftime.c.
41774
41775 2000-08-03  Greg McGary  <greg@mcgary.org>
41776
41777         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41778         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41779         (EXTEND_BUFFER): Use them.
41780
41781 2000-08-01  Jim Meyering  <meyering@lucent.com>
41782
41783         * lib/dirname.c (ISSLASH): Define.
41784         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41785         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41786         both `\' and `/' may be use as path separators.
41787         Based on a patch from Prashant TR.
41788
41789 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41790
41791         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41792         slot vector a constant, since it might get modified.
41793
41794 2000-07-31  Jim Meyering  <meyering@lucent.com>
41795
41796         * lib/xmalloc.c: Use `virtual memory exhausted', not
41797         `Memory exhausted'.
41798         * lib/obstack.c (print_and_abort): Likewise.
41799
41800 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41801
41802         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41803         buffer, so that the caller can always quote one small
41804         component of a "memory exhausted" message in slot 0.
41805         From a suggestion by Jim Meyering.
41806
41807 2000-07-30  Jim Meyering  <meyering@lucent.com>
41808
41809         * lib/makepath.c (make_path): Quote the other instance, too.
41810
41811         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41812         (STATIC_BUF_SIZE): Define.
41813         (quotearg_n_options): Use only statically allocated storage when
41814         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41815         than STATIC_BUF_SIZE.
41816
41817 2000-07-29  Jim Meyering  <meyering@lucent.com>
41818
41819         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41820         * lib/dirname.c (dir_name): Likewise.
41821
41822         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41823         `/'.
41824
41825         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41826         (dir_name): Assert that there are no trailing slashes.
41827
41828 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41829
41830         * lib/mbswidth.h (mbswidth): Add a flags argument.
41831         (mbswidth): New declaration.
41832         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41833         * lib/mbswidth.c (mbswidth): Add a flags argument.
41834         (mbsnwidth): New function.
41835
41836 2000-07-24  Jim Meyering  <meyering@lucent.com>
41837
41838         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41839
41840 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41841
41842         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41843
41844 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41845
41846         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41847         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41848         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41849         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41850         invoke multibyte primitives.
41851
41852 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41853
41854         * lib/quotearg.c:
41855         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41856         so that mbstate_t is always defined.
41857
41858         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41859         be 1 in at least one GCC installation, and this configuration
41860         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41861         performance on hosts that have mbrtowc but have only unibyte
41862         locales, but I assume these hosts are rare.
41863
41864 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41865
41866         * lib/mbswidth.c (_XOPEN_SOURCE):
41867         Don't define; this causes problems on Solaris 7.
41868         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41869
41870 2000-07-23  Jim Meyering  <meyering@lucent.com>
41871
41872         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41873         too: getgrgid, getpwuid, getuid.
41874
41875 2000-07-23  Jim Meyering  <meyering@lucent.com>
41876
41877         * lib/basename.c (base_name): Add an assertion.
41878
41879 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41880
41881         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41882         shadow its mbsinit function.
41883
41884 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41885
41886         * lib/mbswidth.h: New file.
41887         * lib/mbswidth.c: New file.
41888         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41889         (noinst_HEADERS): Add mbswidth.h.
41890
41891 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41892
41893         * lib/config.charset: Add support for FreeBSD. Improve support for
41894         HP-UX and IRIX 6.
41895
41896 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41897
41898         * m4/mbswidth.m4: New file.
41899         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41900
41901 2000-07-15  Jim Meyering  <meyering@lucent.com>
41902
41903         * lib/makepath.c: Include quote.h.
41904         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41905         corresponding argument in a `quote (...)' call.
41906         Give better diagnostics.
41907
41908         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41909         (noinst_HEADERS): Add quote.h.
41910
41911         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41912         from tar's src/misc.c.
41913         * lib/quote.h: New file.  Prototypes for same.
41914
41915 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41916
41917         From a suggestion by Bruno Haible.
41918         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41919         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41920         to decide whether to define the BeOS workaround macro;
41921         this adjusts to the change to AC_MBSTATE_T.
41922
41923 2000-07-14  Jim Meyering  <meyering@lucent.com>
41924
41925         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41926         jm_AC_TYPE_UINTMAX_T.
41927
41928 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41929
41930         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41931
41932         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41933         quotearg_buffer_restyled): Add support for
41934         clocale_quoting_style.  Undo previous change to
41935         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41936         and "{RIGHT QUOTATION MARK}" msgids.
41937
41938 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41939
41940         From a suggestion by Bruno Haible.
41941         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41942         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41943         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41944         and mbstate_t, to a single-part test that simply defines mbstate_t.
41945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41946         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41947
41948 2000-07-10  Jim Meyering  <meyering@lucent.com>
41949
41950         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41951
41952         * m4/gnu-source.m4: Output to confdefs.h directly.
41953         Suggestion from Akim Demaille.
41954
41955 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41956
41957         The old behavior of quoting `like this' doesn't look good with
41958         newer, ISO-style fonts.  See:
41959         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41960
41961         Instead, quote "like this" by default.  Let the translator
41962         tailor the locale-specific quoting behavior by providing
41963         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41964
41965         * lib/quotearg.c (N_): New macro.
41966         (gettext_default): New function.
41967         (quotearg_buffer_restyled): Use
41968         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41969         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41970
41971 2000-07-09  Jim Meyering  <meyering@lucent.com>
41972
41973         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41974         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41975
41976         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41978
41979 2000-07-09  Jim Meyering  <meyering@lucent.com>
41980
41981         * lib/Most files: Update copyright dates to include 2000.
41982
41983 2000-07-08  Jim Meyering  <meyering@lucent.com>
41984
41985         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41986         if not defined.
41987         (xgethostname): Remove now-unnecessary #ifdef.
41988         Move declaration of `err' into loop where it's used.
41989
41990 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41991         and Bruno Haible  <haible@clisp.cons.org>
41992
41993         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41994         only if the test for an object-type mbstate_t fails.  This
41995         prevents us from mistakenly reporting that mbstate_t is a
41996         system object type after we "#define mbstate_t int" to work
41997         around its lack.
41998
41999 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42000         and Bruno Haible  <haible@clisp.cons.org>
42001
42002         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42003
42004 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42005
42006         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42007         to strerror_r.
42008         Include <ctype.h> for use of isalpha.
42009
42010 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42011
42012         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42013         by allocating a larger buffer. Test the gethostname return value for
42014         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
42015         returns an error and ENAMETOOLONG isn't defined.
42016
42017 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42018
42019         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42020         dimension.
42021
42022 2000-07-04  Jim Meyering  <meyering@lucent.com>
42023
42024         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42025         of the deprecated AC_CHECKING.
42026
42027 2000-07-04  Jim Meyering  <meyering@lucent.com>
42028
42029         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42030         Reported by Bruno Haible.
42031
42032 2000-07-04  Jim Meyering  <meyering@lucent.com>
42033
42034         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42035         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
42036         lacks mbrtowc.
42037
42038 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42039
42040         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42041         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42042
42043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42044         and Bruno Haible  <haible@clisp.cons.org>
42045
42046         * lib/quotearg.c (mbrtowc):
42047         Assign to *pwc, and return 1 only if result is nonzero.
42048         (iswprint): Use ISPRINT when substituting our own mbrtowc.
42049
42050 2000-07-03  Jim Meyering  <meyering@lucent.com>
42051
42052         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42053
42054 2000-07-03  Jim Meyering  <meyering@lucent.com>
42055
42056         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42057         This is necessary to get a definition of e.g., UTMP_FILE on
42058         HP-UX 10.20.
42059         From Bob Proulx.
42060
42061 2000-07-02  Jim Meyering  <meyering@lucent.com>
42062
42063         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42064
42065         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42066         AC_LIBOBJ(function_name).
42067         * m4/chown.m4: Likewise.
42068         * m4/fnmatch.m4: Likewise.
42069         * m4/ftruncate.m4: Likewise.
42070         * m4/getgroups.m4: Likewise.
42071         * m4/getline.m4: Likewise.
42072         * m4/group-member.m4: Likewise.
42073         * m4/jm-macros.m4: Likewise.
42074         * m4/lstat.m4: Likewise.
42075         * m4/malloc.m4: Likewise.
42076         * m4/memcmp.m4: Likewise.
42077         * m4/nanosleep.m4: Likewise.
42078         * m4/putenv.m4: Likewise.
42079         * m4/realloc.m4: Likewise.
42080         * m4/regex.m4: Likewise.
42081         * m4/stat.m4: Likewise.
42082         * m4/strftime.m4: Likewise.
42083
42084 2000-07-02  Jim Meyering  <meyering@lucent.com>
42085
42086         * lib/quotearg.c (mbstate_t): Don't define here.
42087
42088 2000-07-02  Jim Meyering  <meyering@lucent.com>
42089
42090         * lib/nanosleep.c (SIGCONT): Define if not already defined.
42091
42092 2000-07-01  Jim Meyering  <meyering@lucent.com>
42093
42094         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42095
42096 2000-07-01  Jim Meyering  <meyering@lucent.com>
42097
42098         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42099         problem.
42100
42101 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42102
42103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42104         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42105
42106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42107
42108         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42109         per change in ../m4/ls-mntd-fs.m4.
42110         (read_filesystem_list): Ignore symbolic links.
42111
42112 2000-06-29  Jim Meyering  <meyering@lucent.com>
42113
42114         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42115         for declaration of strcmp.
42116
42117         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42118
42119         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42120         Avoid warning by casting result to `char *' to remove `const'.
42121
42122 2000-06-28  Jim Meyering  <meyering@lucent.com>
42123
42124         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
42125         included by quotearg.c, for which we perform this test.  From
42126         Bruno Haible.
42127
42128 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42129
42130         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42132         <utmpx.h> exists, put readutmp.o into LIBOBJS.
42133
42134 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42135
42136         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42137
42138 2000-06-26  Paul Eggert  <eggert@twinsun.com>
42139
42140         savedir now sets errno on failure and invokes xmalloc to get memory.
42141         Fix a couple of other minor bugs while we're at it.
42142
42143         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42144         (NAMLEN): Remove macro.
42145         (malloc, realloc): Remove decls.
42146         (stpcpy): Likewise.
42147         ("xalloc.h"): Include.
42148         (NAME_SIZE_DEFAULT): New macro.
42149         (savedir): Use xmalloc / xrealloc to allocate memory.
42150         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42151         Skip "" directory entries.
42152         Use strlen to calculate directory entry length, since the old method
42153         is rarely used these days and isn't worth supporting.
42154         Don't use a pointer after freeing it.
42155         Check for integer overflow when calculating allocation size.
42156         Use memcpy to copy entries, instead of stpcpy.
42157         Set errno properly when returning NULL.
42158         Check for readdir error.
42159
42160 2000-06-26  Jim Meyering  <meyering@lucent.com>
42161
42162         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42163
42164 2000-06-25  Jim Meyering  <meyering@lucent.com>
42165
42166         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42167         Linux header bug when _XOPEN_SOURCE is defined to 500.
42168
42169 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42170
42171         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42172         deficiency.
42173
42174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42175
42176         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42177         Include xalloc.h.
42178         Don't include <stdlib.h>.  Don't declare malloc, realloc.
42179
42180 2000-06-24  Jim Meyering  <meyering@lucent.com>
42181
42182         * m4/strerror_r.m4: Revive this file -- to try out an experimental
42183         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42184         for which strerror does return char*, but which lacks a conveniently
42185         accessible declaration of the function.  If the compile-test says
42186         strerror_r doesn't work, then resort to a `run'-test that works on
42187         BeOS and segfaults on DEC Unix.
42188
42189 2000-06-24  Jim Meyering  <meyering@lucent.com>
42190
42191         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42192
42193 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42194
42195         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
42197
42198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42199
42200         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42201         (mbrtowc, mbstate_t): Define substitutes if
42202         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42203         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42204         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42205
42206 2000-06-23  Jim Meyering  <meyering@lucent.com>
42207
42208         * m4/afs.m4: Add missing AC_MSG_RESULT.
42209         Reported by Bruno Haible.
42210
42211         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42212         Suggestion from Bruno Haible.
42213
42214 2000-06-23  Jim Meyering  <meyering@lucent.com>
42215
42216         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
42217
42218 2000-06-21  Jim Meyering  <meyering@lucent.com>
42219
42220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42221
42222 2000-06-21  Jim Meyering  <meyering@lucent.com>
42223
42224         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42225         (noinst_HEADERS): Add getstr.h.
42226
42227         * lib/getline.c (getstr): Move into a separate file.
42228         * lib/getstr.c (getstr): New file, extracted from getline.c, with
42229         the following changes: new parameter, delim2; both delim[12]
42230         parameters have type `int', not `char'.  The latter would lose
42231         with 8-bit delimiters.
42232         * lib/getstr.h: New file.
42233
42234 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42235
42236         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42237         than 1024, return a memory chunk of least possible size, instead
42238         of size PATH_MAX + 2. In the loop, increment the size proportionally.
42239         Use free/xmalloc instead of xrealloc to avoid copying for very long
42240         paths.
42241
42242 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42243
42244         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42245         the empty string.
42246
42247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42248
42249         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42250         address, not strdup.  Include <stdlib.h> and don't declare free().
42251
42252 2000-06-19  Jim Meyering  <meyering@lucent.com>
42253
42254         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42255
42256 2000-06-18  Jim Meyering  <meyering@lucent.com>
42257
42258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42259
42260         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42261         `checking whether...' message to be consistent with that of the
42262         lstat test.
42263
42264 2000-06-18  Jim Meyering  <meyering@lucent.com>
42265
42266         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42267         Besides, these days every porting target provides a mkdir function.
42268
42269         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42270         needed. (this snippet comes from src/system.h).
42271
42272 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
42273
42274         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42275
42276 2000-06-15  Paul Eggert  <eggert@twinsun.com>
42277
42278         * lib/human.c (adjust_value): New function.
42279         (human_readable_inexact): Apply rounding style even when
42280         printing approximate values.
42281
42282 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42283
42284         * lib/human.c (human_readable_inexact): Allow an input block
42285         size that is not a multiple of the output block size, and vice versa.
42286         Reported by Piergiorgio Sartor.
42287
42288 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42289
42290         * lib/getdate.y (get_date): Apply relative times after time
42291         zone indicator, not before.  Reported by Todd A. Jacobs.
42292
42293 2000-06-13  Jim Meyering  <meyering@lucent.com>
42294
42295         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42296
42297         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42298
42299 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42300
42301         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42302
42303 2000-06-12  Jim Meyering  <meyering@lucent.com>
42304
42305         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42306         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42307         optional argument.
42308         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42309         the optional argument, `lib'.
42310
42311 2000-06-08  Jim Meyering  <meyering@lucent.com>
42312
42313         * m4/largefile.m4: Remove file (now that it's part of autoconf).
42314
42315 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42316
42317         Rewrite largefile configuration so that we don't need to run
42318         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
42319         AC_CANONICAL_HOST in configure.in -- jmm]
42320
42321         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42322         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42323         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42324         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42325         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42326         All uses changed.
42327         Instead of inspecting the output of getconf, try to compile the
42328         test program without and with the macro definition.
42329         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42330         for getconf.  Instead, check for the needed flags by compiling
42331         test programs.
42332
42333 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42334
42335         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
42336
42337 2000-06-04  Jim Meyering  <meyering@lucent.com>
42338
42339         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
42340         SunOS 4.1.4 for which gid_t is an unsigned type.
42341
42342 2000-06-03  Jim Meyering  <meyering@lucent.com>
42343
42344         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
42345         now that autoconf requires that.
42346
42347         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
42348         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
42349         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
42350
42351 2000-06-03  Jim Meyering  <meyering@lucent.com>
42352
42353         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
42354
42355 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42356
42357         * m4/glibc21.m4: New file.
42358         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
42359
42360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42361
42362         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
42363         newer, don't install charset.alias.
42364         * lib/config.charset: Change the Linux/glibc rules so they become empty
42365         on glibc-2.1 or newer.
42366
42367 2000-06-02  Jim Meyering  <meyering@lucent.com>
42368
42369         * lib/mountlist.c: Back out last change.  Instead, do this...
42370         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42371         me_dummy member using the same `ignore'-testing code.
42372         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42373         fs_type strings.
42374         From Mark D. Roth.
42375
42376 2000-05-29  Jim Meyering  <meyering@lucent.com>
42377
42378         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42379         mounts with the `ignore' attribute.  Based on a patch from
42380         Mark D. Roth.
42381
42382 2000-05-28  Jim Meyering  <meyering@lucent.com>
42383
42384         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42385         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42386         * m4/stat.m4: Likewise.
42387         * m4/lstat.m4: Likewise.
42388         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42389
42390         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42391         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42392
42393 2000-05-26  Jim Meyering  <meyering@lucent.com>
42394
42395         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42396
42397 2000-05-24  Jim Meyering  <meyering@lucent.com>
42398
42399         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42400         autoconf requires that.
42401         * m4/lib-check.m4: Likewise.
42402         * m4/jm-macros.m4: Likewise.
42403         * m4/strftime.m4: Likewise.
42404
42405         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42406         AC_CHECK_DECLS, now that autoconf requires that.
42407
42408 2000-05-22  Jim Meyering  <meyering@lucent.com>
42409
42410         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42411         * m4/lstat.m4: Likewise.
42412
42413 2000-05-22  Jim Meyering  <meyering@lucent.com>
42414
42415         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42416
42417 2000-05-20  Jim Meyering  <meyering@lucent.com>
42418
42419         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
42420         (jm_PREREQ): Use it.
42421
42422 2000-05-18  Jim Meyering  <meyering@lucent.com>
42423
42424         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
42425         back, too, since it may have been modified by allocate_entry.
42426         (hash_delete): Rewrite to use neither the assignment operator
42427         nor the comma operator in an if-expression.
42428
42429 2000-05-15  Paul Eggert  <eggert@twinsun.com>
42430
42431         * lib/closeout.c:
42432         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
42433         Remove; no longer needed.
42434         "quotearg.h": Add include.
42435         (file_name): Do not bother to explicitly initialize to NULL; it's less
42436         efficient on some hosts.
42437         (close_stdout_status): Remove test as to whether stdout was already
42438         closed; it breaks for the case "echo x | sort >&-".
42439         Quote file name colons.
42440         Do not assume that _("write error") lacks format strings.
42441
42442 2000-05-15  Jim Meyering  <meyering@lucent.com>
42443
42444         * lib/version-etc.c (version_etc_copyright): Update the copyright
42445         string used in all --version output.
42446
42447 2000-05-14  Jim Meyering  <meyering@lucent.com>
42448
42449         * lib/closeout.c (close_stdout_set_file_name): New function.
42450         (close_stdout_status): Use new file-scoped global.
42451         Return right away if fstat says the stdout file descriptor is invalid.
42452         * lib/closeout.h (close_stdout_set_file_name): Declare.
42453
42454 2000-05-10  Jim Meyering  <meyering@lucent.com>
42455
42456         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42457         (close_stdout_set_status): New function.
42458         * lib/closeout.h (close_stdout_set_status): Declare.
42459
42460 2000-05-09  Jim Meyering  <meyering@lucent.com>
42461
42462         * m4/gettext.m4: Rename this...
42463         * m4/libintl.m4: ...to this.
42464
42465 2000-05-08  Jim Meyering  <meyering@lucent.com>
42466
42467         * lib/long-options.c: Don't include closeout.h.
42468         (parse_long_options): Don't call close_stdout for --version.
42469
42470 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42471
42472         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42473         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42474         2.1.3 bug.  This avoids a clash when files like regex.c define
42475         _GNU_SOURCE.
42476
42477 2000-05-06  Jim Meyering  <meyering@lucent.com>
42478
42479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42480         (AC_REPLACE_FUNCS): Add strnlen.
42481
42482         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42483         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42484
42485         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42486         AC_SEARCH_LIBS call for nanosleep.
42487         (LIB_NANOSLEEP): Set and AC_SUBST.
42488
42489 2000-05-06  Jim Meyering  <meyering@lucent.com>
42490
42491         * lib/strnlen.c: Undefine __strnlen and strnlen.
42492         [!weak_alias]: Define __strnlen to strnlen.
42493
42494         * lib/atexit.c: New file, from libiberty.
42495
42496 2000-05-06  Jim Meyering  <meyering@lucent.com>
42497
42498         * lib/closeout.c (close_stdout_status): Also check for errors on the
42499         stderr stream.
42500
42501 2000-05-05  Jim Meyering  <meyering@lucent.com>
42502
42503         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42504         AC_SEARCH_LIBS call for clock_gettime.
42505         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42506
42507         * m4/search-libs.m4: Update from autoconf.
42508
42509         su doesn't work on Solaris 2.6.
42510         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42511         <shadow.h>.  Reported by Dragos Harabor.
42512
42513 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42514
42515         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42516         memcpy instead of xmalloc, xrealloc, path_concat.
42517         (locale_charset): Treat empty environment variables as absent.
42518         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42519
42520 2000-05-04  Jim Meyering  <meyering@lucent.com>
42521
42522         * lib/getopt.c: Update from glibc.
42523         * lib/obstack.c: Likewise.
42524         * lib/obstack.h: Likewise.
42525         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42526         file
42527
42528         * lib/regex.h: Likewise.
42529         * lib/strndup.c: Likewise.
42530         * lib/strnlen.c: New file, from glibc.
42531
42532 2000-05-03  Jim Meyering  <meyering@lucent.com>
42533
42534         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42535
42536 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42537
42538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42539         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42540         compile-time test, rather than inspecting host and OS, to
42541         decide whether to define _LARGEFILE_SOURCE.
42542
42543 2000-05-01  Jim Meyering  <meyering@lucent.com>
42544
42545         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42546
42547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42548         Based on a patch from Bruno Haible.
42549
42550 2000-05-01  Jim Meyering  <meyering@lucent.com>
42551
42552         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42553
42554 2000-04-29  Jim Meyering  <meyering@lucent.com>
42555
42556         * lib/path-concat.c: Declare strdup only if it's not defined.
42557         * lib/canon-host.c: Likewise.
42558
42559 2000-04-28  Jim Meyering  <meyering@lucent.com>
42560
42561         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42562         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42563         is included first, then limits.h is included by locale.h by libintl.h.
42564         From John David Anglin.
42565
42566 2000-04-25  Jim Meyering  <meyering@lucent.com>
42567
42568         * lib/makepath.c (S_IRWXUGO): Define.
42569         (make_path): Always perform explicit chmod if MODE specifies any
42570         of the `special' permission bits.  Prompted by a bug report against
42571         install from Mate Wierdl and Joost van Baal.
42572
42573 2000-04-18  Jim Meyering  <meyering@lucent.com>
42574
42575         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42576         (jm_PREREQ): Use it.
42577
42578 2000-04-18  Jim Meyering  <meyering@lucent.com>
42579
42580         * lib/README: New file.
42581
42582         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42583         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42584
42585 2000-04-17  Jim Meyering  <meyering@lucent.com>
42586
42587         Get it right :-)
42588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42589         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42590         Suggestion from Akim Demaille.
42591
42592 2000-04-17  Jim Meyering  <meyering@lucent.com>
42593
42594         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42595         the definition of it to rpl_strftime also defined-away the system's
42596         declaration.
42597
42598 2000-04-15  Jim Meyering  <meyering@lucent.com>
42599
42600         Use `C' to denote so-called `contiguous' files, the same way
42601         that tar does.
42602         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42603         (ftypelet): Use S_ISCTG.
42604         From Michael Deutschmann.
42605
42606 2000-04-14  Jim Meyering  <meyering@lucent.com>
42607
42608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42609         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42610         clobbered.
42611
42612 2000-04-14  Jim Meyering  <meyering@lucent.com>
42613
42614         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42615
42616 2000-04-13  Jim Meyering  <meyering@lucent.com>
42617
42618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42619         AH_VERBATIM to insert required #ifndef into config.h.in.
42620         Suggestion from Akim Demaille.
42621
42622 2000-04-12  Jim Meyering  <meyering@lucent.com>
42623
42624         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42625         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42626         Christian Krackowizer.
42627
42628         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42629         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42630         (AC_SYS_LARGEFILE): Require.
42631         (AM_C_PROTOTYPES): Require.
42632
42633 2000-04-08  Jim Meyering  <meyering@lucent.com>
42634
42635         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42636         names don't conflict.  Reported by Eli Zaretskii.
42637
42638 2000-04-07  Jim Meyering  <meyering@lucent.com>
42639
42640         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42641         sys/types.h, to work around system header problems on AIX 3.2.5.
42642         From Bruno Haible.
42643
42644 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42645
42646         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42647         bug.  Deal with the different error behavior of Irix iconv.
42648
42649 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42650
42651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42652         IRIX if the installer said otherwise.
42653
42654 2000-04-05  Jim Meyering  <meyering@lucent.com>
42655
42656         Portability tweaks required for ultrix4.3.
42657         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42658         (jm_CHECK_DECLS): Add getutent to the list of functions.
42659         (_jm_DECL_HEADERS): Add utmpx.h.
42660         From John David Anglin.
42661
42662         * m4/strftime.m4: Back out the 2000-04-02 change.
42663         Instead of that change, simply undefine putenv in the test program.
42664
42665 2000-04-05  Jim Meyering  <meyering@lucent.com>
42666
42667         Portability tweaks required for ultrix4.3.
42668         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42669         getutent.
42670         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42671         * lib/canon-host.c: Declare strdup.
42672         * lib/path-concat.c: Likewise.
42673         From John David Anglin.
42674
42675 2000-04-04  Jim Meyering  <meyering@lucent.com>
42676
42677         Be more DOS 8.3-friendly.
42678         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42679         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42680         * lib/Makefile.am: Reflect renaming.
42681         Reported by Eli Zaretskii.
42682
42683         Use a temporary file name that won't clash with `charset.alias'
42684         in the DOS 8.3 name space.
42685         * lib/Makefile.am (charset_tmp): Define.
42686         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42687         (uninstall-local): Likewise.
42688         Reported by Eli Zaretskii.
42689
42690 2000-04-03  Jim Meyering  <meyering@lucent.com>
42691
42692         * m4/gettext.m4: Fix typo in comment.
42693
42694         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42695         textutils/configure.in).  Suggestion from Paul Eggert.
42696         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42697
42698 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42699
42700         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42701         variable in the shell rather than using putenv, which isn't
42702         portable.  This avoids the configure-time inter-test dependency
42703         on the potentially-renamed putenv function.
42704
42705 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42706
42707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42708         before checking struct stat.st_blksize, so that
42709         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42710
42711 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42712
42713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42714         since strftime.c uses HAVE_STRFTIME to decide whether to use
42715         the underlying strftime.
42716
42717 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42718
42719         * lib/time/strftime.c (my_strftime): Make sure we call the system
42720         strftime, not ourselves, when invoking the underlying strftime.
42721
42722 2000-03-24  Jim Meyering  <meyering@lucent.com>
42723
42724         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42725         (charset_alias): Define.
42726         (install-exec-local): Factor out common code.
42727         (uninstall-local): Split lines longer than 80.
42728         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42729         (SUFFIXES): Define.
42730         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42731         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42732
42733 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42734
42735         * lib/config.charset: Output a line containing "Packages using this
42736         file".
42737         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42738         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42739         ref-del.sed): New rules.
42740
42741 2000-03-17  Jim Meyering  <meyering@lucent.com>
42742
42743         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42744         Otherwise, include <strings.h>
42745
42746 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42747
42748         * lib/unicodeio.c (utf8_wctomb): New function.
42749         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42750         format instead of in UCS-4 with platform dependent endianness.
42751
42752 2000-03-10  Jim Meyering  <meyering@lucent.com>
42753
42754         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42755         From Marco Franzen.
42756
42757 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42758
42759         * lib/savedir.c (savedir): Work even if directory size is
42760         negative; this can happen with some screwy NFS configurations.
42761
42762 2000-03-06  Jim Meyering  <meyering@lucent.com>
42763
42764         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42765         if it's NULL (because we ran out of memory).  From Bruno Haible.
42766
42767 2000-03-05  Jim Meyering  <meyering@lucent.com>
42768
42769         * lib/localcharset.c ("path-concat.h"): Include.
42770         (get_charset_aliases): Use path_concat instead of ANSI string
42771         concatenation.
42772
42773         * lib/unicodeio.h (PARAMS): Define.
42774         Use it to guard prototype.
42775
42776 2000-03-04  Jim Meyering  <meyering@lucent.com>
42777
42778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42779         for lib/localcharset.c.
42780
42781 2000-03-04  Jim Meyering  <meyering@lucent.com>
42782
42783         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42784         installing into it.
42785         (uninstall-local): Uncomment this rule so `make distcheck' works
42786         once again.
42787
42788         * lib/unicodeio.c (<errno.h>): Include it.
42789         (errno): Declare if not defined.
42790
42791         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42792
42793         * lib/config.charset: New version, incorporating remarks from a linux
42794         i18n mailing list.  From Bruno Haible.
42795
42796 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42797
42798         * m4/codeset.m4: New file.
42799         * m4/iconv.m4: New file.
42800         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42801
42802 2000-03-03  Jim Meyering  <meyering@lucent.com>
42803
42804         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42805
42806 2000-03-02  Jim Meyering  <meyering@lucent.com>
42807
42808         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42809         the messages come out on separate lines.
42810
42811         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42812         rather than jm_CHECK_DECLARATIONS.
42813         * m4/decl.m4: Remove now-unused file.
42814
42815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42816         geteuid.
42817
42818 2000-03-02  Jim Meyering  <meyering@lucent.com>
42819
42820         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42821
42822 2000-03-01  Jim Meyering  <meyering@lucent.com>
42823
42824         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42825         * lib/unicodeio.c: Likewise.
42826
42827 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42828
42829         * lib/config.charset: New file.
42830         * lib/localcharset.c: New file.
42831         * lib/unicodeio.h, lib/unicodeio.c: New files.
42832         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42833         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42834         (noinst_HEADERS): Add unicodeio.h.
42835         (all-local, install-exec-local, charset.alias): New targets.
42836
42837 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42838
42839         * lib/quotearg.c (ALERT_CHAR): New macro.
42840         (quotearg_buffer_restyled): Use it.
42841
42842 2000-02-27  Jim Meyering  <meyering@lucent.com>
42843
42844         * m4/check-decl.m4: Add getenv to the list.
42845
42846 2000-02-27  Jim Meyering  <meyering@lucent.com>
42847
42848         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42849         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42850
42851         * lib/backupfile.c: Guard inclusion of stdlib.h with
42852         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42853         Declare malloc if needed.
42854
42855         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42856         `#ifndef HAVE_DECL..'
42857         now that autoconf always defines the HAVE_DECL_ symbols.
42858         * lib/human.c: Likewise.
42859         * lib/same.c: Likewise.
42860         * lib/strtoumax.c: Likewise.
42861
42862         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42863         declaration check was not run.
42864         * lib/hash.c: Likewise.
42865         * lib/human.c: Likewise.
42866         * lib/same.c: Likewise.
42867         * lib/strtoumax.c: Likewise.
42868
42869         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42870         `.', then first look up the entire `.'-containing string as a login
42871         name.
42872
42873 2000-02-23  Jim Meyering  <meyering@lucent.com>
42874
42875         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42876         in place of my hack.
42877
42878 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42879
42880         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42881         (textint): New typedef.
42882         (parser_control): Member year changed from int to textint.
42883         All uses changed.
42884         (YYSTYPE): Removed; replaced by %union with int and textint members.
42885         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42886         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42887         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42888         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42889         (date, number, to_year): Use width of number in digits, not its value,
42890         to determine whether it's a 2-digit year, or a 2-digit time.
42891         (yylex): Store number of digits of numeric tokens.
42892         Reported by John Kendall.
42893
42894         (parser_control): Changed from struct parser_control to typedef (for
42895         consistency).  All uses changed.
42896
42897         (tID): Removed; not used.
42898         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42899
42900 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42901
42902         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42903         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42904
42905 2000-02-12  Jim Meyering  <meyering@lucent.com>
42906
42907         * lib/userspec.c (ISDIGIT): Define it.
42908         (isdigit): Remove definition.
42909         (is_number): Use ISDIGIT, not isdigit.
42910         <libintl.h>: Include.
42911         (_ and N_): Define.
42912         (parse_user_spec): Mark translatable strings.
42913
42914 2000-02-10  Jim Meyering  <meyering@lucent.com>
42915
42916         With these changes, nanosleep.[ch] are finally enough like the other
42917         lib/* replacement files to compile on a few more losing systems.
42918
42919         * lib/nanosleep.h: Don't include config.h.
42920         Remove prototype from declaration of nanosleep.
42921         (PARAMS): Remove now-unneeded definition.
42922         * lib/nanosleep.c: #undef nanosleep.
42923         (rpl_nanosleep): Rename from nanosleep.
42924
42925 2000-02-10  Jim Meyering  <meyering@lucent.com>
42926
42927         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42928         gnu_nanosleep to rpl_nanosleep.
42929
42930 2000-02-09  Jim Meyering  <meyering@lucent.com>
42931
42932         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42933         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42934
42935 2000-02-08  Akim Demaille  <akim@epita.fr>
42936
42937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42938         `[' and `]' and remove uses of `changequote'.
42939         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42940         (AC_SYS_LARGEFILE): Likewise.
42941         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42942         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42943         of changequote.
42944         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42945         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42946         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42947         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42948
42949 2000-02-05  Jim Meyering  <meyering@lucent.com>
42950
42951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42952         Remove explicit use of AC_HEADER_TIME.  It is required by
42953         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42954         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42955         in autoconf whereby the expansion of the latter ended up preceding
42956         the expansion of its prerequisite, AC_HEADER_TIME.
42957         Reported by Volker Borchert.
42958
42959 2000-02-03  Jim Meyering  <meyering@lucent.com>
42960
42961         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42962
42963 2000-02-03  Jim Meyering  <meyering@lucent.com>
42964
42965         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42966         rather than with `#if HAVE_UTMPNAME'.
42967
42968 2000-02-02  Jim Meyering  <meyering@lucent.com>
42969
42970         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42971         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42972         Reported by Eli Zaretskii.
42973
42974 2000-02-01  Jim Meyering  <meyering@lucent.com>
42975
42976         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42977
42978 2000-01-31  Jim Meyering  <meyering@lucent.com>
42979
42980         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42981         functions.  Add the time.h and sys/time.h headers along with the
42982         AC_REQUIRE'ment of AC_HEADER_TIME.
42983
42984 2000-01-31  Jim Meyering  <meyering@lucent.com>
42985
42986         * lib/nanosleep.h (nanosleep): Guard declaration with
42987         `#if ! HAVE_DECL_NANOSLEEP'.
42988         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42989         the declaration in that vendor's sys/timers.h.
42990         Reported by Christian Krackowizer.
42991
42992         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42993         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42994         (ISPRINT): Likewise.
42995         Reported by Tom Tromey.
42996
42997 2000-01-30  Jim Meyering  <meyering@lucent.com>
42998
42999         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43000
43001         * m4/prereq.m4 (utmp_includes): Define.
43002         Check for ut_user and ut_name members in both struct utmpx
43003         and struct utmp.
43004
43005 2000-01-30  Jim Meyering  <meyering@lucent.com>
43006
43007         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43008         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
43009         header files where only utmpx.ut_user is declared.
43010
43011         * lib/readutmp.h (UT_USER): Define.
43012
43013 2000-01-29  Jim Meyering  <meyering@lucent.com>
43014
43015         * m4/lib-check.m4: New file containing library-related checks from
43016         fileutils and sh-utils (textutils had none).
43017
43018 2000-01-28  Jim Meyering  <meyering@lucent.com>
43019
43020         * m4/perl.m4: Change format of warning message to look more like that
43021         from the missing script.  Suggestion from François Pinard.
43022
43023 2000-01-25  Jim Meyering  <meyering@lucent.com>
43024
43025         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43026         well as time.h in the compile check.
43027         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43028         Fix typo in cross-compiling case: s/yes/no/.
43029
43030 2000-01-23  Jim Meyering  <meyering@lucent.com>
43031
43032         * m4/jm-macros.m4: Move df-related tests here from
43033         fileutils/configure.in
43034
43035         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43036         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43037
43038         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
43039         s/space/ac_fsusage_space/.
43040         (jm_FILE_SYSTEM_USAGE): Take two parameters.
43041
43042         * m4/ftruncate.m4: New file (derived from part of
43043         fileutils/configure.in).
43044         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43045         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43046
43047         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43048         AC_SUBST these here, rather than just in sh-util/configure.in, so
43049         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43050         all the same.
43051         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43052         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43053         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43054         (AC_SUBST(POW_LIBM)): Likewise.
43055         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43056
43057 2000-01-23  Jim Meyering  <meyering@lucent.com>
43058
43059         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43060         obstack.c.
43061
43062 2000-01-22  Jim Meyering  <meyering@lucent.com>
43063
43064         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43065
43066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43067
43068         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43069         configure.in
43070         (AC_CHECK_HEADERS): Likewise for sh-utils.
43071         (AC_CHECK_HEADERS): Likewise for textutils.
43072         Merge the three lists of headers.
43073
43074         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
43075         from fileutils' configure.in.
43076
43077         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43078         code. Moved tests into their own function (_jm_DECL_HEADERS) in
43079         check-decl.m4.
43080
43081         * m4/check-decl.m4: Use #if rather than #ifdef.
43082         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43083         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43084         (_jm_DECL_HEADERS): Define new function.
43085         (jm_CHECK_DECLARATIONS): Require it.
43086
43087 2000-01-22  Jim Meyering  <meyering@lucent.com>
43088
43089         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43090         [! HAVE_DECL_STRTOULL]: Declare strtoull.
43091         Required for some AIX systems.  Reported by Christian Krackowizer.
43092         [TESTING] (main): New function.
43093
43094         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
43095         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43096         letters.
43097
43098         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43099         iswprint.
43100
43101         * lib/strverscmp.c (ISDIGIT): Define.
43102         (strverscmp): Use ISDIGIT, not isdigit.
43103
43104 2000-01-19  Jim Meyering  <meyering@lucent.com>
43105
43106         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43107         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
43108         defines `struct timespec' in <sys/time.h>
43109
43110         * m4/c-bs-a.m4: Remove uses of changequote altogether.
43111         Thanks to Akim for explaining.
43112
43113 2000-01-17  Paul Eggert  <eggert@twinsun.com>
43114
43115         * lib/nanosleep.c (nanosleep):
43116         Don't use SA_INTERRUPT to decide whether to call sigaction, as
43117         POSIX.1 doesn't require SA_INTERRUPT and some systems
43118         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
43119         it's been part of POSIX.1 since day 1 (in 1988).
43120
43121 2000-01-17  Jim Meyering  <meyering@lucent.com>
43122
43123         * lib/interlock: Remove unused file.  Reported by François Pinard.
43124
43125 2000-01-16  Paul Eggert  <eggert@twinsun.com>
43126
43127         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43128         alert, backslash, formfeed, and vertical tab unnecessarily in
43129         shell quoting style.
43130
43131 2000-01-16  Jim Meyering  <meyering@lucent.com>
43132
43133         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43134         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43135         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43136         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43137
43138 2000-01-16  Jim Meyering  <meyering@lucent.com>
43139
43140         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43141         because the latter didn't work.
43142
43143 2000-01-15  Jim Meyering  <meyering@lucent.com>
43144
43145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43146         (AC_REPLACE_FUNCS): Add memcpy and memset.
43147         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43148         Add strpbrk.
43149         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43150
43151 2000-01-12  Jim Meyering  <meyering@lucent.com>
43152
43153         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43154         (jm_PREREQ): Use it.
43155         (jm_PREREQ_READUTMP): New macro.
43156         (jm_PREREQ): Use it.
43157
43158 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43159
43160         Quote multibyte characters correctly.
43161         * m4/c-bs-a.m4: New file.
43162         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43163         (jm_PREREQ): Use it.
43164
43165 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43166
43167         * m4/uintmax_t.m4: Port to autoconf 2.13.
43168
43169 2000-01-08  Jim Meyering  <meyering@ascend.com>
43170
43171         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43172         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43173
43174 2000-01-04  Jim Meyering  <meyering@ascend.com>
43175
43176         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43177         jm_STRUCT_DIRENT_D_TYPE.
43178         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43179         jm_STRUCT_DIRENT_D_INO.
43180         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43181         jm_STRUCT_UTIMBUF.
43182         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43183         renamings.
43184         * m4/utime.m4: Likewise.
43185
43186         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43187         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43188
43189 2000-01-03  Paul Eggert  <eggert@twinsun.com>
43190
43191         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43192         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43193
43194 2000-01-02  Jim Meyering  <meyering@ascend.com>
43195
43196         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
43197         remember if this is necessary.
43198
43199 1999-12-26  Jim Meyering  <meyering@ascend.com>
43200
43201         * m4/jm-macros.m4: Use it here.
43202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43203
43204 1999-12-23  Jim Meyering  <meyering@ascend.com>
43205
43206         * m4/jm-macros.m4: Check for clock_gettime (moved from
43207         fileutils/configure.in)
43208         Check for gettimeofday.
43209
43210 1999-12-20  Jim Meyering  <meyering@ascend.com>
43211
43212         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43213         autoconf-2.14a-1999-12-20.
43214
43215 1999-12-19  Jim Meyering  <meyering@ascend.com>
43216
43217         * m4/lstat-slash.m4: New file.
43218         * m4/jm-macros.m4: Use the new macro:
43219         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43220
43221 1999-12-07  Jim Meyering  <meyering@ascend.com>
43222
43223         * m4/perl.m4: Require that File::Compare be available, too.
43224         Too many systems seem to lack it.
43225
43226         * m4/strftime.m4: Add checks for most of the cpp macros tested in
43227         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
43228
43229 1999-11-18  Paul Eggert  <eggert@twinsun.com>
43230
43231         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43232         problem with the QNX 4.25 shell, which doesn't propagate exit
43233         status of failed commands inside shell assignments.
43234
43235 1999-11-17  Jim Meyering  <meyering@ascend.com>
43236
43237         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43238
43239 1999-11-07  Jim Meyering  <meyering@ascend.com>
43240
43241         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43242
43243 1999-11-06  Jim Meyering  <meyering@ascend.com>
43244
43245         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43246         * m4/jm-macros.m4 (jm_MACROS): Use it here.
43247
43248 1999-11-05  Jim Meyering  <meyering@ascend.com>
43249
43250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43251         configure.in of textutils, fileutils, and sh-utils into this one
43252         (shared between those packages) file.
43253         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43254         AC_STRUCT_ST_BLKSIZE.
43255
43256 1999-11-03  Jim Meyering  <meyering@ascend.com>
43257
43258         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
43259         of AC_CHECK_TYPE checks includes unistd.h.
43260         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43261         Suggestion from Akim Demaille.
43262
43263 1999-10-30  Jim Meyering  <meyering@ascend.com>
43264
43265         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
43266         m4-quoted string.
43267         * m4/ls-mntd-fs.m4: Likewise.
43268         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
43269         * m4/jm-winsz1.m4: Likewise.
43270
43271         * m4/const.m4: Remove file, since the fix made it into the experimental
43272         version of autoconf.
43273         * m4/mktime.m4: Likewise.
43274
43275         * m4/check-type.m4: Remove file, now that the latest version of
43276         AC_CHECK_TYPE takes a third arg to specify additional #includes.
43277
43278         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43279         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43280         AC_CHECK_TYPE.
43281
43282 1999-10-04  Jim Meyering  <meyering@ascend.com>
43283
43284         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43285
43286 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43287
43288         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43289         2.95.1 bug with HP-UX 10.20.
43290
43291 1999-09-17  Jim Meyering  <meyering@ascend.com>
43292
43293         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43294         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43295         due to missing strdup (against sh-utils-2.0).
43296
43297 1999-08-29  Jim Meyering  <meyering@ascend.com>
43298
43299         * m4/jm-macros.m4: Require jm_BISON.
43300         * m4/bison.m4: New file.
43301
43302 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43303
43304         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43305         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43306
43307 1999-08-05  Jim Meyering  <meyering@ascend.com>
43308
43309         * m4/getline.m4: Rename test file from conftestdata to conftest.data
43310         to avoid conflicts with `conftest' on 8+3 filesystems.
43311         Suggestion from Eli Zaretskii.
43312
43313 1999-08-04  Jim Meyering  <meyering@ascend.com>
43314
43315         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43316         fileutils and sh-utils (textutils's getline test was inadequate).
43317         (AM_FUNC_GETLINE): Run this test.
43318         (AC_CHECK_FUNCS): Check for getdelim.
43319         Reported by Bob Proulx.
43320
43321 1999-08-02  Jim Meyering  <meyering@ascend.com>
43322
43323         * m4/jm-macros.m4: Add a comment.
43324
43325 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43326
43327         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43328         <inttypes.h> defines strtoumax as a macro (and not as a
43329         function).
43330
43331 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43332
43333         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
43334         that we can shift, multiply and divide unsigned long long
43335         values; Ultrix cc can't do it.
43336
43337 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43338
43339         * m4/mktime.m4: New file, which is a preview of what should appear
43340         in the next public autoconf release.
43341
43342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43343
43344         * m4/lfs.m4: Remove this file.
43345         * m4/largefile.m4: New file.  It contains the old contents of
43346         lfs.m4, except that all names with prefix AC_LFS have been
43347         changed to use the prefix AC_SYS_LARGEFILE instead, to be
43348         compatible with future autoconf versions.  Also, some minor m4
43349         quoting problems have been fixed.
43350
43351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43352
43353         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
43354         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
43355         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
43356         and simplify the shell code.
43357
43358 1999-08-01  Jim Meyering  <meyering@ascend.com>
43359
43360         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
43361         m4.
43362
43363 1999-07-20  Jim Meyering  <meyering@ascend.com>
43364
43365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
43366
43367 1999-07-15  Jim Meyering  <meyering@ascend.com>
43368
43369         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43370
43371 1999-05-22  Jim Meyering  <meyering@ascend.com>
43372
43373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43374
43375 1999-05-20  Jim Meyering  <meyering@ascend.com>
43376
43377         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43378         Add a colon after each `then' in case $4 is empty.
43379
43380 1999-05-16  Jim Meyering  <meyering@ascend.com>
43381
43382         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43383
43384 1999-05-10  Jim Meyering  <meyering@ascend.com>
43385
43386         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43387
43388         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43389         AC_FUNC_MKTIME.
43390
43391 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43392
43393         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43394
43395 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43396
43397         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43398         not CPPFLAGS, so that linking works correctly in IRIX.
43399
43400 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43401
43402         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43403
43404 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43405
43406         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43407         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43409         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43410         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43411
43412         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43413
43414 1999-04-20  Jim Meyering  <meyering@ascend.com>
43415
43416         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43417         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43418         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43419
43420 1999-04-18  Jim Meyering  <meyering@ascend.com>
43421
43422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
43423         * m4/jm-macros.m4: Use it.
43424
43425 1999-04-06  Jim Meyering  <meyering@ascend.com>
43426
43427         * m4/strftime.m4: Remove test for %f.
43428
43429 1999-03-29  Jim Meyering  <meyering@ascend.com>
43430
43431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
43432         superset of the AC_TYPE_* checks in the textutils, fileutils,
43433         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
43434         AC_TYPE_PID_T.
43435
43436 1999-03-28  Jim Meyering  <meyering@ascend.com>
43437
43438         * m4/jm-macros.m4: Define GNU_PACKAGE here.
43439         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
43440         replaced e.g., in the *.sh files of the sh-utils.
43441
43442 1999-03-20  Jim Meyering  <meyering@ascend.com>
43443
43444         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43445         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43446         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43447
43448 1999-03-19  Jim Meyering  <meyering@ascend.com>
43449
43450         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43451
43452 1999-03-12  Jim Meyering  <meyering@ascend.com>
43453
43454         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43455
43456 1999-03-07  Jim Meyering  <meyering@ascend.com>
43457
43458         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43459         declared.
43460
43461 1999-02-17  Jim Meyering  <meyering@ascend.com>
43462
43463         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43464         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43465
43466 1999-02-07  Jim Meyering  <meyering@ascend.com>
43467
43468         * m4/group-member.m4: New file -- extracted from sh-utils'
43469         configure.in.
43470
43471         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43472         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43473
43474 1999-02-06  Jim Meyering  <meyering@ascend.com>
43475
43476         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43477         * m4/fnmatch.m4: Likewise.
43478         * m4/getgroups.m4: Likewise.
43479         * m4/lstat.m4: Likewise.
43480         * m4/malloc.m4: Likewise.
43481         * m4/putenv.m4: Likewise.
43482         * m4/realloc.m4: Likewise.
43483         * m4/regex.m4: Likewise.
43484         * m4/stat.m4: Likewise.
43485         * m4/strftime.m4: Likewise.
43486         Suggestion from Alain Magloire.
43487
43488         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43489         * m4/fnmatch.m4: Likewise.
43490         * m4/getgroups.m4: Likewise.
43491         * m4/getline.m4: Likewise.
43492         * m4/lstat.m4: Likewise.
43493         * m4/malloc.m4: Likewise.
43494         * m4/memcmp.m4: Likewise.
43495         * m4/putenv.m4: Likewise.
43496         * m4/realloc.m4: Likewise.
43497         * m4/regex.m4: Likewise.
43498         * m4/stat.m4: Likewise.
43499         * m4/strftime.m4: Likewise.
43500         Suggestion from Alain Magloire.
43501
43502         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43503         an argument.
43504
43505         * m4/regex.m4: Add a run-time Test for proper operation of
43506         re_compile_pattern.
43507
43508 1999-01-31  Jim Meyering  <meyering@ascend.com>
43509
43510         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43511
43512 1999-01-30  Jim Meyering  <meyering@ascend.com>
43513
43514         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43515
43516         * m4/jm-mktime.m4: Make this a wrapper around the official
43517         AM_FUNC_MKTIME rather than my private copy, now that the official one
43518         is up to date.
43519         * m4/mktime.m4: Remove file.
43520
43521         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43522         * m4/uptime.m4: Likewise.
43523         * m4/uintmax_t.m4: Likewise.
43524
43525 1999-01-28  Jim Meyering  <meyering@ascend.com>
43526
43527         * m4/jm-macros.m4: Use jm_AFS.
43528         * m4/afs.m4: New file (from fileutils' configure.in).
43529
43530         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43531         * m4/chown.m4: Likewise.
43532         * m4/d-ino.m4: Likewise.
43533         * m4/d-type.m4: Likewise.
43534         * m4/fnmatch.m4: Likewise.
43535         * m4/getgroups.m4: Likewise.
43536         * m4/gettext.m4: Likewise.
43537         * m4/jm-mktime.m4: Likewise.
43538         * m4/jm-winsz2.m4: Likewise.
43539         * m4/lcmessage.m4: Likewise.
43540         * m4/ls-mntd-fs.m4: Likewise.
43541         * m4/malloc.m4: Likewise.
43542         * m4/memcmp.m4: Likewise.
43543         * m4/putenv.m4: Likewise.
43544         * m4/realloc.m4: Likewise.
43545         * m4/st_mtim.m4: Likewise.
43546         * m4/strftime.m4: Likewise.
43547
43548 1999-01-16  Jim Meyering  <meyering@ascend.com>
43549
43550         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43551         (ARGMATCH_DIE_DECL): Define.
43552
43553 1999-01-12  Jim Meyering  <meyering@ascend.com>
43554
43555         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43556         Reported by Lars Hecking.
43557
43558 1999-01-10  Jim Meyering  <meyering@ascend.com>
43559
43560         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43561         gross kludge.
43562         * m4/inttypes_h.m4: Likewise.
43563         * m4/lstat.m4: Likewise.
43564         * m4/malloc.m4: Likewise.
43565         * m4/readdir.m4: Likewise.
43566         * m4/realloc.m4: Likewise.
43567         * m4/st_dm_mode.m4: Likewise.
43568         * m4/stat.m4: Likewise.
43569         * m4/utimbuf.m4: Likewise.
43570         * m4/utimes.m4: Likewise.
43571
43572         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43573         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43574         comments in config.h.in are meaningful.
43575
43576         * m4/jm-macros.m4: Require autoconf-2.13 here.
43577
43578         * m4/regex.m4: By default, don't use the included regex.c on systems
43579         with glibc 2.  Suggestion from Uli Drepper.
43580
43581 1999-01-02  Jim Meyering  <meyering@ascend.com>
43582
43583         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43584
43585 1998-12-18  Jim Meyering  <meyering@ascend.com>
43586
43587         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43588         Based on a suggestion from Lars Hecking.
43589
43590 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43591
43592         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43593
43594 1998-11-16  Jim Meyering  <meyering@ascend.com>
43595
43596         * m4/lfs.m4: Double-quote the `uname...` expression.
43597
43598 1998-11-14  Jim Meyering  <meyering@ascend.com>
43599
43600         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43601         * m4/stat.m4: Likewise.
43602
43603 1998-11-03  Jim Meyering  <meyering@ascend.com>
43604
43605         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43606         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43607
43608 1998-10-18  Jim Meyering  <meyering@ascend.com>
43609
43610         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43611
43612 1998-10-17  Jim Meyering  <meyering@ascend.com>
43613
43614         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43615         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43616         calls for those previously hard-coded headers.  Instead, take a new
43617         parameter.
43618         (jm_CHECK_DECLARATIONS): Reflect interface change.
43619         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43620         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43621
43622         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43623
43624 1998-10-14  Jim Meyering  <meyering@ascend.com>
43625
43626         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43627         instead of "TZ=America/Vancouver".  From Paul Eggert.
43628
43629 1998-10-11  Jim Meyering  <meyering@ascend.com>
43630
43631         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43632         This adds a test for a recently added compatibility fix for mktime.c.
43633         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43634
43635 1998-09-27  Jim Meyering  <meyering@ascend.com>
43636
43637         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43638
43639         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43640         ../configure.in, including a change from Gordon Matzigkeit to allow
43641         cross-compiling for the Hurd.
43642
43643         * m4/glibc.m4: New file/macro to test for the GNU C Library
43644         versions 1 and 2.  From Gordon Matzigkeit.
43645         Indent.
43646
43647 1998-09-21  Jim Meyering  <meyering@ascend.com>
43648
43649         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43650
43651 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43652
43653         Port nanosecond-resolution times to UnixWare 2.1.2 and
43654         pedantic Solaris 2.6.
43655
43656         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43657         AC_STRUCT_ST_MTIM.
43658         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43659         Generate name of ns member, instead of just 1 or undef.
43660         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43661
43662 1998-08-15  Jim Meyering  <meyering@ascend.com>
43663
43664         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43665         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43666         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43667         instead of jm_TYPE_SSIZE_T.
43668
43669 1998-08-12  Jim Meyering  <meyering@ascend.com>
43670
43671         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43672
43673 1998-08-02  Jim Meyering  <meyering@ascend.com>
43674
43675         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43676         in acconfig.h manually.
43677
43678 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43679
43680         * m4/st_mtim.m4: New file.
43681
43682 1998-07-28  Jim Meyering  <meyering@ascend.com>
43683
43684         * m4/utimes.m4: Undef stat.
43685
43686 1998-07-25  Jim Meyering  <meyering@ascend.com>
43687
43688         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43689         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43690
43691 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43692
43693         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43694         uid and gid actually remain unchanged.
43695
43696 1998-07-07  Jim Meyering  <meyering@ascend.com>
43697
43698         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43699
43700 1998-07-04  Jim Meyering  <meyering@ascend.com>
43701
43702         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43703         to prove that this macro can be used in packages without regex.c.
43704
43705 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43706
43707         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43708         is to be used.
43709
43710 1998-07-03  Jim Meyering  <meyering@ascend.com>
43711
43712         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43713
43714         * m4/gettext.m4: New file -- from gettext-0.10.35.
43715         * m4/lcmessage.m4: Likewise.
43716         * m4/progtest.m4: Likewise.
43717
43718         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43719         * m4/jm-macros.m4: Require the new macro.
43720
43721 1998-06-29  Jim Meyering  <meyering@ascend.com>
43722
43723         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43724         for the definition of NGROUPS (used in a system header included
43725         by sys/mount.h).
43726
43727 1998-06-28  Jim Meyering  <meyering@ascend.com>
43728
43729         * m4/ls-mntd-fs.m4: New file.
43730         * m4/fstypename.m4: New file.
43731
43732         * m4/jm-macros.m4: Require the new macro.
43733         * m4/jm-glibc-io.m4: New file.
43734
43735 1998-05-19  Jim Meyering  <meyering@ascend.com>
43736
43737         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43738         * m4/lchown.m4: New file.
43739
43740         * m4/Makefile.am.in: New file.
43741         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43742
43743 1998-05-14  Jim Meyering  <meyering@ascend.com>
43744
43745         * m4/Makefile.am (EXTRA_DIST): Add them.
43746         * m4/jm-macros.m4: New file.
43747         * m4/utimbuf.m4: New file.
43748
43749 1998-05-12  Jim Meyering  <meyering@ascend.com>
43750
43751         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43752
43753 1998-05-11  Jim Meyering  <meyering@ascend.com>
43754
43755         * m4/isc-posix.m4: New file.
43756
43757 1998-05-10  Jim Meyering  <meyering@ascend.com>
43758
43759         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43760
43761 1998-05-09  Jim Meyering  <meyering@ascend.com>
43762
43763         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43764         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43765         with automake.
43766
43767         * m4/ssize_t.m4: New file.
43768         * m4/mktime.m4: Remove file -- the new automake has this now.
43769
43770 1998-04-26  Jim Meyering  <meyering@ascend.com>
43771
43772         * m4/assert.m4: New file.
43773         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43774
43775 1998-04-05  Jim Meyering  <meyering@ascend.com>
43776
43777         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43778         (jm_PREREQ): Use it here.
43779
43780 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43781
43782         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43783         in acconfig.h.
43784
43785 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43786
43787         * m4/prereq.m4: New file.
43788         * m4/error.m4: New file.
43789         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43790
43791 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43792
43793         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43794         cache-check for the same variable -- that defeated the purpose of
43795         the test; the test program was never run.  This was a problem only
43796         on systems with losing getline functions -- HP-UX 10.20 is one.
43797         Reported by Bjorn Helgaas.
43798
43799 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43800
43801         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43802
43803 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43804
43805         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43806
43807         * m4/const.m4: New file.  Use an initializer in this declaration
43808         typedef int charset[2]; const charset x;
43809         Reported by Bob Glickstein.
43810
43811 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43812
43813         * m4/chown.m4: Fix reversed types on -1 args to chown.
43814         From Kaveh Ghazi.
43815
43816 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43817
43818         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43819         Add lseek and memchr.
43820
43821         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43822         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43823         have a 20-character limit on names.
43824
43825 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43826
43827         * m4/inttypes_h.m4: New file.
43828         * m4/uintmax_t.m4: New file.
43829         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43830
43831
43832         -----
43833
43834         Local Variables:
43835         coding: utf-8
43836         End:
43837
43838         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43839
43840         Copying and distribution of this file, with or without
43841         modification, are permitted provided the copyright notice
43842         and this notice are preserved.