42c4ba80288cefaae31f2972495e11449ba92adf
[gnulib.git] / ChangeLog
1 2008-11-02  Bruno Haible  <bruno@clisp.org>
2
3         Mark 'strdup' obsolete.
4         * modules/strdup (Status, Notice): New sections.
5         * modules/findprog (Depends-on): Add strdup.
6         * modules/getaddrinfo (Depends-on): Likewise.
7         * modules/localename (Depends-on): Likewise.
8         * modules/relocatable-lib (Depends-on): Likewise.
9         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10         * modules/relocatable-prog (Depends-on): Likewise.
11         * modules/trim (Depends-on): Likewise.
12         * modules/unictype/gen-ctype (Depends-on): Likewise.
13         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
14
15 2008-11-02  Bruno Haible  <bruno@clisp.org>
16
17         Mark 'strcspn' obsolete.
18         * modules/strcspn (Status, Notice): New sections.
19
20 2008-11-02  Bruno Haible  <bruno@clisp.org>
21
22         Mark 'rmdir' obsolete.
23         * modules/rmdir (Status, Notice): New sections.
24         * modules/clean-temp (Depends-on): Add rmdir.
25         * modules/openat (Depends-on): Likewise.
26
27 2008-11-02  Bruno Haible  <bruno@clisp.org>
28
29         Mark 'raise' obsolete.
30         * modules/raise (Status, Notice): New sections.
31         (Include): Specify <signal.h>.
32         * modules/stdio (Depends-on): Add raise.
33         * modules/write (Depends-on): Likewise.
34
35 2008-11-02  Bruno Haible  <bruno@clisp.org>
36
37         Mark 'memset' obsolete.
38         * modules/memset (Status, Notice): New sections.
39
40 2008-11-02  Bruno Haible  <bruno@clisp.org>
41
42         Mark 'memmove' obsolete.
43         * modules/memmove (Status, Notice): New sections.
44         * modules/argp (Depends-on): Add memmove.
45         * modules/argz (Depends-on): Likewise.
46         * modules/canonicalize (Depends-on): Likewise.
47         * modules/canonicalize-lgpl (Depends-on): Likewise.
48         * modules/fts (Depends-on): Likewise.
49         * modules/getcwd (Depends-on): Likewise.
50         * modules/human (Depends-on): Likewise.
51         * modules/regex (Depends-on): Likewise.
52         * modules/striconveh (Depends-on): Likewise.
53         * modules/trim (Depends-on): Likewise.
54         * modules/unistr/u8-move (Depends-on): Likewise.
55         * modules/unistr/u16-move (Depends-on): Likewise.
56         * modules/unistr/u32-move (Depends-on): Likewise.
57
58 2008-11-02  Bruno Haible  <bruno@clisp.org>
59
60         Mark 'memcpy' obsolete.
61         * modules/memcpy (Status, Notice): New sections.
62
63 2008-11-02  Bruno Haible  <bruno@clisp.org>
64
65         Mark 'memcmp' obsolete.
66         * modules/memcmp (Status, Notice): New sections.
67         * modules/argmatch (Depends-on): Add memchr.
68         * modules/backupfile (Depends-on): Likewise.
69         * modules/c-strcasestr (Depends-on): Likewise.
70         * modules/crypto/des (Depends-on): Likewise.
71         * modules/csharpcomp (Depends-on): Likewise.
72         * modules/fnmatch (Depends-on): Likewise.
73         * modules/git-merge-changelog (Depends-on): Likewise.
74         * modules/isnand (Depends-on): Likewise.
75         * modules/isnand-nolibm (Depends-on): Likewise.
76         * modules/isnanf (Depends-on): Likewise.
77         * modules/isnanf-nolibm (Depends-on): Likewise.
78         * modules/isnanl (Depends-on): Likewise.
79         * modules/isnanl-nolibm (Depends-on): Likewise.
80         * modules/mbchar (Depends-on): Likewise.
81         * modules/memcoll (Depends-on): Likewise.
82         * modules/quotearg (Depends-on): Likewise.
83         * modules/regex (Depends-on): Likewise.
84         * modules/relocatable-prog (Depends-on): Likewise.
85         * modules/same (Depends-on): Likewise.
86         * modules/signbit (Depends-on): Likewise.
87         * modules/strcasestr-simple (Depends-on): Likewise.
88         * modules/unictype/gen-ctype (Depends-on): Likewise.
89         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90         * modules/uniname/uniname (Depends-on): Likewise.
91         * modules/unistr/u8-cmp (Depends-on): Likewise.
92
93 2008-11-02  Bruno Haible  <bruno@clisp.org>
94
95         Mark 'memchr' obsolete.
96         * modules/memchr (Status, Notice): New sections.
97         * modules/argp (Depends-on): Add memchr.
98         * modules/base64 (Depends-on): Likewise.
99         * modules/c-strcasestr (Depends-on): Likewise.
100         * modules/chdir-long (Depends-on): Likewise.
101         * modules/fnmatch (Depends-on): Likewise.
102         * modules/getsubopt (Depends-on): Likewise.
103         * modules/git-merge-changelog (Depends-on): Likewise.
104         * modules/glob (Depends-on): Likewise.
105         * modules/strcasestr-simple (Depends-on): Likewise.
106         * modules/strnlen (Depends-on): Likewise.
107
108 2008-11-02  Bruno Haible  <bruno@clisp.org>
109
110         Mark 'atexit' obsolete.
111         * modules/atexit (Status, Notice): New sections.
112         * modules/chdir-long (Depends-on): Add atexit.
113         * modules/wait-process (Depends-on): Likewise.
114
115 2008-11-02  Bruno Haible  <bruno@clisp.org>
116
117         * gnulib-tool: New option --with-obsolete.
118         (func_usage): Document it.
119         (func_modules_transitive_closure): Drop obsolete dependencies if
120         incobsolete is not true.
121         (func_import): Read and save the incobsolete variable to the cache.
122
123 2008-11-02  Bruno Haible  <bruno@clisp.org>
124
125         * modules/TEMPLATE-EXTENDED: New field 'Status'.
126         * gnulib-tool: New option --extract-status.
127         (func_usage): Document it.
128         (sed_extract_prog): Recognize it.
129         (func_get_status): New function.
130
131 2008-10-30  Simon Josefsson  <simon@josefsson.org>
132
133         * modules/sockets (License): Change from LGPL to LGPLv2+.
134
135 2008-10-28  Simon Josefsson  <simon@josefsson.org>
136
137         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
138
139 2008-10-28  Simon Josefsson  <simon@josefsson.org>
140
141         * MODULES.html.sh (Support for systems lacking POSIX:2001):
142         Mention times and sys_times.
143         * modules/sys_times, modules/sys_times-tests: New modules.
144         * modules/times, modules/times-tests: Likewise
145         * m4/sys_times_h.m4: New file.
146         * lib/sys_times.in.h: Likewise
147         * lib/times.c: Likewise.
148         * tests/test-sys_times.c: Likewise.
149         * tests/test-times.c: Likewise.
150         * doc/posix-headers/sys_times.texi: Update.
151         * doc/posix-functions/times.texi: Update.
152
153 2008-10-28  Jim Meyering  <meyering@redhat.com>
154
155         * modules/tempname (Depends-on): Add lstat.
156
157         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
158
159 2008-10-28  Simon Josefsson  <simon@josefsson.org>
160
161         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
162         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
163         using idiom used elsewhere in gnulib.
164
165 2008-10-27  Jim Meyering  <meyering@redhat.com>
166
167         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
168
169 2008-10-27  Simon Josefsson  <simon@josefsson.org>
170
171         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
172         TESTS_ENVIRONMENT, for shell scripts that needs to call built
173         programs.
174         * tests/test-argp-2.sh: Use $EXEEXT when needed.
175
176 2008-10-27  Simon Josefsson  <simon@josefsson.org>
177
178         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
179
180 2008-10-27  Bruno Haible  <bruno@clisp.org>
181
182         * tests/test-lstat.c: Include <stdio.h>.
183
184 2008-10-27  Simon Josefsson  <simon@josefsson.org>
185
186         * modules/lstat-tests: New module.
187         * tests/test-lstat.c: New file.
188
189 2008-10-26  Jim Meyering  <meyering@redhat.com>
190
191         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
192
193 2008-10-26  Simon Josefsson  <simon@josefsson.org>
194             Bruno Haible  <bruno@clisp.org>
195
196         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
197         * modules/configmake (Include): Add a note that the include must come
198         after all system headers.
199         * lib/javaversion.c: Include configmake.h after all other includes.
200
201 2008-10-26  Bruno Haible  <bruno@clisp.org>
202
203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
204         HAVE_STRUCT_RANDOM_DATA to 1.
205         (gl_STDLIB_H): Simplify.
206
207 2008-10-26  Simon Josefsson  <simon@josefsson.org>
208
209         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
210         substitute HAVE_STRUCT_RANDOM_DATA.
211         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
212         random_data.
213         * modules/stdlib (Makefile.am): Substitute
214         HAVE_STRUCT_RANDOM_DATA.
215
216 2008-10-26  Simon Josefsson  <simon@josefsson.org>
217
218         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
219         * doc/gnulib-intro.texi (Copyright): Likewise.
220
221 2008-10-26  Simon Josefsson  <simon@josefsson.org>
222
223         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
224         findings.
225
226 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
227             Bruno Haible  <bruno@clisp.org>
228
229         * lib/unistd.in.h: Include <winsock2.h>.
230         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
231         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
232         Provide dummy declarations.
233         (gethostname): Override.
234         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
236         gl_PREREQ_SYS_H_WINSOCK2.
237         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
238         * doc/posix-functions/gethostname.texi: More details.
239
240 2008-10-25  Bruno Haible  <bruno@clisp.org>
241
242         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
243         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
244         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
245
246         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
247         here ...
248         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
249         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
250         gl_UNISTD_H_DEFAULTS.
251
252 2008-10-25  Eric Blake  <ebb9@byu.net>
253
254         signbit: avoid spurious compiler failure
255         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
256         declarations inside function.
257
258 2008-10-24  Simon Josefsson  <simon@josefsson.org>
259             Bruno Haible  <bruno@clisp.org>
260
261         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
262         * modules/random_r (Depends-on): Add stdint.
263
264 2008-10-24  Bruno Haible  <bruno@clisp.org>
265
266         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
267         Eggert.
268         * modules/strerror (License): Likewise.
269
270 2008-10-24  Jim Meyering  <meyering@redhat.com>
271
272         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
273         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
274
275 2008-10-24  Eric Blake  <ebb9@byu.net>
276
277         getgroups: fix compilation when getgroups is available
278         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
279         but with <config.h> override of getgroups disabled.
280
281 2008-10-24  Simon Josefsson  <simon@josefsson.org>
282
283         * doc/gnulib.texi (Header files): Add note about C++ problems.
284         Explained by Bruno Haible <bruno@clisp.org>.
285
286 2008-10-23  Bruno Haible  <bruno@clisp.org>
287
288         Define a dummy SA_NODEFER macro on Interix.
289         * lib/signal.in.h (SA_NODEFER): Define fallback.
290         Reported by Aleksey Cheusov <cheusov@tut.by> via
291         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
292
293 2008-10-23  Bruno Haible  <bruno@clisp.org>
294
295         * modules/freadahead (License): Change to LGPLv2+.
296         Suggested by Simon Josefsson.
297
298 2008-10-23  Jim Meyering  <meyering@redhat.com>
299
300         random_r: new module
301         * modules/random_r: New file.
302         * m4/random_r.m4: New file.
303         * lib/random_r.c: New file, from glibc.
304         * modules/random_r-tests: New file.
305         * tests/test-random_r.c: New file.
306         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
307          Declare.
308         (RAND_MAX): Define.
309         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
310         * modules/stdlib: Substitute them, too.
311         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
312         * doc/glibc-functions/initstate_r.texi: Mention the new module.
313         * doc/glibc-functions/random_r.texi: Likewise.
314         * doc/glibc-functions/setstate_r.texi: Likewise.
315         * doc/glibc-functions/srandom_r.texi: Likewise.
316         * config/srclist.txt: Mention it.
317
318 2008-10-23  David Lutterkort  <lutter@redhat.com>
319
320         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
321         link requirement
322
323 2008-10-23  Jim Meyering  <meyering@redhat.com>
324
325         selinux-h: mark parameters of stub functions as intentionally unused
326         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
327         * lib/se-context.in.h: Likewise.
328
329 2008-10-22  Simon Josefsson  <simon@josefsson.org>
330
331         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
332
333 2008-10-22  Simon Josefsson  <simon@josefsson.org>
334
335         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
336
337 2008-10-22  Eric Blake  <ebb9@byu.net>
338
339         glthread/thread: avoid compiler warning
340         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
341         Add unreachable abort to silence compiler.
342
343 2008-10-22  Eric Blake  <ebb9@byu.net>
344
345         netdb: also supply struct addrinfo for cygwin 1.5.x
346         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
347         older cygwin.
348         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
349         cygwin.
350         * doc/posix-headers/netdb.texi (netdb.h): Document this.
351
352 2008-10-22  Bruno Haible  <bruno@clisp.org>
353
354         * users.txt: Update entry about pspp.
355
356 2008-10-21  Bruno Haible  <bruno@clisp.org>
357
358         Simplification.
359         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
360         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
361
362         Simplification.
363         * lib/ioctl.c (ioctl): Don't undefine.
364         * lib/socket.c (socket): Don't undefine.
365
366         Remove unused module indicator macros.
367         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
368         GNULIB_$1 as a C macro.
369
370         * doc/posix-functions/close.texi: Undo last change.
371         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
372         Windows platforms.
373
374 2008-10-21  Bruno Haible  <bruno@clisp.org>
375
376         Add gethostname() declaration to <unistd.h>.
377         * lib/unistd.in.h (gethostname): New declaration.
378         * lib/gethostname.c: Include <unistd.h>.
379         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
380         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
382         and HAVE_GETHOSTNAME.
383         * modules/gethostname (Depends-on): Add unistd.
384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
385         (Include): Specify <unistd.h>.
386         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
387         HAVE_GETHOSTNAME.
388         * tests/test-gethostname.c: Include <unistd.h> first.
389
390 2008-10-21  Bruno Haible  <bruno@clisp.org>
391
392         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
393         * modules/select-tests (Depends-on): Likewise.
394         Reported by Simon Josefsson.
395
396 2008-10-21  Simon Josefsson  <simon@josefsson.org>
397
398         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
399         * lib/accept.c: New file, based on winsock.c.
400         * lib/bind.c: New file, based on winsock.c.
401         * lib/connect.c: New file, based on winsock.c.
402         * lib/getpeername.c: New file, based on winsock.c.
403         * lib/getsockname.c: New file, based on winsock.c.
404         * lib/getsockopt.c: New file, based on winsock.c.
405         * lib/ioctl.c: New file, based on winsock.c.
406         * lib/listen.c: New file, based on winsock.c.
407         * lib/recv.c: New file, based on winsock.c.
408         * lib/recvfrom.c: New file, based on winsock.c.
409         * lib/send.c: New file, based on winsock.c.
410         * lib/sendto.c: New file, based on winsock.c.
411         * lib/setsockopt.c: New file, based on winsock.c.
412         * lib/shutdown.c: New file, based on winsock.c.
413         * lib/socket.c: New file, based on winsock.c.
414         * lib/w32sock.h: New file, based on winsock.c.
415         * lib/winsock.c: Remove file.
416         * modules/accept: Likewise.
417         * modules/bind: Likewise.
418         * modules/connect: Likewise.
419         * modules/getpeername: Likewise.
420         * modules/getsockname: Likewise.
421         * modules/getsockopt: Likewise.
422         * modules/ioctl: Likewise.
423         * modules/listen: Likewise.
424         * modules/recv: Likewise.
425         * modules/recvfrom: Likewise.
426         * modules/send: Likewise.
427         * modules/sendto: Likewise.
428         * modules/setsockopt: Likewise.
429         * modules/shutdown: Likewise.
430         * modules/socket: Use socket.c instead of winsock.c.
431         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
432         * doc/posix-functions/accept.texi: Doc fix.
433         * doc/posix-functions/bind.texi: Doc fix.
434         * doc/posix-functions/close.texi: Doc fix.
435         * doc/posix-functions/connect.texi: Doc fix.
436         * doc/posix-functions/getpeername.texi: Doc fix.
437         * doc/posix-functions/getsockname.texi: Doc fix.
438         * doc/posix-functions/getsockopt.texi: Doc fix.
439         * doc/posix-functions/ioctl.texi: Doc fix.
440         * doc/posix-functions/listen.texi: Doc fix.
441         * doc/posix-functions/recv.texi: Doc fix.
442         * doc/posix-functions/recvfrom.texi: Doc fix.
443         * doc/posix-functions/send.texi: Doc fix.
444         * doc/posix-functions/sendto.texi: Doc fix.
445         * doc/posix-functions/setsockopt.texi: Doc fix.
446         * doc/posix-functions/shutdown.texi: Doc fix.
447         * doc/posix-functions/socket.texi: Doc fix.
448
449 2008-10-20  Bruno Haible  <bruno@clisp.org>
450
451         Take into account the role of SIGABRT_COMPAT on Windows 2008.
452         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
453         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
454         as an alias for SIGABRT.
455         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
456         (sigaction): Map it to SIGABRT.
457         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
458
459 2008-10-20  Bruno Haible  <bruno@clisp.org>
460
461         * lib/fts.c: Don't include lstat.h.
462         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
463
464         Move the lstat() declaration to <sys/stat.h>.
465         * lib/lstat.h: Remove file.
466         * lib/sys_stat.in.h: Add special invocation convention.
467         (lstat): New declaration.
468         * lib/lstat.c (orig_lstat): New function.
469         (rpl_lstat): Use orig_lstat instead of lstat.
470         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
471         AC_C_INLINE. Set REPLACE_LSTAT.
472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
473         and REPLACE_LSTAT.
474         * modules/lstat (Files): Remove lib/lstat.h.
475         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
476         (Include): Specify <sys/stat.h> instead of lstat.h.
477         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
478         REPLACE_LSTAT.
479         * NEWS: Mention the change.
480
481 2008-10-20  Bruno Haible  <bruno@clisp.org>
482
483         * modules/posix_spawn-tests: New file.
484         * tests/test-posix_spawn3.c: New file.
485
486 2008-10-20  Bruno Haible  <bruno@clisp.org>
487
488         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
489         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
490         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
491         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
492         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
493
494 2008-10-20  Bruno Haible  <bruno@clisp.org>
495
496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
497         of posix_spawn on AIX 5.3.
498
499 2008-10-20  Bruno Haible  <bruno@clisp.org>
500
501         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
502
503 2008-10-20  Bruno Haible  <bruno@clisp.org>
504
505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
506         of AC_LANG_PROGRAM.
507
508 2008-10-20  Simon Josefsson  <simon@josefsson.org>
509
510         * lib/netdb.in.h: Don't define GNU specific constants until they
511         are supported or needed.  Reported by Bruno Haible
512         <bruno@clisp.org>.
513
514 2008-10-20  Simon Josefsson  <simon@josefsson.org>
515
516         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
517
518 2008-10-20  Simon Josefsson  <simon@josefsson.org>
519
520         * lib/getaddrinfo.h: Remove file.
521         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
522         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
523         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
524         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
525         * modules/netdb: Substitute GNULIB_GETADDRINFO.
526         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
527         * tests/test-getaddrinfo.c: Likewise.
528         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
529         * NEWS: Mention change.
530
531 2008-10-19  Bruno Haible  <bruno@clisp.org>
532
533         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
534
535 2008-10-19  Bruno Haible  <bruno@clisp.org>
536
537         * lib/wait-process.c: Include simply <sys/wait.h>.
538         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
539         WIFSTOPPED): Remove fallback definitions.
540         * modules/wait-process (Depends-on): Add sys_wait.
541
542         New module 'sys_wait'.
543         * modules/sys_wait: New file.
544         * lib/sys_wait.in.h: New file, partially copied from
545         lib/wait-process.c.
546         * m4/sys_wait_h.m4: New file.
547         * doc/posix-headers/sys_wait.texi: Mention the new module.
548
549 2008-10-19  Bruno Haible  <bruno@clisp.org>
550
551         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
552
553 2008-10-19  Bruno Haible  <bruno@clisp.org>
554
555         Assume that waitpid() fills an 'int' status, not a 'union wait'.
556         * lib/wait-process.c (WAIT_T): Remove type.
557         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
558         (wait_subprocess): Update.
559
560 2008-10-19  Bruno Haible  <bruno@clisp.org>
561
562         New module 'atoll'.
563         * modules/atoll: New file.
564         * lib/stdlib.in.h (atoll): New declaration.
565         * lib/atoll.c: New file, from glibc with modifications.
566         * m4/atoll.m4: New file.
567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
568         HAVE_ATOLL.
569         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
570         * doc/posix-functions/atoll.texi: Mention the new module.
571
572 2008-10-19  Bruno Haible  <bruno@clisp.org>
573
574         Add strtoull() declaration to <stdlib.h>.
575         * lib/stdlib.in.h (strtoull): New declaration.
576         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
577         Set HAVE_STRTOULL.
578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
579         HAVE_STRTOULL.
580         * modules/strtoull (Depends-on): Add stdlib.
581         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
582         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
583         HAVE_STRTOULL.
584
585 2008-10-19  Bruno Haible  <bruno@clisp.org>
586
587         Add strtoll() declaration to <stdlib.h>.
588         * lib/stdlib.in.h (strtoll): New declaration.
589         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
590         Set HAVE_STRTOLL.
591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
592         HAVE_STRTOLL.
593         * modules/strtoll (Depends-on): Add stdlib.
594         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
595         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
596
597 2008-10-19  Bruno Haible  <bruno@clisp.org>
598
599         * modules/bcopy (Depends-on): Add strings.
600         (Include): Specify <strings.h>.
601
602 2008-10-19  Bruno Haible  <bruno@clisp.org>
603
604         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
605
606 2008-10-19  Bruno Haible  <bruno@clisp.org>
607
608         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
609         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
610         mingw.
611
612 2008-10-19  Bruno Haible  <bruno@clisp.org>
613
614         * lib/atanl.c: Don't include isnanl.h.
615         * lib/cosl.c: Likewise.
616         * lib/ldexpl.c: Likewise.
617         * lib/logl.c: Likewise.
618         * lib/sinl.c: Likewise.
619         * lib/sqrtl.c: Likewise.
620         * lib/tanl.c: Likewise.
621
622         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
623         * lib/isnanf.h: Remove file.
624         * lib/isnand.h: Remove file.
625         * lib/isnanl.h: Remove file.
626         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
627         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
628         macros.
629         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
630         HAVE_ISNANF, don't define it as a C macro.
631         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
632         HAVE_ISNAND, don't define it as a C macro.
633         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
634         HAVE_ISNANL, don't define it as a C macro.
635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
636         HAVE_ISNAN[FDL].
637         * modules/isnanf (Files): Remove lib/isnanf.h.
638         (Depends-on): Add math.
639         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
640         (Include): Specify <math.h> instead of isnanf.h.
641         * modules/isnand (Files): Remove lib/isnand.h.
642         (Depends-on): Add math.
643         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
644         (Include): Specify <math.h> instead of isnand.h.
645         * modules/isnanl (Files): Remove lib/isnanl.h.
646         (Depends-on): Add math.
647         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
648         (Include): Specify <math.h> instead of isnanl.h.
649         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
650         HAVE_ISNAN[FDL].
651         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
652         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
653         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
654         * NEWS: Mention the change.
655
656 2008-10-18  Bruno Haible  <bruno@clisp.org>
657
658         Add getusershell(), setusershell(), endusershell() declarations to
659         <unistd.h>.
660         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
661         declarations.
662         * lib/getusershell.c: Include unistd.h.
663         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
664         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
665         HAVE_GETUSERSHELL.
666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
667         and HAVE_GETUSERSHELL.
668         * modules/getusershell (Depends-on): Add unistd, extensions.
669         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
670         (Include): Specify <unistd.h>.
671         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
672         HAVE_GETUSERSHELL.
673
674 2008-10-18  Bruno Haible  <bruno@clisp.org>
675
676         Add a getloadavg() declaration to <stdlib.h>.
677         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
678         getloadavg declaration.
679         (getloadavg): New declaration.
680         * lib/getloadavg.c: Include <stdlib.h> first.
681         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
682         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
683         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
685         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
686         * modules/getloadavg (Depends-on): Add stdlib, extensions.
687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
688         (Include): Specify <stdlib.h>.
689         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
690         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
691
692 2008-10-18  Bruno Haible  <bruno@clisp.org>
693
694         * lib/dirchownmod.c: Don't include lchmod.h.
695
696         Move the lchmod() declaration to <sys/stat.h>.
697         * lib/lchmod.h: Remove file.
698         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
699         (lchmod): New declaration, moved here from lib/lchown.h.
700         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
701         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
703         and HAVE_LCHMOD.
704         * modules/lchmod (Files): Remove lib/lchmod.h.
705         (Depends-on): Add sys_stat, extensions.
706         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
707         (Include): Specify <sys/stat.h> instead of lchmod.h.
708         * modules/sys_stat (Depends-on): Add link-warning.
709         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
710         definition of GL_LINK_WARNING.
711         * NEWS: Mention the change.
712
713 2008-10-18  Bruno Haible  <bruno@clisp.org>
714
715         * lib/fchdir.c: Don't include dirfd.h.
716         * lib/fts.c: Likewise.
717         * lib/getcwd.c: Likewise.
718         * lib/glob.c: Likewise.
719
720         Move the dirfd() declaration to <dirent.h>.
721         * lib/dirfd.h: Remove file.
722         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
723         (dirfd): New declaration.
724         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
726         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
727         HAVE_DECL_DIRFD.
728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
729         HAVE_DECL_DIRFD.
730         * modules/dirfd (Files): Remove lib/dirfd.h.
731         (Depends-on): Add dirent, extensions.
732         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
733         (Include): Specify <dirent.h> instead of dirfd.h.
734         * modules/dirent (Depends-on): Add link-warning.
735         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
736         definition of GL_LINK_WARNING.
737         * NEWS: Mention the change.
738
739 2008-10-18  Bruno Haible  <bruno@clisp.org>
740
741         Move the euidaccess() declaration to <unistd.h>.
742         * lib/euidaccess.h: Remove file.
743         * lib/unistd.in.h (euidaccess): New declaration.
744         * lib/euidaccess.c: Don't include euidaccess.h.
745         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
746         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
748         and HAVE_EUIDACCESS.
749         * modules/euidaccess (Files): Remove lib/euidaccess.h.
750         (Depends-on): Add unistd.
751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
752         (Include): Specify <unistd.h> instead of euidaccess.h.
753         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
754         HAVE_EUIDACCESS.
755         * NEWS: Mention the change.
756
757 2008-10-18  Bruno Haible  <bruno@clisp.org>
758
759         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
760
761         Move the getdomainname() declaration to <unistd.h>.
762         * lib/getdomainname.h: Remove file.
763         * lib/unistd.in.h (getdomainname): New declaration.
764         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
765         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
766         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
767         HAVE_GETDOMAINNAME.
768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
769         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
770         * modules/getdomainname (Files): Remove lib/getdomainname.h.
771         (Depends-on): Add unistd, extensions.
772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
773         (Includes): Specify <unistd.h> instead of getdomainname.h.
774         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
775         HAVE_GETDOMAINNAME.
776         * NEWS: Mention the change.
777
778 2008-10-18  Bruno Haible  <bruno@clisp.org>
779
780         * modules/dirent: New file.
781         * m4/dirent_h.m4: New file.
782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
783         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
784         * modules/fchdir (Files): Remove lib/dirent.in.h.
785         (Depends-on): Add dirent.
786         (Makefile.am): Move rules to modules/dirent.
787         * doc/posix-headers/dirent.texi: Mention the new module.
788
789 2008-10-18  Bruno Haible  <bruno@clisp.org>
790
791         Avoid -Wunused-parameter warnings in public gnulib header files.
792         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
793         macro.
794         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
795
796 2008-10-18  Bruno Haible  <bruno@clisp.org>
797
798         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
799         * doc/glibc-functions/error.texi: Mention the module 'error'.
800         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
801         * doc/glibc-functions/getdomainname.texi: Mention the module
802         'getdomainname'.
803         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
804         * doc/glibc-functions/getpagesize.texi: Mention the module
805         'getpagesize'.
806         * doc/glibc-functions/getusershell.texi: Mention the module
807         'getusershell'.
808         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
809         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
810         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
811         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
812         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
813         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
814         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
815         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
816         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
817         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
818         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
819         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
820         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
821         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
822
823 2008-10-17  Bruno Haible  <bruno@clisp.org>
824
825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
826         HP-UX and IRIX, use -0.0L.
827         * tests/test-ceill.c (minus_zero): Likewise.
828         * tests/test-floorl.c (minus_zero): Likewise.
829         * tests/test-frexpl.c (minus_zero): Likewise.
830         * tests/test-isnan.c (minus_zerol): Likewise.
831         * tests/test-isnanl.h (minus_zero): Likewise.
832         * tests/test-ldexpl.c (minus_zero): Likewise.
833         * tests/test-roundl.c (minus_zero): Likewise.
834         * tests/test-signbit.c (minus_zerol): Likewise.
835         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
836         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
837         * tests/test-truncl.c (minus_zero): Likewise.
838         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
839         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
840         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
841         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
842
843 2008-10-17  Bruno Haible  <bruno@clisp.org>
844
845         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
846         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
847         that it gets activated only for gcc >= 3.0.
848         * lib/dirent.in.h: Likewise.
849         * lib/errno.in.h: Likewise.
850         * lib/fcntl.in.h: Likewise.
851         * lib/float.in.h: Likewise.
852         * lib/iconv.in.h: Likewise.
853         * lib/inttypes.in.h: Likewise.
854         * lib/locale.in.h: Likewise.
855         * lib/math.in.h: Likewise.
856         * lib/netdb.in.h: Likewise.
857         * lib/netinet_in.in.h: Likewise.
858         * lib/search.in.h: Likewise.
859         * lib/signal.in.h: Likewise.
860         * lib/spawn.in.h: Likewise.
861         * lib/stdarg.in.h: Likewise.
862         * lib/stdint.in.h: Likewise.
863         * lib/stdio.in.h: Likewise.
864         * lib/stdlib.in.h: Likewise.
865         * lib/string.in.h: Likewise.
866         * lib/strings.in.h: Likewise.
867         * lib/sys_file.in.h: Likewise.
868         * lib/sys_ioctl.in.h: Likewise.
869         * lib/sys_select.in.h: Likewise.
870         * lib/sys_socket.in.h: Likewise.
871         * lib/sys_stat.in.h: Likewise.
872         * lib/sys_time.in.h: Likewise.
873         * lib/sysexits.in.h: Likewise.
874         * lib/time.in.h: Likewise.
875         * lib/unistd.in.h: Likewise.
876         * lib/wchar.in.h: Likewise.
877         * lib/wctype.in.h: Likewise.
878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
879
880 2008-10-17  Jim Meyering  <meyering@redhat.com>
881
882         ignore-value: don't depend on inline module
883         * modules/ignore-value (Depends-on): Remove 'inline'.
884         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
885         Suggestion from Bruno Haible.
886
887 2008-10-17  Bruno Haible  <bruno@clisp.org>
888
889         New implementation of condition variables for Win32.
890         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
891         (gl_linked_waitqueue_t): New type.
892         (gl_cond_t): Use it.
893         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
894         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
895         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
896         (glthread_cond_init_func, glthread_cond_wait_func,
897         glthread_cond_timedwait_func, glthread_cond_signal_func,
898         glthread_cond_broadcast_func, glthread_cond_destroy_func):
899         Reimplemented on the basis of gl_linked_waitqueue_t.
900         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
901         gl_waitqueue_t.
902         (gl_rwlock_t): Update.
903         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
904
905 2008-10-17  Simon Josefsson  <simon@josefsson.org>
906
907         * modules/recvfrom (Depends-on): Add dependency on getpeername.
908         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
909
910 2008-10-17  Jim Meyering  <meyering@redhat.com>
911
912         ignore-value: new module
913         * modules/ignore-value: New file.
914         * lib/ignore-value.h: New file.
915         * MODULES.html.sh (Compiler warning management): New section,
916         just for this module.  More to come.
917
918 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
919
920         open-safer.c: avoid 'signed and unsigned in conditional...' warning
921         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
922         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
923
924 2008-10-16  Jim Meyering  <meyering@redhat.com>
925
926         openat-die.c: avoid 'no previous prototype' warning
927         * lib/openat-die.c: Include "openat.h".
928         Reported by Reuben Thomas <rrt@sc3d.org>.
929
930 2008-10-16  Simon Josefsson  <simon@josefsson.org>
931
932         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
933         * lib/netdb.in.h: Fix typo.
934         Reported by Bruno Haible  <bruno@clisp.org>
935
936         * lib/netdb.in.h: Include sys/socket.h for platforms without
937         netdb.h, to get structures like hostent on MinGW.
938         * modules/netdb (Depends-on): Add sys_socket.
939
940 2008-10-15  Simon Josefsson  <simon@josefsson.org>
941
942         * modules/netdb, modules/netdb-tests: New file.
943         * m4/netdb_h.m4: New file.
944         * lib/netdb.in.h: Add, currently just an empty file pending
945         definitions.
946         * tests/test-netdb.c: New file.
947         * doc/posix-headers/netdb.texi: Mention that we replace it if
948         needed.
949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
950         netdb.
951
952 2008-10-15  Simon Josefsson  <simon@josefsson.org>
953
954         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
955         with code.
956
957 2008-10-13  Bruno Haible  <bruno@clisp.org>
958
959         * lib/glthread/cond.c (glthread_cond_wait_func,
960         glthread_cond_timedwait_func): Add a comment.
961
962 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
963
964         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
965         * tests/test-select.c: Likewise,
966
967 2008-10-13  Bruno Haible  <bruno@clisp.org>
968
969         * lib/glthread/cond.c (glthread_cond_wait_func,
970         glthread_cond_timedwait_func): Fix variable name.
971         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
972
973 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
974
975         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
977         struct sockaddr.sa_len.
978         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
979
980 2008-10-13  Simon Josefsson  <simon@josefsson.org>
981
982         * build-aux/pmccabe2html: Add css and css_url parameters.
983
984 2008-10-12  Bruno Haible  <bruno@clisp.org>
985
986         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
987         calling aclx_get.
988         Reported by Rainer Tammer <tammer@tammer.net>.
989
990 2008-10-12  Bruno Haible  <bruno@clisp.org>
991
992         Use msvcrt aware primitives for creation/termination of Win32 threads.
993         * lib/glthread/thread.c: Include <process.h>.
994         (glthread_create_func): Use _beginthreadex instead of CreateThread.
995         (wrapper_func): Update signature.
996         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
997
998 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
999             Bruno Haible  <bruno@clisp.org>
1000
1001         Provide a Win32 implementation of the 'cond' module.
1002         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1003         * lib/glthread/cond.c (glthread_cond_init_func,
1004         glthread_cond_wait_func, glthread_cond_timedwait_func,
1005         glthread_cond_signal_func, glthread_cond_broadcast_func,
1006         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1007         * modules/cond (Dependencies): Add gettimeofday.
1008
1009 2008-10-11  Bruno Haible  <bruno@clisp.org>
1010
1011         Make sleep work on older versions of mingw.
1012         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1013         only whether it exists.
1014         * doc/posix-functions/sleep.texi: Mention the problem with older
1015         versions of mingw.
1016
1017 2008-10-11  Bruno Haible  <bruno@clisp.org>
1018
1019         New module 'shutdown'.
1020         * modules/shutdown: New file.
1021         * lib/sys_socket.in.h (shutdown): New declaration.
1022         * lib/winsock.c (shutdown): New function.
1023         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1024         GNULIB_SHUTDOWN.
1025         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1026         * doc/posix-functions/shutdown.texi: Document the new module.
1027
1028 2008-10-11  Jim Meyering  <meyering@redhat.com>
1029
1030         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1031
1032 2008-10-11  Bruno Haible  <bruno@clisp.org>
1033
1034         New module 'fclose'.
1035         * modules/fclose: New file.
1036         * lib/stdio.in.h (fclose): New declaration.
1037         * lib/fclose.c: New file.
1038         * m4/fclose.m4: New file.
1039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1040         REPLACE_FCLOSE.
1041         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1042         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1043         REPLACE_FCLOSE.
1044         * modules/close (Depends-on): fclose.
1045         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1046
1047 2008-10-11  Bruno Haible  <bruno@clisp.org>
1048
1049         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1050         set errno and don't call _close.
1051
1052 2008-10-10  Bruno Haible  <bruno@clisp.org>
1053
1054         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1055         ACL, not afterwards. Fixes test failure on Cygwin.
1056
1057 2008-10-09  Ben Pfaff  <blp@gnu.org>
1058
1059         * build-aux/announce-gen: Fix gnulib version related part of usage
1060         message.  Die with a useful error message if no tarballs are
1061         found.
1062
1063 2008-10-10  Jim Meyering  <meyering@redhat.com>
1064
1065         bootstrap: use git's --depth=N option only if it's supported
1066         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1067         recognize the --depth option.  Reported by Pádraig Brady.
1068
1069 2008-10-09  Bruno Haible  <bruno@clisp.org>
1070
1071         New module 'ioctl'.
1072         * modules/ioctl: New file.
1073         * lib/sys_socket.in.h (ioctl): Remove declaration.
1074         * lib/winsock.c: Include <sys/ioctl.h>.
1075         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1076         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1077         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1078         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1079         * doc/posix-functions/ioctl.texi: Mention the new module.
1080
1081 2008-10-09  Bruno Haible  <bruno@clisp.org>
1082
1083         New module 'sys_ioctl'.
1084         * lib/sys_ioctl.in.h: New file.
1085         * m4/sys_ioctl_h.m4: New file.
1086         * modules/sys_ioctl: New file.
1087         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1088
1089 2008-10-09  Bruno Haible  <bruno@clisp.org>
1090
1091         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1092         * lib/winsock.c: Include <stdarg.h>.
1093         (rpl_ioctl): Change to second argument 'int' and then varargs.
1094
1095 2008-10-09  Bruno Haible  <bruno@clisp.org>
1096
1097         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1098         when the sys_socket module is present and the system has <winsock2.h>.
1099
1100 2008-10-09  Bruno Haible  <bruno@clisp.org>
1101
1102         * doc/posix-functions/close.texi: Mention module 'close' instead of
1103         module 'sys_socket'.
1104
1105 2008-10-09  Bruno Haible  <bruno@clisp.org>
1106
1107         * doc/glibc-headers/sys_ioctl.texi: New file.
1108         * doc/gnulib.texi: Include it.
1109
1110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1111             Bruno Haible  <bruno@clisp.org>
1112
1113         Combine the two replacements of 'close'.
1114         * lib/sys_socket.in.h (close): Define to a reminder to include
1115         <unistd.h>.
1116         (_gl_close_fd_maybe_socket): New declaration.
1117         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1118         * lib/winsock.c (close): Remove undefinition.
1119         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1120         needed for the gnulib module 'close'.
1121         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1122         define to an error symbol or to a warning, if suitable.
1123         * lib/close.c: Include <sys/socket.h>.
1124         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1126         UNISTD_H_HAVE_WINSOCK2_H.
1127         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1129         UNISTD_H_HAVE_WINSOCK2_H.
1130         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1131         (configure.ac): Set a module indicator.
1132         (Makefile.am): Substitute GNULIB_CLOSE.
1133         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1134         * modules/poll-tests (Depends-on): Add close.
1135         * modules/select-tests (Depends-on): Likewise.
1136
1137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1138             Bruno Haible  <bruno@clisp.org>
1139
1140         New module 'close'.
1141         * modules/close: New file.
1142         * lib/unistd.in.h (close): Move declaration out of the
1143         FCHDIR_REPLACEMENT scope.
1144         (_gl_unregister_fd): New declaration.
1145         * lib/close.c: New file.
1146         * lib/fchdir.c (rpl_close): Remove function.
1147         * m4/close.m4: New file.
1148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1149         close.
1150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1151         REPLACE_CLOSE.
1152         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1153         REPLACE_CLOSE.
1154         * modules/fchdir (Depends-on): Add close.
1155
1156 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1157             Bruno Haible  <bruno@clisp.org>
1158
1159         * lib/fcntl.in.h (open): Simplify conditionals.
1160         (_gl_register_fd): New declaration.
1161         * lib/fchdir.c (rpl_open): Remove function.
1162         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1163         also.
1164         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1166         open.
1167
1168 2008-10-09  Jim Meyering  <meyering@redhat.com>
1169
1170         GNUmakefile: use the more name-space-friendly "_version"
1171         * top/GNUmakefile (_dummy): Update.
1172         (_version): Rename from "version".
1173
1174 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1175             Bruno Haible  <bruno@clisp.org>
1176
1177         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1178         rpl_close.
1179         (_gl_register_fd): New function, extracted from rpl_open.
1180         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1181         (rpl_open, rpl_opendir): Use _gl_register_fd.
1182
1183 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1184
1185         Fix organization of 'open' replacement.
1186         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1187         (gl_FUNC_OPEN): Use it.
1188         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1189
1190 2008-10-08  Bruno Haible  <bruno@clisp.org>
1191
1192         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1193
1194 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1195
1196         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1197         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1198         listen).
1199
1200 2008-10-08  Eric Blake  <ebb9@byu.net>
1201
1202         GNUmakefile: add 'make version' target
1203         * top/GNUmakefile (_curr-ver): Split version update rules...
1204         (version): ...into a target.
1205
1206 2008-10-07  Bruno Haible  <bruno@clisp.org>
1207
1208         Use a more portable replacement expression for -0.0L.
1209         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1210         instead of -0.0L. Fix m4 quotation.
1211
1212         * tests/test-signbit.c: Include <float.h>.
1213         (minus_zero): New variable.
1214         (test_signbitl): Use minus_zero instead of -zero.
1215         * modules/signbit-tests (Depends-on): Add float.
1216
1217         * tests/test-ceill.c: Include <float.h>.
1218         (zero): Remove variable.
1219         (minus_zero): New variable.
1220         (main): Use minus_zero instead of -zero.
1221         * modules/ceill-tests (Depends-on): Add float.
1222
1223         * tests/test-floorl.c: Include <float.h>.
1224         (zero): Remove variable.
1225         (minus_zero): New variable.
1226         (main): Use minus_zero instead of -zero.
1227         * modules/floorl-tests (Depends-on): Add float.
1228
1229         * tests/test-roundl.c: Include <float.h>.
1230         (zero): Remove variable.
1231         (minus_zero): New variable.
1232         (main): Use minus_zero instead of -zero.
1233         * modules/roundl-tests (Depends-on): Add float.
1234
1235         * tests/test-truncl.c: Include <float.h>.
1236         (zero): Remove variable.
1237         (minus_zero): New variable.
1238         (main): Use minus_zero instead of -zero.
1239         * modules/truncl-tests (Depends-on): Add float.
1240
1241         * tests/test-frexpl.c (zero): Remove variable.
1242         (minus_zero): New variable.
1243         (main): Use minus_zero instead of -zero.
1244         * modules/frexpl-tests (Depends-on): Add float.
1245
1246         * tests/test-isnan.c (zerol): Remove variable.
1247         (minus_zerol): New variable.
1248         (test_long_double): Use minus_zerol instead of -zerol.
1249         * modules/isnan-tests (Depends-on): Add float.
1250
1251         * tests/test-isnanl.h (zero): Remove variable.
1252         (minus_zero): New variable.
1253         (main): Use minus_zero instead of -zero.
1254         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1255         * modules/isnanl-tests (Depends-on): Add float.
1256
1257         * tests/test-ldexpl.c (zero): Remove variable.
1258         (minus_zero): New variable.
1259         (main): Use minus_zero instead of -zero.
1260         * modules/ldexpl-tests (Depends-on): Add float.
1261
1262         * tests/test-snprintf-posix.h (zerol): Remove variable.
1263         (minus_zerol): New variable.
1264         (test_function): Use minus_zerol instead of -zerol.
1265         * modules/snprintf-posix-tests (Depends-on): Add float.
1266         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1267
1268         * tests/test-sprintf-posix.h (zerol): Remove variable.
1269         (minus_zerol): New variable.
1270         (test_function): Use minus_zerol instead of -zerol.
1271         * modules/sprintf-posix-tests (Depends-on): Add float.
1272         * modules/vsprintf-posix-tests (Depends-on): Add float.
1273
1274         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1275         (minus_zerol): New variable.
1276         (test_function): Use minus_zerol instead of -zerol.
1277         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1278
1279         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1280         (minus_zerol): New variable.
1281         (test_function): Use minus_zerol instead of -zerol.
1282         * modules/vasprintf-posix-tests (Depends-on): Add float.
1283
1284 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1285
1286         * MODULES.html.sh (Support for building documentation): Mention
1287         pmccabe2html.  Sort entries.
1288
1289         Add pmccabe2html module, from gnupdf.
1290         * build-aux/pmccabe.css: New file.
1291         * build-aux/pmccabe2html: New file.
1292         * m4/pmccabe2html.m4: New file.
1293         * modules/pmccabe2html: New file.
1294
1295 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1296
1297         flock: new module
1298         * MODULES.html.sh: Add to list of modules.
1299         * lib/flock.c: flock implementation for Windows and Unix systems
1300         which have fcntl.
1301         * doc/glibc-functions/flock.texi: Update documentation.
1302         * lib/sys_file.in.h: <sys/file.h> header file.
1303         * m4/flock.m4: M4 macros.
1304         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1305         * modules/flock: flock module.
1306         * modules/flock-tests: flock tests module.
1307         * modules/sys_file: sys/file.h module.
1308         * tests/test-flock.c: test suite for flock.
1309
1310 2008-10-06  Jim Meyering  <meyering@redhat.com>
1311
1312         bootstrap: check for LT_INIT more portably still ;-)
1313         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1314         Spotted by Bruno Haible.
1315
1316 2008-10-06  Eric Blake  <ebb9@byu.net>
1317
1318         test-signbit: avoid tripping Irix cc bug on -0.0L
1319         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1320         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1321         entire testsuite consistent and avoids an Irix 6.2 bug.
1322
1323 2008-10-05  Bruno Haible  <bruno@clisp.org>
1324             Jim Meyering  <jim@meyering.net>
1325
1326         Add an option for ignoring EPIPE during close_stdout.
1327         * lib/closeout.h: Include <stdbool.h>.
1328         (close_stdout_set_ignore_EPIPE): New declaration.
1329         * lib/closeout.c: Include <stdbool.h>.
1330         (ignore_EPIPE): New variable.
1331         (close_stdout_set_ignore_EPIPE): New function.
1332         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1333         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1334         failure.
1335         * modules/closeout (Depends-on): Add stdbool.
1336
1337 2008-10-05  Bruno Haible  <bruno@clisp.org>
1338
1339         * modules/accept: New file.
1340         * modules/bind: New file.
1341         * modules/connect: New file.
1342         * modules/getpeername: New file.
1343         * modules/getsockname: New file.
1344         * modules/getsockopt: New file.
1345         * modules/listen: New file.
1346         * modules/recv: New file.
1347         * modules/recvfrom: New file.
1348         * modules/send: New file.
1349         * modules/sendto: New file.
1350         * modules/setsockopt: New file.
1351         * modules/socket: New file.
1352         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1353         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1354         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1355         the particular module is requested. Add a link warning when the
1356         particular module is not requested.
1357         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1358         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1359         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1360         the particular module is requested.
1361         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1362         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1363         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1364         * modules/sys_socket (Depends-on): Add link-warning.
1365         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1366         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1367         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1368         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1369         GL_LINK_WARNING.
1370         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1371         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1372         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1373         * doc/posix-functions/getpeername.texi: Mention the new module
1374         'getpeername'.
1375         * doc/posix-functions/getsockname.texi: Mention the new module
1376         'getsockname'.
1377         * doc/posix-functions/getsockopt.texi: Mention the new module
1378         'getsockopt'.
1379         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1380         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1381         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1382         * doc/posix-functions/send.texi: Mention the new module 'send'.
1383         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1384         * doc/posix-functions/setsockopt.texi: Mention the new module
1385         'setsockopt'.
1386         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1387         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1388         listen, connect, accept.
1389         * modules/select-tests (Depends-on): Likewise.
1390
1391 2008-10-05  Bruno Haible  <bruno@clisp.org>
1392
1393         * lib/winsock.c (strerror): Remove unused #undef.
1394         (rpl_close): Remove unused local variable.
1395
1396         * modules/sys_socket (Depends-on); Add errno.
1397
1398 2008-10-05  Bruno Haible  <bruno@clisp.org>
1399
1400         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1401         (select): Add a link warning when the 'select' module is not used.
1402         * modules/sys_select (Depends-on): Add link-warning.
1403         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1404         Suggested by Paolo Bonzini.
1405
1406 2008-10-05  Jim Meyering  <meyering@redhat.com>
1407
1408         bootstrap: check for LT_INIT more portably
1409         * build-aux/bootstrap: Avoid using grep -E, since it's not
1410         portable enough.  Suggestion from Bruno Haible.
1411
1412 2008-10-05  Bruno Haible  <bruno@clisp.org>
1413
1414         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1415         as being fixed by gnulib.
1416
1417 2008-10-05  Bruno Haible  <bruno@clisp.org>
1418
1419         * modules/select-tests: New file, mostly copied from
1420         modules/sys_select-tests.
1421         * tests/test-select.c: New file, mostly copied from
1422         tests/test-sys_select.c.
1423         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1424         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1425         (Makefile.am): Remove test_sys_select_LDADD.
1426
1427         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1428         to an undefined symbol, for an error message.
1429         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1430         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1431         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1432         winsock-select.c here.
1433         * modules/sys_select (Files): Remove lib/winsock-select.c.
1434         (Depends-on): Remove alloca.
1435         (Makefile.am): Substitute GNULIB_SELECT.
1436         * modules/select: New file.
1437         * doc/posix-functions/select.texi: Update.
1438
1439 2008-10-05  Bruno Haible  <bruno@clisp.org>
1440
1441         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1442         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1443         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1444         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1445         getdtablesize.
1446         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1447         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1448
1449 2008-10-05  Bruno Haible  <bruno@clisp.org>
1450
1451         * modules/getdtablesize-tests: New file.
1452         * tests/test-getdtablesize.c: New file.
1453
1454         New module 'getdtablesize'.
1455         * lib/unistd.in.h (getdtablesize): New declaration.
1456         * lib/getdtablesize.c: New file.
1457         * m4/getdtablesize.m4: New file.
1458         * modules/getdtablesize: New file.
1459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1460         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1461         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1462         HAVE_GETDTABLESIZE.
1463         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1464
1465 2008-10-05  Bruno Haible  <bruno@clisp.org>
1466
1467         * modules/sched (Makefile.am): Fix typo.
1468         Reported by Simon Josefsson.
1469
1470 2008-10-05  Jim Meyering  <meyering@redhat.com>
1471
1472         bootstrap: check for LT_INIT, too
1473         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1474         are deprecated.  Suggestion from Ralf Wildenhues.
1475
1476 2008-10-05  Bruno Haible  <bruno@clisp.org>
1477
1478         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1479         overriding them by ours.
1480         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1481
1482 2008-10-05  Jim Meyering  <meyering@redhat.com>
1483
1484         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1485         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1486         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1487
1488 2008-10-04  Bruno Haible  <bruno@clisp.org>
1489
1490         * modules/dup2 (License): Change to LGPLv2+.
1491         * modules/sleep (License): Likewise.
1492         * modules/perror (License): Likewise.
1493         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1494         Blake.
1495         * modules/signal (License): Likewise.
1496         * modules/sigprocmask (License): Likewise.
1497         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1498         Meyering.
1499
1500 2008-10-04  Bruno Haible  <bruno@clisp.org>
1501
1502         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1503         Reported by Rainer Tammer <tammer@tammer.net>.
1504
1505 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1506             Bruno Haible  <bruno@clisp.org>
1507
1508         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1509         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1510         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1511
1512 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1513
1514         filevercmp: new module
1515         * lib/filevercmp.h: New function filevercmp comparing version strings.
1516         * lib/filevercmp.c: Implementation of filevercmp function.
1517         * modules/filevercmp: Module metadata.
1518         * tests/test-filevercmp.c: Unit test for new module.
1519         * modules/filevercmp-tests: Unit test metadata.
1520         * MODULES.html.sh: Add filevercmp module.
1521
1522 2008-10-03  Bruno Haible  <bruno@clisp.org>
1523
1524         * lib/c-ctype.h: Add comment.
1525         Reported by Jim Meyering.
1526
1527 2008-10-02  Bruno Haible  <bruno@clisp.org>
1528
1529         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1530
1531 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1532
1533         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1534         name of bootstrap.conf accordingly.
1535
1536 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1537
1538         * build-aux/bootstrap: Install git-merge-changelog configuration
1539         items into .gitconfig if needed.
1540
1541 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1542
1543         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1544         git repository, and initialize/update it accordingly.
1545
1546 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1547
1548         * modules/fsync-tests: New file.
1549         * tests/test-fsync.c: New file.
1550
1551         New module 'fsync'.
1552         * lib/fsync.c: New file.
1553         * m4/fsync.m4: New file.
1554         * modules/fsync: New file.
1555         * lib/unistd.in.h (fsync): New declaration.
1556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1557         GNULIB_FSYNC and HAVE_FSYNC.
1558         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1559         * MODULES.html.sh (posix_functions): Add fsync.
1560         * doc/posix-functions/fsync.texi: Mention the new module.
1561
1562 2008-10-02  Jim Meyering  <meyering@redhat.com>
1563
1564         fts.c: sync with similar code from coreutils' remove.c
1565         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1566         Guard also with "#if defined __linux__", since for now at least,
1567         this code is Linux-kernel-specific.
1568
1569 2008-10-02  Jim Meyering  <meyering@redhat.com>
1570
1571         fts: bug fixes
1572         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1573         Include <sys/vfs.h>, not <sys/statfs.h>.
1574
1575         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1576         Include <sys/vfs.h>, not <sys/statfs.h>.
1577
1578 2008-10-01  Bruno Haible  <bruno@clisp.org>
1579
1580         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1582         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1583         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1584         * doc/posix-functions/posix_spawnp.texi: Likewise.
1585         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1586         whether posix_spawn actually works.
1587         * m4/pipe.m4 (gl_PIPE): Likewise.
1588         * modules/execute (Files): Add m4/posix_spawn.m4.
1589         * modules/pipe (Files): Add m4/posix_spawn.m4.
1590         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1591
1592 2008-10-01  Jim Meyering  <meyering@redhat.com>
1593
1594         remove trailing spaces
1595         * NEWS: Likewise.
1596         * lib/poll.c (poll): Likewise.
1597         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1598         * lib/winsock.c (rpl_close): Likewise.
1599         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1600         * modules/yield: Likewise.
1601         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1602         * tests/test-sys_select.c (connect_to_socket): Likewise.
1603
1604         fts.c: adjust a new interface to be more generally useful
1605         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1606         (fts_build): Adjust caller.
1607
1608 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1609
1610         * modules/cond-tests: New file.
1611         * tests/test-cond.c: New file.
1612
1613 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1614             Bruno Haible  <bruno@clisp.org>
1615
1616         * modules/cond (Dependencies): Add errno, time.
1617         * lib/glthread/cond.h: Include <time.h>.
1618         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1619         across platforms.
1620
1621 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1622             Bruno Haible  <bruno@clisp.org>
1623
1624         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1625
1626 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1627             Bruno Haible  <bruno@clisp.org>
1628
1629         * modules/tls-tests (Depends-on): Add thread, yield.
1630         (configure.ac): Remove all checks.
1631         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1632         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1633         gl_thread_self): Remove definitions. Include glthread/thread.h and
1634         glthread/yield.h instead.
1635         (test_tls): Pass an additional NULL argument to gl_thread_join.
1636
1637 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1638             Bruno Haible  <bruno@clisp.org>
1639
1640         * modules/lock-tests (Depends-on): Add thread, yield.
1641         (configure.ac): Remove all checks.
1642         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1643         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1644         gl_thread_self): Remove definitions. Include glthread/thread.h and
1645         glthread/yield.h instead.
1646         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1647         additional NULL argument to gl_thread_join.
1648
1649 2008-09-30  Bruno Haible  <bruno@clisp.org>
1650
1651         Fix the Win32 implementation of the 'thread' module.
1652         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1653         pointer type.
1654         (gl_thread_self): Invoke gl_thread_self_func.
1655         (gl_thread_self_func): New declaration.
1656         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1657         (do_init_self_key, init_self_key): New functions.
1658         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1659         Remove some fields.
1660         (running_threads, running_lock): Remove variables.
1661         (get_current_thread_handle): New function.
1662         (gl_thread_self_func, wrapper_func, glthread_create_func,
1663         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1664         simplified.
1665
1666 2008-09-30  Bruno Haible  <bruno@clisp.org>
1667
1668         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1669         files.
1670
1671 2008-09-30  Jim Meyering  <meyering@redhat.com>
1672
1673         fts.m4: correct the test for statfs.f_type
1674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1675         when checking for statfs.f_type.
1676
1677 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1678
1679         tests: avoid some compiler warnings
1680         * tests/test-memchr.c (main): Pass NULL indirectly.
1681         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1682
1683 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1684
1685         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1686         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1687         exactly specified dayshifts.
1688         (dayshift): New rule.
1689         (rel): Add dayshift.
1690         (relative_time_table) [tomorrow, yesterday, today, now]:
1691         Use tDAY_SHIFT in place of tDAY_UNIT.
1692         * tests/test-getdate.c: Add tests for now-disallowed countable
1693         dayshifts, e.g., "4 yesterday ago".
1694
1695 2008-09-29  Bruno Haible  <bruno@clisp.org>
1696
1697         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1698         * tests/test-posix_spawn1.in.sh: Renamed from
1699         tests/test-posix_spawn.in.sh.
1700         * tests/test-posix_spawn2.c: New file.
1701         * tests/test-posix_spawn2.in.sh: New file.
1702         * modules/posix_spawnp-tests (Files): Update.
1703         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1704
1705 2008-09-29  Bruno Haible  <bruno@clisp.org>
1706
1707         Propagate effects of putenv/setenv/unsetenv to child processes.
1708         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1709         * lib/pipe.c (create_pipe): Likewise.
1710
1711 2008-09-29  Bruno Haible  <bruno@clisp.org>
1712
1713         Enable use of shell scripts as executables in mingw.
1714         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1715         run the program as a shell script.
1716         * lib/pipe.c (create_pipe): Likewise.
1717         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1718         resulting array.
1719
1720 2008-09-29  Eric Blake  <ebb9@byu.net>
1721
1722         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1723
1724 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1725
1726         * doc/posix-functions/accept.texi: Update mingw problems.
1727         * doc/posix-functions/bind.texi: Update mingw problems.
1728         * doc/posix-functions/close.texi: Update mingw problems.
1729         * doc/posix-functions/connect.texi: Update mingw problems.
1730         * doc/posix-functions/getpeername.texi: Update mingw problems.
1731         * doc/posix-functions/getsockname.texi: Update mingw problems.
1732         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1733         * doc/posix-functions/ioctl.texi: Update mingw problems.
1734         * doc/posix-functions/listen.texi: Update mingw problems.
1735         * doc/posix-functions/recv.texi: Update mingw problems.
1736         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1737         * doc/posix-functions/select.texi: Update mingw problems.
1738         * doc/posix-functions/send.texi: Update mingw problems.
1739         * doc/posix-functions/sendto.texi: Update mingw problems.
1740         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1741         * doc/posix-functions/socket.texi: Update mingw problems.
1742
1743 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1744             Bruno Haible  <bruno@clisp.org>
1745
1746         * lib/sys_select.in.h: Include sys/time.h.
1747         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1748         * modules/sys_select: Depend on sys_time.
1749         * tests/test-sys_select.c: Test that sys/select.h defines struct
1750         timeval fully.
1751
1752 2008-09-29  Bruno Haible  <bruno@clisp.org>
1753
1754         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1755         * lib/sys_select.in.h: Likewise.
1756
1757 2008-09-29  Bruno Haible  <bruno@clisp.org>
1758
1759         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1760
1761 2008-09-29  Bruno Haible  <bruno@clisp.org>
1762
1763         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1764         Set LIBSOCKET instead of augmenting LIBS.
1765         * modules/sockets (Link): New section.
1766         * modules/sockets-tests (test_sockets_LDADD): New variable.
1767         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1768         * modules/poll-tests (test_poll_LDADD): New variable.
1769         * NEWS: Document the change.
1770
1771 2008-09-29  Bruno Haible  <bruno@clisp.org>
1772
1773         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1774         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1775         ARPA_INET_H directly.
1776         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1777
1778 2008-09-28  Bruno Haible  <bruno@clisp.org>
1779
1780         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1781         from gl_HEADER_SYS_SOCKET.
1782         (gl_HEADER_SYS_SOCKET): Invoke it.
1783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1784
1785 2008-09-28  Bruno Haible  <bruno@clisp.org>
1786
1787         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1788         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1789         Needed on OSF/1 4.0.
1790
1791 2008-09-28  Bruno Haible  <bruno@clisp.org>
1792
1793         Override open more carefully.
1794         * lib/open.c (orig_open): New function.
1795         (rpl_open): Use orig_open instead of open.
1796         * lib/fcntl.in.h: Add special invocation convention.
1797         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1798         (gl_FUNC_OPEN): Invoke it.
1799
1800         Override freopen more carefully.
1801         * lib/freopen.c (orig_freopen): New function.
1802         (rpl_freopen): Use orig_freopen instead of freopen.
1803         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1804         (gl_FUNC_FREOPEN): Invoke it.
1805
1806         Override fopen more carefully.
1807         * lib/fopen.c (orig_fopen): New function.
1808         (rpl_fopen): Use orig_fopen instead of fopen.
1809         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1810         (gl_FUNC_FOPEN): Invoke it.
1811         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1812
1813 2008-09-28  Bruno Haible  <bruno@clisp.org>
1814
1815         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1816         SIGPIPE.
1817
1818 2008-09-28  Bruno Haible  <bruno@clisp.org>
1819
1820         * tests/test-sigaction.c (handler, main): Disable the check whether
1821         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1822         glibc systems with LinuxThreads.
1823
1824 2008-09-28  Bruno Haible  <bruno@clisp.org>
1825
1826         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1827
1828         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1829         with AIX xlc.
1830         * lib/fcntl.in.h (open): Likewise.
1831         Reported by Rainer Tammer <tammer@tammer.net>.
1832
1833 2008-09-28  Bruno Haible  <bruno@clisp.org>
1834
1835         * modules/posix_spawnp-tests: New file.
1836         * tests/test-posix_spawn.c: New file.
1837         * tests/test-posix_spawn.in.sh: New file.
1838
1839         New module 'posix_spawnp'.
1840         * modules/posix_spawnp: New file.
1841         * lib/spawnp.c: New file, from GNU libc with modifications.
1842         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1843
1844         New module 'posix_spawn'.
1845         * modules/posix_spawn: New file.
1846         * lib/spawn.c: New file, from GNU libc with modifications.
1847         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1848
1849         New module 'posix_spawnattr_destroy'.
1850         * modules/posix_spawnattr_destroy: New file.
1851         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1852         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1853         module.
1854
1855         New module 'posix_spawnattr_setsigmask'.
1856         * modules/posix_spawnattr_setsigmask: New file.
1857         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1858         modifications.
1859         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1860         new module.
1861
1862         New module 'posix_spawnattr_getsigmask'.
1863         * modules/posix_spawnattr_getsigmask: New file.
1864         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1865         modifications.
1866         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1867         new module.
1868
1869         New module 'posix_spawnattr_setsigdefault'.
1870         * modules/posix_spawnattr_setsigdefault: New file.
1871         * lib/spawnattr_setdefault.c: New file, from GNU libc with
1872         modifications.
1873         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1874         new module.
1875
1876         New module 'posix_spawnattr_getsigdefault'.
1877         * modules/posix_spawnattr_getsigdefault: New file.
1878         * lib/spawnattr_getdefault.c: New file, from GNU libc with
1879         modifications.
1880         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1881         new module.
1882
1883         New module 'posix_spawnattr_setschedpolicy'.
1884         * modules/posix_spawnattr_setschedpolicy: New file.
1885         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1886         modifications.
1887         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1888         new module.
1889
1890         New module 'posix_spawnattr_getschedpolicy'.
1891         * modules/posix_spawnattr_getschedpolicy: New file.
1892         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1893         modifications.
1894         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1895         new module.
1896
1897         New module 'posix_spawnattr_setschedparam'.
1898         * modules/posix_spawnattr_setschedparam: New file.
1899         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1900         modifications.
1901         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1902         new module.
1903
1904         New module 'posix_spawnattr_getschedparam'.
1905         * modules/posix_spawnattr_getschedparam: New file.
1906         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1907         modifications.
1908         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1909         new module.
1910
1911         New module 'posix_spawnattr_setpgroup'.
1912         * modules/posix_spawnattr_setpgroup: New file.
1913         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1914         modifications.
1915         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1916         module.
1917
1918         New module 'posix_spawnattr_getpgroup'.
1919         * modules/posix_spawnattr_getpgroup: New file.
1920         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1921         modifications.
1922         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1923         module.
1924
1925         New module 'posix_spawnattr_setflags'.
1926         * modules/posix_spawnattr_setflags: New file.
1927         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1928         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1929         module.
1930
1931         New module 'posix_spawnattr_getflags'.
1932         * modules/posix_spawnattr_getflags: New file.
1933         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1934         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1935         module.
1936
1937         New module 'posix_spawnattr_init'.
1938         * modules/posix_spawnattr_init: New file.
1939         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1940         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1941         module.
1942
1943         New module 'posix_spawn_file_actions_destroy'.
1944         * modules/posix_spawn_file_actions_destroy: New file.
1945         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1946         modifications.
1947         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1948         the new module.
1949
1950         New module 'posix_spawn_file_actions_addopen'.
1951         * modules/posix_spawn_file_actions_addopen: New file.
1952         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1953         modifications.
1954         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1955         the new module.
1956
1957         New module 'posix_spawn_file_actions_adddup2'.
1958         * modules/posix_spawn_file_actions_adddup2: New file.
1959         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1960         modifications.
1961         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1962         the new module.
1963
1964         New module 'posix_spawn_file_actions_addclose'.
1965         * modules/posix_spawn_file_actions_addclose: New file.
1966         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1967         modifications.
1968         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1969         the new module.
1970
1971         New module 'posix_spawn_file_actions_init'.
1972         * modules/posix_spawn_file_actions_init: New file.
1973         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1974         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1975         new module.
1976
1977         New module 'posix_spawn-internal'.
1978         * modules/posix_spawn-internal: New file.
1979         * lib/spawn_int.h: New file, from GNU libc with modifications.
1980         * lib/spawni.c: New file, from GNU libc with modifications.
1981         * m4/posix_spawn.m4: New file.
1982
1983         New module 'spawn'.
1984         * modules/spawn: New file.
1985         * lib/spawn.in.h: New file, from GNU libc with modifications.
1986         * m4/spawn_h.m4: New file.
1987         * doc/posix-headers/spawn.texi: Mention the new module.
1988
1989 2008-09-28  Bruno Haible  <bruno@clisp.org>
1990
1991         * modules/sched-tests: New file.
1992         * tests/test-sched.c: New file.
1993
1994         New module 'sched'.
1995         * modules/sched: New file.
1996         * lib/sched.in.h: New file.
1997         * m4/sched_h.m4: New file.
1998         * doc/posix-headers/sched.texi: Mention the new module.
1999
2000 2008-09-27  Eric Blake  <ebb9@byu.net>
2001
2002         Fix previous patch, and tweak references to $0.
2003         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2004         (func_version, func_gnulib_dir): Don't call this program
2005         gnulib-tool.
2006         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2007         with using $0 in function.
2008         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2009         (func_fatal_error): Reuse the name the user invoked us with.
2010
2011 2008-09-27  Bruno Haible  <bruno@clisp.org>
2012
2013         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2014         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2015         (gl_ICONV_H): Not here.
2016         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2017         instead of assigning ICONV_H directly.
2018
2019         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2021         WCHAR_H directly.
2022
2023 2008-09-27  Bruno Haible  <bruno@clisp.org>
2024
2025         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2026         * modules/arpa_inet (Depends-on): Add link-warning.
2027         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2028         * modules/unistd (Makefile.am): Likewise.
2029
2030 2008-09-26  Bruno Haible  <bruno@clisp.org>
2031
2032         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2033         variables.
2034         (func_version): Essentially copied from gnulib-tool.
2035         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2036         func_readlink): Copied from gnulib-tool.
2037
2038 2008-09-26  Bruno Haible  <bruno@clisp.org>
2039
2040         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2041         invoking git-version-gen.
2042
2043 2008-09-26  Bruno Haible  <bruno@clisp.org>
2044
2045         * posix-modules: Update to directory names changed on 2008-01-19.
2046         Remove commas in output before splitting into words. No more need to
2047         avoid 'ftruncate' since 2007-02-19.
2048
2049 2008-09-26  Bruno Haible  <bruno@clisp.org>
2050
2051         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2052
2053 2008-09-26  Bruno Haible  <bruno@clisp.org>
2054
2055         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2056         * modules/fwriteerror (Depends-on): Add errno.
2057
2058 2008-09-26  Bruno Haible  <bruno@clisp.org>
2059
2060         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2061         * tests/test-vc-list-files-cvs.sh: Likewise.
2062
2063 2008-09-26  Bruno Haible  <bruno@clisp.org>
2064
2065         * doc/posix-headers/sys_resource.texi: Reorder items.
2066
2067 2008-09-26  Jim Meyering  <meyering@redhat.com>
2068
2069         fts: tweak inode comparison function
2070         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2071         inode numbers, as documented.
2072
2073         fts: sort dirent entries on inode number before traversing
2074         This avoids a quadratic, seek-related performance penalty when
2075         operating on a directory containing many entries (measurable at 10k;
2076         3.5 hours at 2 million entries with a cold cache) on certain types
2077         of file systems, including ext3 and ext4, but not tmpfs.
2078         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2079         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2080         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2081         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2082         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2083         (fts_build): Set the stat.st_ino member from D_INO.
2084         If it is likely to be useful, sort dirent entries on inode number.
2085
2086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2087         and the struct statfs.f_type member.
2088         * modules/fts (Depends-on): Add d-ino.
2089
2090 2008-09-26  Bruno Haible  <bruno@clisp.org>
2091
2092         * modules/sigpipe-die (Depends-on): Add sigpipe.
2093
2094         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2095         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2096         and GNULIB_STDIO_H_SIGPIPE are set.
2097         * lib/stdio-write.c: New file.
2098         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2099         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2100         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2101         REPLACE_STDIO_WRITE_FUNCS.
2102         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2103         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2104         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2105         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2106         * modules/stdio (Files): Add lib/stdio-write.c.
2107         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2108         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2109         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2110         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2111         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2112         REPLACE_FPRINTF_POSIX.
2113         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2114         REPLACE_PRINTF_POSIX.
2115         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2116         REPLACE_VFPRINTF_POSIX.
2117         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2118         REPLACE_VPRINTF_POSIX.
2119         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2120         SIGPIPE issue.
2121         * doc/posix-functions/fputc.texi: Likewise.
2122         * doc/posix-functions/fputs.texi: Likewise.
2123         * doc/posix-functions/fwrite.texi: Likewise.
2124         * doc/posix-functions/printf.texi: Likewise.
2125         * doc/posix-functions/putc.texi: Likewise.
2126         * doc/posix-functions/putchar.texi: Likewise.
2127         * doc/posix-functions/puts.texi: Likewise.
2128         * doc/posix-functions/vfprintf.texi: Likewise.
2129         * doc/posix-functions/vprintf.texi: Likewise.
2130
2131         * modules/safe-write (Depends-on): Add write.
2132
2133         * modules/sigpipe-tests: New file.
2134         * tests/test-sigpipe.c: New file.
2135         * tests/test-sigpipe.sh: New file.
2136
2137         * modules/write: New file.
2138         * lib/unistd.in.h: Include <sys/types.h>.
2139         (write): New declaration.
2140         * lib/write.c: New file.
2141         * m4/write.m4: New file.
2142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2143         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2144         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2145         GNULIB_WRITE, REPLACE_WRITE.
2146         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2147         and the SIGPIPE issue.
2148
2149         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2150         (raise): New declaration.
2151         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2152         (ext_signal): New function.
2153         (rpl_raise): New function.
2154         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2155         GNULIB_SIGNAL_H_SIGPIPE.
2156         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2157         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2158
2159         * modules/sigpipe: New file.
2160         * m4/sigpipe.m4: New file.
2161
2162 2008-09-25  Derek Price  <derek@ximbiot.com>
2163             Bruno Haible  <bruno@clisp.org>
2164
2165         * gnulib-tool (func_import): Report all license incompatibilities, not
2166         just the first one.
2167
2168 2008-09-25  Bruno Haible  <bruno@clisp.org>
2169
2170         * gnulib-tool (func_import): When computing the edits, consider not
2171         only the Makefile.ams that exist but also those that will be generated.
2172
2173 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2174
2175         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2176         fixes gnulib-tool --test warning about duplicate dependency.
2177
2178 2008-09-25  Bruno Haible  <bruno@clisp.org>
2179
2180         * gnulib-tool: Don't ask the user to perform edits in the generated
2181         Makefile.ams.
2182         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2183         apply to the Makefile.am being generated.
2184         (func_emit_tests_Makefile_am): Execute edits that apply to the
2185         Makefile.am being generated.
2186         (func_import): Setup list of Makefile.am edits before emitting the
2187         Makefile.ams, not at the end.
2188         (func_create_testdir): Update.
2189         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2190
2191 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2192
2193         * gnulib-tool (func_import): Store the --tests-base option in the
2194         comment in gnulib-cache.m4.
2195
2196 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2197
2198         * NEWS: Document increased portability that sys_select now provides.
2199
2200         * lib/sys_select.in.h: Install select wrapper.
2201         * lib/sys_socket.in.h: Use more descriptive name when there is no
2202         select wrapper.
2203         * lib/winsock-select.c: New.
2204         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2205         Require gl_HEADER_SYS_SOCKET.
2206         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2207         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2208         * tests/test-sys_select.c: Add functional tests.
2209
2210 2008-09-24  Eric Blake  <ebb9@byu.net>
2211
2212         open, fopen: close fd leak in last patch
2213         * lib/open.c (rpl_open): Close fd before returning error.
2214         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2215         * doc/posix-functions/open.texi (open): Document that Irix also
2216         has the bug.
2217         * doc/posix-functions/fopen.texi (fopen): Likewise.
2218         Reported by Paolo Bonzini.
2219
2220 2008-09-24  Bruno Haible  <bruno@clisp.org>
2221
2222         Ensure that a filename ending in a slash cannot be used to access a
2223         non-directory.
2224         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2225         to check whether it's really a directory.
2226         * lib/fopen.c: Include fcntl.h, unistd.h.
2227         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2228         and fdopen().
2229         * modules/fopen (Depends-on): Add unistd.
2230         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2231         * tests/test-fopen.c (main): Likewise.
2232         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2233         * doc/posix-functions/fopen.texi: Likewise.
2234         Reported by Eric Blake.
2235
2236 2008-09-23  Eric Blake  <ebb9@byu.net>
2237
2238         c-stack: avoid compiler optimizations when provoking overflow
2239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2240         recursion harder to optimize, to ensure a stack overflow occurs.
2241         * tests/test-c-stack.c (recurse): Likewise.
2242         Borrowed from libsigsegv.
2243
2244         c-stack: work around Irix sigaltstack bug
2245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2246         whether sigaltstack uses wrong end of stack_t (copied in part from
2247         libsigsegv).
2248         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2249         Irix bug, without requiring an over-allocation.
2250         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2251         bug.
2252
2253         fopen: document mingw bug on directories
2254         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2255         not allowing a stream visiting a directory, even though reading
2256         from such a stream is not portable.
2257
2258 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2259
2260         * lib/poll.c: Rewrite.
2261         * modules/poll: Depend on alloca.
2262
2263 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2264
2265         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2266         instead define prototypes for a full set of wrappers.  Ensure
2267         that Cygwin does not use the compatibility code, which is only
2268         for MinGW.
2269         * lib/winsock.c: New.
2270         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2271         * modules/sys_socket: Add lib/winsock.c.
2272
2273         * modules/poll-tests: Add errno and perror.
2274         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2275
2276 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2277
2278         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2279
2280 2008-09-23  Bruno Haible  <bruno@clisp.org>
2281
2282         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2283         * doc/glibc-functions/*: Likewise.
2284
2285 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2286
2287         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2288         success.
2289
2290 2008-09-22  Eric Blake  <ebb9@byu.net>
2291             Bruno Haible  <bruno@clisp.org>
2292
2293         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2294         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2295         supply %A but mishandle pseudo-NaN.
2296         Reported by Simon Josefsson.
2297
2298 2008-09-21  Bruno Haible  <bruno@clisp.org>
2299
2300         * tests/test-lock.c (main): Tweak skip message.
2301         * tests/test-tls.c (main): Likewise.
2302
2303 2008-09-21  Bruno Haible  <bruno@clisp.org>
2304
2305         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2306         whether 'struct sigaction' has sa_sigaction here...
2307         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2308         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2309
2310 2008-09-21  Bruno Haible  <bruno@clisp.org>
2311
2312         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2313         section.
2314         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2315         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2316         the new section.
2317         (Support for obsolete systems lacking POSIX:2001): New section.
2318         (String handling <string.h>): Move strdup to the new section.
2319         Suggested by Simon Josefsson and Paolo Bonzini.
2320
2321 2008-09-21  Bruno Haible  <bruno@clisp.org>
2322
2323         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2324         exponents in %e and %g results on 'long double'. Needed for mingw's
2325         improved *printf functions.
2326         * tests/test-vasprintf-posix.c (test_function): Likewise.
2327         * tests/test-snprintf-posix.h (test_function): Likewise.
2328         * tests/test-sprintf-posix.h (test_function): Likewise.
2329         Reported by Eric Blake.
2330
2331 2008-09-21  Bruno Haible  <bruno@clisp.org>
2332
2333         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2334         * tests/test-sprintf-posix.h (test_function): Likewise.
2335
2336 2008-09-21  Bruno Haible  <bruno@clisp.org>
2337
2338         * modules/getpass (Depends-on): Add strdup-posix.
2339
2340         New module 'strdup-posix'.
2341         * modules/strdup-posix: New file.
2342         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2343         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2345         REPLACE_STRDUP.
2346         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2347         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2349         strdup-posix.
2350
2351         * modules/strdup (Depends-on): Remove malloc-posix.
2352
2353 2008-09-20  Bruno Haible  <bruno@clisp.org>
2354
2355         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2356         Wildenhues.
2357
2358 2008-09-20  Bruno Haible  <bruno@clisp.org>
2359
2360         Ensure that wint_t gets defined on IRIX 5.3.
2361         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2362         * lib/wctype.in.h (wint_t): Likewise.
2363         (__wctype_wint_t): Remove type.
2364         (isw*): Use wint_t instead of __wctype_wint_t.
2365         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2366         * modules/wchar (Files): Add m4/wint_t.m4.
2367         (Makefile.am): Substitute HAVE_WINT_T.
2368         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2369         * tests/test-wctype.c: Check that wint_t is defined.
2370         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2371         * doc/posix-headers/wctype.texi: Likewise.
2372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2373
2374 2008-09-18  Bruno Haible  <bruno@clisp.org>
2375
2376         * gnulib-tool (func_exit): Update comment.
2377
2378 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2379
2380         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2381         assumes strdup exists and does not depend on strdup to return
2382         ENOMEM on out of memory conditions.
2383
2384 2008-09-18  Bruno Haible  <bruno@clisp.org>
2385
2386         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
2387         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2388         digits for the exponent.
2389
2390 2008-09-18  Jim Meyering  <meyering@redhat.com>
2391             Bruno Haible  <bruno@clisp.org>
2392
2393         * lib/vasnprintf.c (decimal_point_char): Define also if
2394         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2395
2396 2008-09-16  Bruno Haible  <bruno@clisp.org>
2397         and Eric Blake  <ebb9@byu.net>
2398
2399         vasnprintf: support Irix 5.3
2400         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2401         that mishandle long double infinity.
2402         Reported by Tom G. Christensen.
2403
2404 2008-09-16  Bruno Haible  <bruno@clisp.org>
2405
2406         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2407         Solaris 9.
2408         * doc/glibc-functions/alphasort.texi: Likewise.
2409         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2410
2411 2008-09-16  Jim Meyering  <meyering@redhat.com>
2412
2413         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2414         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2415         a umask modification leak out of a subshell.  Otherwise, the
2416         opensolaris /bin/sh would be accepted and thus cause unwarranted
2417         failures in the coreutils test suite.
2418
2419 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2420
2421         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2422         to succeed.
2423
2424 2008-09-16  Jim Meyering  <meyering@redhat.com>
2425
2426         avoid spurious test failure when library is built without ACL support
2427         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2428         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2429         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2430         * tests/test-copy-acl.sh: Likewise.
2431
2432 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2433
2434         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2435         based on character occurrence counts.
2436
2437 2008-09-15  Eric Blake  <ebb9@byu.net>
2438
2439         tests: avoid some compiler warnings
2440         * tests/test-memchr.c (main): Pass NULL indirectly.
2441         * tests/test-closein.c (main): Avoid unused variable.
2442
2443 2008-09-15  Bruno Haible  <bruno@clisp.org>
2444
2445         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2446         are missing on OpenBSD 4.0 individually.
2447         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2448
2449 2008-09-15  Bruno Haible  <bruno@clisp.org>
2450
2451         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2452         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2453         * doc/posix-functions/perror.texi: Likewise.
2454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2455         is missing.
2456         Reported by Eric Blake.
2457
2458         * lib/errno.in.h: Use replacement values >= 2000.
2459         Reported by Eric Blake.
2460
2461 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2462
2463         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2464         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2465         limit.
2466         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2467         compareseq was aborted.
2468
2469 2008-09-14  Bruno Haible  <bruno@clisp.org>
2470
2471         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2472         yvec_edit_count.
2473         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2474         (fstrcmp_bounded): Simplify result computation accordingly.
2475
2476 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2477
2478         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2479         (fstrcmp): Define in terms of fstrcmp_bounded.
2480         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2481         lower_bound argument.
2482         Return quickly if the result is certainly < lower_bound.
2483         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2484
2485 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2486
2487         * lib/diffseq.h (EARLY_ABORT): New macro.
2488         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2489         evaluates to true.
2490
2491 2008-09-14  Bruno Haible  <bruno@clisp.org>
2492
2493         * modules/perror-tests: New file.
2494         * tests/test-perror.sh: New file.
2495         * tests/test-perror.c: New file.
2496
2497         New module 'perror'.
2498         * lib/stdio.in.h (perror): New declaration.
2499         * lib/perror.c: New file.
2500         * m4/perror.m4: New file.
2501         * modules/perror: New file.
2502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2503         * doc/posix-functions/perror.texi: Mention the perror module.
2504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2505         REPLACE_PERROR.
2506         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2507         REPLACE_PERROR.
2508
2509 2008-09-14  Bruno Haible  <bruno@clisp.org>
2510
2511         * modules/stdio (Makefile.am): Reorder to match the order in
2512         lib/stdio.in.h.
2513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2514
2515 2008-09-13  Bruno Haible  <bruno@clisp.org>
2516
2517         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2518
2519 2008-09-13  Bruno Haible  <bruno@clisp.org>
2520
2521         Extend strerror to cover the added errno values.
2522         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2523         (rpl_strerror): Provide error messages for the added errno values and
2524         for the WSA* values.
2525         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2526         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2527         strerror.
2528         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2529         * modules/strerror (Depends-on): Add errno.
2530         * doc/posix-functions/strerror.texi: Document the change.
2531         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2532         and EOVERFLOW.
2533
2534 2008-09-13  Bruno Haible  <bruno@clisp.org>
2535
2536         * modules/EOVERFLOW: Remove file.
2537         * m4/eoverflow.m4: Remove file.
2538         * modules/EOVERFLOW-tests: Remove file.
2539         * tests/test-EOVERFLOW.c: Remove file.
2540         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2541         * modules/ftell (Depends-on): Likewise.
2542         * modules/getdelim (Depends-on): Likewise.
2543         * modules/getugroups (Depends-on): Likewise.
2544         * modules/poll (Depends-on): Likewise.
2545         * modules/snprintf (Depends-on): Likewise.
2546         * modules/sprintf-posix (Depends-on): Likewise.
2547         * modules/vasnprintf (Depends-on): Likewise.
2548         * modules/vasprintf (Depends-on): Likewise.
2549         * modules/vfprintf-posix (Depends-on): Likewise.
2550         * modules/vsnprintf (Depends-on): Likewise.
2551         * modules/vsprintf-posix (Depends-on): Likewise.
2552         * modules/xvasprintf (Depends-on): Likewise.
2553         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2554         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2555         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2556         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2557         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2558         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2559         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2560         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2561         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2562         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2563         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2564         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2565         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2566         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2567         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2568         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2569         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2570         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2571         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2572         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2573         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2574         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2575         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2576         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2577         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2578         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2579         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2580         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2581         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2582         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2583         * MODULES.html.sh: Remove EOVERFLOW.
2584         * NEWS: Mention the change.
2585
2586 2008-09-13  Bruno Haible  <bruno@clisp.org>
2587
2588         * modules/errno-tests: New file.
2589         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2590
2591         * lib/errno.in.h: New file.
2592         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2593         * modules/errno: New file.
2594         * doc/posix-headers/errno.texi: Update documentation.
2595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2596
2597 2008-09-13  Bruno Haible  <bruno@clisp.org>
2598
2599         * tests/test-poll.c: Use #if for native Windows, rather than testing
2600         __MSVCRT__.
2601
2602 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2603             Bruno Haible  <bruno@clisp.org>
2604
2605         * lib/glob.c: Don't include <pwd.h> on native Windows.
2606         (WINDOWS32): New macro.
2607         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2608
2609 2008-09-13  Bruno Haible  <bruno@clisp.org>
2610
2611         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2612         (ETIMEDOUT): Remove macro.
2613         (glthread_cond_timedwait_multithreaded): New declaration.
2614         (glthread_cond_timedwait): Use it.
2615         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2616         (glthread_cond_timedwait_multithreaded): New function.
2617
2618 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2619
2620         * modules/poll-tests: Do not check for io.h.
2621         * tests/test-poll.c: Check for __MSVCRT__ instead.
2622
2623 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2624
2625         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2626         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2627         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2628
2629 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2630
2631         * modules/poll-tests: New.
2632         * tests/test-poll.c: New.
2633
2634 2008-09-12  Eric Blake  <ebb9@byu.net>
2635
2636         frexp: test for NetBSD failure on -0.0
2637         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2638         not all, bugs from NetBSD 3.0 have been fixed.
2639         * doc/posix-functions/frexp.texi (frexp): Document bug.
2640         Reported by Thomas Klausner.
2641
2642         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2643         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2644         literal -0.0.
2645         Reported by Jonathan C. Patschke <jp@centtech.com>.
2646
2647 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2648
2649         * lib/glthread/cond.h: Use dummy implementation also if
2650         USE_WIN32_THREADS.
2651
2652 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2653
2654         * modules/fnmatch-posix (License): Change to LGPLv2+.
2655         * modules/fnmatch-gnu (License): Likewise.
2656
2657 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2658
2659         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2660
2661 2008-09-11  Jim Meyering  <meyering@redhat.com>
2662
2663         * users.txt: Add gtk-vnc.
2664
2665 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2666
2667         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2668         rotate amounts.
2669
2670         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2671         required for 16-bit and 8-bit rotates.
2672         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2673         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2674         UINT8_MAX instead of hard-coded constants.
2675         Suggested by Paul Eggert.
2676
2677 2008-09-07  Bruno Haible  <bruno@clisp.org>
2678
2679         * tests/test-striconveh.c (main): Check behaviour when converting from
2680         UTF-7.
2681
2682         Make striconveh work better with stateful encodings.
2683         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2684         that iconv does not increment the inptr when returning -1/EINVAL.
2685
2686 2008-09-07  Bruno Haible  <bruno@clisp.org>
2687
2688         * build-aux/config.rpath: Update according to libtool-2.2.6.
2689         * build-aux/config.libpath: Likewise.
2690
2691 2008-09-06  Bruno Haible  <bruno@clisp.org>
2692
2693         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2694         * lib/freadptr.c (freadptr): Likewise.
2695         * lib/freadseek.c (freadptrinc): Likewise.
2696         Reported by Simon Josefsson.
2697
2698 2008-09-06  Bruno Haible  <bruno@clisp.org>
2699
2700         * modules/freadptr (License): Change to LGPLv2+.
2701         * modules/freadseek (License): Likewise.
2702         Suggested by Eric Blake.
2703
2704         * modules/memchr2 (License): Change to LGPLv2+.
2705         Approved by Eric Blake.
2706
2707 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2708             Bruno Haible  <bruno@clisp.org>
2709
2710         Make gnulib-tool work with native 'sed' on AIX.
2711         * gnulib-tool (sed_noop): New variable.
2712         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2713         func_add_or_update, func_create_testdir): Use it to initialize sed
2714         script variables.
2715         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2716
2717 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2718             Bruno Haible  <bruno@clisp.org>
2719
2720         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2721         also works after #include directives.
2722
2723 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
2724
2725         getdate.y: reject an out-of-range timezone value
2726         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2727         the range [-24...+24].  When specified with only one or two digits,
2728         * tests/test-getdate.c: Tests for the fix.
2729         * doc/getdate.texi: Document this change.
2730
2731 2008-09-03  Bruno Haible  <bruno@clisp.org>
2732
2733         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2734
2735 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2736
2737         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2738         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2739         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2740         Blake <ebb9@byu.net>.
2741
2742         * tests/test-bitrotate.c: Add more test vectors.
2743
2744 2008-09-02  Eric Blake  <ebb9@byu.net>
2745
2746         vasnprintf-posix: handle large precision via %.*d
2747         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2748         when handling it ourselves.
2749         * tests/test-vasnprintf-posix.c (test_function): Add test.
2750         * tests/test-snprintf-posix.h (test_function): Likewise.
2751         * tests/test-sprintf-posix.h (test_function): Likewise.
2752         * tests/test-vasprintf-posix.c (test_function): Likewise.
2753         Reported by Alain Guibert.
2754
2755 2008-09-01  Eric Blake  <ebb9@byu.net>
2756
2757         c-stack: make configure-time check more robust
2758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2759         successful sigaction call.
2760         Reported by Tom G. Christensen.
2761
2762 2008-09-01  Bruno Haible  <bruno@clisp.org>
2763
2764         New module 'findprog-lgpl'.
2765         * modules/findprog-lgpl: New file.
2766         * lib/findprog-lgpl.c: New file.
2767         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2768         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2769         to decide whether to use strdup or xstrdup, concatenated_filename or
2770         xconcatenated_filename.
2771
2772 2008-09-01  Bruno Haible  <bruno@clisp.org>
2773
2774         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2775         'xconcat-filename' (GPL).
2776         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2777         (License): Change to LGPLv2+.
2778         * modules/xconcat-filename: New file.
2779         * lib/concat-filename.h (concatenated_filename): Change specification.
2780         (xconcatenated_filename): New declaration.
2781         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2782         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2783         memory situations.
2784         * lib/xconcat-filename.c: New file.
2785         * NEWS: Mention the change.
2786         * lib/findprog.c: Include concat-filename.h, not filename.h.
2787         (find_in_path): Use xconcatenated_filename instead of
2788         concatenated_filename.
2789         * lib/javacomp.c: Include concat-filename.h, not filename.h.
2790         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2791         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2792         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2793         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2794         instead of concatenated_filename.
2795         * lib/javaexec.c: Include concat-filename.h, not filename.h.
2796         (execute_java_class): Use xconcatenated_filename instead of
2797         concatenated_filename.
2798         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2799         * modules/javacomp (Depends-on): Likewise.
2800         * modules/javaexec (Depends-on): Likewise.
2801
2802 2008-09-01  Bruno Haible  <bruno@clisp.org>
2803
2804         Split module 'filename' into 'filename' and 'concat-filename'.
2805         * modules/filename: Keep only lib/filename.h.
2806         (License): Change to LGPLv2+.
2807         * modules/concat-filename: New file, extracted from modules/filename.
2808         * lib/filename.h (concatenated_filename): Remove declaration.
2809         * lib/concat-filename.h: New file, extracted from lib/filename.h.
2810         * lib/concat-filename.c: Include concat-filename.h.
2811         * NEWS: Mention the change.
2812
2813 2008-09-01  Simon Josefsson  <simon@josefsson.org>
2814
2815         * lib/bitrotate.h (rotl8, rotr8): Add.
2816
2817         * modules/bitrotate (configure.ac): Need
2818         AC_REQUIRE([AC_C_INLINE]).
2819         (Description): Mention stdint.h.  Reported by Bruno Haible
2820         <bruno@clisp.org>.
2821
2822         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
2823         Paolo Bonzini <bonzini@gnu.org>.
2824
2825 2008-08-31  Bruno Haible  <bruno@clisp.org>
2826
2827         Assume Solaris specific bi-arch conventions on Solaris systems.
2828         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2829         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2830         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2831         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2832         like acl_libdirstem.
2833         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2834         acl_libdirstem.
2835         * NEWS: Mention the change.
2836         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2837
2838 2008-08-31  Jim Meyering  <meyering@redhat.com>
2839
2840         * lib/strftime.h: Add comments describing the two added arguments.
2841
2842         remove duplicate #include directives
2843         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2844         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2845
2846 2008-08-31  Bruno Haible  <bruno@clisp.org>
2847
2848         New module 'sigpipe-die'.
2849         * modules/sigpipe-die: New file.
2850         * lib/sigpipe-die.h: New file.
2851         * lib/sigpipe-die.c: New file.
2852         * MODULES.html.sh (Signal handling): Add sigpipe-die.
2853
2854 2008-08-31  Bruno Haible  <bruno@clisp.org>
2855
2856         Don't override previously installed signal handlers.
2857         * lib/fatal-signal.c (saved_sigactions): New variable.
2858         (uninstall_handlers): Reset the signal to the saved handler, not
2859         to SIG_DFL (except when ignored).
2860         (install_handlers): Save the previous handlers.
2861
2862 2008-08-30  Bruno Haible  <bruno@clisp.org>
2863
2864         * gnulib-tool (func_reset_sigpipe): New function.
2865         (func_get_automake_snippet, func_modules_transitive_closure,
2866         func_import): Invoke it before a join command that reads from stdin,
2867         to avoid "echo: write error: Broken pipe" error messages on stderr.
2868         Reported by Sam Steingold <sds@gnu.org>.
2869
2870 2008-08-30  Bruno Haible  <bruno@clisp.org>
2871
2872         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2873         Code copied from m4/open.m4.
2874         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2875         access and the filename ends in a slash. Code copied from lib/open.c.
2876         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2877         * tests/test-fopen.c (main): Check against bug with trailing slash.
2878
2879 2008-08-29  Bruno Haible  <bruno@clisp.org>
2880
2881         Avoid some "gcc -pedantic" warnings.
2882         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2883         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2884         * lib/dirent.in.h: Likewise.
2885         * lib/fcntl.in.h: Likewise.
2886         * lib/float.in.h: Likewise.
2887         * lib/iconv.in.h: Likewise.
2888         * lib/inttypes.in.h: Likewise.
2889         * lib/locale.in.h: Likewise.
2890         * lib/math.in.h: Likewise.
2891         * lib/netinet_in.in.h: Likewise.
2892         * lib/search.in.h: Likewise.
2893         * lib/signal.in.h: Likewise.
2894         * lib/stdarg.in.h: Likewise.
2895         * lib/stdint.in.h: Likewise.
2896         * lib/stdio.in.h: Likewise.
2897         * lib/stdlib.in.h: Likewise.
2898         * lib/string.in.h: Likewise.
2899         * lib/strings.in.h: Likewise.
2900         * lib/sys_select.in.h: Likewise.
2901         * lib/sys_socket.in.h: Likewise.
2902         * lib/sys_stat.in.h: Likewise.
2903         * lib/sys_time.in.h: Likewise.
2904         * lib/sysexits.in.h: Likewise.
2905         * lib/time.in.h: Likewise.
2906         * lib/unistd.in.h: Likewise.
2907         * lib/wchar.in.h: Likewise.
2908         * lib/wctype.in.h: Likewise.
2909         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2910         * modules/fchdir (Makefile.am): Likewise.
2911         * modules/fcntl (Makefile.am): Likewise.
2912         * modules/float (Makefile.am): Likewise.
2913         * modules/iconv_open (Makefile.am): Likewise.
2914         * modules/inttypes (Makefile.am): Likewise.
2915         * modules/locale (Makefile.am): Likewise.
2916         * modules/math (Makefile.am): Likewise.
2917         * modules/netinet_in (Makefile.am): Likewise.
2918         * modules/search (Makefile.am): Likewise.
2919         * modules/signal (Makefile.am): Likewise.
2920         * modules/stdarg (Makefile.am): Likewise.
2921         * modules/stdint (Makefile.am): Likewise.
2922         * modules/stdio (Makefile.am): Likewise.
2923         * modules/stdlib (Makefile.am): Likewise.
2924         * modules/string (Makefile.am): Likewise.
2925         * modules/strings (Makefile.am): Likewise.
2926         * modules/sys_select (Makefile.am): Likewise.
2927         * modules/sys_socket (Makefile.am): Likewise.
2928         * modules/sys_stat (Makefile.am): Likewise.
2929         * modules/sys_time (Makefile.am): Likewise.
2930         * modules/sysexits (Makefile.am): Likewise.
2931         * modules/time (Makefile.am): Likewise.
2932         * modules/unistd (Makefile.am): Likewise.
2933         * modules/wchar (Makefile.am): Likewise.
2934         * modules/wctype (Makefile.am): Likewise.
2935         Reported by Reuben Thomas <rrt@sc3d.org>.
2936
2937 2008-08-29  Bruno Haible  <bruno@clisp.org>
2938
2939         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2940         any more.
2941
2942 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2943
2944         * MODULES.html.sh (Misc): Add bitrotate.
2945
2946         * modules/bitrotate: New file.
2947
2948         * lib/bitrotate.h: New file.
2949
2950         * modules/bitrotate-tests: New file.
2951
2952         * tests/test-bitrotate.c: New file.
2953
2954         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2955         on the bitrotate module.
2956
2957         * lib/arctwo.c: Use new bitrotate module.
2958
2959 2008-08-29  Jim Meyering  <meyering@redhat.com>
2960
2961         bootstrap: merge changes from coreutils
2962         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2963         of copied files.  Remove a kludge, now that this is fixed.
2964         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2965         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2966         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2967
2968 2008-08-29  Bruno Haible  <bruno@clisp.org>
2969
2970         * MODULES.html.sh: Remove --cvs-urls option.
2971
2972 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2973
2974         maint.mk: adjust to file name change
2975         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2976
2977 2008-08-28  Jim Meyering  <meyering@redhat.com>
2978
2979         * modules/getndelim2 (License): Relicense to LGPLv2+.
2980         Approved by Richard Stallman for the version of 1995, and by
2981         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2982
2983 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2984
2985         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2986         dummy if one is not available.  Do not touch them if
2987         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2988         (getc_maybe_unlocked): New.
2989         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2990
2991 2008-08-26  Eric Blake  <ebb9@byu.net>
2992
2993         doc/INSTALL: resync from autoconf
2994         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2995         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2996         moving...
2997         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2998         * INSTALL: Regenerate.
2999         * INSTALL.ISO: New file.
3000         * INSTALL.UTF-8: Likewise.
3001
3002 2008-08-26  Jim Meyering  <meyering@redhat.com>
3003
3004         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3005         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3006         these definitions conditional, so that they may be overridden, too.
3007
3008 2008-08-26  Bruno Haible  <bruno@clisp.org>
3009
3010         Generate INSTALL file variants with prettier quotes.
3011         * doc/Makefile (INSTALL_PRELUDE): New macro.
3012         (INSTALL): Use it.
3013         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3014
3015 2008-08-26  Bruno Haible  <bruno@clisp.org>
3016
3017         Run makeinfo in an English locale.
3018         * doc/Makefile (MAKEINFO): New variable.
3019
3020 2008-08-26  Bruno Haible  <bruno@clisp.org>
3021
3022         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3023         Suggested by Eric Blake.
3024
3025 2008-08-25  Bruno Haible  <bruno@clisp.org>
3026
3027         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3028
3029 2008-08-25  Eric Blake  <ebb9@byu.net>
3030
3031         c-stack: test that stack overflow can be caught
3032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3033         that platform allows handling stack overflow; at least OS/2 EMX
3034         has sigaltstack, but crashes before transferring control to
3035         handler on stack overflow.
3036         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3037         check for HAVE_STACK_OVERFLOW_HANDLING.
3038         Reported by Elbert Pol.
3039
3040 2008-08-25  Bruno Haible  <bruno@clisp.org>
3041
3042         * doc/posix-functions/strftime.texi: Fix description of strftime
3043         module.
3044
3045 2008-08-24  Bruno Haible  <bruno@clisp.org>
3046
3047         * tests/uniwidth/test-uc_width2.c: New file.
3048         * tests/uniwidth/test-uc_width2.sh: New file.
3049         * modules/uniwidth/width-tests (Files): Add the new files.
3050         (TESTS): Add uniwidth/test-uc_width2.sh.
3051         (TESTS_ENVIRONMENT): New variable.
3052         (check_PROGRAMS): Add test-uc_width2.
3053         (test_uc_width2_SOURCES): New variable.
3054
3055         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3056         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3057         not 0x00AB.
3058         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3059
3060 2008-08-22  Eric Blake  <ebb9@byu.net>
3061
3062         test-lock, test-tls: mention why a test is skipped
3063         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3064         skipped.
3065         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3066
3067         count-one-bits: relax license
3068         * modules/count-one-bits (License): Relicense to LGPLv2+.
3069         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3070
3071 2008-08-22  Andreas Schwab  <schwab@suse.de>
3072
3073         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3074         Remove spurious space in assignment.
3075
3076 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3077
3078         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3079         Paul Eggert <eggert@CS.UCLA.EDU>.
3080
3081 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3082
3083         * modules/gettext: Add m4/threadlib.m4.
3084
3085 2008-08-19  Eric Blake  <ebb9@byu.net>
3086
3087         test-c-stack: fix compilation failure on FreeBSD 5.0
3088         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3089         headers before <sys/resource.h>.
3090         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3091         the bug.
3092         Reported by Nelson H. F. Beebe.
3093
3094         strverscmp: migrate from "strverscmp.h" to <string.h>
3095         * modules/string (Makefile.am): Add new hooks.
3096         * modules/strverscmp (Files): Remove strverscmp.h.
3097         (Depends-on): Add string.
3098         (configure.ac): Add indicator.
3099         (Include): Mention new header.
3100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3101         defaults.
3102         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3103         results.
3104         * lib/strverscmp.h: Delete.
3105         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3106         * tests/test-strverscmp.c (includes): Adjust client.
3107         * lib/check-version.c (includes): Likewise.
3108         * NEWS: Document the change.
3109
3110         strverscmp: add unit test
3111         * modules/strverscmp-tests: New file.
3112         * tests/test-strverscmp.c: Likewise.
3113
3114 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3115
3116         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3117         regarding Windows crypto stuff, from Mono.
3118
3119 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3120
3121         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3122         if present, for intel RND.  Return error on failures.
3123
3124 2008-08-18  Ben Pfaff  <blp@gnu.org>
3125
3126         gitlog-to-changelog: give better diagnostic for failed pipe-open
3127         * build-aux/gitlog-to-changelog: Improve error message: suggest
3128         that the version of Git may be too old.
3129
3130 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3131
3132         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3133         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3134
3135 2008-08-18  Bruno Haible  <bruno@clisp.org>
3136
3137         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3138         pthread_in_use().
3139
3140 2008-08-18  Bruno Haible  <bruno@clisp.org>
3141
3142         * lib/glthread/threadlib.c: Include <pthread.h>.
3143
3144 2008-08-18  Bruno Haible  <bruno@clisp.org>
3145
3146         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3147         glthread_recursive_lock_* macros.
3148         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3149         Fix syntax error.
3150
3151 2008-08-18  Bruno Haible  <bruno@clisp.org>
3152
3153         * lib/glthread/thread.c: Avoid forcing a context switch right after
3154         thread creation.
3155
3156 2008-08-17  Bruno Haible  <bruno@clisp.org>
3157
3158         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3159         * lib/glthread/thread.h: Provide Win32 specific implementation.
3160         * modules/thread (Files): Add lib/glthread/thread.c.
3161         (Depends-on): Add lock.
3162         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3163
3164 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3165
3166         New module 'yield'.
3167         * modules/yield: New file.
3168         * lib/glthread/yield.h: New file.
3169         * m4/yield.m4: New file.
3170         * MODULES.html.sh (Multithreading): Add yield.
3171
3172 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3173
3174         New module 'thread'.
3175         * modules/thread: New file.
3176         * lib/glthread/thread.h: New file.
3177         * m4/thread.m4: New file.
3178         * MODULES.html.sh (Multithreading): Add thread.
3179
3180 2008-08-17  Bruno Haible  <bruno@clisp.org>
3181
3182         * lib/glthread/lock.h: Include <stdlib.h> always.
3183         * lib/glthread/tls.h: Likewise.
3184         * lib/glthread/cond.h: Likewise.
3185
3186 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3187
3188         New module 'cond'.
3189         * modules/cond: New file.
3190         * lib/glthread/cond.h: New file.
3191         * lib/glthread/cond.c: New file.
3192         * m4/cond.m4: New file.
3193         * MODULES.html.sh (Multithreading): Add cond.
3194
3195 2008-08-16  Eric Blake  <ebb9@byu.net>
3196
3197         c-stack: fix regression on Irix 5.3 from 2008-06-21
3198         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3199         sa_sigaction...
3200         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3201         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3202         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3203         * modules/signal (Makefile.am): Use the value.
3204         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3205         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3206         * doc/posix-headers/signal.texi (signal.h): Document this
3207         portability issue.
3208         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3209         Reported by Tom G. Christensen.
3210
3211 2008-08-17  Bruno Haible  <bruno@clisp.org>
3212
3213         New module 'threadlib'.
3214         * modules/threadlib: New file.
3215         * lib/glthread/threadlib.c: New file, extracted from
3216         lib/glthread/lock.c.
3217         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3218         functions.
3219         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3220         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3221         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3222         macros.
3223         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3224         (gl_DISABLE_THREADS): Remove macro.
3225         * modules/lock (Files): Remove build-aux/config.rpath.
3226         (Depends-on): Remove havelib. Add threadlib.
3227         (configure.ac-early): Remove section.
3228         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3229         * modules/tls (Depends-on): Remove lock. Add threadlib.
3230         (Link): New section, copied from threadlib.
3231         * MODULES.html.sh (Multithreading): Add threadlib.
3232
3233 2008-08-14  Bruno Haible  <bruno@clisp.org>
3234
3235         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3236         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3237         glthread_rwlock_unlock, glthread_rwlock_destroy,
3238         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3239         glthread_recursive_lock_destroy): Define as macros always.
3240         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3241         glthread_lock_lock.
3242         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3243         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3244         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3245         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3246         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3247         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3248         (glthread_recursive_lock_lock_func): Renamed from
3249         glthread_recursive_lock_lock.
3250         (glthread_recursive_lock_unlock_func): Renamed from
3251         glthread_recursive_lock_unlock.
3252         (glthread_recursive_lock_destroy_func): Renamed from
3253         glthread_recursive_lock_destroy.
3254
3255 2008-08-14  Bruno Haible  <bruno@clisp.org>
3256
3257         * lib/glthread/lock.h: Renamed from lib/lock.h.
3258         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3259         * lib/glthread/tls.h: Renamed from lib/tls.h.
3260         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3261         * lib/fstrcmp.c: Update includes.
3262         * lib/strsignal.c: Update includes.
3263         * modules/lock (Files, Makefile.am): Update.
3264         (Include): Change to "glthread/lock.h".
3265         * modules/tls (Files, Makefile.am): Update.
3266         (Include): Change to "glthread/tls.h".
3267         * tests/test-lock.c: Update includes.
3268         * tests/test-tls.c: Update includes.
3269         * NEWS: Mention the renamed header files.
3270
3271 2008-08-11  Jim Meyering  <meyering@redhat.com>
3272
3273         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3274
3275 2008-08-11  Eric Blake  <ebb9@byu.net>
3276
3277         test-c-stack: avoid C99-ism
3278         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3279         before statement.
3280         Reported by Alain Guibert.
3281
3282 2008-08-10  Jim Meyering  <meyering@redhat.com>
3283
3284         ensure that return value of uinttostr et al are not ignored
3285         * lib/inttostr.h (__GNUC_PREREQ): Define.
3286         (__attribute_warn_unused_result__): Define.
3287         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3288
3289 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3290
3291         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3292         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3293
3294 2008-08-07  Jim Meyering  <meyering@redhat.com>
3295
3296         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3297
3298         * modules/mkstemp (License): Relicense under LGPLv2+.
3299         * modules/tempname (License): Likewise.
3300
3301 2008-08-06  Bruno Haible  <bruno@clisp.org>
3302
3303         * lib/poll.c (poll): Further micro-optimization.
3304
3305 2008-08-06  Jim Meyering  <meyering@redhat.com>
3306
3307         inet_pton.c: use locale-independent tolower
3308         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3309         (inet_pton6): Use c_tolower rather than tolower.
3310         * modules/inet_pton (Depends-on): Add c-ctype.
3311
3312 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3313
3314         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3315         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3316
3317 2008-08-06  Jim Meyering  <meyering@redhat.com>
3318
3319         * modules/inet_pton (License): Relicense under LGPLv2+.
3320
3321 2008-08-03  Bruno Haible  <bruno@clisp.org>
3322
3323         Additional non-aborting API for lock and tls.
3324         * lib/lock.h: Include <errno.h>.
3325         (glthread_lock_init): New macro/function.
3326         (gl_lock_init): Define as wrapper around glthread_lock_init.
3327         (glthread_lock_lock): New macro/function.
3328         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3329         (glthread_lock_unlock): New macro/function.
3330         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3331         (glthread_lock_destroy): New macro/function.
3332         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3333         (glthread_rwlock_init): New macro/function.
3334         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3335         (glthread_rwlock_rdlock): New macro/function.
3336         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3337         (glthread_rwlock_wrlock): New macro/function.
3338         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3339         (glthread_rwlock_unlock): New macro/function.
3340         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3341         (glthread_rwlock_destroy): New macro/function.
3342         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3343         (glthread_recursive_lock_init): New macro/function.
3344         (gl_recursive_lock_init): Define as wrapper around
3345         glthread_recursive_lock_init.
3346         (glthread_recursive_lock_lock): New macro/function.
3347         (gl_recursive_lock_lock): Define as wrapper around
3348         glthread_recursive_lock_lock.
3349         (glthread_recursive_lock_unlock): New macro/function.
3350         (gl_recursive_lock_unlock): Define as wrapper around
3351         glthread_recursive_lock_unlock.
3352         (glthread_recursive_lock_destroy): New macro/function.
3353         (gl_recursive_lock_destroy): Define as wrapper around
3354         glthread_recursive_lock_destroy.
3355         (glthread_once): New macro/function.
3356         (gl_once): Define as wrapper around glthread_once.
3357         Update function declarations.
3358         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3359         glthread_rwlock_init. Return error code.
3360         (glthread_rwlock_rdlock_multithreaded): Renamed from
3361         glthread_rwlock_rdlock. Return error code.
3362         (glthread_rwlock_wrlock_multithreaded): Renamed from
3363         glthread_rwlock_wrlock. Return error code.
3364         (glthread_rwlock_unlock_multithreaded): Renamed from
3365         glthread_rwlock_unlock. Return error code.
3366         (glthread_rwlock_destroy_multithreaded): Renamed from
3367         glthread_rwlock_destroy. Return error code.
3368         (glthread_recursive_lock_init_multithreaded): Renamed from
3369         glthread_recursive_lock_init. Return error code.
3370         (glthread_recursive_lock_lock_multithreaded): Renamed from
3371         glthread_recursive_lock_lock. Return error code.
3372         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3373         glthread_recursive_lock_unlock. Return error code.
3374         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3375         glthread_recursive_lock_destroy. Return error code.
3376         (glthread_once_call): Make static.
3377         (glthread_once_multithreaded): Renamed from glthread_once.
3378         * lib/tls.h: Include <errno.h>.
3379         (glthread_tls_key_init): New macro/function.
3380         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3381         (glthread_tls_set): New macro/function.
3382         (gl_tls_set): Define as wrapper around glthread_tls_set.
3383         (glthread_tls_key_destroy): New macro/function.
3384         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3385         Update function declarations.
3386         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3387         glthread_tls_get.
3388         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3389
3390 2008-08-04  Eric Blake  <ebb9@byu.net>
3391
3392         gnumakefile: use space, not TAB, outside of targets
3393         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3394
3395 2008-08-02  Jim Meyering  <meyering@redhat.com>
3396
3397         getdate.y: avoid locale-dependent date parsing failure
3398         In Turkish locales, getdate would fail to recognize keywords
3399         containing a lowercase "i".  The solution is not to rely on
3400         locale-sensitive case-conversion.
3401         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3402         (lookup_word): Use c_toupper in place of toupper.
3403         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3404         Reported by Vefa Bicakci <bicave@superonline.com> in
3405         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3406         * modules/getdate (Depends-on): Add c-ctype.
3407
3408 2008-08-02  Bruno Haible  <bruno@clisp.org>
3409
3410         * gnulib-tool (func_import): When updating or creating a .gitignore
3411         file, prepend each added line with a slash, and ignore leading slashes
3412         from the existing lines.
3413         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3414
3415 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3416
3417         Portability fix for GNU make 3.79.1.
3418         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3419         versions do not understand.
3420
3421 2008-08-01  Bruno Haible  <bruno@clisp.org>
3422
3423         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3424         * tests/test-isnanf.h (zero): New variable.
3425         (main): Avoid literal -0.0f.
3426         * tests/test-isnand.h (zero): New variable.
3427         (main): Avoid literal -0.0.
3428         * tests/test-isnanl.h (zero): New variable.
3429         (main): Avoid literal -0.0L.
3430         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3431         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3432         -0.0, -0.0L.
3433         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3434         (test_signbitd): Avoid literal -0.0.
3435         (test_signbitl): Avoid literal -0.0L.
3436         * tests/test-ceilf1.c (zero): New variable.
3437         (main): Avoid literal -0.0f.
3438         * tests/test-ceill.c (zero): New variable.
3439         (main): Avoid literal -0.0L.
3440         * tests/test-floorf1.c (zero): New variable.
3441         (main): Avoid literal -0.0f.
3442         * tests/test-floorl.c (zero): New variable.
3443         (main): Avoid literal -0.0L.
3444         * tests/test-roundf1.c (zero): New variable.
3445         (main): Avoid literal -0.0f.
3446         * tests/test-round1.c (zero): New variable.
3447         (main): Avoid literal -0.0.
3448         * tests/test-roundl.c (zero): New variable.
3449         (main): Avoid literal -0.0L.
3450         * tests/test-truncf1.c (zero): New variable.
3451         (main): Avoid literal -0.0f.
3452         * tests/test-trunc1.c (zero): New variable.
3453         (main): Avoid literal -0.0.
3454         * tests/test-truncl.c (zero): New variable.
3455         (main): Avoid literal -0.0L.
3456         * tests/test-frexp.c (zero): New variable.
3457         (main): Avoid literal -0.0.
3458         * tests/test-frexpl.c (zero): New variable.
3459         (main): Avoid literal -0.0L.
3460         * tests/test-ldexpl.c (zero): New variable.
3461         (main): Avoid literal -0.0L.
3462         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3463         (zerod, zerol): New variables.
3464         (test_function): Avoid literals -0.0, -0.0L.
3465         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3466         (zerod, zerol): New variables.
3467         (test_function): Avoid literals -0.0, -0.0L.
3468         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3469         (zerod, zerol): New variables.
3470         (test_function): Avoid literals -0.0, -0.0L.
3471         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3472         (zerod, zerol): New variables.
3473         (test_function): Avoid literals -0.0, -0.0L.
3474         * tests/test-strtod.c (zero): New variable.
3475         (main): Avoid literal -0.0.
3476         Reported by Jonathan C. Patschke <jp@centtech.com>.
3477
3478 2008-07-31  Jim Meyering  <meyering@redhat.com>
3479
3480         sha256.h: correct definition of SHA224_DIGEST_SIZE
3481         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3482         Reported by Paulie Pena IV <paulie4@gmail.com>.
3483         Define as 224 / 8, rather than as a literal.
3484         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3485         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3486         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3487
3488 2008-07-31  Bruno Haible  <bruno@clisp.org>
3489
3490         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3491         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3492         Reported by Jonathan Patschke <jp@centtech.com>.
3493
3494 2008-07-31  Bruno Haible  <bruno@clisp.org>
3495
3496         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3497         Reported by Paolo Bonzini <bonzini@gnu.org>.
3498
3499 2008-07-30  Eric Blake  <ebb9@byu.net>
3500
3501         test-strtod: allow compilation without -lm
3502         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3503         Reported by Dennis Clarke <blastwave@gmail.com>.
3504
3505 2008-07-28  Jim Meyering  <meyering@redhat.com>
3506
3507         bootstrap: work also when there are no .po files in po/
3508         * build-aux/bootstrap (update_po_files): Complete the change
3509         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3510
3511 2008-07-27  Jim Meyering  <meyering@redhat.com>
3512
3513         * users.txt: Add zile.
3514
3515 2008-07-26  Ben Pfaff  <blp@gnu.org>
3516
3517         Add missing dependencies on new m4/exponent[fdl].m4 files.
3518         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3519         * modules/isnand-nolibm: Add m4/exponentd.m4.
3520         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3521         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3522         m4/isnan[fdl].m4, because the macros actually used moved.
3523         Reported by Jim Meyering.
3524
3525 2008-07-14  Ben Pfaff  <blp@gnu.org>
3526
3527         Add isinf module.
3528         * lib/isinf.c: New file.
3529         * lib/math.in.h: Define isinf macro if we have decided to replace
3530         it.
3531         * m4/isinf.m4: New file.
3532         * m4/math_h.m4: Initialize and substitute variables for isinf
3533         module.
3534         * modules/isinf: New file.
3535         * modules/isinf-tests: New file.
3536         * modules/math: Add substitutions for new module.
3537         * tests/test-isinf.c: New file.
3538         * doc/posix-functions/isinf.texi: Mention new module.
3539         * MODULES.html.sh: Mention new module.
3540
3541 2008-07-14  Ben Pfaff  <blp@gnu.org>
3542
3543         Factor out some macros for use by additional modules.
3544         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3545         exponentf.m4.
3546         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3547         exponentd.m4.
3548         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3549         file exponentl.m4.
3550         * m4/exponentf.m4: New file.
3551         * m4/exponentd.m4: New file.
3552         * m4/exponentl.m4: New file.
3553         * modules/isnanf: Use new file m4/exponentf.m4.
3554         * modules/isnand: Use new file m4/exponentd.m4.
3555         * modules/isnanl: Use new file m4/exponentl.m4.
3556
3557 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
3558
3559         mktime.c: normalize tp->tm_isdst value to -1/0/1.
3560         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3561         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3562         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3563
3564         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3565         readlink on platforms without PATH_MAX.
3566
3567 2008-07-21  Eric Blake  <ebb9@byu.net>
3568
3569         Warn, not fail, on stale version.
3570         * top/GNUmakefile (_curr-ver): Tone down previous patch.
3571
3572         Don't allow installation with stale devel version number.
3573         * top/GNUmakefile (_is-install-target): New macro.
3574         (_curr-ver): Forbid installation with stale version number.
3575
3576 2008-07-20  Bruno Haible  <bruno@clisp.org>
3577
3578         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3579         TESTS_ENVIRONMENT.
3580         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3581
3582 2008-07-20  Bruno Haible  <bruno@clisp.org>
3583
3584         * lib/c-stack.h (c_stack_action): Add documentation.
3585         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3586
3587 2008-07-20  Bruno Haible  <bruno@clisp.org>
3588
3589         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3590         * modules/readlink (License): Likewise.
3591
3592 2008-07-17  Eric Blake  <ebb9@byu.net>
3593
3594         * modules/c-stack (Link): Fix typo.
3595
3596         Make c-stack use libsigsegv, when available.
3597         * modules/c-stack (Depends-on): Add libsigsegv.
3598         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3599         needed.
3600         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3601         (segv_handler, overflow_handler, c_stack_action)
3602         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3603         implementation when libsigsegv is available, but only when using
3604         the library is necessary.
3605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3606         comment, explaining why XSI check fails on Linux.
3607         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3608         * tests/test-c-stack2.sh: Tweak skip message.
3609         * NEWS: Document new link-time requirements.
3610
3611 2008-07-16  Eric Blake  <ebb9@byu.net>
3612
3613         c-stack: Expose false positives when not using libsigsegv.
3614         * modules/c-stack-tests (Files): Expand test.
3615         * tests/test-c-stack.c (main): Add means to conditionally trigger
3616         non-overflow SIGSEGV.
3617         * tests/test-c-stack2.sh: New file.
3618
3619 2008-07-14  Bruno Haible  <bruno@clisp.org>
3620
3621         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3622         Reported by Eric Blake.
3623
3624 2008-07-14  Sam Steingold  <sds@gnu.org>
3625             Bruno Haible  <bruno@clisp.org>
3626
3627         New module libsigsegv.
3628         * modules/libsigsegv: New file.
3629         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3630         modifications.
3631         * MODULES.html.sh (Signal handling): New section.
3632
3633 2008-07-14  Bruno Haible  <bruno@clisp.org>
3634
3635         * modules/unictype/ctype-* (Description): Add the word "function".
3636         Improves the resulting doc in MODULES.html.
3637
3638 2008-07-12  Ben Pfaff  <blp@gnu.org>
3639
3640         Add longlong module.
3641         * modules/longlong: New file.
3642
3643 2008-07-12  Bruno Haible  <bruno@clisp.org>
3644
3645         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3646         to empty.
3647
3648 2008-07-10  Ben Pfaff  <blp@gnu.org>
3649
3650         Add isnan module.
3651         * doc/posix-functions/isnan.texi: Mention new module.
3652         * lib/math.in.h: Define isnan macro if we have decided to replace
3653         it.
3654         * m4/isnan.m4: New file.
3655         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3656         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3657         also.
3658         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3659         redundancy.
3660         * m4/math_h.m4: Initialize and substitute variables for isnan
3661         module.
3662         * modules/isnan: New file.
3663         * modules/isnan-tests: New file.
3664         * modules/math: Add substitutions for new module.
3665         * tests/test-isnan.c: New file.
3666         * MODULES.html.sh: Mention new module.
3667
3668 2008-07-10  Ben Pfaff  <blp@gnu.org>
3669
3670         Add isnanf module.
3671         * lib/isnanf.m4: New file.
3672         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3673         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3674         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3675         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3676         * modules/isnanf: New file.
3677         * modules/isnanf-tests: New file.
3678         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3679         files.
3680         * tests/test-isnanf-nolibm.c: factored most of its contents into
3681         new file tests/test-isnanf.h.
3682         * tests/test-isnanf.h: New file.
3683         * tests/test-isnanf.c: New file.
3684         * MODULES.html.sh: Mention new module.
3685         * doc/glibc-functions/isnanf.texi: Mention new module.
3686
3687 2008-07-10  Ben Pfaff  <blp@gnu.org>
3688
3689         Add isnand module.
3690         * lib/isnand.h: New file.
3691         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3692         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3693         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3694         functionality also.
3695         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3696         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3697         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3698         * modules/isnand: New file.
3699         * modules/isnand-tests: New file.
3700         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3701         files.
3702         * tests/test-isnand-nolibm.c: factored most of its contents into
3703         new file tests/test-isnand.h.
3704         * tests/test-isnand.h: New file.
3705         * tests/test-isnand.c: New file.
3706         * MODULES.html.sh: Mention new module.
3707
3708 2008-07-10  Ben Pfaff  <blp@gnu.org>
3709
3710         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3711         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3712         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3713         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3714         * modules/isnanf-nolibm: Update references to renamed files.
3715         * modules/isnand-nolibm: Likewise.
3716         * modules/isnanf-nolibm-tests: Likewise.
3717         * modules/isnand-nolibm-tests: Likewise.
3718         * lib/frexp.c: Likewise.
3719         * lib/isfinite.c: Likewise.
3720         * lib/signbitd.c: Likewise.
3721         * lib/signbitf.c: Likewise.
3722         * lib/vasnprintf.c: Likewise.
3723         * tests/test-ceilf1.c: Likewise.
3724         * tests/test-ceilf2.c: Likewise.
3725         * tests/test-floorf1.c: Likewise.
3726         * tests/test-floorf2.c: Likewise.
3727         * tests/test-frexp.c: Likewise.
3728         * tests/test-round1.c: Likewise.
3729         * tests/test-round2.c: Likewise.
3730         * tests/test-roundf1.c: Likewise.
3731         * tests/test-strtod.c: Likewise.
3732         * tests/test-trunc1.c: Likewise.
3733         * tests/test-trunc2.c: Likewise.
3734         * tests/test-truncf1.c: Likewise.
3735         * tests/test-truncf2.c: Likewise.
3736         * NEWS: Mention the renamed header files.
3737
3738 2008-07-11  Jim Meyering  <meyering@redhat.com>
3739
3740         vc-list-files: make the last-resort awk code more portable
3741         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3742         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3743         does not support it.
3744
3745 2008-07-10  Eric Blake  <ebb9@byu.net>
3746
3747         Work with tar's bootstrap.
3748         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3749         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3750         an m4 comment.
3751
3752 2008-07-09  Jim Meyering  <meyering@redhat.com>
3753
3754         posix-shell.m4: fix typo that made this test malfunction
3755         * m4/posix-shell.m4: Remove capitalization in variable name.
3756
3757 2008-07-08  Bruno Haible  <bruno@clisp.org>
3758
3759         * m4/onceonly.m4: Update comments.
3760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3761
3762 2008-07-04  Jim Meyering  <meyering@redhat.com>
3763
3764         * users.txt: Add vc-dwim.
3765         (bison, coreutils): Use the gitweb URL.
3766
3767 2008-07-03  Jim Meyering  <meyering@redhat.com>
3768
3769         * users.txt: Add libffcall.  From Sam Steingold.
3770
3771 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
3772
3773         getdate.y: do not ignore TZ with relative day, month or year offset
3774         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3775         relative-date-handling, since otherwise, the latter would clobber the
3776         sole output (an updated Start value) of the tz-handling block.
3777         * tests/test-getdate.c: Tests for the fix
3778
3779 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3780
3781         Recognize 'foo_LIBRARIES += libgnu.a'.
3782         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3783         makefile snippet has already specified an installation location,
3784         also using '+='.
3785
3786 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
3787
3788         getdate.y: factor out common actions
3789         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3790         Use them in place of open-coded actions.
3791
3792 2008-07-01  Simon Josefsson  <simon@josefsson.org>
3793
3794         Add self-test for getdate module.
3795         * modules/getdate-tests: New file.
3796         * tests/test-getdate.c: New file.
3797
3798 2008-06-29  Bruno Haible  <bruno@clisp.org>
3799
3800         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3801         .gitignore.
3802         Reported by Sylvain Beucler <beuc@beuc.net>.
3803
3804 2008-06-29  Bruno Haible  <bruno@clisp.org>
3805
3806         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3807         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3808
3809 2008-06-29  Bruno Haible  <bruno@clisp.org>
3810
3811         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3812         EXTRA_DIST.
3813         Reported by Sylvain Beucler <beuc@beuc.net>.
3814
3815 2008-06-26  Jim Meyering  <meyering@redhat.com>
3816
3817         make several modules depend on the "open" module
3818         This provides slightly increased consistency when opening-for-write
3819         the name of a non-directory spelled with a trailing slash.
3820         * modules/chdir-safer: Likewise.
3821         * modules/chown: Likewise.
3822         * modules/clean-temp: Likewise.
3823         * modules/copy-file: Likewise.
3824         * modules/fchdir: Likewise.
3825         * modules/fcntl-safer: Likewise.
3826         * modules/pipe: Likewise.
3827         * modules/utime: Likewise.
3828         Prompted by Eric Blake and Bruno Haible.
3829
3830 2008-06-24  Andreas Schwab  <schwab@suse.de>
3831
3832         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3833         literals can be used as initializers for global variables.
3834
3835 2008-06-23  Eric Blake  <ebb9@byu.net>
3836
3837         Make gnulib-cache.m4 easier to diff.
3838         * gnulib-tool (func_import): Allow newlines when reading cached
3839         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3840
3841 2008-06-23  Bruno Haible  <bruno@clisp.org>
3842
3843         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3844         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3845         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3846         m4/signalblocking.m4.
3847         (gl_PREREQ_SIGACTION): Don't invoke it.
3848         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3849         gl_PREREQ_SIG_HANDLER_H.
3850         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3851         Don't check for sigaction here.
3852
3853 2008-06-23  Bruno Haible  <bruno@clisp.org>
3854
3855         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3856         (install_handlers): Don't set the SA_RESETHAND flag.
3857
3858 2008-06-23  Bruno Haible  <bruno@clisp.org>
3859
3860         * m4/sigaction.m4: Comment fixes.
3861         * lib/signal.in.h: Likewise.
3862
3863 2008-06-23  Eric Blake  <ebb9@byu.net>
3864
3865         Fix typo.
3866         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3867
3868         Avoid SA_ namespace.
3869         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3870         Reported by Ralf Wildenhues.
3871
3872         Avoid test failure due to SA_RESTORER.
3873         * tests/test-sigaction.c (SA_MASK): New macro.
3874         (main): Avoid failing due to extension flags being set.
3875         Reported by Jim Meyering.
3876
3877         Revert use of sig-handler.h in sigprocmask.c.
3878         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3879         it requires the existence of struct sigaction.
3880         * lib/sigprocmask.c (handler_t): Restore typedef.
3881         (rpl_signal, old_handlers): Use local type.
3882
3883 2008-06-22  Bruno Haible  <bruno@clisp.org>
3884
3885         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3886         conditionally.
3887         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3888
3889 2008-06-22  Bruno Haible  <bruno@clisp.org>
3890
3891         * doc/posix-functions/siginterrupt.texi: Move note.
3892
3893         * lib/signal.in.h (SA_RESTART): New macro.
3894         * lib/sigaction.c: Update comment.
3895
3896         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3897
3898         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3899         (gl_PREREQ_SIGPROCMASK): Invoke it.
3900         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3901
3902         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3903
3904         * lib/sigprocmask.c: Update a comment.
3905
3906 2008-06-21  Eric Blake  <ebb9@byu.net>
3907
3908         Use sigaction module rather than signal().
3909         * modules/c-stack (Depends-on): Add sigaction.
3910         * modules/fatal-signal (Depends-on): Likewise.
3911         * modules/nanosleep (Depends-on): Likewise.
3912         * modules/sigprocmask (Files): Add sig-handler.h.
3913         * modules/sigaction (Files): Likewise.
3914         * lib/sig-handler.h (get_handler): New file, suggested by Paul
3915         Eggert.
3916         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3917         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3918         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3919         (init_fatal_signals): Likewise.
3920         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3921         (siginterrupt): Delete fallback.
3922         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3923         instead.
3924         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3925         siginterrupt.
3926
3927         New module sigaction, for mingw.
3928         * modules/sigaction: New module...
3929         * modules/sigaction-tests: ...and its test.
3930         * m4/sigaction.m4: New file.
3931         * lib/sigaction.c: Likewise.
3932         * tests/test-sigaction.c: Likewise.
3933         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3934         * modules/signal (Makefile.am): Likewise.
3935         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3936         needed.
3937         * doc/posix-headers/signal.texi (signal.h): Mention provided
3938         types.
3939         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3940         that sigaction is preferable.
3941         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3942         module.
3943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3944         sigaction.
3945
3946         Improve robustness of sigprocmask by overriding signal.
3947         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3948         is in use.
3949         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3950         (SIGKILL, SIGSTOP): Provide fallbacks.
3951         (rpl_signal): Implement.
3952         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3953         signal can be called inside handlers.
3954
3955         Fix nanosleep module on mingw.
3956         * modules/nanosleep (Depends-on): Add sys_select.
3957         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3958
3959         Fix licensing of sigprocmask.
3960         * modules/raise (License): Relicense as LGPL.
3961
3962 2008-06-21  Bruno Haible  <bruno@clisp.org>
3963
3964         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3965         result if it contains question marks.
3966         Reported by Michael Geng <linux@michaelgeng.de>.
3967
3968 2008-06-19  Bruno Haible  <bruno@clisp.org>
3969
3970         Fix CVS-ism.
3971         * doc/gnulib.texi: Include updated-stamp.texi.
3972         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3973         (updated-stamp.texi): New rule.
3974         (gnulib.info): Depend on it.
3975         * doc/.gitignore: Add updated-stamp.texi.
3976         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3977
3978 2008-06-19  Bruno Haible  <bruno@clisp.org>
3979
3980         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3981         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3982
3983 2008-06-19  Eric Blake  <ebb9@byu.net>
3984
3985         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3986         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3987         Reported by Stepan Kasal.
3988
3989 2008-06-18  Bruno Haible  <bruno@clisp.org>
3990
3991         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3992         Reported by Eric Blake.
3993
3994 2008-06-18  Eric Blake  <ebb9@byu.net>
3995
3996         Work around cygwin 1.5.25 strsignal bug.
3997         * tests/test-strsignal.c: Allow for const char *.
3998         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3999
4000 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4001
4002         * users.txt: Update URL to article and add author/date
4003         information.
4004
4005 2008-06-17  Bruno Haible  <bruno@clisp.org>
4006
4007         New macro gl_DISABLE_THREADS.
4008         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4009         if the user did not pass --enable-threads or --disable-threads option.
4010         (gl_DISABLE_THREADS): New macro.
4011         Reported by Eric Blake <ebb9@byu.net>.
4012
4013 2008-06-17  Bruno Haible  <bruno@clisp.org>
4014
4015         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4016         when the macro ignores it.
4017         Based on a patch by Eric Blake <ebb9@byu.net>.
4018
4019 2008-06-17  Bruno Haible  <bruno@clisp.org>
4020
4021         * modules/tls (License): Change to LGPLv2+.
4022         Reported by Eric Blake.
4023
4024 2008-06-17  Eric Blake  <ebb9@byu.net>
4025
4026         Simplify c-stack prerequisites.
4027         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4029         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4030         check.
4031         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4032         <sys/resource.h>.
4033
4034         Move c-stack test into testsuite.
4035         * modules/c-stack-tests: New file.
4036         * lib/c-stack.c [DEBUG]: Move test program...
4037         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4038         fail test if sigaltstack is lacking.
4039         * tests/test-c-stack.sh: New driver file.
4040
4041 2008-06-16  Eric Blake  <ebb9@byu.net>
4042
4043         Use raise module consistently.
4044         * modules/fatal-signal (Depends-on): Add raise.
4045         * modules/sigprocmask (Depends-on): Likewise.
4046         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4047         * lib/sigprocmask.c (sigprocmask): Likewise.
4048         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4049         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4050
4051         Fix compliance bug in sigpending.
4052         * lib/sigprocmask.c (sigpending): Return pending array via
4053         parameter, not return value.
4054
4055 2008-06-14  Eric Blake  <ebb9@byu.net>
4056
4057         Improve obstack-printf test code.
4058         * tests/test-obstack-printf.c (test_function): Fix comment, and
4059         simplify usage of obstack_* in macros.  Add a test for coverage.
4060         Reported by Bruno Haible.
4061
4062 2008-06-14  Bruno Haible  <bruno@clisp.org>
4063
4064         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4065         array size as a constant, not as a const variable.
4066         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4067         AC_USE_SYSTEM_EXTENSIONS.
4068         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4069         Test whether the obstack_printf function actually exists.
4070         * modules/obstack-printf (Depends-on): Add extensions.
4071         (Include): Remove obstack.h.
4072         * modules/obstack-printf-posix (Depends-on): Add extensions.
4073         (Include): Remove obstack.h.
4074
4075 2008-06-13  Eric Blake  <ebb9@byu.net>
4076
4077         Add obstack-printf and obstack-printf-posix modules.
4078         * modules/obstack-printf: New file.
4079         * modules/obstack-printf-posix: Likewise.
4080         * MODULES.html.sh (Misc): Mention them.
4081         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4082         Likewise.
4083         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4084         Likewise.
4085         * modules/stdio (Makefile.am): Accomodate new modules.
4086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4087         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4088         Declare.
4089         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4090         functions.
4091         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4092         (gl_REPLACE_OBSTACK_PRINTF): New macros
4093         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4094         * tests/test-obstack-printf.c: New file.
4095         * modules/obstack-printf-tests: Likewise.
4096         * modules/obstack-printf-posix-tests: Likewise.
4097
4098 2008-06-11  Bruno Haible  <bruno@clisp.org>
4099
4100         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4101         * lib/open.c: Include errno.h.
4102         (open): Fail when attempting to write to a file that has a trailing
4103         slash.
4104         * tests/test-open.c (main): Test against trailing slash bug.
4105         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4106
4107 2008-06-10  Bruno Haible  <bruno@clisp.org>
4108
4109         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4110         for $? to work inside the trap command, with various /bin/sh-s.
4111         * tests/test-vc-list-files-cvs.sh: Likewise.
4112
4113 2008-06-10  Bruno Haible  <bruno@clisp.org>
4114
4115         * lib/acl-internal.h: Don't include gettext.h here.
4116         * lib/set-mode-acl.c: Include gettext.h here.
4117         * lib/copy-acl.c: Likewise.
4118
4119 2008-06-10  Bruno Haible  <bruno@clisp.org>
4120
4121         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4122         * lib/wait-process.c (wait_subprocess): Likewise.
4123         * lib/execute.h (execute): Add termsigp argument.
4124         * lib/execute.c (execute): Likewise.
4125         * lib/csharpcomp.c (compile_csharp_using_pnet,
4126         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4127         * lib/csharpexec.c (execute_csharp_using_pnet,
4128         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4129         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4130         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4131         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4132         is_jikes_present): Update.
4133         * lib/javaexec.c (execute_java_class): Update.
4134         * lib/javaversion.c (execute_and_read_line): Update.
4135         * NEWS: Document the changes.
4136         Reported by Eric Blake.
4137
4138 2008-06-10  Eric Blake  <ebb9@byu.net>
4139
4140         Add missing include.
4141         * tests/test-strstr.c (includes): Add <signal.h>.
4142         * tests/test-strcasestr.c (includes): Likewise.
4143         * tests/test-memmem.c (includes): Likewise.
4144
4145 2008-06-10  Bruno Haible  <bruno@clisp.org>
4146
4147         * lib/wait-process.c (wait_subprocess): Add an assertion.
4148
4149 2008-06-10  Bruno Haible  <bruno@clisp.org>
4150
4151         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4152
4153 2008-06-10  Bruno Haible  <bruno@clisp.org>
4154
4155         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4156         using alarm().
4157         * tests/test-strcasestr.c (main): Likewise.
4158         * tests/test-strstr.c (main): Likewise.
4159
4160 2008-06-09  Bruno Haible  <bruno@clisp.org>
4161
4162         Work around the Solaris 10 ACE ACLs ABI change.
4163         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4164         declare if ACL_NO_TRIVIAL is present.
4165         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4166         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4167         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4168         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4169         define if ACL_NO_TRIVIAL is present.
4170         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4171         and use the current ABI.
4172         (file_has_acl): Use same #if condition as elsewhere.
4173         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4174         in use, and use the current ABI.
4175         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4176         Reported by Jim Meyering.
4177
4178 2008-06-09  Eric Blake  <ebb9@byu.net>
4179
4180         Work around environments that (stupidly) ignore SIGALRM.
4181         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4182         before using alarm().
4183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4185         Reported by Ian Beckwith <ianb@erislabs.net>.
4186
4187         Produce autobuild blurb earlier in log.
4188         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4189
4190 2008-06-09  Jim Meyering  <meyering@redhat.com>
4191         and OndÅ™ej Vašík  <ovasik@redhat.com>
4192
4193         utimens.c: correct kernel bug work-around
4194         OndÅ™ej Vašík found that the invalid return value of 280 indicates
4195         failure, not success, and the kernel bug we're trying to work
4196         around affects not just the utimensat call, but also the fallback
4197         futimens call.
4198         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4199         not success.
4200         [HAVE_FUTIMENS]: Use the same work-around, here.
4201
4202 2008-06-09  Jim Meyering  <meyering@redhat.com>
4203
4204         add more guards around definition of ACE_-related code
4205         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4206         ALLOW and ACE_OWNER are also defined.
4207
4208 2008-06-08  Bruno Haible  <bruno@clisp.org>
4209
4210         * lib/acl-internal.h: Add me as co-author.
4211         * lib/file-has-acl.c: Likewise.
4212         * lib/set-mode-acl.c: Likewise.
4213         * lib/copy-acl.c: Likewise.
4214
4215 2008-06-08  Bruno Haible  <bruno@clisp.org>
4216
4217         Add support for AIX ACLs.
4218         * lib/acl-internal.h (acl_nontrivial): New declaration.
4219         * lib/file-has-acl.c (acl_nontrivial): New function.
4220         (file_has_acl): Add implementation using AIX 4 ACL API.
4221         * lib/set-mode-acl.c (qset_acl): Likewise.
4222         * lib/copy-acl.c (qcopy_acl): Likewise.
4223
4224 2008-06-08  Bruno Haible  <bruno@clisp.org>
4225
4226         Add support for HP-UX ACLs.
4227         * lib/acl-internal.h (acl_nontrivial): New declaration.
4228         * lib/file-has-acl.c (acl_nontrivial): New function.
4229         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4230         * lib/set-mode-acl.c (qset_acl): Likewise.
4231         * lib/copy-acl.c (qcopy_acl): Likewise.
4232
4233 2008-06-08  Bruno Haible  <bruno@clisp.org>
4234
4235         Add support for Cygwin ACLs.
4236         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4237         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4238         the chmod_or_fchmod call.
4239         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4240
4241 2008-06-08  Bruno Haible  <bruno@clisp.org>
4242
4243         Fix bug with setuid modes in Solaris 10+ code.
4244         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4245         succeeded, when the mode contains some special bits.
4246
4247 2008-06-08  Bruno Haible  <bruno@clisp.org>
4248
4249         Add support for Solaris 7..10 ACLs.
4250         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4251         declarations.
4252         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4253         functions.
4254         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4255         * lib/set-mode-acl.c (qset_acl): Likewise.
4256         * lib/copy-acl.c (qcopy_acl): Likewise.
4257
4258 2008-06-08  Bruno Haible  <bruno@clisp.org>
4259
4260         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4261         declaration.
4262         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4263         (acl_access_nontrivial): Remove MacOS X case.
4264         (file_has_acl): Use acl_extended_nontrivial.
4265         * lib/copy-acl.c (qcopy_acl): Likewise.
4266
4267 2008-06-08  Bruno Haible  <bruno@clisp.org>
4268
4269         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4270
4271 2008-06-08  Jim Meyering  <meyering@redhat.com>
4272
4273         * modules/acl (Maintainer): Add Bruno Haible.
4274
4275 2008-06-07  Bruno Haible  <bruno@clisp.org>
4276
4277         Improve support for Tru64 ACLs.
4278         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4279         ACL on OSF/1.
4280
4281 2008-06-07  Bruno Haible  <bruno@clisp.org>
4282
4283         Add support for MacOS X ACLs.
4284         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4285         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4286         * lib/set-mode-acl.c (qset_acl): Likewise.
4287         * lib/copy-acl.c (qcopy_acl): Likewise.
4288
4289 2008-06-07  Bruno Haible  <bruno@clisp.org>
4290
4291         Fix memory leak introduced on 2008-05-22.
4292         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4293         use.
4294
4295 2008-06-07  Bruno Haible  <bruno@clisp.org>
4296
4297         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4298         to construct an empty ACL.
4299
4300 2008-06-07  Bruno Haible  <bruno@clisp.org>
4301
4302         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4303         precisely.
4304         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4305
4306 2008-06-07  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4309         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4310
4311 2008-06-07  Bruno Haible  <bruno@clisp.org>
4312
4313         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4314         regardless of POSIX.
4315         * doc/posix-functions/_longjmp.texi: Likewise.
4316         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4317         SystemV platform in this case.
4318
4319 2008-06-06  Eric Blake  <ebb9@byu.net>
4320
4321         Document abort() bugs.
4322         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4323
4324         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4325         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4326         sigsetjmp.
4327         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4328         siglongjmp, but only as a macro.
4329         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4330         is obsolete.
4331         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4332
4333         Tweak documentation to cover cygwin argz bugs.
4334         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4335         argz bug fix; no code change needed since no cygwin releases
4336         occurred between the last fix and the bug being tested.
4337         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4338         module and recently fixed cygwin bugs.
4339         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4340         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4341         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4342         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4343         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4344         Likewise.
4345         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4346         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4347         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4348         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4349         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4350         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4351         Likewise.
4352
4353         Avoid gcc warning on cygwin.
4354         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4355         !ACL_NO_TRIVIAL]: Avoid unused variable.
4356
4357 2008-06-05  Eric Blake  <ebb9@byu.net>
4358
4359         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4360         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4361         git-version-gen fails to come up with a version.
4362         Reported by Simon Josefsson.
4363
4364 2008-06-05  Jim Meyering  <meyering@redhat.com>
4365             Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         utimens.c: work around a probable Linux kernel bug
4368         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4369         appears to be a kernel bug that causes utimensat to return 280
4370         instead of 0, indicating success.
4371
4372 2008-06-04  Bruno Haible  <bruno@clisp.org>
4373
4374         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4375         2008-06-01 commit.
4376
4377 2008-06-04  Bruno Haible  <bruno@clisp.org>
4378
4379         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4380         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4381         (file_has_acl): Use it. Save errno afterwards.
4382         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4383
4384 2008-06-03  Bruno Haible  <bruno@clisp.org>
4385
4386         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4387         draft code. Simplify #ifs.
4388         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4389         Put Solaris code after POSIX-draft code. Fix comments regarding
4390         Solaris 10, HP-UX. Mention Cygwin.
4391         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4392
4393 2008-06-03  Eric Blake  <ebb9@byu.net>
4394
4395         Provide fallback for older kernels.
4396         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4397         Provide runtime fallback if kernel lacks support.
4398         Reported by Mike Frysinger.
4399
4400 2008-06-02  Bruno Haible  <bruno@clisp.org>
4401
4402         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4403         it exists.
4404
4405 2008-06-02  Bruno Haible  <bruno@clisp.org>
4406
4407         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4408         * lib/copy-acl.c (qcopy_acl): Update comment.
4409
4410 2008-06-02  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4413         like ACL APIs.
4414
4415 2008-06-02  Bruno Haible  <bruno@clisp.org>
4416
4417         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4418         * tests/test-set-mode-acl.sh: Likewise.
4419         * tests/test-copy-acl.sh: Likewise.
4420         * tests/test-copy-file.sh: Likewise.
4421
4422 2008-06-02  Bruno Haible  <bruno@clisp.org>
4423
4424         * tests/test-file-has-acl.sh: Remove unused code.
4425
4426 2008-06-01  Bruno Haible  <bruno@clisp.org>
4427
4428         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4429         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4430         messages.
4431         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4432
4433 2008-06-01  Bruno Haible  <bruno@clisp.org>
4434
4435         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4436         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4437         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4438         APIs.
4439         * modules/acl-tests (configure.ac): Remove tests now contained in
4440         m4/acl.m4.
4441
4442 2008-06-02  Jim Meyering  <meyering@redhat.com>
4443
4444         announce-gen: use a better key-server host name
4445         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4446         it may be more consistently reliable.  Suggested by Werner Koch
4447         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4448
4449 2008-06-01  Bruno Haible  <bruno@clisp.org>
4450
4451         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4452         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4453
4454 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4455
4456         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4457
4458 2008-06-01  Bruno Haible  <bruno@clisp.org>
4459
4460         New ACL tests.
4461         * tests/test-file-has-acl.sh: New file.
4462         * tests/test-file-has-acl.c: New file.
4463         * tests/test-set-mode-acl.sh: New file.
4464         * tests/test-set-mode-acl.c: New file.
4465         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4466         * tests/test-copy-acl.c: New file.
4467         * modules/acl-tests: New file, based on modules/copy-file-tests.
4468         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4469         (Depends-on): Add acl-tests.
4470         (configure.ac): Remove checks.
4471         (Makefile.am): Don't create test-sameacls program here any more.
4472
4473 2008-06-01  Bruno Haible  <bruno@clisp.org>
4474
4475         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4476         * tests/test-sameacls.c: Include progname.h.
4477         (main): Invoke set_program_name. Portability fixes for MacOS X,
4478         Solaris, HP-UX.
4479
4480 2008-06-01  Bruno Haible  <bruno@clisp.org>
4481
4482         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4483         function.
4484         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4485
4486 2008-06-01  Bruno Haible  <bruno@clisp.org>
4487
4488         * modules/rpmatch (Depends-on): Add strdup.
4489
4490 2008-06-01  Bruno Haible  <bruno@clisp.org>
4491
4492         * lib/pipe.c: Include unistd-safer.h.
4493         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4494         * modules/pipe (Depends-on): Add unistd-safer.
4495
4496 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4497
4498         * modules/autobuild (configure.ac): Call AB_INIT.
4499
4500 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4501
4502         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4503         Suggested by Bruno Haible <bruno@clisp.org>.
4504
4505 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4506
4507         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4508         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4509         <bruno@clisp.org>.
4510
4511 2008-05-29  Eric Blake  <ebb9@byu.net>
4512
4513         Prefer new POSIX 200x interfaces over futimesat.
4514         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4515         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4516         when available.
4517         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4518
4519 2008-05-28  Bruno Haible  <bruno@clisp.org>
4520
4521         * modules/stpcpy (License): Change to LGPLv2+.
4522         Requested by David Lutterkort <dlutter@redhat.com>.
4523
4524 2008-05-27  Bruno Haible  <bruno@clisp.org>
4525
4526         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4527         current mingw.
4528         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4529
4530 2008-05-27  Bruno Haible  <bruno@clisp.org>
4531
4532         * modules/iconv_open (Link): New section, from module 'iconv'.
4533         * modules/striconv (Link): Likewise.
4534         * modules/striconveh (Link): Likewise.
4535         * modules/xstriconv (Link): Likewise.
4536         * modules/unicodeio (Link): Likewise.
4537         * modules/propername (Link): Likewise.
4538         Reported by Jim Meyering.
4539
4540 2008-05-26  Jim Meyering  <meyering@redhat.com>
4541
4542         sha256: do not artificially restrict buffer length to be < 2^32
4543         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4544         uint32_t to size_t.
4545         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4546         to match.
4547
4548         avoid unaligned access errors, e.g., on sparc
4549         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4550         direct access through a possibly-unaligned uint64* pointer.
4551         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4552         direct access through a possibly-unaligned uint32* pointer.
4553         Prompted by this patch from Tom "spot" Callaway:
4554         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4555
4556         sha512.c: fix typo in comment
4557         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4558
4559 2008-05-25  Bruno Haible  <bruno@clisp.org>
4560
4561         * lib/set-mode-acl.c: Renamed from lib/acl.c.
4562         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4563         (Makefile.am): Update lib_SOURCES.
4564
4565 2008-05-25  Bruno Haible  <bruno@clisp.org>
4566
4567         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4568
4569 2008-05-25  Jim Meyering  <meyering@redhat.com>
4570
4571         useless-if-before-free: freed expr may have white-space differences
4572         * build-aux/useless-if-before-free: Recognize cases in which the
4573         freed expression differs from the tested one in embedded white
4574         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
4575         $1 was used, so we can't make any regexp shy.  Improved tests now
4576         detect this.
4577
4578         useless-if-before-free: accept white space in the expression.
4579         * build-aux/useless-if-before-free: For now, any white space
4580         in the expression must be identical in the free argument.
4581
4582         useless-if-before-free: efficiency tweak
4583         * build-aux/useless-if-before-free: Make the expression-matching
4584         regexp "shy".
4585         Make the *outer* regexp shy, not the expr-matching one.
4586
4587         update code-in-comment to accept cast of free arg
4588         * build-aux/useless-if-before-free: Update regexp.
4589
4590 2008-05-25  Bruno Haible  <bruno@clisp.org>
4591
4592         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4593         * modules/copy-file-tests (Files, Makefile.am): Update.
4594         * tests/test-copy-file.c (func_test_copy): Update.
4595
4596 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4597
4598         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4599
4600 2008-05-23  Bruno Haible  <bruno@clisp.org>
4601
4602         Improve support for ACLs on OSF/1.
4603         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4604         Remove fallback for unknown flavors of ACLs.
4605
4606 2008-05-22  Bruno Haible  <bruno@clisp.org>
4607
4608         Add support for ACLs on OSF/1.
4609         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4610         replacements.
4611         (acl_free_text): New macro fallback.
4612         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4613         acl_free.
4614         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4615         acl_free_text function. Require AC_C_INLINE.
4616
4617 2008-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         Make copy_acl work on MacOS X 10.5.
4620         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4621         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4622         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4623         If MODE_INSIDE_ACL, don't assume that every system has the same text
4624         representation for ACLs as FreeBSD.
4625         * lib/copy-acl.c (copy_acl): Add support for platforms with
4626         !MODE_INSIDE_ACL.
4627         * lib/file-has-acl.c (file_has_acl): Likewise.
4628         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4629         FreeBSD, MacOS X, or IRIX, respectively.
4630
4631 2008-05-22  Bruno Haible  <bruno@clisp.org>
4632
4633         * lib/acl.h: Don't include <sys/acl.h>.
4634         (GETACLCNT): Move fallback to lib/acl-internal.h.
4635         * lib/acl-internal.h: Include <sys/acl.h> here.
4636         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4637
4638 2008-05-22  Bruno Haible  <bruno@clisp.org>
4639
4640         Split off copy_acl function to separate file.
4641         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4642         * lib/acl.c (copy_acl): Moved function to separate file.
4643         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4644         * modules/acl (Files): Add lib/copy-acl.c.
4645         (Makefiles.am): Augment lib_SOURCES.
4646
4647 2008-05-22  Bruno Haible  <bruno@clisp.org>
4648
4649         * modules/copy-file-tests: New file.
4650         * tests/test-copy-file.sh: New file.
4651         * tests/test-copy-file.c: New file.
4652         * tests/test-copy-file-sameacls.c: New file.
4653
4654 2008-05-22  Eric Blake  <ebb9@byu.net>
4655
4656         Avoid gcc warning.
4657         * tests/test-memcmp.c (main): Pass NULL indirectly.
4658
4659 2008-05-21  Bruno Haible  <bruno@clisp.org>
4660
4661         Add reference doc about ACLs.
4662         * doc/acl-resources.txt: New file.
4663         * doc/acl-cygwin.txt: New file.
4664
4665 2008-05-21  Bruno Haible  <bruno@clisp.org>
4666
4667         Avoid one more warning from gcc.
4668         * lib/vasnprintf.c (IF_LINT): Update comments.
4669         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4670
4671 2008-05-21  Jim Meyering  <meyering@redhat.com>
4672
4673         avoid a warning from gcc
4674         * lib/vasnprintf.c (IF_LINT): Define.
4675         (scale10_round_decimal_long_double):
4676         Use it to avoid a "may be used uninitialized" warning.
4677         (scale10_round_decimal_double): Likewise.
4678
4679 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4680
4681         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4682         declared.
4683
4684 2008-05-20  Bruno Haible  <bruno@clisp.org>
4685
4686         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4687         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4688
4689 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4690
4691         * modules/memcmp-tests: New file.
4692         * tests/test-memcmp.c: New file.
4693
4694 2008-05-19  Bruno Haible  <bruno@clisp.org>
4695
4696         * modules/propername (Notice, configure.ac): Put quoted "..." into
4697         --keyword option.
4698         * lib/propername.h: Update comments accordingly.
4699         Reported by Eric Blake.
4700
4701 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4702
4703         * modules/getpass-gnu (Depends-on): Add fseeko.
4704
4705 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4706
4707         * modules/base64-tests: New file.
4708
4709 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4710
4711         * lib/base64.c (base64_decode_ctx): If a decode context structure
4712         was passed in use it to ignore newlines.  If a context structure
4713         was _not_ passed in, continue to treat newlines as garbage (this
4714         is the historical behavior).  Formerly base64_decode.
4715         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4716         takes a decode context structure.
4717         * lib/base64.h (base64_decode): Macro for four-argument calls.
4718         (base64_decode_alloc): Likewise.
4719         * lib/base64.c (base64_decode_ctx): If a decode context structure
4720         was passed in use it to ignore newlines.  If a context structure
4721         was _not_ passed in, continue to treat newlines as garbage (this
4722         is the historical behavior).  Formerly base64_decode.
4723         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4724         takes a decode context structure.
4725         * lib/base64.h (base64_decode): Macro for four-argument calls.
4726         (base64_decode_alloc): Likewise.
4727
4728 2008-05-19  Jim Meyering  <meyering@redhat.com>
4729
4730         avoid a warning from gcc
4731         * lib/trim.c (IF_LINT): Define.
4732         (trim2): Use it to avoid a "may be used uninitialized" warning.
4733
4734         Fix doc typo.
4735         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4736
4737 2008-05-19  Bruno Haible  <bruno@clisp.org>
4738
4739         * doc/glibc-functions/getpass.texi: Document limits of other
4740         implementations.
4741
4742 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4743             Bruno Haible <bruno@clisp.org>
4744
4745         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4746
4747 2008-05-18  Bruno Haible  <bruno@clisp.org>
4748
4749         * modules/propername: New file, from GNU gettext.
4750         * lib/propername.h: New file, from GNU gettext.
4751         * lib/propername.c: New file, from GNU gettext.
4752         * MODULES.html.sh (Internationalization functions): Add propername.
4753
4754 2008-05-16  Jim Meyering  <meyering@redhat.com>
4755             Bruno Haible  <bruno@clisp.org>
4756
4757         Avoid some warnings from "gcc -Wshadow".
4758         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4759
4760 2008-05-15  Eric Blake  <ebb9@byu.net>
4761
4762         Extend previous patch to cygwin 1.7.0.
4763         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4764         fast implementation in cygwin >= 1.7.0.
4765         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4767
4768 2008-05-15  Bruno Haible  <bruno@clisp.org>
4769
4770         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4771         implementation in glibc >= 2.9.
4772         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4774
4775 2008-05-15  Bruno Haible  <bruno@clisp.org>
4776
4777         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4778         (Unicode string functions): Add unilbrk/*.
4779         Reported by Karl Berry.
4780
4781 2008-05-15  Eric Blake  <ebb9@byu.net>
4782
4783         Fix violation of <stdbool.h> replacement in regex.
4784         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4785         * lib/regexec.c (re_search_internal): Likewise.
4786         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4787
4788 2008-05-15  Jim Meyering  <meyering@redhat.com>
4789
4790         avoid distracting test output when git or cvs is not found
4791         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4792         * tests/test-vc-list-files-git.sh: Likewise.
4793
4794 2008-05-15  Eric Blake  <ebb9@byu.net>
4795
4796         Glibc finally accepted the memmem speedup code, bugzilla #5514.
4797         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4798         glibc version.
4799         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4800         * doc/posix-functions/strstr.texi (strstr): Likewise.
4801         * lib/str-two-way.h (MAX): Sychronize with glibc.
4802
4803 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
4804
4805         * lib/regcomp.c (optimize_utf8): Add a note on why we test
4806         opr.ctx_type.
4807         (calc_first): Initialize constraint field.
4808         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4809         Fix grammar.
4810         (duplicate_node): Merge constraint field for all node types.
4811         (calc_eclosure_iter): Look at constraint field for all node types.
4812         * lib/regex_internal.c (create_cd_newstate): Don't look at
4813         opr.ctx_type.
4814
4815 2008-05-14  Bruno Haible  <bruno@clisp.org>
4816
4817         Help GCC to do better code generation.
4818         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4819         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4820         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4821         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4822         Declare with attribute 'malloc' if supported.
4823
4824 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
4825
4826         use "echo STR|wc -c" rather than unportable "expr length STR"
4827         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4828         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4829
4830 2008-05-14  Jim Meyering  <meyering@redhat.com>
4831
4832         use dd ibs=$n count=1 ... rather than less-portable head -c$n
4833         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4834         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4835         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4836         via Collin Lasse.
4837
4838 2008-05-14  Eric Blake  <ebb9@byu.net>
4839
4840         Avoid quadratic growth in gl_LIBSOURCES.
4841         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4842         Suggested by Bruno Haible.
4843
4844         Test xmemdup0.
4845         * modules/xmemdup0-tests: New file.
4846         * tests/test-xmemdup0.c: Likewise.
4847
4848 2008-05-13  Eric Blake  <ebb9@byu.net>
4849
4850         Split xmemdup0 into its own module.
4851         * modules/xmemdup0: New file.
4852         * lib/xmemdup0.h: Likewise.
4853         * lib/xmemdup0.c: Likewise.
4854         * MODULES.html.sh (Memory management functions): Add xmemdup0.
4855         * lib/xalloc.h (xmemdup0): Remove.
4856         * lib/xmalloc.c (xmemdup0): Likewise.
4857
4858 2008-05-13  Eric Blake  <ebb9@byu.net>
4859             Bruno Haible  <bruno@clisp.org>
4860
4861         Reduce number of forks required during autoconf.
4862         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4863         and gl_LIBSOURCES_DIR.
4864         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4865         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4866         m4_syscmd per file.
4867         <m4_foreach_w>: Move...
4868         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4869
4870 2008-05-13  Eric Blake  <ebb9@byu.net>
4871
4872         * gnulib-tool: Fix various comment typos.
4873
4874 2008-05-12  Bruno Haible  <bruno@clisp.org>
4875
4876         Tailor the linebreaking algorithm.
4877         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4878
4879 2008-05-12  Bruno Haible  <bruno@clisp.org>
4880
4881         Update to Unicode 5.0.0.
4882         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4883         LBP_JV, LBP_JT. Redistribute values.
4884         (unilbrk_table): Change size.
4885         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4886         Unicode TR#14 rev. 22.
4887         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4888         LBP_JV, LBP_JT. Redistribute values.
4889         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4890         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4891         Update.
4892         * lib/unilbrk/lbrkprop1.h: Regenerated.
4893         * lib/unilbrk/lbrkprop2.h: Regenerated.
4894         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4895         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4896         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4897         Likewise.
4898         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4899         Likewise.
4900         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4901         result.
4902         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4903         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4904         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4905         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4906         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4907         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4908
4909 2008-05-11  Bruno Haible  <bruno@clisp.org>
4910
4911         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4912
4913 2008-05-11  Bruno Haible  <bruno@clisp.org>
4914
4915         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4916         * modules/unilbrk/gen-lbrk: New file.
4917
4918 2008-05-11  Bruno Haible  <bruno@clisp.org>
4919
4920         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4921         * m4/sha512.m4 (gl_SHA512): Likewise.
4922
4923 2008-05-11  Jim Meyering  <meyering@redhat.com>
4924
4925         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4926         * modules/crypto/sha256: New file.
4927         * modules/crypto/sha512: Likewise.
4928         * lib/sha256.c: Likewise.
4929         * lib/sha256.h: Likewise.
4930         * lib/sha512.c: Likewise.
4931         * lib/sha512.h: Likewise.
4932         * lib/u64.h: Likewise.
4933         * m4/sha256.m4: Likewise.
4934         * m4/sha512.m4: Likewise.
4935         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4936
4937 2008-05-10  Bruno Haible  <bruno@clisp.org>
4938
4939         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4940         (Input/Output <stdio.h>): Add xprintf.
4941         (Signal handling <signal.h>): Add strsignal.
4942         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4943         (Core language properties): Add func.
4944         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4945         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4946         strings.
4947         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4948         (Input/output): New section.
4949         (File system functions): Add openat-die, stat-macros.
4950         (Networking functions): Add sockets.
4951         (Unicode string functions): Add unictype/*.
4952         (Support for building libraries and executables): Add gperf.
4953         (Support for building documentation): Add agpl-3.0.
4954         (Misc): Add nocrash.
4955
4956 2008-05-10  Bruno Haible  <bruno@clisp.org>
4957
4958         * modules/unictype/gen-ctype: New file.
4959
4960 2008-05-10  Jim Meyering  <meyering@redhat.com>
4961
4962         Make chdir-safer.c more efficient on a system with no symlinks.
4963         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4964         also if ELOOP is zero.  Suggested by Bruno Haible.
4965
4966         Make chdir-safer.c slightly safer.
4967         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4968         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4969
4970         Avoid compile failure on systems without ELOOP (like mingw).
4971         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4972         Reported by Bruno Haible.
4973
4974 2008-05-10  Bruno Haible  <bruno@clisp.org>
4975
4976         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4977         (is_utf8_encoding): Use a case-insensitive comparison.
4978         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4979         streq.
4980
4981 2008-05-10  Bruno Haible  <bruno@clisp.org>
4982
4983         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4984         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4985         * lib/unilbrk/ulc-common.h (iconv_string_length,
4986         iconv_string_keeping_offsets): Remove declarations.
4987         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4988         Don't include <iconv.h>, streq.h, xsize.h.
4989         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4990         conversion.
4991         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4992         <iconv.h>, streq.h, xsize.h.
4993         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4994         conversion.
4995         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4996         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4997         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4998         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4999
5000 2008-05-10  Bruno Haible  <bruno@clisp.org>
5001
5002         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5003         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5004
5005         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5006         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5007
5008         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5009         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5010
5011         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5012         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5013
5014         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5015         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5016
5017         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5018         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5019
5020         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5021         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5022
5023         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5024         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5025
5026 2008-05-10  Bruno Haible  <bruno@clisp.org>
5027
5028         Split up 'linebreak' module.
5029         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5030         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5031         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5032         modifications.
5033         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5034         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5035         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5036         lib/linebreak.c.
5037         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5038         lib/linebreak.c.
5039         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5040         lib/linebreak.c.
5041         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5042         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5043         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5044         lib/linebreak.c.
5045         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5046         lib/linebreak.c.
5047         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5048         lib/linebreak.c.
5049         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5050         lib/linebreak.c.
5051         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5052         lib/linebreak.c.
5053         * modules/unilbrk/base: New file.
5054         * modules/unilbrk/tables: New file.
5055         * modules/unilbrk/u8-possible-linebreaks: New file.
5056         * modules/unilbrk/u16-possible-linebreaks: New file.
5057         * modules/unilbrk/u32-possible-linebreaks: New file.
5058         * modules/unilbrk/ulc-common: New file.
5059         * modules/unilbrk/ulc-possible-linebreaks: New file.
5060         * modules/unilbrk/u8-width-linebreaks: New file.
5061         * modules/unilbrk/u16-width-linebreaks: New file.
5062         * modules/unilbrk/u32-width-linebreaks: New file.
5063         * modules/unilbrk/ulc-width-linebreaks: New file.
5064         * lib/linebreak.h: Remove file.
5065         * lib/linebreak.c: Remove file.
5066         * m4/linebreak.m4: Remove file.
5067         * modules/linebreak: Remove file.
5068         * NEWS: Mention the changes.
5069
5070 2008-05-09  Eric Blake  <ebb9@byu.net>
5071
5072         Add xmemdup0.
5073         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5074         implementation.
5075         * lib/xmalloc.c (xmemdup0): New C implementation.
5076
5077 2008-05-08  Bruno Haible  <bruno@clisp.org>
5078
5079         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5080
5081 2008-05-07  Eric Blake  <ebb9@byu.net>
5082
5083         Support cross-compilation of <wctype.h>.
5084         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5085         AC_CACHE_CHECK.
5086
5087 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5088
5089         * build-aux/vc-list-files: Add support for bzr.
5090
5091 2008-05-03  Jim Meyering  <meyering@redhat.com>
5092
5093         avoid failed assertion with tight malloc
5094         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5095
5096 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5097
5098         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5099         are needed from arpa/inet.h.
5100         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5101         Reported by Bruno Haible.
5102
5103 2008-05-02  Jim Meyering  <meyering@redhat.com>
5104
5105         avoid compilation error on FreeBSD 6
5106         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5107
5108 2008-05-01  Jim Meyering  <meyering@redhat.com>
5109
5110         useless-if-before-free: correct --help's exit status description
5111         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5112         for one or more matches, etc.  Reported by Bruno Haible.
5113
5114         vc-list-files: make the stand-alone gnulib test work
5115         * modules/vc-list-files-tests (configure.ac):
5116         Define and AC_SUBST abs_aux_dir.
5117         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5118         $(abs_top_srcdir) to each script and having each of them
5119         duplicate the work of setting PATH, set PATH here, using
5120         the new variable, abs_aux_dir instead.
5121         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5122         * tests/test-vc-list-files-git.sh: Likewise.
5123         Reported by Bruno Haible.
5124
5125 2008-05-01  Bruno Haible  <bruno@clisp.org>
5126
5127         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5128         reallocation. Rename 'done' to 'found_delimiter'.
5129
5130 2008-05-01  Jim Meyering  <meyering@redhat.com>
5131
5132         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5133         * build-aux/vc-list-files: Use `...`, not $(...).
5134
5135 2008-04-30  Jim Meyering  <meyering@redhat.com>
5136
5137         add tests for vc-list-files
5138         * modules/vc-list-files-tests: New module.
5139         * tests/test-vc-list-files-cvs.sh: New file.
5140         * tests/test-vc-list-files-git.sh: New file.
5141
5142         avoid a warning from gcc
5143         * lib/getndelim2.c (IF_LINT): Define.
5144         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5145
5146         vc-list-files: work properly with build-aux/cvsu, too
5147         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5148         to all cvs-based clauses.
5149
5150         vc-list-files: work properly in the CVS+awk case, too
5151         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5152
5153         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5154         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5155         take more than one file argument, so .  Add quotes, just in case $dir
5156         ever contains a shell meta-character.  Prompted by Soren Hansen in
5157         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5158
5159 2008-04-29  Eric Blake  <ebb9@byu.net>
5160
5161         Optimize getndelim2 to use block operations when possible.
5162         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5163         freadseek, and memchr2.
5164         * lib/getndelim2.c (getndelim2): Use them for block reads.
5165
5166 2008-04-29  Bruno Haible  <bruno@clisp.org>
5167
5168         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5169         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5170         * modules/inet_ntop (Depends-on): Add extensions.
5171         * modules/inet_pton (Depends-on): Likewise.
5172         Reported by Simon Josefsson.
5173
5174 2008-04-29  Jim Meyering  <meyering@redhat.com>
5175
5176         When the is more than one match in a block, match all of them.
5177         * build-aux/useless-if-before-free: Iterate through each block
5178         until there are no more matches.
5179
5180         Fix broken useless-if-before-free script.
5181         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5182         the expression to match cast of argument to free-like function.
5183
5184 2008-04-29  Eric Blake  <ebb9@byu.net>
5185
5186         Use new header.
5187         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5188
5189 2008-04-29  Jim Meyering  <meyering@redhat.com>
5190
5191         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5192         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5193         by gnulib to exist and to declare e.g., inet_ntop.
5194         Don't include "inet_ntop.h", now removed.
5195
5196         * m4/arpa_inet_h.m4: Remove trailing blanks.
5197
5198 2008-04-29  Eric Blake  <ebb9@byu.net>
5199
5200         Silence valgrind on safe reads beyond potential array bounds.
5201         * lib/rawmemchr.valgrind: New file.
5202         * lib/strchrnul.valgrind: Likewise.
5203         * modules/rawmemchr (Files): Distribute new file.
5204         * modules/strchrnul (Files): Likewise.
5205         Suggested by Bruno Haible.
5206
5207 2008-04-29  Bruno Haible  <bruno@clisp.org>
5208
5209         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5210         (inet_ntop, inet_pton): Change portability warning's wording.
5211         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5212         Invoke gl_CHECK_NEXT_HEADERS.
5213         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5214         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5215         set ARPA_INET_H.
5216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5217         * modules/arpa_inet (Description): No longer only for systems that
5218         lack it.
5219         (Depends-on): Add include_next.
5220         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5221         HAVE_ARPA_INET_H.
5222
5223 2008-04-29  Jim Meyering  <meyering@redhat.com>
5224
5225         * modules/mkdir (License): Re-license as LGPLv2+.
5226
5227 2008-04-29  Bruno Haible  <bruno@clisp.org>
5228
5229         * modules/rawmemchr (Maintainer): Set to Eric.
5230         * modules/strchrnul (Maintainer): Likewise.
5231
5232 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5233
5234         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5235         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5236
5237         * modules/arpa_inet (arpa/inet.h): Use them.
5238
5239 2008-04-28  Eric Blake  <ebb9@byu.net>
5240
5241         Test getndelim2.
5242         * modules/getndelim2-tests: New file.
5243         * tests/test-getndelim2.c: Likewise.
5244         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5245         stream.
5246         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5247
5248         * MODULES.html.sh: Document new module.
5249
5250 2008-04-20  Bruno Haible  <bruno@clisp.org>
5251
5252         * lib/c-stack.c (die): Use raise.
5253         * modules/c-stack (Depends-on): Add raise.
5254
5255 2008-04-28  Bruno Haible  <bruno@clisp.org>
5256
5257         Expect rpmatch to be declared.
5258         * lib/yesno.c (rpmatch): Remove declaration.
5259
5260         Declare rpmatch.
5261         * lib/stdlib.in.h (rpmatch): New declaration.
5262         * lib/rpmatch.c: Include <stdlib.h> first.
5263         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5264         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5266         HAVE_RPMATCH.
5267         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5269         (Include): Set to <stdlib.h>.
5270         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5271         HAVE_RPMATCH.
5272         * NEWS: Document the change.
5273
5274 2008-04-28  Bruno Haible  <bruno@clisp.org>
5275
5276         Change rpmatch to use nl_langinfo when appropriate.
5277         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5278         (N_): New macro.
5279         (localized_pattern): New function/macro.
5280         (try): Remove match, nomatch arguments. Copy the pattern into safe
5281         memory before caching it.
5282         (rpmatch): Use localized_pattern. Add translator comments.
5283         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5284         Suggested by Eric Blake.
5285         * modules/rpmatch (Depends-on): Add stdbool.
5286
5287 2008-04-28  Eric Blake  <ebb9@byu.net>
5288
5289         Add rawmemchr module, matching glibc.
5290         * modules/string (Makefile.am): New indicator.
5291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5292         * lib/string.in.h (rawmemchr): Declare when appropriate.
5293         * modules/rawmemchr: New file.
5294         * m4/rawmemchr.m4: Likewise.
5295         * lib/rawmemchr.c: Likewise.
5296         * modules/rawmemchr-tests: Likewise.
5297         * tests/test-rawmemchr.c: Likewise.
5298         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5299         module.
5300         * modules/strchrnul (Depends-on): Add rawmemchr.
5301         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5302
5303         Whitespace cleanup.
5304         * tests/test-strchrnul.c: Reindent.
5305         * lib/strchrnul.c: Likewise.
5306
5307         Optimize and test strchrnul.
5308         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5309         * modules/strchrnul-tests: New file.
5310         * tests/test-strchrnul.c: Likewise.
5311
5312         Remove intprops dependency.
5313         * modules/memchr (Depends-on): Remove intprops.
5314         * modules/memrchr (Depends-on): Likewise.
5315         * modules/memchr2 (Depends-on): Likewise.
5316         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5317         * lib/memrchr.c (__memrchr): Likewise.
5318         * lib/memrchr2.c (memchr2): Likewise.
5319         Reported by Simon Josefsson.
5320
5321 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5322
5323         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5324         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5325
5326 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5327
5328         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5329
5330         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5331
5332         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5333
5334         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5335         declarations.
5336         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5337
5338         * m4/inet_pton.m4: Don't check for header files.
5339
5340         * m4/inet_ntop.m4: Don't check for header files.
5341
5342 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5343
5344         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5345         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5346         trigger for cygwin).
5347         Reported by Bruno Haible  <bruno@clisp.org>.
5348
5349 2008-04-28  Bruno Haible  <bruno@clisp.org>
5350
5351         * doc/posix-functions/strdup.texi: Mention mingw problem.
5352
5353 2008-04-27  Bruno Haible  <bruno@clisp.org>
5354
5355         * modules/stat-time-tests (Depends-on): Add sleep.
5356         * tests/test-stat-time.c (force_unlink): New function.
5357         (cleanup): Use it.
5358         (test_mtime): Remove the ctime related tests.
5359         (test_ctime): New function, containing the ctime related tests.
5360         (main): Call test_ctime, except on native Windows platforms.
5361
5362 2008-04-27  Bruno Haible  <bruno@clisp.org>
5363
5364         * lib/rpmatch.c (rpmatch): Add some comments.
5365         Reported by James Youngman <jay@gnu.org>.
5366
5367 2008-04-27  Bruno Haible  <bruno@clisp.org>
5368
5369         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5370         quiet NaNs.
5371
5372 2008-04-27  Bruno Haible  <bruno@clisp.org>
5373
5374         Make test-yesno.sh work on mingw.
5375         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5376         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5377         (main): Set stdin to binary mode.
5378         * modules/yesno-tests (Depends-on): Add binary-io.
5379
5380 2008-04-27  Bruno Haible  <bruno@clisp.org>
5381
5382         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5383         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5384         argument that lie outside the IEEE 854 domain.
5385         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5386         (gl_ISFINITE): Use it.
5387         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5388
5389 2008-04-27  Bruno Haible  <bruno@clisp.org>
5390
5391         Allow local renaming in config.h.
5392         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5393
5394 2008-04-27  Bruno Haible  <bruno@clisp.org>
5395
5396         * lib/memchr.c (__memchr): Change type of 'i'.
5397         * lib/memchr2.c (memchr2): Likewise.
5398
5399 2008-04-26  Eric Blake  <ebb9@byu.net>
5400         and Bruno Haible  <bruno@clisp.org>
5401
5402         Optimize and test memrchr.
5403         * modules/memrchr (Depends-on): Add intprops.
5404         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5405         * modules/memrchr-tests: New file.
5406         * tests/test-memrchr.c: New file.
5407
5408 2008-04-26  Bruno Haible  <bruno@clisp.org>
5409
5410         Add tentative support for DragonFly BSD.
5411         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5412         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5413         fp.
5414         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5415         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5416         * lib/fpurge.c (fpurge): Likewise.
5417         * lib/freadable.c (freaadable): Likewise.
5418         * lib/freadahead.c (freadahead): Likewise.
5419         * lib/freading.c (freading): Likewise.
5420         * lib/freadptr.c (freadptr): Likewise.
5421         * lib/freadseek.c (freadptrinc): Likewise.
5422         * lib/fseeko.c (fseeko): Likewise.
5423         * lib/fseterr.c (fseterr): Likewise.
5424         * lib/fwritable.c (fwritable): Likewise.
5425         * lib/fwriting.c (fwriting): Likewise.
5426
5427 2008-04-26  Bruno Haible  <bruno@clisp.org>
5428
5429         * lib/stdio-impl.h: New file.
5430         * lib/fbufmode.c: Include stdio-impl.h.
5431         (fbufmode): Use fp_, remove redundant #defines.
5432         * lib/fflush.c: Include stdio-impl.h.
5433         (clear_ungetc_buffer): Remove redundant #defines.
5434         * lib/fpurge.c: Include stdio-impl.h.
5435         (fpurge): Remove redundant #defines.
5436         * lib/freadable.c: Include stdio-impl.h.
5437         (freadable): Remove redundant #defines.
5438         * lib/freadahead.c: Include stdio-impl.h.
5439         (freadahead): Remove redundant #defines.
5440         * lib/freading.c: Include stdio-impl.h.
5441         (freading): Remove redundant #defines.
5442         * lib/freadptr.c: Include stdio-impl.h.
5443         (freadptr): Remove redundant #defines.
5444         * lib/freadseek.c: Include stdio-impl.h.
5445         (freadptrinc): Remove redundant #defines.
5446         * lib/fseeko.c: Include stdio-impl.h.
5447         (rpl_fseeko): Remove redundant #defines.
5448         * lib/fseterr.c: Include stdio-impl.h.
5449         (fseterr): Remove redundant #defines.
5450         * lib/fwritable.c: Include stdio-impl.h.
5451         (fwritable: Remove redundant #defines.
5452         * lib/fwriting.c: Include stdio-impl.h.
5453         (fwriting): Remove redundant #defines.
5454         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5455         * modules/fflush (Files): Likewise.
5456         * modules/fpurge (Files): Likewise.
5457         * modules/freadable (Files): Likewise.
5458         * modules/freadahead (Files): Likewise.
5459         * modules/freading (Files): Likewise.
5460         * modules/freadptr (Files): Likewise.
5461         * modules/freadseek (Files): Likewise.
5462         * modules/fseeko (Files): Likewise.
5463         * modules/fseterr (Files): Likewise.
5464         * modules/fwritable (Files): Likewise.
5465         * modules/fwriting (Files): Likewise.
5466
5467 2008-04-26  Bruno Haible  <bruno@clisp.org>
5468
5469         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5470         restore_seek_optimization, update_fpos_cache): New functions, extracted
5471         from rpl_fflush.
5472         (rpl_fflush): Use them.
5473         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5474         (gl_REPLACE_FFLUSH): Use it.
5475
5476 2008-04-26  Bruno Haible  <bruno@clisp.org>
5477
5478         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5479         on Solaris.
5480         * tests/test-xstrtoimax.sh: Likewise.
5481         * tests/test-xstrtoumax.sh: Likewise.
5482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5483
5484 2008-04-26  Bruno Haible  <bruno@clisp.org>
5485
5486         * modules/memchr-tests: New file.
5487         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5488
5489 2008-04-26  Eric Blake  <ebb9@byu.net>
5490             Bruno Haible  <bruno@clisp.org>
5491
5492         * lib/memchr.c: Include intprops.h.
5493         (__memchr): Optimize parallel detection of matching bytes. Rename local
5494         variables. Add explanatory comments.
5495
5496 2008-04-26  Bruno Haible  <bruno@clisp.org>
5497
5498         Fix module 'memchr', broken since 2000-10-28.
5499         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5500
5501 2008-04-26  Bruno Haible  <bruno@clisp.org>
5502
5503         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5504         comments.
5505
5506 2008-04-25  Eric Blake  <ebb9@byu.net>
5507
5508         Use native fstatat on cygwin 1.7.0.
5509         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5510         first.
5511
5512 2008-04-23  Eric Blake  <ebb9@byu.net>
5513
5514         Improve memchr2 performance.
5515         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5516         NUL bytes.
5517         * modules/memchr2 (Depends-on): Use intprops.h.
5518
5519 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5520
5521         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5522         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5523         <blp@cs.stanford.edu>.
5524
5525 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5526
5527         * lib/arpa_inet.in.h: New file.
5528
5529         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5530         (Makefile.am): Sed in substitute header file.
5531
5532         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5533         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5534
5535         * modules/inet_ntop (configure.ac): Use
5536         gl_ARPA_INET_MODULE_INDICATOR.
5537
5538         * modules/inet_pton (configure.ac): Use
5539         gl_ARPA_INET_MODULE_INDICATOR.
5540
5541 2008-04-22  Jim Meyering  <meyering@redhat.com>
5542
5543         * modules/verify (License): Re-license as LGPLv2+.
5544
5545 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5546
5547         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5548         parameter to void* as per POSIX standard (MinGW uses char*).
5549
5550 2008-04-21  Bruno Haible  <bruno@clisp.org>
5551
5552         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5553         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5554         Define to replacements if REPLACE_ISWCNTRL is 1.
5555         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5556         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5557         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5558         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5559         what it fixes.
5560         * doc/posix-functions/iswalpha.texi: Likewise.
5561         * doc/posix-functions/iswblank.texi: Likewise.
5562         * doc/posix-functions/iswcntrl.texi: Likewise.
5563         * doc/posix-functions/iswdigit.texi: Likewise.
5564         * doc/posix-functions/iswgraph.texi: Likewise.
5565         * doc/posix-functions/iswlower.texi: Likewise.
5566         * doc/posix-functions/iswprint.texi: Likewise.
5567         * doc/posix-functions/iswpunct.texi: Likewise.
5568         * doc/posix-functions/iswspace.texi: Likewise.
5569         * doc/posix-functions/iswupper.texi: Likewise.
5570         * doc/posix-functions/iswxdigit.texi: Likewise.
5571         Reported by Alain Guibert.
5572
5573 2008-04-21  Bruno Haible  <bruno@clisp.org>
5574
5575         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5576         Patch by Alain Guibert.
5577
5578 2008-04-21  Bruno Haible  <bruno@clisp.org>
5579
5580         Fix test failures on mingw.
5581         * tests/test-xstrtol.c (print_no_progname): New function.
5582         (main): Install it in error_print_progname hook.
5583         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5584         * tests/test-xstrtoimax.sh: Likewise.
5585         * tests/test-xstrtoumax.sh: Likewise.
5586
5587 2008-04-21  Bruno Haible  <bruno@clisp.org>
5588
5589         Fix test failure on mingw.
5590         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5591
5592 2008-04-21  Bruno Haible  <bruno@clisp.org>
5593
5594         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5595         Actually assign a value.
5596
5597 2008-04-20  Bruno Haible  <bruno@clisp.org>
5598
5599         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5600         take 2.
5601         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5602         'canonicalize-lgpl' module is also used.
5603         * lib/canonicalize-lgpl.c: Undo last change.
5604         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5605
5606 2008-04-20  Bruno Haible  <bruno@clisp.org>
5607
5608         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5609         config.h. Provide _mkdir based fallback for mingw.
5610         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5611         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5612         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5613         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5614         rather than defining mkdir in config.h.
5615         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5616         (gl_SYS_STAT_H_DEFAULTS): New macro.
5617         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5618         HAVE_IO_H any more.
5619         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5620         HAVE_DECL_MKDIR and HAVE_IO_H.
5621
5622 2008-04-20  Bruno Haible  <bruno@clisp.org>
5623
5624         * lib/isapipe.c: Port to native Windows platforms.
5625
5626 2008-04-20  Bruno Haible  <bruno@clisp.org>
5627
5628         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5629
5630 2008-04-21  Eric Blake  <ebb9@byu.net>
5631
5632         Work around preprocessors that don't handle UINTMAX_MAX.
5633         * lib/memchr2.c (memchr2): Avoid embedded #if.
5634         Reported by Alain Guibert, fix suggested by Bruno Haible.
5635
5636 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5637
5638         * doc/posix-functions/strftime.texi (strftime): Explain better
5639         Windows incompatibility.  Suggested by Micah Cowan
5640         <micah@cowan.name>.
5641
5642 2008-04-20  Bruno Haible  <bruno@clisp.org>
5643
5644         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5645         unistr/u8-mblen.
5646
5647 2008-04-20  Bruno Haible  <bruno@clisp.org>
5648
5649         Fix test failure on platforms with non-GNU iconv.
5650         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5651         (U_TO_U8): Use it, rather than u16_to_u8.
5652         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5653         units at the end of the input string.
5654         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5655
5656 2008-04-20  Bruno Haible  <bruno@clisp.org>
5657
5658         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5659         when the resulting length is 0.
5660         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5661
5662 2008-04-20  Bruno Haible  <bruno@clisp.org>
5663
5664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5665         works.
5666         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5667
5668 2008-04-20  Bruno Haible  <bruno@clisp.org>
5669
5670         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5671         * modules/tsearch-tests (configure.ac): Test for initstate function.
5672
5673 2008-04-20  Bruno Haible  <bruno@clisp.org>
5674
5675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5676         for nlink_t if missing.
5677         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5678
5679 2008-04-19  Bruno Haible  <bruno@clisp.org>
5680
5681         Work around snprintf bug on Linux libc5.
5682         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5684         gl_SNPRINTF_SIZE1.
5685         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5686         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5687         that test failed.
5688         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5689         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5690         * modules/snprintf (Files): Add m4/printf.m4.
5691         * modules/vsnprintf (Files): Likewise.
5692         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5693         * doc/posix-functions/vsnprintf.texi: Likewise.
5694
5695 2008-04-19  Bruno Haible  <bruno@clisp.org>
5696
5697         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5698         from 0.0058 to less than 10^-7.
5699
5700 2008-04-19  Bruno Haible  <bruno@clisp.org>
5701
5702         Fix rounding when a precision is given.
5703         * lib/vasnprintf.c (is_borderline): New function.
5704         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5705         9...9x.
5706         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5707         %e, %g.
5708         * tests/test-vasprintf-posix.c (test_function): Likewise.
5709         * tests/test-snprintf-posix.h (test_function): Likewise.
5710         * tests/test-sprintf-posix.h (test_function): Likewise.
5711         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5712         * tests/test-printf-posix.h (test_function): Likewise.
5713         * tests/test-printf-posix.output: Update.
5714         Reported by John Darrington <john@darrington.wattle.id.au> via
5715         Ben Pfaff <blp@cs.stanford.edu>.
5716
5717 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5718
5719         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5720         Suggested by Bruno Haible <bruno@clisp.org>.
5721
5722 2008-04-17  Bruno Haible  <bruno@clisp.org>
5723
5724         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5725         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5726         implementation.
5727         Patch by Bruce Merry <bmerry@gmail.com>.
5728
5729 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5730
5731         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5732         doesn't work under Windows.
5733
5734 2008-04-16  Bruno Haible  <bruno@clisp.org>
5735
5736         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5737         New macros.
5738         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5739         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5740         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5741         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5742         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5743         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5744         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5745         macros.
5746         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5747         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5748         Northern Sotho, Uighur.
5749
5750 2008-04-16  Bruno Haible  <bruno@clisp.org>
5751
5752         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5753         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5754         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5755         Reported by Daniel Bergström <daniel@octocode.com>.
5756
5757 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5758             Bruno Haible  <bruno@clisp.org>
5759
5760         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5761         function.
5762         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5763         New functions, mostly extracted from gl_locale_name_default.
5764         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5765
5766 2008-04-16  Eric Blake  <ebb9@byu.net>
5767
5768         Adjust strtod detection to catch glibc 2.7 bug.
5769         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5770         Reported by John Gatewood Ham.
5771
5772 2008-04-16  Bruno Haible  <bruno@clisp.org>
5773
5774         Add tentative support for Linux libc5.
5775         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5776         * lib/fpurge.c (fpurge): Likewise.
5777         * lib/freadable.c (freadable): Likewise.
5778         * lib/freadahead.c (freadahead): Likewise.
5779         * lib/freading.c (freading): Likewise.
5780         * lib/freadptr.c (freadptr): Likewise.
5781         * lib/freadseek.c (freadptrinc): Likewise.
5782         * lib/fseeko.c (rpl_fseeko): Likewise.
5783         * lib/fseterr.c (fseterr): Likewise.
5784         * lib/fwritable.c (fwritable): Likewise.
5785         * lib/fwriting.c (fwriting): Likewise.
5786         Reported by Alain Guibert <alguibert+bts@free.fr>.
5787
5788 2008-04-15  Bruno Haible  <bruno@clisp.org>
5789
5790         * modules/mathl (configure.ac): Define module indicator.
5791
5792 2008-04-15  Bruno Haible  <bruno@clisp.org>
5793
5794         * lib/logl.c (logl): Remove unused variables.
5795
5796 2008-04-15  Bruno Haible  <bruno@clisp.org>
5797
5798         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5799         fails.
5800
5801 2008-04-15  Bruno Haible  <bruno@clisp.org>
5802
5803         * lib/trim.c (trim2): Fix argument of isspace() macro.
5804
5805 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
5806
5807         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5808         to 0.
5809         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5810
5811 2008-04-14  Bruno Haible  <bruno@clisp.org>
5812
5813         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5814         AC_LANG_PROGRAM argument.
5815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5816         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5818         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5819         * m4/math_h.m4 (gl_MATH_H): Likewise.
5820         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5822         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5823         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5824         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5825         * m4/regex.m4 (gl_REGEX): Likewise.
5826         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5827         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5829         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5830         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5831         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5834
5835 2008-04-14  Jim Meyering  <meyering@redhat.com>
5836
5837         test-strtod: fix typos: s/abs/fabs/
5838         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5839
5840 2008-04-13  Bruno Haible  <bruno@clisp.org>
5841
5842         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5843         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5844         module is also used and while not building the reloc-wrapper.
5845
5846 2008-04-13  Bruno Haible  <bruno@clisp.org>
5847
5848         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5849
5850 2008-04-13  Bruno Haible  <bruno@clisp.org>
5851
5852         Fix AIX compilation failure introduced on 2008-04-02.
5853         * tests/test-frexp.c (exp): Undefine before redefining.
5854         * tests/test-frexpl.c (exp): Likewise.
5855
5856 2008-04-13  Bruno Haible  <bruno@clisp.org>
5857
5858         Work around a HP-UX stdio bug.
5859         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5860         * tests/test-ftello.c (main): Likewise.
5861         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5862         * doc/posix-functions/ftello.texi: Likewise.
5863
5864 2008-04-13  Bruno Haible  <bruno@clisp.org>
5865
5866         Make test-signbit pass on HP-UX/hppa.
5867         * tests/test-signbit.c (minus_zerol): New variable.
5868         (test_signbitl): Use it.
5869
5870 2008-04-13  Bruno Haible  <bruno@clisp.org>
5871
5872         Make truncl work on OSF/1 4.0.
5873         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5874         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5875         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5877         HAVE_DECL_TRUNCL.
5878         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5879         HAVE_DECL_TRUNCL.
5880         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5881
5882 2008-04-13  Bruno Haible  <bruno@clisp.org>
5883
5884         * lib/unictype.h: Remove trailing comma from enumeration definitions.
5885
5886 2008-04-13  Bruno Haible  <bruno@clisp.org>
5887
5888         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5889         expression, so as to avoid HP-UX 11 cc compiler bug.
5890
5891 2008-04-13  Bruno Haible  <bruno@clisp.org>
5892
5893         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5894
5895 2008-04-13  Bruno Haible  <bruno@clisp.org>
5896
5897         * lib/git-merge-changelog.c: Remove empty declaration outside of
5898         functions.
5899
5900 2008-04-13  Bruno Haible  <bruno@clisp.org>
5901
5902         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5903
5904 2008-04-13  Bruno Haible  <bruno@clisp.org>
5905
5906         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5907         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5909         also if it exists but lacks definitions of the SHUT_* macros.
5910         * modules/sys_socket (Description): Update.
5911         Reported by Elbert Pol <e.pol@chello.nl>.
5912
5913 2008-04-13  Bruno Haible  <bruno@clisp.org>
5914
5915         * lib/localcharset.c (OS2): Don't redefine if already defined.
5916         Reported by Elbert Pol <e.pol@chello.nl>.
5917
5918 2008-04-13  Bruno Haible  <bruno@clisp.org>
5919
5920         * lib/binary-io.h [__EMX__]: Include <io.h>.
5921         Reported by Elbert Pol <e.pol@chello.nl>.
5922
5923 2008-04-12  Bruno Haible  <bruno@clisp.org>
5924
5925         * lib/fpucw.h: Enable the definitions also for x86_64.
5926         Needed for NetBSD/x86_64.
5927         Reported by Thomas Klausner <tk@giga.or.at>.
5928
5929 2008-04-12  Bruno Haible  <bruno@clisp.org>
5930
5931         * tests/test-strtod.c: Include isnand.h.
5932         (main): Use isnand instead of isnan.
5933         Reported by Jim Meyering.
5934
5935 2008-04-12  Bruno Haible  <bruno@clisp.org>
5936
5937         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5938         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5939
5940 2008-04-12  Jim Meyering  <meyering@redhat.com>
5941
5942         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5943
5944 2008-04-12  Bruno Haible  <bruno@clisp.org>
5945
5946         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5947         Reported by Elbert Pol <e.pol@chello.nl>.
5948
5949 2008-04-12  Eric Blake  <ebb9@byu.net>
5950
5951         Work around Solaris 10 math.h bug.
5952         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5953         (gl_MATH_H_DEFAULTS): Set up default.
5954         * modules/math (Makefile.am): Replace new indicators.
5955         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5956         * tests/test-math.c (main): Test this.
5957         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5958         * doc/posix-headers/math.texi (math.h): Mention bug.
5959         Reported by Nelson H. F. Beebe and Jim Meyering.
5960
5961 2008-04-11  Bruno Haible  <bruno@clisp.org>
5962
5963         Adapt to future versions of Apple GCC.
5964         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5965         Reported by Peter O'Gorman <peter@pogma.com>.
5966
5967 2008-04-11  Bruno Haible  <bruno@clisp.org>
5968
5969         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5970
5971 2008-04-11  Bruno Haible  <bruno@clisp.org>
5972
5973         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5974
5975         * modules/getaddrinfo-tests (Makefile.am): Define
5976         test_getaddrinfo_LDADD.
5977
5978 2008-04-11  Bruno Haible  <bruno@clisp.org>
5979
5980         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5981         (init): Fix syntax error.
5982         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5983         is declared.
5984
5985 2008-04-11  Bruno Haible  <bruno@clisp.org>
5986
5987         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5988         * modules/glob (Depends-on): Add stdbool.
5989
5990 2008-04-11  Bruno Haible  <bruno@clisp.org>
5991
5992         * lib/trim.c: Include <string.h>.
5993
5994 2008-04-11  Eric Blake  <ebb9@byu.net>
5995
5996         Avoid compile failure on OS/2.
5997         * lib/regex_internal.h (internal_function): Disable optimization
5998         on OS/2 (__EMX__), where it caused compiler error.
5999         Reported by Elbert Pol.
6000
6001 2008-04-11  Bruno Haible  <bruno@clisp.org>
6002
6003         Flush the standard error stream before aborting. Needed on mingw.
6004         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6005         * tests/test-array_list.c (ASSERT): Likewise.
6006         * tests/test-array_oset.c (ASSERT): Likewise.
6007         * tests/test-avltree_list.c (ASSERT): Likewise.
6008         * tests/test-avltree_oset.c (ASSERT): Likewise.
6009         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6010         * tests/test-binary-io.c (ASSERT): Likewise.
6011         * tests/test-byteswap.c (ASSERT): Likewise.
6012         * tests/test-c-ctype.c (ASSERT): Likewise.
6013         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6014         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6015         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6016         * tests/test-c-strstr.c (ASSERT): Likewise.
6017         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6018         * tests/test-canonicalize.c (ASSERT): Likewise.
6019         * tests/test-carray_list.c (ASSERT): Likewise.
6020         * tests/test-ceilf1.c (ASSERT): Likewise.
6021         * tests/test-ceilf2.c (ASSERT): Likewise.
6022         * tests/test-ceill.c (ASSERT): Likewise.
6023         * tests/test-count-one-bits.c (ASSERT): Likewise.
6024         * tests/test-fbufmode.c (ASSERT): Likewise.
6025         * tests/test-fflush2.c (ASSERT): Likewise.
6026         * tests/test-floorf1.c (ASSERT): Likewise.
6027         * tests/test-floorf2.c (ASSERT): Likewise.
6028         * tests/test-floorl.c (ASSERT): Likewise.
6029         * tests/test-fopen.c (ASSERT): Likewise.
6030         * tests/test-fpending.c (ASSERT): Likewise.
6031         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6032         * tests/test-fpurge.c (ASSERT): Likewise.
6033         * tests/test-freadable.c (ASSERT): Likewise.
6034         * tests/test-freadahead.c (ASSERT): Likewise.
6035         * tests/test-freading.c (ASSERT): Likewise.
6036         * tests/test-freadptr.c (ASSERT): Likewise.
6037         * tests/test-freadptr2.c (ASSERT): Likewise.
6038         * tests/test-freadseek.c (ASSERT): Likewise.
6039         * tests/test-freopen.c (ASSERT): Likewise.
6040         * tests/test-frexp.c (ASSERT): Likewise.
6041         * tests/test-frexpl.c (ASSERT): Likewise.
6042         * tests/test-fseek.c (ASSERT): Likewise.
6043         * tests/test-fseeko.c (ASSERT): Likewise.
6044         * tests/test-fstrcmp.c (ASSERT): Likewise.
6045         * tests/test-ftell.c (ASSERT): Likewise.
6046         * tests/test-ftello.c (ASSERT): Likewise.
6047         * tests/test-func.c (ASSERT): Likewise.
6048         * tests/test-fwritable.c (ASSERT): Likewise.
6049         * tests/test-fwriting.c (ASSERT): Likewise.
6050         * tests/test-getdelim.c (ASSERT): Likewise.
6051         * tests/test-getline.c (ASSERT): Likewise.
6052         * tests/test-i-ring.c (ASSERT): Likewise.
6053         * tests/test-iconv-utf.c (ASSERT): Likewise.
6054         * tests/test-iconv.c (ASSERT): Likewise.
6055         * tests/test-isfinite.c (ASSERT): Likewise.
6056         * tests/test-isnand.c (ASSERT): Likewise.
6057         * tests/test-isnanf.c (ASSERT): Likewise.
6058         * tests/test-isnanl.h (ASSERT): Likewise.
6059         * tests/test-ldexpl.c (ASSERT): Likewise.
6060         * tests/test-linked_list.c (ASSERT): Likewise.
6061         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6062         * tests/test-localename.c (ASSERT): Likewise.
6063         * tests/test-lseek.c (ASSERT): Likewise.
6064         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6065         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6066         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6067         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6068         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6069         * tests/test-mbschr.c (ASSERT): Likewise.
6070         * tests/test-mbscspn.c (ASSERT): Likewise.
6071         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6072         * tests/test-mbspbrk.c (ASSERT): Likewise.
6073         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6074         * tests/test-mbsrchr.c (ASSERT): Likewise.
6075         * tests/test-mbsspn.c (ASSERT): Likewise.
6076         * tests/test-mbsstr1.c (ASSERT): Likewise.
6077         * tests/test-mbsstr2.c (ASSERT): Likewise.
6078         * tests/test-mbsstr3.c (ASSERT): Likewise.
6079         * tests/test-memchr2.c (ASSERT): Likewise.
6080         * tests/test-memmem.c (ASSERT): Likewise.
6081         * tests/test-open.c (ASSERT): Likewise.
6082         * tests/test-printf-frexp.c (ASSERT): Likewise.
6083         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6084         * tests/test-printf-posix.c (ASSERT): Likewise.
6085         * tests/test-quotearg.c (ASSERT): Likewise.
6086         * tests/test-rbtree_list.c (ASSERT): Likewise.
6087         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6088         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6089         * tests/test-round1.c (ASSERT): Likewise.
6090         * tests/test-roundf1.c (ASSERT): Likewise.
6091         * tests/test-roundl.c (ASSERT): Likewise.
6092         * tests/test-signbit.c (ASSERT): Likewise.
6093         * tests/test-sleep.c (ASSERT): Likewise.
6094         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6095         * tests/test-snprintf.c (ASSERT): Likewise.
6096         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6097         * tests/test-stat-time.c (ASSERT): Likewise.
6098         * tests/test-strcasestr.c (ASSERT): Likewise.
6099         * tests/test-strerror.c (ASSERT): Likewise.
6100         * tests/test-striconv.c (ASSERT): Likewise.
6101         * tests/test-striconveh.c (ASSERT): Likewise.
6102         * tests/test-striconveha.c (ASSERT): Likewise.
6103         * tests/test-strsignal.c (ASSERT): Likewise.
6104         * tests/test-strstr.c (ASSERT): Likewise.
6105         * tests/test-strtod.c (ASSERT): Likewise.
6106         * tests/test-trunc1.c (ASSERT): Likewise.
6107         * tests/test-trunc2.c (ASSERT): Likewise.
6108         * tests/test-truncf1.c (ASSERT): Likewise.
6109         * tests/test-truncf2.c (ASSERT): Likewise.
6110         * tests/test-truncl.c (ASSERT): Likewise.
6111         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6112         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6113         * tests/test-vasnprintf.c (ASSERT): Likewise.
6114         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6115         * tests/test-vasprintf.c (ASSERT): Likewise.
6116         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6117         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6118         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6119         * tests/test-vsnprintf.c (ASSERT): Likewise.
6120         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6121         * tests/test-wcwidth.c (ASSERT): Likewise.
6122         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6123         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6124         * tests/test-xvasprintf.c (ASSERT): Likewise.
6125         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6126         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6127         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6128         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6129         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6130         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6131         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6132         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6133         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6134         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6135         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6136         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6137         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6138         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6139         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6140         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6141         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6142         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6143         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6144         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6145         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6146         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6147         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6148         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6149         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6150         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6151         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6152         * tests/unictype/test-combining.c (ASSERT): Likewise.
6153         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6154         * tests/unictype/test-digit.c (ASSERT): Likewise.
6155         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6156         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6157         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6158         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6159         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6160         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6161         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6162         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6163         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6164         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6165         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6166         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6167         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6168         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6169         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6170         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6171         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6172         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6173         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6174         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6175         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6176         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6177         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6178         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6179         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6180         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6181         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6182         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6183         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6184         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6185         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6186         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6187         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6188         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6189         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6190         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6191         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6192         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6193         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6194         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6195         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6196         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6197         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6198         Reported by Eric Blake.
6199
6200 2008-04-11  Bruno Haible  <bruno@clisp.org>
6201
6202         * lib/wchar.in.h: Tweak comment.
6203
6204 2008-04-11  Bruno Haible  <bruno@clisp.org>
6205
6206         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6207         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6208         gl_COMMON.
6209         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6210
6211 2008-04-11  Bruno Haible  <bruno@clisp.org>
6212
6213         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6214
6215 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6216
6217         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6218         of attempting to use non-existing /dev/*random.  Based on patch
6219         from Adam Strzelecki <ono@java.pl> in
6220         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6221
6222 2008-04-08  Bruno Haible  <bruno@clisp.org>
6223
6224         Add tentative support for emx+gcc.
6225         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6226         * lib/fpurge.c (fpurge): Likewise.
6227         * lib/freadable.c (freadable): Likewise.
6228         * lib/freadahead.c (freadahead): Likewise.
6229         * lib/freading.c (freading): Likewise.
6230         * lib/freadptr.c (freadptr): Likewise.
6231         * lib/freadseek.c (freadptrinc): Likewise.
6232         * lib/fseeko.c (rpl_fseeko): Likewise.
6233         * lib/fseterr.c (fseterr): Likewise.
6234         * lib/fwritable.c (fwritable): Likewise.
6235         * lib/fwriting.c (fwriting): Likewise.
6236         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6237
6238 2008-04-09  Eric Blake  <ebb9@byu.net>
6239
6240         Avoid some autoconf warnings.
6241         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6242         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6243         * m4/afs.m4 (gl_AFS): Likewise.
6244         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6245         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6247         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6248         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6249         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6250         (AC_CHECK_DECLS_ONCE): Likewise.
6251         Rename file...
6252         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6253         gnulib-tool requires autoconf 2.59 or better.
6254         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6255
6256 2008-04-08  Eric Blake  <ebb9@byu.net>
6257
6258         Use 'git describe --match' if present (added in git 1.5.5).
6259         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6260         if possible.
6261
6262 2008-04-08  Bruno Haible  <bruno@clisp.org>
6263
6264         Add tentative support for OpenServer.
6265         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6266         _ptr, _cnt.
6267         * lib/fpurge.c (fpurge): Likewise.
6268         * lib/freadable.c (freadable): Likewise.
6269         * lib/freadahead.c (freadahead): Likewise.
6270         * lib/freading.c (freading): Likewise.
6271         * lib/freadptr.c (freadptr): Likewise.
6272         * lib/freadseek.c (freadptrinc): Likewise.
6273         * lib/fseeko.c (rpl_fseeko): Likewise.
6274         * lib/fseterr.c (fseterr): Likewise.
6275         * lib/fwritable.c (fwritable): Likewise.
6276         * lib/fwriting.c (fwriting): Likewise.
6277         Reported by Roger Cornelius <rac@tenzing.org> and
6278         Brian K. White <brian@aljex.com>.
6279
6280 2008-04-06  Jim Meyering  <meyering@redhat.com>
6281
6282         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6283
6284 2008-04-06  Bruno Haible  <bruno@clisp.org>
6285
6286         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6287         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6288         * tests/test-printf-posix.sh: Likewise.
6289         * tests/test-vfprintf-posix.sh: Likewise.
6290         * tests/test-vprintf-posix.sh: Likewise.
6291         * tests/test-xprintf-posix.sh: Likewise.
6292
6293 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6294
6295         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6296         hide error from 'ls', needed on OS/2.
6297         Report by Elbert Pol <elbert.pol@gmail.com>.
6298
6299 2008-04-04  Eric Blake  <ebb9@byu.net>
6300
6301         Make test-fseeko.c failures meaningful.
6302         * tests/test-fseeko.c: Print line number on failure.
6303         * tests/test-fseek.c: Likewise.
6304         Reported by Nelson H. F. Beebe.
6305
6306         Improve strtod bug detection check.
6307         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6308         required for Solaris 10.
6309         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6310
6311 2008-04-04  Bruno Haible  <bruno@clisp.org>
6312
6313         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6314         by m4/setenv.m4.
6315
6316 2008-04-03  Eric Blake  <ebb9@byu.net>
6317
6318         Ensure sane .version contents.
6319         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6320         version string.
6321         * build-aux/git-version-gen: Improve documentation.
6322
6323         Make GNU make output nicer.
6324         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6325         MAKECMDGOALS to enforce message for all command line targets.  Set
6326         srcdir for use in maint.mk.
6327
6328         Another maintainer tweak.
6329         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6330         a target that regenerates version.
6331
6332 2008-04-03  Jim Meyering  <meyering@redhat.com>
6333
6334         vc-list-files: don't cause coreutils "make po-check" failure
6335         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6336
6337 2008-04-03  Eric Blake  <ebb9@byu.net>
6338
6339         Allow VPATH usage of vc-list-files.
6340         * build-aux/vc-list-files (scriptversion): Add timestamp.
6341         (options): Add --help, --version, -C.
6342         (CVS): Support installed cvsu.
6343
6344 2008-04-02  Bruno Haible  <bruno@clisp.org>
6345
6346         Avoid some "statement with no effect" warnings from gcc.
6347         * tests/test-wctype.c (main): Explicitly ignore unused values.
6348         Reported by Jim Meyering.
6349
6350 2008-04-02  Jim Meyering  <meyering@redhat.com>
6351
6352         Avoid some warnings from "gcc -Wshadow".
6353         * tests/test-frexp.c (exp): Define to a different identifier.
6354         * tests/test-frexpl.c (exp): Likewise.
6355
6356 2008-04-03  Jim Meyering  <meyering@redhat.com>
6357
6358         bootstrap: remove dangling *.[ch] symlinks from lib
6359         * build-aux/bootstrap [dangling symlink removal]: Move find's
6360         -depth option to precede all others, to avoid a warning.
6361         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6362
6363 2008-04-02  Bruno Haible  <bruno@clisp.org>
6364
6365         Avoid some warnings from "gcc -Wshadow".
6366         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6367         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6368         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6369         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6370         Reported by Jim Meyering.
6371
6372 2008-04-01  Bruno Haible  <bruno@clisp.org>
6373
6374         Fix test to work on IRIX 6.5 with cc.
6375         * tests/test-math.c (numeric_equal): New function.
6376         (main): Use it.
6377
6378 2008-04-01  Bruno Haible  <bruno@clisp.org>
6379
6380         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6381
6382 2008-04-01  Bruno Haible  <bruno@clisp.org>
6383
6384         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6385         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6386         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6387         (Depends-on): Remove math.
6388
6389         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6390         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6391         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6392         (Depends-on): Remove math.
6393
6394         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6395         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6396         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6397         (Depends-on): Remove math.
6398         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6399         (Depends-on): Remove math.
6400
6401         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6402         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6403         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6404         (Depends-on): Remove math.
6405         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6406         (Depends-on): Remove math.
6407
6408         * tests/test-round1.c: Include nan.h.
6409         (main): Use NaNd instead of NAN.
6410         * modules/round-tests (Files): Add tests/nan.h.
6411
6412         * tests/test-trunc1.c: Include nan.h.
6413         (main): Use NaNd instead of NAN.
6414         * modules/trunc-tests (Files): Add tests/nan.h.
6415
6416         * tests/test-roundf1.c: Include nan.h.
6417         (main): Use NaNf instead of NAN.
6418         * modules/roundf-tests (Files): Add tests/nan.h.
6419
6420         * tests/test-truncf1.c: Include nan.h.
6421         (main): Use NaNf instead of NAN.
6422         * modules/truncf-tests (Files): Add tests/nan.h.
6423
6424         * tests/test-ceilf1.c: Include nan.h.
6425         (main): Use NaNf instead of NAN.
6426         * modules/ceilf-tests (Files): Add tests/nan.h.
6427
6428         * tests/test-floorf1.c: Include nan.h.
6429         (main): Use NaNf instead of NAN.
6430         * modules/floorf-tests (Files): Add tests/nan.h.
6431
6432         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6433         (main): Use NaNf instead of NAN.
6434         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6435
6436         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6437         (main): Use NaNd instead of NAN.
6438         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6439
6440         * tests/test-frexp.c: Include nan.h.
6441         (main): Use NaNd instead of NAN.
6442         * modules/frexp-tests (Files): Add tests/nan.h.
6443
6444         * lib/isnan.c: Don't include <math.h>.
6445         (FUNC): Don't use NAN macro.
6446         * modules/isnand-nolibm (Depends-on): Remove math.
6447         * modules/isnanf-nolibm (Depends-on): Remove math.
6448         * modules/isnanl (Depends-on): Remove math.
6449         * modules/isnanl-nolibm (Depends-on): Remove math.
6450
6451         * tests/nan.h: New file.
6452
6453 2008-04-01  Eric Blake  <ebb9@byu.net>
6454
6455         Fix typos.
6456         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6457         values to be the right type.
6458
6459         For now, cater to gnulib strtod inaccuracies.
6460         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6461         fractional results.  While not as nice from a QoI perspective, it
6462         is a quicker patch than correctly implementing decimal to binary
6463         rounding.
6464
6465 2008-03-31  Eric Blake  <ebb9@byu.net>
6466
6467         Guarantee a definition of NAN.
6468         * lib/math.in.h (NAN): Define if missing.
6469         * tests/test-math.c (main): Test it.
6470         * doc/posix-headers/math.texi (math.h): Document this.
6471         * lib/isnan.c (rpl_isnand): Use it.
6472         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6473         * tests/test-floorf1.c (NaN): Likewise.
6474         * tests/test-frexp.c (NaN): Likewise.
6475         * tests/test-isnand.c (NaN): Likewise.
6476         * tests/test-isnanf.c (NaN): Likewise.
6477         * tests/test-round1.c (NaN): Likewise.
6478         * tests/test-roundf1.c (NaN): Likewise.
6479         * tests/test-snprintf-posix.h (NaN): Likewise.
6480         * tests/test-sprintf-posix.h (NaN): Likewise.
6481         * tests/test-trunc1.c (NaN): Likewise.
6482         * tests/test-truncf1.c (NaN): Likewise.
6483         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6484         * tests/test-vasprintf-posix.c (NaN): Likewise.
6485         * modules/isnand-nolibm (Depends-on): Add math.
6486         * modules/isnanf-nolibm (Depends-on): Likewise.
6487         * modules/isnanl (Depends-on): Likewise.
6488         * modules/isnanl-nolibm (Depends-on): Likewise.
6489         * modules/snprintf-posix-tests (Depends-on): Likewise.
6490         * modules/sprintf-posix-tests (Depends-on): Likewise.
6491         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6492         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6493         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6494         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6495
6496 2008-03-31  Bruno Haible  <bruno@clisp.org>
6497
6498         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6499         * doc/posix-functions/strtod.texi: Likewise.
6500
6501 2008-03-31  Bruno Haible  <bruno@clisp.org>
6502
6503         * tests/test-strtod.c (main): Don't use C99 syntax.
6504
6505 2008-03-31  Bruno Haible  <bruno@clisp.org>
6506
6507         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6508         Reported by Eric Blake.
6509
6510 2008-03-31  Jim Meyering  <meyering@redhat.com>
6511
6512         Don't compare actual signbit return values.
6513         * tests/test-strtod.c (main): Rather, compare only their
6514         zero/non-zero nature.
6515
6516 2008-03-31  Eric Blake  <ebb9@byu.net>
6517
6518         More strtod documentation.
6519         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6520         failures as distinct bugs.
6521
6522 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6523
6524         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6525         Problem reported by Erik Benada in
6526         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6527
6528 2008-03-30  Bruno Haible  <bruno@clisp.org>
6529
6530         * tests/test-strtod.c: Add comments about which assertion fails on which
6531         platform.
6532         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6533
6534 2008-03-30  Eric Blake  <ebb9@byu.net>
6535
6536         Test signbit behavior on zeros.
6537         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6538         (test_signbitd, test_signbitl): Likewise.
6539
6540         More strtod touchups.
6541         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6542         sign of negative underflow, for now.  Use .5, not .1.
6543         * doc/posix-functions/strtod.texi (strtod): Mention these
6544         limitations.
6545         Reported by Jim Meyering.
6546
6547 2008-03-30  Bruno Haible  <bruno@clisp.org>
6548
6549         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6550         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6551
6552 2008-03-30  Bruno Haible  <bruno@clisp.org>
6553
6554         Avoid failure when attempting to return empty iconv results on some
6555         platforms.
6556         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6557         allocation, don't report ENOMEM when the resulting string is empty.
6558
6559 2008-03-30  Bruno Haible  <bruno@clisp.org>
6560
6561         Fix buffer overrun.
6562         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6563         Don't consider the width for tmp_length. Check count against tmp_length
6564         before doing the padding. Ensure enough allocation during padding.
6565
6566 2008-03-30  Eric Blake  <ebb9@byu.net>
6567
6568         strtod touchups.
6569         * lib/strtod.c (strtod): Avoid compiler warnings.
6570         Reported by Jim Meyering.
6571
6572 2008-03-30  Bruno Haible  <bruno@clisp.org>
6573
6574         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6575         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6576         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6577         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6578         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6579         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6580         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6581         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6582
6583         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6584         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6585         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6586         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6587         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6588         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6589         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6590         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6591
6592         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6593         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6594         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6595         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6596         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6597         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6598         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6599         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6600
6601         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6602         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6603
6604         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6605         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6606
6607         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6608         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6609
6610         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6611         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6612         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6613
6614         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6616         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6617
6618         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6620         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6621
6622         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6624         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6625
6626         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6627         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6629         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6630         (Depends-on): Add EOVERFLOW.
6631         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6632         (Depends-on): Add EOVERFLOW.
6633         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6634         (Depends-on): Add EOVERFLOW.
6635         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6636         (Depends-on): Add EOVERFLOW.
6637         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6638         (Depends-on): Add EOVERFLOW.
6639         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6640         (Depends-on): Add EOVERFLOW.
6641         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6642         (Depends-on): Add EOVERFLOW.
6643         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6644         (Depends-on): Add EOVERFLOW.
6645
6646         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6648         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6649
6650         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6652         * modules/snprintf (Depends-on): Add EOVERFLOW.
6653
6654         * lib/poll.c (EOVERFLOW): Remove fallback.
6655         * modules/poll (Depends-on): Add EOVERFLOW.
6656
6657         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6658         * modules/getugroups (Depends-on): Add EOVERFLOW.
6659
6660         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6661         * modules/getdelim (Depends-on): Add EOVERFLOW.
6662
6663         * lib/ftell.c (EOVERFLOW): Remove fallback.
6664         * modules/ftell (Depends-on): Add EOVERFLOW.
6665
6666         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6668         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6669
6670         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6671
6672         * modules/EOVERFLOW-tests: New file.
6673         * tests/test-EOVERFLOW.c: New file.
6674
6675         * modules/EOVERFLOW: New file.
6676         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6677
6678 2008-03-30  Bruno Haible  <bruno@clisp.org>
6679
6680         Fix bug introduced on 2007-06-10.
6681         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6682         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6683
6684 2008-03-30  Bruno Haible  <bruno@clisp.org>
6685
6686         Improve freadseek's efficiency after ungetc.
6687         * lib/freadseek.c: Include freadahead.h.
6688         (freadptrinc): New function, extracted from freadseek.
6689         (freadseek): Use it in a loop. Use freadahead to determine the number
6690         of loop iterations.
6691         * modules/freadseek (Depends-on): Add freadahead.
6692         (configure.ac): Require AC_C_INLINE.
6693
6694 2008-03-30  Bruno Haible  <bruno@clisp.org>
6695
6696         * lib/freadseek.c (freadseek): Don't ignore the return value of
6697         freadptr.
6698
6699 2008-03-29  Eric Blake  <ebb9@byu.net>
6700
6701         Add hex float support.
6702         * modules/strtod (Depends-on): Add c-ctype.
6703         (Link): Mention POW_LIB.
6704         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6705         whitespace between 'e' and exponent.
6706         * tests/test-strtod.c (main): Enable hex float tests.
6707         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6708         now provides.
6709
6710         Document various strtod bugs, with some fixes.
6711         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6712         "-0x", "inf", "nan", and hex constants.
6713         * doc/posix-functions/atof.texi (atof): Likewise.
6714         * modules/stdlib (Makefile.am): Support strtod.
6715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6716         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6717         detect additional strtod bugs.
6718         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6719         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6720         bool where appropriate.  Parse 'inf' and 'nan'.
6721         * tests/test-strtod.c: New file.
6722         * modules/strtod (Depends-on): Add stdbool, stdlib.
6723         (configure.ac): Turn on module indicator.
6724         * modules/strtod-tests: New module.
6725
6726 2008-03-29  Eric Blake  <ebb9@byu.net>
6727
6728         Fix ftell on mingw.
6729         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6730         * modules/ftell-tests (Depends-on): Add binary-io.
6731         * modules/ftello-tests (Depends-on): Likewise.
6732         * tests/test-ftell.c (main): Enhance test to cover behavior after
6733         ungetc.  Enforce binary mode.
6734         * tests/test-ftello.c (main): Likewise.
6735
6736         Pass test-freadseek on cygwin.
6737         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6738         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6739         ungetc buffer.
6740
6741         * tests/test-fflush2.c (main): Fix typo.
6742
6743 2008-03-29  Bruno Haible  <bruno@clisp.org>
6744
6745         * tests/test-fflush2.c (main): Temporarily disable the contents of
6746         this test.
6747         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6748         Reported by Eric Blake.
6749
6750 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6751
6752         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6753         (GC_SHA224_DIGEST_SIZE): Add.
6754
6755         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6756         (gc_hash_digest_length): Likewise.
6757         (gc_hash_buffer): Likewise.
6758
6759 2008-03-25  Bruno Haible  <bruno@clisp.org>
6760
6761         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6762         detail which gettext release to use.
6763         Reported by Simon Josefsson.
6764
6765 2008-03-26  Jim Meyering  <meyering@redhat.com>
6766
6767         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6768         * modules/gnumakefile (clean-GNUmakefile): Also, use
6769         test ... && ... || : syntax rather than if-then ... fi.
6770
6771         gnumakefile: Don't double-quote-expand $(VPATH) value.
6772         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6773
6774 2008-03-24  Eric Blake  <ebb9@byu.net>
6775
6776         Alter GNUmakefile to install into top directory.
6777         * modules/maintainer-makefile: Split, and add dependency...
6778         * modules/gnumakefile: to this new module.
6779         * build-aux/GNUmakefile: Move...
6780         * top/GNUmakefile: ...here.
6781         * build-aux/maint.mk: Move...
6782         * top/maint.mk: ...here.
6783         * MODULES.html.sh (Support for maintaining...): Document new
6784         module.
6785
6786 2008-03-23  Bruno Haible  <bruno@clisp.org>
6787
6788         * gnulib-tool: New options --vc-files, --no-vc-files.
6789         (func_usage): Document them.
6790         (vc_files): New variable.
6791         (func_import): Consider vc_files.
6792         (func_create_testdir): Set vc_files to empty.
6793         Suggested by Jim Meyering and Karl Berry.
6794
6795 2008-03-23  Bruno Haible  <bruno@clisp.org>
6796
6797         Fix regex compilation error on HP-UX 11.
6798         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6799         * modules/regex (Files): Add m4/mbstate_t.m4.
6800         Reported by Ton Voon <ton.voon@altinity.com>.
6801
6802 2008-03-23  Bruno Haible  <bruno@clisp.org>
6803
6804         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6805
6806 2008-03-23  Eric Blake  <ebb9@byu.net>
6807             Bruno Haible  <bruno@clisp.org>
6808
6809         Install files from top/ in the destination directory.
6810         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6811         augmentation also for the files from top/.
6812         (func_import, func_create_testdir): Rewrite file names:
6813         top/filename -> filename.
6814
6815 2008-03-23  Bruno Haible  <bruno@clisp.org>
6816
6817         Tweak "gnulib --version" output.
6818         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6819
6820 2008-03-23  Bruno Haible  <bruno@clisp.org>
6821
6822         Tweak "gnulib --version" output.
6823         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6824         rather than contents of ChangeLog, when possible.
6825
6826 2008-03-21  Eric Blake  <ebb9@byu.net>
6827
6828         More --version tweaks.
6829         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
6830         date of last ChangeLog entry.
6831
6832 2008-03-21  Jim Meyering  <meyering@redhat.com>
6833
6834         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6835
6836 2008-03-20  Eric Blake  <ebb9@byu.net>
6837
6838         VPATH fix.
6839         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6840
6841 2008-03-20  Simon Josefsson  <simon@josefsson.org>
6842
6843         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
6844         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
6845
6846 2008-03-20  Eric Blake  <ebb9@byu.net>
6847
6848         Sync GNUmakefile with coreutils.
6849         * build-aux/GNUmakefile (have-Makefile): Rename...
6850         (_have-Makefile): ...to this, for namespace consideration.
6851         (GNUmakefile.cfg): Include, if present.
6852         (_autoreconf): Define a default.
6853         (_is-dist-target): New rule for rebuilds to pick up intra-release
6854         version.
6855         (maint-cfg.mk): Rename...
6856         (cfg.mk): ...to this.
6857
6858 2008-03-18  Jim Meyering  <meyering@redhat.com>
6859
6860         New script and module: mktempd
6861         * MODULES.html.sh (maint+release support): Add mktempd.
6862         * build-aux/mktempd: New file.
6863         * modules/mktempd: New file.
6864
6865 2008-03-15  Jim Meyering  <meyering@redhat.com>
6866
6867         Undo last change.
6868         * lib/sha1.c, lib/md5.c: 63 != ~63.
6869         Reported by Andreas Schwab.
6870
6871         sha1.c, md5.c: Hoist a redundant expression.
6872         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6873         "ctx->buflen" only once, before calling *_process_block.
6874         * lib/md5.c (md5_process_bytes): Likewise.
6875
6876 2008-03-14  Eric Blake  <ebb9@byu.net>
6877
6878         Bump copyright year in files generated by gnulib-tool.
6879         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6880         gnulib-tool, rather than hard-coding it.
6881
6882         Fix 'gnulib-tool --version' output to work with git.
6883         * gnulib-tool (func_gnulib_dir): New function, extracted from...
6884         (startup): ...here.
6885         (func_version): Use it to invoke git-version-gen, rather than
6886         relying on CVS keyword expansion.  Modernize wording.
6887         (cvsdatestamp, last_checkin_date, version): Kill unused
6888         variables.
6889
6890 2008-03-12  Jim Meyering  <meyering@redhat.com>
6891
6892         Recognize optional cast of the argument to free.
6893         * build-aux/useless-if-before-free: Update regexps.
6894
6895         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6896
6897 2008-03-11  Bruno Haible  <bruno@clisp.org>
6898
6899         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6900         by a single package.
6901         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6902         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6903         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6904         Reported by Sam Steingold <sds@gnu.org>.
6905
6906 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6907
6908         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6909         repositories.
6910
6911 2008-03-11  Bruno Haible  <bruno@clisp.org>
6912
6913         Avoid conflicts between local macro definitions.
6914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6915         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6916
6917 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6918             Bruno Haible  <bruno@clisp.org>
6919
6920         Make va_copy work with some version of xlc on AIX 5.1.
6921         * lib/stdarg.in.h: New file.
6922         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6923         On AIX, use a <stdarg.h> file substitute.
6924         * modules/stdarg (Files): Add lib/stdarg.in.h.
6925         (Depends-on): Add include_next.
6926         (Makefile.am): Build a stdarg.h substitute if requested.
6927         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6928
6929 2008-03-10  Bruno Haible  <bruno@clisp.org>
6930
6931         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6933         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6934
6935 2008-03-10  Bruno Haible  <bruno@clisp.org>
6936
6937         * modules/stdlib (Depends-on): Add include_next, remove
6938         absolute-header.
6939
6940 2008-03-09  Bruno Haible  <bruno@clisp.org>
6941
6942         * lib/freadahead.h (freadahead): Document more precisely.
6943         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6944         the sum of both buffer sizes.
6945         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6946         * NEWS: Document the change.
6947
6948 2008-03-09  Bruno Haible  <bruno@clisp.org>
6949
6950         Extend freadptr to return also the buffer size.
6951         * lib/freadptr.h (freadptr): Add sizep argument.
6952         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6953         (freadptr): Add sizep argument. Determine buffer size like freadahead
6954         does.
6955         * tests/test-freadptr.c: Don't include freadahead.h.
6956         (main): Adapt for new calling convention of freadptr.
6957         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6958         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6959         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6960         tests/test-freadptr2.sh.
6961         (Depends): Remove freadahead.
6962         (TESTS): Add test-freadptr2.sh.
6963         (check_PROGRAMS): Add test-freadptr2.
6964
6965 2008-03-09  Bruno Haible  <bruno@clisp.org>
6966
6967         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6968         Report and solution by Simon Josefsson.
6969
6970 2008-03-06  Bruno Haible  <bruno@clisp.org>
6971
6972         Make fflush after ungetc work on BSD platforms.
6973         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6974         * tests/test-fflush2.c: New file.
6975         * tests/test-fflush2.sh: New file.
6976         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6977         tests/test-fflush2.c.
6978         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6979         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6980
6981 2008-03-06  Eric Blake  <ebb9@byu.net>
6982
6983         Likewise for ftello.
6984         * modules/ftello (Dependencies): Add extensions.
6985         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6986
6987 2008-03-06  Bruno Haible  <bruno@clisp.org>
6988
6989         * modules/fseeko (Dependencies): Add extensions.
6990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6991         Needed on glibc systems.
6992
6993 2008-03-06  Bruno Haible  <bruno@clisp.org>
6994
6995         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6996         email address.
6997         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6998
6999 2008-03-06  Bruno Haible  <bruno@clisp.org>
7000
7001         * users.txt: Add libgnupdf.
7002
7003 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7004
7005         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7006         (Header File Substitutes, Function Substitutes,
7007         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7008         (Build robot for gnulib): Fix typo.
7009
7010 2008-03-06  Bruno Haible  <bruno@clisp.org>
7011
7012         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7013         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7014
7015 2008-03-06  Bruno Haible  <bruno@clisp.org>
7016
7017         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7018         * doc/gnulib.texi: Include it.
7019
7020 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7021
7022         * modules/func (License): Change license to unlimited; there was
7023         no LGPL parts in the module anyway.
7024
7025 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7026
7027         * modules/__func__: Renamed to modules/func.
7028         * modules/__func__-tests: Renamed to modules/func-tests.
7029         * tests/test-__func__.c: Renamed to tests/test-func.c.
7030         * m4/__func__.m4: Renamed to m4/func.m4.
7031         * doc/gnulib.texi (__func__): Section renamed to func.
7032         Suggested by Eric Blake <ebb9@byu.net>.
7033
7034 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7035
7036         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7037         about __func__.  Make example self-contained.  Suggested by Eric
7038         Blake <ebb9@byu.net>.
7039
7040         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7041         Suggested by Eric Blake <ebb9@byu.net>.
7042
7043 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7044
7045         * modules/__func__: New file.
7046         * modules/__func__-tests: New file.
7047         * tests/test-__func__.c: New file.
7048         * m4/__func__.m4: New file.
7049         * doc/gnulib.texi (__func__): Document __func__ module.
7050
7051 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7052
7053         * modules/byteswap (License): Re-license as LGPLv2+.
7054
7055 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7056
7057         * doc/Makefile: Add pdf target.
7058
7059 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7060
7061         * modules/inline (License): Use 'unlimited', since there are only
7062         *.m4 files in this module.
7063
7064 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7065             Bruno Haible  <bruno@clisp.org>
7066
7067         Add support for HP C 7.1 on OpenVMS 8.3.
7068         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7069
7070 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7071
7072         Update VMS specifics.
7073         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7074
7075 2008-03-02  Jim Meyering  <meyering@redhat.com>
7076
7077         Remove the last dependency on the "free" module.
7078         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7079         Reported by Bob Proulx.
7080
7081         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7082
7083         Remove useless "if" tests before free.  Deprecate "free" module.
7084         * doc/posix-functions/free.texi: Mention that this
7085         module is no longer useful.
7086         * modules/free (Notice): Say this module is obsolete.
7087         * modules/readutmp (Depends-on): Remove free.
7088         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7089         * lib/putenv.c (putenv): Likewise.
7090         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7091         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7092         * tests/test-c-strcasestr.c (main): Likewise.
7093         * tests/test-c-strstr.c (main): Likewise.
7094         * tests/test-mbscasestr1.c (main): Likewise.
7095         * tests/test-mbscasestr2.c (main): Likewise.
7096         * tests/test-mbsstr1.c (main): Likewise.
7097         * tests/test-mbsstr2.c (main): Likewise.
7098         * tests/test-memmem.c (main): Likewise.
7099         * tests/test-strcasestr.c (main): Likewise.
7100         * tests/test-striconv.c (main): Likewise.
7101         * tests/test-striconveh.c (main): Likewise.
7102         * tests/test-striconveha.c (main): Likewise.
7103         * tests/test-strstr.c (main): Likewise.
7104
7105         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7106
7107         bootstrap: sync from coreutils again
7108         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7109
7110 2008-03-01  Jim Meyering  <meyering@redhat.com>
7111
7112         bootstrap: sync from coreutils
7113         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7114         also when the target doesn't exist.
7115
7116 2008-03-01  Eric Blake  <ebb9@byu.net>
7117
7118         Fix bugs in last patch.
7119         * lib/memchr2.c (memchr2): Fix typo.
7120         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7121         extension.
7122         Reported by Bruce Korb.
7123
7124         New module 'memchr2'.
7125         * modules/memchr2: New file.
7126         * modules/memchr2-tests: Likewise.
7127         * lib/memchr2.h: Likewise.
7128         * lib/memchr2.c: Likewise, based on memchr.c.
7129         * tests/test-memchr2.c: New test.
7130         * MODULES.html.sh (String handling): Add memchr2.
7131
7132 2008-02-29  Bruno Haible  <bruno@clisp.org>
7133
7134         * modules/freadseek-tests: New file.
7135         * tests/test-freadseek.sh: New file.
7136         * tests/test-freadseek.c: New file.
7137
7138         New module 'freadseek'.
7139         * modules/freadseek: New file.
7140         * lib/freadseek.h: New file.
7141         * lib/freadseek.c: New file.
7142         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7143
7144 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7145
7146         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7147         wydawca.
7148
7149         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7150         program_invocation_name and program_invocation_short_name are
7151         present.
7152
7153 2008-02-28  Bruno Haible  <bruno@clisp.org>
7154
7155         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7156         * tests/test-freadptr.sh: Also test non-seekable stdin.
7157
7158 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7159
7160         * build-aux/bootstrap (source_base, m4_base)
7161         (doc_base, tests_base): New variables.
7162         (gnulib_tool_options): Do not hardcode base directories, use
7163         the above variables instead.
7164
7165 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7166
7167         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7168
7169 2008-02-28  Bruno Haible  <bruno@clisp.org>
7170
7171         * modules/freadptr-tests: New file.
7172         * tests/test-freadptr.sh: New file.
7173         * tests/test-freadptr.c: New file.
7174
7175         New module 'freadptr'.
7176         * modules/freadptr: New file.
7177         * lib/freadptr.h: New file.
7178         * lib/freadptr.c: New file.
7179         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7180
7181 2008-02-26  Karl Berry  <karl@freefriends.org>
7182
7183         Sync from Libtool:
7184         * libltdl/argz.c (argz_add, argz_count): New functions.
7185         * libltdl/argz.in.h: Declare them.
7186         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7187
7188 2008-02-22  Bruno Haible  <bruno@clisp.org>
7189
7190         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7191         is a pointer type.  Needed for HP-UX 10.
7192         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7193         * doc/posix-functions/gmtime_r.texi: Likewise.
7194         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7195
7196 2008-02-24  Bruno Haible  <bruno@clisp.org>
7197
7198         * modules/environ-tests: New file.
7199         * tests/test-environ.c: New file.
7200
7201         New module 'environ'.
7202         * modules/environ: New file.
7203         * lib/unistd.in.h (environ): New declaration.
7204         * m4/environ.m4: New file.
7205         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7206         after use.
7207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7208         HAVE_DECL_ENVIRON.
7209         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7210         HAVE_DECL_ENVIRON.
7211         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7212         wrong claim that 'environ' is missing on some systems.
7213         * modules/execute (Depends-on): Add environ.
7214         * lib/execute.c (environ): Remove fallback declaration.
7215         * modules/pipe (Depends-on): Add environ.
7216         * lib/pipe.c (environ): Remove fallback declaration.
7217         * modules/setenv (Depends-on): Add environ.
7218         * lib/setenv.c (environ): Remove fallback declaration.
7219         * modules/unsetenv (Depends-on): Add environ.
7220         * lib/unsetenv.c (environ): Remove fallback declaration.
7221         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7222         m4/environ.m4.
7223         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7224         (gl_PREREQ_UNSETENV): Likewise.
7225
7226 2008-02-24  Bruno Haible  <bruno@clisp.org>
7227
7228         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7229
7230 2008-02-20  Bob Proulx  <bob@proulx.com>
7231
7232         Enable use of older two part flavor 'git describe'.
7233         * build-aux/git-version-gen: If using the older two part flavor of
7234         git version then recreate the third part now present in the
7235         newer three part flavor of git describe.
7236
7237 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7238
7239         * lib/fts.c (fts_build): Typo correction to comment.
7240
7241 2008-02-17  Bruno Haible  <bruno@clisp.org>
7242
7243         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7244         generating no-op conflicts.
7245
7246 2008-02-17  Bruno Haible  <bruno@clisp.org>
7247
7248         Speed up by 10%.
7249         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7250         result_entries, rather than an index-based loop.
7251
7252 2008-02-17  Bruno Haible  <bruno@clisp.org>
7253
7254         Speed up by 25%.
7255         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7256         'hashcode_cached'.
7257         (entry_create): New function.
7258         (entry_hashcode): Use the cached hashcode if possible.
7259         (read_changelog_file, try_split_merged_entry): Use entry_create.
7260
7261 2008-02-17  Bruno Haible  <bruno@clisp.org>
7262
7263         Speed up from O(n^2) to O(n) for long ChangeLog files.
7264         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7265         (read_changelog_file): Change implementation of entries_reversed list
7266         to rbtreehash.
7267         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7268
7269 2008-02-17  Bruno Haible  <bruno@clisp.org>
7270
7271         New option --split-merged-entry.
7272         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7273         (find_paragraph_end, try_split_merged_entry): New functions.
7274         (long_options): Add option --split-merged-entry.
7275         (usage): Document option --split-merged-entry.
7276         (main): Implement option --split-merged-entry.
7277         Reported by Eric Blake.
7278
7279 2008-02-17  Bruno Haible  <bruno@clisp.org>
7280
7281         * lib/git-merge-changelog.c: Include c-strstr.h.
7282         (main): Support the "git pull --rebase" situation.
7283         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7284         Reported by Eric Blake.
7285
7286 2008-02-16  Eric Blake  <ebb9@byu.net>
7287
7288         Avoid doubling \ in common case of "c-maybe" quoting style.
7289         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7290         eliding outer quotes.
7291         * lib/quotearg.h: Document this.
7292         * tests/test-quotearg.c (result_strings, inputs, results_g)
7293         (flag_results, locale_results): Test it by adding a new string to
7294         each test group.
7295         (compare_strings): Test new string.
7296
7297 2008-02-13  Eric Blake  <ebb9@byu.net>
7298
7299         Avoid trigraph quoting in default output.
7300         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7301         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7302         unless explicitly requested.
7303         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7304
7305 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7306
7307         Don't rely on signed integer overflowing to negative value.
7308         * lib/getugroups.c (getugroups): Include <limits.h>.
7309         Instead, compare against INT_MAX, and increment only if the test passes.
7310
7311 2008-02-13  Jim Meyering  <meyering@redhat.com>
7312         and Eric Blake  <ebb9@byu.net>
7313
7314         Avoid shadowing warning and compile errors on Linux.
7315         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7316         forwarding macros on Linux.
7317         (dcgettext): Define a stub, for Linux.
7318         (results_g, main): Avoid warnings.
7319
7320 2008-02-12  Eric Blake  <ebb9@byu.net>
7321
7322         Silence warning in last patch.
7323         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7324
7325         Quotearg part 4: add tests, fix c-maybe colon quoting.
7326         * lib/quotearg.h: Improve documentation.
7327         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7328         escapes when adding outer quotes.  When quoting trigraphs, use
7329         valid C notation.  When quoting NUL, omit extra characters if next
7330         character is not digit.  Alter prototype.
7331         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7332         callers.
7333         * modules/quotearg-tests: New module.
7334         * tests/test-quotearg.c: New test.
7335
7336 2008-02-07  Eric Blake  <ebb9@byu.net>
7337
7338         Quotearg part 3: add flag to control outer quote elision.
7339         * lib/quotearg.h (c_maybe_quoting_style): New style.
7340         (enum quoting_flags): Better documentation of flags.
7341         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7342         c-maybe style.
7343         (quotearg_buffer_restyled): Handle new flag to elide outer
7344         quotes.
7345
7346         Quotearg part 2: add flag that can control NUL elision.
7347         * lib/quotearg.h (set_quoting_flags): New prototype.
7348         * lib/quotearg.c (struct quoting_options): Add flag field.
7349         (set_quoting_flags): New function.
7350         (quotearg_buffer_restyled): Add flags parameter.
7351         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7352         (quotearg_n_options): Set the flag, since length cannot be
7353         returned.
7354         (quoting_options_from_style): Default flags correctly.
7355
7356         Quotearg part 1: more wrappers, restore quotearg_char state.
7357         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7358         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7359         (quotearg_colon_mem): New wrappers.
7360         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7361         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7362         functions.
7363         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7364         (quotearg_colon_mem): New functions.
7365
7366 2008-02-11  Bruno Haible  <bruno@clisp.org>
7367
7368         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7369         library in the current directory: it does not work with parallel make.
7370         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7371
7372 2008-02-11  Bruno Haible  <bruno@clisp.org>
7373
7374         * .gitattributes: New file.
7375
7376 2008-02-11  Jim Meyering  <meyering@redhat.com>
7377
7378         useless-if-before-free: Fix reversed exit values.
7379         * build-aux/useless-if-before-free: Use correct values
7380         for EXIT_MATCH and EXIT_NO_MATCH.
7381
7382         * build-aux/useless-if-before-free: Close stdout carefully.
7383
7384 2008-02-10  Bruno Haible  <bruno@clisp.org>
7385
7386         New module 'git-merge-changelog'.
7387         * modules/git-merge-changelog: New file.
7388         * lib/git-merge-changelog.c: New file.
7389
7390 2008-02-10  Jim Meyering  <meyering@redhat.com>
7391
7392         useless-if-before-free: New option: --list (-l).
7393
7394         useless-if-before-free: Don't exit immediately upon open failure.
7395         * build-aux/useless-if-before-free: Exit 2 for errors.
7396         Upon failure to open a file, don't exit immediately.
7397         Rather, just warn and continue with any remaining files.
7398
7399 2008-02-10  Bruno Haible  <bruno@clisp.org>
7400
7401         New abstract list operation 'node_set_value'.
7402         * lib/gl_list.h (gl_list_node_set_value): New function.
7403         (struct gl_list_implementation): New field node_set_value.
7404         * lib/gl_list.c (gl_list_node_set_value): New function.
7405         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7406         (gl_array_list_implementation): Update.
7407         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7408         (gl_carray_list_implementation): Update.
7409         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7410         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7411         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7412         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7413         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7414         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7415         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7416         Update.
7417         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7418         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7419         (gl_sublist_list_implementation): Update.
7420
7421 2008-02-10  Bruno Haible  <bruno@clisp.org>
7422
7423         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7424         Needed when ELEMENT is #defined to 'some_type *'.
7425
7426 2008-02-10  Jim Meyering  <meyering@redhat.com>
7427
7428         New script and module: useless-if-before-free
7429         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7430         * build-aux/useless-if-before-free: New file.
7431         * modules/useless-if-before-free: New file.
7432
7433         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7434
7435         xstrtol_error: Fix typo.
7436         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7437         s/exit_failure/exit_status/.
7438
7439 2008-02-09  Jim Meyering  <meyering@redhat.com>
7440
7441         New script and module: gitlog-to-changelog
7442         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7443         * modules/gitlog-to-changelog: New file.
7444         * build-aux/gitlog-to-changelog: New file.
7445
7446 2008-02-08  Jim Meyering  <meyering@redhat.com>
7447
7448         Avoid two "parameter unused" warnings.
7449         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7450         Mark "st" as used.
7451
7452         Use "git COMMAND", not "git-COMMAND".
7453         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7454         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7455         * build-aux/git-version-gen: Use "git status", not "git-status".
7456
7457 2008-02-07  Bruno Haible  <bruno@clisp.org>
7458
7459         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7460         Avoids a crash on Windows Vista.
7461         Reported by Adam Strzelecki <ono@java.pl> via
7462         Simon Josefsson <simon@josefsson.org>.
7463
7464 2008-02-06  Bruno Haible  <bruno@clisp.org>
7465
7466         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7467         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7468         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7470         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7472         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7473         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7478         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7479         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7480         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7481         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7482         left-adjust flag.
7483         * tests/test-snprintf-posix.h (test_function): Likewise.
7484         * tests/test-sprintf-posix.h (test_function): Likewise.
7485         * tests/test-vasprintf-posix.c (test_function): Likewise.
7486         * doc/posix-functions/fprintf.texi: Update.
7487         * doc/posix-functions/printf.texi: Update.
7488         * doc/posix-functions/snprintf.texi: Update.
7489         * doc/posix-functions/sprintf.texi: Update.
7490         * doc/posix-functions/vfprintf.texi: Update.
7491         * doc/posix-functions/vprintf.texi: Update.
7492         * doc/posix-functions/vsnprintf.texi: Update.
7493         * doc/posix-functions/vsprintf.texi: Update.
7494         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7495
7496 2008-02-06  Bruno Haible  <bruno@clisp.org>
7497
7498         Fix bug introduced on 2008-01-26.
7499         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7500
7501 2008-02-06  Bruno Haible  <bruno@clisp.org>
7502
7503         Fix bug introduced on 2007-06-10.
7504         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7505         !NEED_PRINTF_FLAG_ZERO.
7506
7507 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7508
7509         getloadavg: use libperfstat on AIX5
7510         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7511
7512 2008-02-03  Bruno Haible  <bruno@clisp.org>
7513
7514         * lib/diffseq.h: Add comments about required #includes.
7515         Reported by Michael Biggs <gnulib@doubleplum.net>.
7516
7517 2008-02-01  Bruno Haible  <bruno@clisp.org>
7518
7519         * users.txt: Add gnuit.
7520
7521 2008-01-31  Bruno Haible  <bruno@clisp.org>
7522
7523         * lib/md4.c (set_uint32): Mark as inline.
7524         * lib/md5.c (set_uint32): Likewise.
7525         * lib/sha1.c (set_uint32): Likewise.
7526         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7527         * m4/md5.m4 (gl_MD5): Likewise.
7528         * m4/sha1.m4 (gl_SHA1): Likewise.
7529
7530 2008-01-31  Jim Meyering  <meyering@redhat.com>
7531
7532         Use "sizeof VAR", rather than a literal "4".
7533         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7534         * lib/md4.c (md4_read_ctx): Likewise.
7535         * lib/sha1.c (sha1_read_ctx): Likewise.
7536
7537 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7538
7539         * tests/test-sha1.c: New file, based on test-md5.c.
7540
7541         * modules/crypto/sha1-tests: New file.
7542
7543 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7544
7545         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7546
7547 2008-01-31  Jim Meyering  <meyering@redhat.com>
7548
7549         Prefer "sizeof v" over the equivalent "4".
7550         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7551         * lib/md5.c (set_uint32): Likewise.
7552         * lib/sha1.c (set_uint32): Likewise.
7553
7554 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7555
7556         * lib/sha1.c (set_uint32): Mark function as static.
7557
7558 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7559
7560         md2: clarify comments to say that alignment is not required.
7561         * lib/md2.h: Remove warning about alignment in comment.
7562         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7563         never been required.
7564
7565 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7566
7567         md4: adapt alignment constraint fix from sha1.
7568         * lib/md4.c (set_uint32): New function, from sha1.c
7569         (md4_read_ctx): Use it.
7570         (md4_finish_ctx): Doc fix.
7571         * lib/md4.h: Doc fix.
7572
7573 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7574
7575         md5: adapt alignment constraint fix from sha1.
7576         * lib/md5.c (set_uint32): New function, from sha1.c
7577         (md5_read_ctx): Use it.
7578         (md5_finish_ctx): Doc fix.
7579         * lib/md5.h: Doc fix.
7580
7581 2008-01-30  Peter Palfrader  <weasel@debian.org>
7582
7583         sha1: remove the result buffer alignment constraint
7584         * lib/sha1.c (set_uint32): New function.
7585         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7586         constraint.
7587         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7588         * lib/sha1.h: Likewise.
7589
7590 2008-01-30  Andreas Schwab  <schwab@suse.de>
7591             Bruno Haible  <bruno@clisp.org>
7592
7593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7594         correct definition of LDBL_MIN_EXP.
7595
7596 2008-01-30  Karl Berry  <karl@gnu.org>
7597
7598         * config/srclist-update: try to preserve x bit on updates.
7599         * config/srclistvars.sh: update for karl.
7600
7601 2008-01-29  Jim Meyering  <meyering@redhat.com>
7602
7603         vasnprintf.c: Avoid warning about unused label
7604         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7605         "overflow" label definition and associated code with the
7606         same cpp condition that guards the sole use of that label.
7607
7608 2008-01-26  Bruno Haible  <bruno@clisp.org>
7609
7610         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7611         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7612         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7613         * lib/isnanl-nolibm.h (isnanl): Likewise.
7614         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7615
7616 2008-01-26  Bruno Haible  <bruno@clisp.org>
7617
7618         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7619         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7620
7621 2008-01-26  Bruno Haible  <bruno@clisp.org>
7622
7623         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7624         GCC >= 4.0 built-in.
7625         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7626
7627 2008-01-26  Bruno Haible  <bruno@clisp.org>
7628
7629         Rename isnan, applicable to 'double' only, to isnand.
7630         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7631         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7632         (configure.ac): Update.
7633         (Include): Replace "isnan.h" with "isnand.h".
7634         * m4/isnand.m4: Renamed from m4/isnan.m4.
7635         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7636         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7637         instead of isnan.c.
7638         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7639         instead of HAVE_ISNAN_IN_LIBC.
7640         (isnand): Renamed from isnan.
7641         * lib/isnand.c: New file.
7642         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7643         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7644         (Makefile.am): Update.
7645         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7646         Include isnand.h instead of isnan.h.
7647         (main): Test isnand instead of isnan.
7648         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7649         isnan-nolibm.
7650         * modules/frexp (Depends-on): Likewise.
7651         * modules/frexp-tests (Depends-on): Likewise.
7652         * modules/frexp-nolibm (Depends-on): Likewise.
7653         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7654         * modules/isfinite (Depends-on): Likewise.
7655         * modules/round-tests (Depends-on): Likewise.
7656         * modules/signbit (Depends-on): Likewise.
7657         * modules/signbit-tests (Depends-on): Likewise.
7658         * modules/snprintf-posix (Depends-on): Likewise.
7659         * modules/sprintf-posix (Depends-on): Likewise.
7660         * modules/trunc-tests (Depends-on): Likewise.
7661         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7662         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7663         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7664         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7665         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7666         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7667         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7668         * modules/vasnprintf-posix (Depends-on): Likewise.
7669         * modules/vasprintf-posix (Depends-on): Likewise.
7670         * modules/vfprintf-posix (Depends-on): Likewise.
7671         * modules/vsnprintf-posix (Depends-on): Likewise.
7672         * modules/vsprintf-posix (Depends-on): Likewise.
7673         * lib/frexp.c: Include isnand.h instead of isnan.h.
7674         (ISNAN): Set to isnand instead of isnan.
7675         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7676         (gl_isfinited): Use isnand instead of isnan.
7677         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7678         (gl_signbitd): Use isnand instead of isnan.
7679         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7680         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7681         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7682         (main): Use isnand instead of isnan.
7683         * tests/test-round1.c: Include isnand.h.
7684         (main): Use isnand instead of isnan.
7685         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7686         (ISNAN): Set to isnand instead of isnan.
7687         * tests/test-trunc1.c: Include isnand.h.
7688         (main): Use isnand instead of isnan.
7689         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7690         (equal): Use isnand instead of isnan.
7691         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7692         isnand-nolibm.
7693         * NEWS: Mention the change.
7694
7695 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7696             Bruno Haible  <bruno@clisp.org>
7697
7698         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7699         the GCC builtins for signbits are present and set
7700         REPLACE_SIGNBIT_USING_GCC if so.
7701         * lib/math.in.h (signbit): Define using GCC builtins if
7702         REPLACE_SIGNBIT_USING_GCC is set.
7703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7704         REPLACE_SIGNBIT_USING_GCC.
7705         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7706
7707 2008-01-25  Jim Meyering  <meyering@redhat.com>
7708
7709         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7710         * lib/poll.c: Include <config.h>, not "config.h".
7711         * tests/test-getaddrinfo.c: Likewise.
7712
7713 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7714
7715         * modules/sockets-tests: New file.
7716
7717 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7718
7719         * modules/sockets: New module, can be used to call WSA_Startup and
7720         WSA_Cleanup when needed.
7721
7722         * lib/sockets.h, lib/sockets.c: New files.
7723
7724         * m4/sockets.m4: New file.
7725
7726         * tests/test-sockets.c: New file.
7727
7728 2008-01-19  Bruno Haible  <bruno@clisp.org>
7729
7730         * doc/posix-headers: Renamed from doc/headers.
7731         * doc/posix-functions: Renamed from doc/functions.
7732         * doc/gnulib.texi: Update.
7733
7734 2008-01-19  Bruno Haible  <bruno@clisp.org>
7735
7736         * doc/glibc-functions/strcasestr.texi: Include contents of
7737         doc/functions/strcasestr.texi, fixing the list of platforms.
7738         * doc/functions/strcasestr.texi: Remove file.
7739
7740 2008-01-19  Bruno Haible  <bruno@clisp.org>
7741
7742         * doc/glibc-functions/memmem.texi: Include contents of
7743         doc/functions/memmem.texi.
7744         * doc/functions/memmem.texi: Remove file.
7745
7746 2008-01-18  Bruno Haible  <bruno@clisp.org>
7747
7748         * doc/glibc-functions/*.texi: New files.
7749         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7750         to use the new files.
7751
7752 2008-01-17  Bruno Haible  <bruno@clisp.org>
7753
7754         * tests/test-gethostname.c (main): Fix printf statement.
7755
7756 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7757
7758         * modules/gethostname-tests: New file.
7759
7760         * tests/test-gethostname.c: New file.
7761
7762 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7763
7764         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7765         used by the UNAME case.  Reported by Bruno Haible
7766         <bruno@clisp.org>.
7767
7768 2008-01-17  Eric Blake  <ebb9@byu.net>
7769
7770         Convert c-strcasestr to be more efficient.
7771         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7772         (Depends-on): Add c-strcase, remove malloca, strnlen.
7773         * tests/test-c-strcasestr.c (main): Enhance test.
7774         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7775
7776 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7777
7778         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7779         Use it in creating po/Makevars.
7780
7781 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7782
7783         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7784         Applications that requires it should initialize libgcrypt
7785         manually.
7786
7787 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7788
7789         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7790
7791 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7792
7793         Fix problem with getdate on mingw32 reported by Simon Josefsson
7794         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7795         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7796         tzname", when deciding whether to declare tzname.
7797         * lib/strftime.c (tzname): Likewise.
7798
7799 2008-01-15  Bruno Haible  <bruno@clisp.org>
7800
7801         Work around a MacOS X 10.5 bug in frexpl().
7802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7803         * doc/functions/frexpl.texi: Document the bug.
7804         Reported by Elias Pipping <pipping@gentoo.org>.
7805
7806 2008-01-14  Eric Blake  <ebb9@byu.net>
7807
7808         Touch up previous patch.
7809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7810         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7811
7812         Convert strcasestr module to use Two-Way algorithm.
7813         * modules/strcasestr-simple: New module, based on the old
7814         strcasestr, but with Two-Way rather than KMP.
7815         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7816         * lib/string.in.h (rpl_strcasestr): Declare.
7817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7818         performance.
7819         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7820         * modules/string (Makefile.am): Support strcasestr.
7821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7822         * modules/strcasestr-tests (Depends-on): Check for alarm.
7823         * tests/test-strcasestr.c: Augment test.
7824         * lib/str-two-way.h: Clean up stray macro.
7825         * NEWS: Document new module.
7826         * MODULES.html.sh (string handling): Likewise.
7827         * doc/functions/strcasestr.texi: New file.
7828         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
7829         here, since it is not a POSIX function.
7830
7831 2008-01-14  Colin Watson  <cjwatson@debian.org>
7832             Bruno Haible  <bruno@clisp.org>
7833
7834         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7835         works fine; if not, set REPLACE_STRSIGNAL.
7836         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7838         REPLACE_STRSIGNAL.
7839         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7840         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7841         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7842
7843 2008-01-14  Bruno Haible  <bruno@clisp.org>
7844
7845         * modules/strsignal (Include): Change to <string.h>.
7846
7847 2008-01-14  Colin Watson  <cjwatson@debian.org>
7848
7849         * modules/argp (Notice): Add a notice recommending to change
7850         XGETTEXT_OPTIONS.
7851         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7852
7853 2008-01-13  Colin Watson  <cjwatson@debian.org>
7854
7855         * modules/strsignal-tests: New file.
7856         * tests/test-strsignal.c: New file.
7857
7858         * lib/strsignal.c: New file, from glibc with modifications.
7859         * lib/siglist.h: New file, from glibc with modifications.
7860         * lib/string.in.h (strsignal): New declaration.
7861         * m4/strsignal.m4: New file.
7862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7863         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7864         * modules/strsignal: New file.
7865         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7866         HAVE_DECL_STRSIGNAL.
7867
7868 2008-01-13  Bruno Haible  <bruno@clisp.org>
7869
7870         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7871         locale encoding is not ASCII. Needed for OpenBSD 4.0.
7872         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7873         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7874
7875 2008-01-13  Bruno Haible  <bruno@clisp.org>
7876
7877         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7878         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7879         * lib/argp.h (__attribute__): Likewise.
7880         * lib/c-stack.c (__attribute__): Likewise.
7881         * lib/error.h (__attribute__): Likewise.
7882         * lib/fts.c (__attribute__): Likewise.
7883         * lib/openat.h (__attribute__): Likewise.
7884         * lib/stdio.in.h (__attribute__): Likewise.
7885         * lib/string.in.h (__attribute__): Likewise.
7886         * lib/utimens.c (__attribute__): Likewise.
7887         * lib/vasnprintf.h (__attribute__): Likewise.
7888         * lib/xalloc.h (__attribute__): Likewise.
7889         * lib/xprintf.h (__attribute__): Likewise.
7890         * lib/xstrtol.h (__attribute__): Likewise.
7891         * lib/xvasprintf.h (__attribute__): Likewise.
7892
7893 2008-01-12  Bruno Haible  <bruno@clisp.org>
7894
7895         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7896         * doc/glibc-headers/a.out.texi: New file.
7897         * doc/glibc-headers/aliases.texi: New file.
7898         * doc/glibc-headers/alloca.texi: New file.
7899         * doc/glibc-headers/ar.texi: New file.
7900         * doc/glibc-headers/argp.texi: New file.
7901         * doc/glibc-headers/argz.texi: New file.
7902         * doc/glibc-headers/byteswap.texi: New file.
7903         * doc/glibc-headers/crypt.texi: New file.
7904         * doc/glibc-headers/endian.texi: New file.
7905         * doc/glibc-headers/envz.texi: New file.
7906         * doc/glibc-headers/err.texi: New file.
7907         * doc/glibc-headers/error.texi: New file.
7908         * doc/glibc-headers/execinfo.texi: New file.
7909         * doc/glibc-headers/fpu_control.texi: New file.
7910         * doc/glibc-headers/fstab.texi: New file.
7911         * doc/glibc-headers/fts.texi: New file.
7912         * doc/glibc-headers/getopt.texi: New file.
7913         * doc/glibc-headers/ieee754.texi: New file.
7914         * doc/glibc-headers/ifaddrs.texi: New file.
7915         * doc/glibc-headers/libintl.texi: New file.
7916         * doc/glibc-headers/mcheck.texi: New file.
7917         * doc/glibc-headers/mntent.texi: New file.
7918         * doc/glibc-headers/obstack.texi: New file.
7919         * doc/glibc-headers/paths.texi: New file.
7920         * doc/glibc-headers/printf.texi: New file.
7921         * doc/glibc-headers/pty.texi: New file.
7922         * doc/glibc-headers/resolv.texi: New file.
7923         * doc/glibc-headers/shadow.texi: New file.
7924         * doc/glibc-headers/sysexits.texi: New file.
7925         * doc/glibc-headers/ttyent.texi: New file.
7926
7927 2008-01-12  Jim Meyering  <meyering@redhat.com>
7928
7929         announce-gen: emit Gnulib's git-based version string.
7930         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7931         New option --gnulib-version=V, where V is expected to be
7932         the output of running git describe in the gnulib directory.
7933         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7934         not useful, and plan to stop publishing an xdelta file with each
7935         coreutils release.
7936
7937         * build-aux/announce-gen: Also check for lzma-compressed files.
7938
7939 2008-01-11  Bruno Haible  <bruno@clisp.org>
7940
7941         * tests/test-memmem.c (main): Increase maximum allowed time.
7942         * tests/test-strstr.c (main): Likewise.
7943
7944 2008-01-11  Bruno Haible  <bruno@clisp.org>
7945
7946         * doc/functions/memmem.texi: Add more precisions about platforms.
7947         * doc/functions/strstr.texi: Likewise.
7948
7949 2008-01-10  Eric Blake  <ebb9@byu.net>
7950
7951         * m4/strstr.m4: Delete cruft from copy-n-paste.
7952         Reported by Bruno Haible.
7953
7954 2008-01-10  Bruno Haible  <bruno@clisp.org>
7955
7956         Make c-strstr rely on strstr.
7957         * lib/c-strstr.c: Don't include str-kmp.h.
7958         (c_strstr): Define in terms of strstr.
7959         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7960         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7961
7962 2008-01-10  Bruno Haible  <bruno@clisp.org>
7963
7964         * doc/gnulib.texi (String Functions in C Locale): New section.
7965         * doc/c-ctype.texi: New file.
7966         * doc/c-strcase.texi: New file.
7967         * doc/c-strcaseeq.texi: New file.
7968         * doc/c-strcasestr.texi: New file.
7969         * doc/c-strstr.texi: New file.
7970         * doc/c-strtod.texi: New file.
7971         * doc/c-strtold.texi: New file.
7972
7973 2008-01-10  Eric Blake  <ebb9@byu.net>
7974
7975         * lib/relocatable.h: Fix a comment.
7976
7977 2008-01-10  Eric Blake  <ebb9@byu.net>
7978
7979         Share two-way algorithm.
7980         * lib/str-two-way.h: New file, merged from...
7981         * lib/memmem.c: ...here...
7982         * lib/strstr.c: ...and here.
7983         * modules/memmem (Files): Use it.
7984         * modules/strstr (Files): Likewise.
7985
7986         Avoid quadratic strstr implementations.
7987         * lib/strstr.c: New file.
7988         * m4/strstr.m4: Likewise.
7989         * modules/strstr: Likewise.
7990         * modules/strstr-tests: Likewise.
7991         * tests/test-strstr.c: Likewise.
7992         * lib/string.in.h (rpl_strstr): Declare.
7993         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7995         * modules/string (Makefile.am): Likewise.
7996         * MODULES.html.sh (string handling): Mention new module.
7997         * doc/functions/strstr.texi (strstr): Document the bug.
7998
7999 2008-01-10  Bruno Haible  <bruno@clisp.org>
8000
8001         * lib/relocatable.h (relocate): State whether result is freshly
8002         allocated or not.
8003         * lib/relocatable.c (relocate): Return a freshly allocated string
8004         instead of a pointer to a privately held string.
8005         Reported by Sylvain Beucler <beuc@gnu.org>.
8006
8007 2008-01-10  Colin Watson  <cjwatson@debian.org>
8008
8009         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8010         s/S_ISNLK/S_ISLNK/.
8011
8012 2008-01-09  Bruno Haible  <bruno@clisp.org>
8013
8014         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8015         and other files.
8016         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8017         if it's only a guess.
8018         * modules/memmem: Simplify by depending on memmem-simple.
8019
8020 2008-01-09  Bruno Haible  <bruno@clisp.org>
8021
8022         Work around OpenBSD 4.0 tdelete() bug.
8023         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8024         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8025         macros and don't redefine the enum values.
8026         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8027         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8028         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8029
8030 2008-01-09  Bruno Haible  <bruno@clisp.org>
8031
8032         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8033         (main): Don't perform the tests if setlocale did not install a UTF-8
8034         locale. Needed on OpenBSD 4.0.
8035         * modules/wcwidth-tests (Depends-on): Add localcharset.
8036
8037 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8038
8039         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8040         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8041         * NEWS: announce this.
8042         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8043
8044 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8045         and Eric Blake  <ebb9@byu.net>
8046
8047         Add memmem-simple module.
8048         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8049         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8050         * modules/memmem-simple: New file.
8051         * modules/memmem (Description): Tweak.
8052         * MODULES.html.sh (string handling): Mention new module.
8053         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8054         addressed by memmem-simple.
8055         * NEWS: Document the difference.
8056
8057 2008-01-09  Eric Blake  <ebb9@byu.net>
8058
8059         Give gcc some memmem optimization hints.
8060         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8061         (strcasestr): Declare as pure.
8062         * modules/memmem (Maintainer): Claim my implementation.
8063
8064 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8065
8066         Support AIX 6.1 and higher.
8067         * build-aux/config.libpath: Likewise.
8068         * build-aux/config.rpath: Likewise.
8069
8070 2008-01-08  Jim Meyering  <meyering@redhat.com>
8071             Bruno Haible  <bruno@clisp.org>
8072
8073         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8074         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8075         Reported by Peter Fales in
8076         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8077
8078 2008-01-08  Bruno Haible  <bruno@clisp.org>
8079
8080         * modules/unictype/category-of (Depends-on): Add
8081         unictype/category-none.
8082         * modules/unictype/category-and-tests (Depends-on): Add
8083         unictype/category-{L,N,Lu,Nd}.
8084         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8085         * modules/unictype/category-or-tests (Depends-on): Add
8086         unictype/category-{L,N}.
8087         * modules/unictype/category-name-tests (Depends-on): Add
8088         unictype/category-{Z,Nl}.
8089         Reported by Simon Josefsson.
8090
8091 2008-01-08  Bruno Haible  <bruno@clisp.org>
8092
8093         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8094         convention better.
8095         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8096         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8097         Reported by Peter Miller <millerp@canb.auug.org.au>.
8098
8099 2008-01-08  Eric Blake  <ebb9@byu.net>
8100
8101         Rewrite memmem to guarantee linear complexity without malloc.
8102         * lib/memmem.c (memmem): Use Two-Way rather than
8103         Knuth-Morris-Pratt, to allow O(1) space usage.
8104         (critical_factorization, two_way_short_needle)
8105         (two_way_long_needle): New functions.
8106         (knuth_morris_pratt): Delete.
8107         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8108         Add stdint.
8109         * tests/test-memmem.c (main): Add tests for periodic needle and
8110         sublinear performance.
8111         * doc/functions/memmem.texi (memmem): Document other deficiencies
8112         in cygwin and older glibc.
8113
8114 2008-01-08  Bruno Haible  <bruno@clisp.org>
8115
8116         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8117         augmentation.
8118
8119 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8120
8121         Add a configure time option: --disable-acl.
8122         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8123         AC_ARG_ENABLE(acl).
8124
8125 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8126
8127         * tests/test-localename.c: Don't include obsolete "setenv.h".
8128
8129         * modules/localename-tests (Depends-on): Need unsetenv.
8130
8131 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8132
8133         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8134
8135 2008-01-06  Colin Watson  <cjwatson@debian.org>
8136
8137         * users.txt: Add man-db.
8138
8139 2008-01-07  Bruno Haible  <bruno@clisp.org>
8140
8141         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8142         previous section name.
8143
8144 2008-01-07  Bruno Haible  <bruno@clisp.org>
8145
8146         * lib/progname.c (set_program_name): Don't strip off a leading
8147         "lt-" prefix outside a .libs directory.
8148         Suggested by Paul Eggert.
8149
8150 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8151             Bruno Haible  <bruno@clisp.org>
8152
8153         Improve memory cleanup in 'relocatable' module.
8154         * lib/relocatable.h (compute_curr_prefix): Change return type to
8155         'char *'.
8156         * lib/relocatable.c (compute_curr_prefix): Change return type to
8157         'char *'. Free curr_installdir after use.
8158         (relocate): Free curr_prefix_better after use.
8159         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8160
8161 2008-01-01  Bruno Haible  <bruno@clisp.org>
8162
8163         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8164         failure on older glibc systems.
8165         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8166
8167 2008-01-05  Eric Blake  <ebb9@byu.net>
8168
8169         Avoid quadratic system memmem.
8170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8171         Reported by Ralf Wildenhues.
8172
8173         Fix memmem test for mingw.
8174         * modules/memmem-tests (configure.ac): Check for alarm.
8175         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8176         it.
8177         * doc/functions/memmem.texi: New file.
8178         * doc/gnulib.texi (Function Substitutes): Add memmem.
8179         Reported by Bruno Haible.
8180
8181 2008-01-04  Bruno Haible  <bruno@clisp.org>
8182
8183         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8184         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8185         gl_HEADER_STRING_H_DEFAULTS.
8186
8187 2008-01-04  Eric Blake  <ebb9@byu.net>
8188
8189         Shorten duration of memmem test.
8190         * tests/test-memmem.c (main): Use alarm to declare failure if test
8191         is taking too long.
8192         Reported by Ralf Wildenhues.
8193
8194 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8195
8196         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8197         string, needed by strerror.
8198
8199 2008-01-03  Colin Watson  <cjwatson@debian.org>
8200             Bruno Haible  <bruno@clisp.org>
8201
8202         * doc/gnulib-tool.texi (Localization): New section.
8203
8204 2008-01-02  Bruno Haible  <bruno@clisp.org>
8205
8206         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8207         variables to 'unsigned char *' type.
8208         Reported by Paul Eggert.
8209
8210 2008-01-02  Jim Meyering  <jim@meyering.net>
8211
8212         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8213
8214 2007-12-31  Jim Meyering  <jim@meyering.net>
8215
8216         Avoid use of private FTS type name.
8217         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8218
8219 2007-12-30  Karl Berry  <karl@gnu.org>
8220
8221         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8222         work around defect in Texinfo and/or the standalone Info browser.
8223
8224 2007-12-30  Bruno Haible  <bruno@clisp.org>
8225
8226         Unify 5 copies of the KMP code.
8227         * lib/str-kmp.h: New file.
8228         * lib/c-strcasestr.c: Include str-kmp.h.
8229         (knuth_morris_pratt): Remove function.
8230         (c_strcasestr): Update.
8231         * lib/c-strstr.c: Include str-kmp.h.
8232         (knuth_morris_pratt): Remove function.
8233         (c_strcasestr): Update.
8234         * lib/mbscasestr.c: Include str-kmp.h.
8235         (knuth_morris_pratt_unibyte): Remove function.
8236         * lib/mbsstr.c: Include str-kmp.h.
8237         (knuth_morris_pratt_unibyte): Remove function.
8238         * lib/strcasestr.c: Include str-kmp.h.
8239         (knuth_morris_pratt): Remove function.
8240         (strcasestr): Update.
8241         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8242         * modules/c-strstr (Files): Likewise.
8243         * modules/mbscasestr (Files): Likewise.
8244         * modules/mbsstr (Files): Likewise.
8245         * modules/strcasestr (Files): Likewise.
8246         Suggested by Paul Eggert.
8247
8248 2007-12-30  Bruno Haible  <bruno@clisp.org>
8249
8250         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8251         defined.
8252
8253 2007-12-30  Bruno Haible  <bruno@clisp.org>
8254
8255         * lib/xmalloca.h: Include xalloc.h.
8256         (xnmalloca): New macro.
8257
8258 2007-12-30  Bruno Haible  <bruno@clisp.org>
8259
8260         * lib/malloca.h (nmalloca): New macro.
8261         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8262         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8263         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8264         knuth_morris_pratt_multibyte): Likewise.
8265         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8266         knuth_morris_pratt_multibyte): Likewise.
8267         * lib/memmem.c (knuth_morris_pratt): Likewise.
8268         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8269
8270 2007-12-25  Bruno Haible  <bruno@clisp.org>
8271
8272         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8273         * lib/glob.c: Don't include openat.h.
8274         (link_exists2_p): Add back the code that deals with the
8275         !GLOB_ALTDIRFUNC case.
8276         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8277         let it do the filename concatenation.
8278         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8279         * modules/glob (Depends-on): Remove openat.
8280
8281 2007-12-31  Bruno Haible  <bruno@clisp.org>
8282
8283         * modules/dirfd (License): Change to LGPLv2+.
8284         Approved by Jim Meyering.
8285
8286 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8289         when multiplying M by sizeof (size_t).
8290
8291 2007-12-10  Martin Lambers  <marlam@marlam.de>
8292
8293         Override getpagesize on mingw.
8294         * lib/getpagesize.c: New file.
8295         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8296         * modules/getpagesize (Files): Add lib/getpagesize.c.
8297         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8299         REPLACE_GETPAGESIZE.
8300         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8301
8302 2007-12-25  Bruno Haible  <bruno@clisp.org>
8303
8304         * modules/localcharset (Notice): New field.
8305         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8306         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8307
8308 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8309             Bruno Haible  <bruno@clisp.org>
8310
8311         Avoid using the syntax symbol() in formatted documentation.
8312         * MODULES.html.sh (func_module): When replacing symbol() with a
8313         hyperlink, remove the parentheses. Show an error if some remain.
8314         Recognize and render the '...' syntax.
8315         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8316         Rework. Add paragraph about GCC's inlining.
8317         * doc/alloca.texi: Likewise.
8318         * doc/error.texi: Remove parentheses from symbol reference.
8319         * doc/gnulib-intro.texi: Likewise.
8320         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8321         * modules/fnmatch (Description): Reword to say "the ... function".
8322         * modules/full-read (Description): Likewise.
8323         * modules/full-write (Description): Likewise.
8324         * modules/safe-read (Description): Likewise.
8325         * modules/safe-write (Description): Likewise.
8326         * modules/strchrnul (Description): Likewise.
8327         * modules/trim (Description): Likewise.
8328         * modules/error (Description): Remove parentheses from symbol
8329         references.
8330         * modules/verror (Description): Likewise.
8331         Reported by Karl Berry.
8332
8333 2007-12-25  Bruno Haible  <bruno@clisp.org>
8334
8335         Fixup after 2007-10-16 commit.
8336         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8337
8338 2007-12-24  Bruno Haible  <bruno@clisp.org>
8339
8340         Make --enable-relocatable work with DESTDIR.
8341         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8342         to compute installdir from destprog.
8343         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8344         also set the RELOC_DESTDIR variable.
8345         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8346
8347 2007-12-24  Bruno Haible  <bruno@clisp.org>
8348
8349         Fix link error due to xalloc_die().
8350         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8351         of xreadlink.
8352         * lib/relocwrapper.c: Update comments.
8353         * build-aux/install-reloc: Remove xreadlink.c from file list.
8354         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8355         xreadlink.c.
8356         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8357
8358 2007-12-24  Bruno Haible  <bruno@clisp.org>
8359
8360         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8361         * lib/setenv.h: Remove file.
8362         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8363         lib/setenv.h.
8364         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8365         (Depends-on): Add stdlib.
8366         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8367         gl_FUNC_UNSETENV.
8368         (Include): Replace setenv.h with <stdlib.h>.
8369         * modules/unsetenv: New file.
8370         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8371         * lib/unsetenv.c: Include <stdlib.h> first.
8372         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8373         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8374         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8375         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8376         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8377         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8379         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8380         * doc/functions/unsetenv.texi: Update.
8381         * modules/xsetenv (Depends-on): Add unsetenv.
8382         * modules/getdate (Depends-on): Likewise.
8383         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8384         * lib/xsetenv.c: Don't include setenv.h.
8385         * lib/getdate.y: Likewise.
8386         * lib/relocwrapper.c: Likewise.
8387         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8388         (Depends-on): Add stdlib.
8389         * NEWS: Mention the changes.
8390         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8391
8392 2007-12-23  Bruno Haible  <bruno@clisp.org>
8393
8394         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8395         indentation.
8396
8397 2007-12-23  Bruno Haible  <bruno@clisp.org>
8398
8399         * lib/c-strcasestr.c: Add more comments.
8400         * lib/c-strstr.c: Likewise.
8401         * lib/mbscasestr.c: Likewise.
8402         * lib/mbsstr.c: Likewise.
8403         * lib/strcasestr.c: Likewise.
8404         * lib/memmem.c: Likewise.
8405
8406 2007-12-23  Bruno Haible  <bruno@clisp.org>
8407
8408         * tests/test-memmem.c: Include <string.h> first.
8409
8410 2007-12-22  Bruno Haible  <bruno@clisp.org>
8411
8412         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8413         the contents of $testsbase.
8414         Reported by Ralf Wildenhues.
8415
8416 2007-12-22  Bruno Haible  <bruno@clisp.org>
8417
8418         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8419         two variables local_ldadd_before, local_ldadd_last.
8420
8421 2007-12-20  Eric Blake  <ebb9@byu.net>
8422
8423         Work around circular library issue when cross-compiling.
8424         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8425         that progname.o does not need to pull in rpl_memcmp.
8426
8427 2007-12-19  Eric Blake  <ebb9@byu.net>
8428
8429         Fix memmem to avoid O(n^2) worst-case complexity.
8430         * lib/memmem.c (knuth_morris_pratt): New function.
8431         (memmem): Use it if first few naive iterations fail.
8432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8433         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8434         * modules/memchr (License): Likewise.
8435         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8436         malloca.
8437         * tests/test-memmem.c: Rewrite, borrowing ideas from
8438         test-mbsstr1.c; the old version wouldn't even compile!
8439         * modules/memmem-tests: New file.
8440         * lib/string.in.h (rpl_memmem): Add declaration.
8441         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8443         REPLACE_MEMMEM.
8444
8445 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8446
8447         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8448         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8449         before any system include files, and undef after them all.  This
8450         should fix a problem on VMS reported by John E. Malmberg in
8451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8452
8453 2007-12-17  Eric Blake  <ebb9@byu.net>
8454
8455         Revert addition of verify, for BSD/OS.
8456         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8457         can't handle large files, for the sake of obsolete platforms.
8458         * modules/fseeko (Depends-on): Remove verify.
8459         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8460         * doc/functions/ftello.texi (ftello): Likewise.
8461         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8462         Reported by Larry Jones.
8463
8464 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8465
8466         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8467         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8468
8469 2007-12-17  Jim Meyering  <meyering@redhat.com>
8470
8471         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8472         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8473         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8474         * modules/getcwd (Depends-on): Add openat.
8475         Reported by Petr Salinger.
8476
8477 2007-12-17  Bruno Haible  <bruno@clisp.org>
8478
8479         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8480         avoid a segmentation fault of the configure test on x86_64 systems.
8481
8482 2007-12-15  Jim Meyering  <meyering@redhat.com>
8483
8484         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8485
8486 2007-12-13  Eric Blake  <ebb9@byu.net>
8487
8488         Another fseek test.
8489         * tests/test-fseek.c (main): Also test ungetc handling.
8490         * tests/test-fseeko.c (main): Likewise.
8491         * modules/fseeko (Depends-on): Add verify.
8492         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8493         large.
8494         Reported by Larry Jones.
8495
8496         Fix fseeko on mingw.
8497         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8498         seek.
8499
8500         Beef up fseek tests.
8501         * tests/test-fseek.c (main): Also test eof handling.
8502         * tests/test-fseeko.c (main): Likewise.
8503         Reported by Larry Jones.
8504
8505 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8506
8507         Fix fseeko on BSD-based platforms.
8508         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8509         successful seek.
8510
8511 2007-12-12  Eric Blake  <ebb9@byu.net>
8512
8513         Allow circular dependency of separate libtests.a
8514         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8515         when use_libtests.
8516
8517 2007-12-11  Eric Blake  <ebb9@byu.net>
8518
8519         Fix bug with -0.0L in previous patch.
8520         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8521         * tests/test-isnan.c (main): Also test on zeroes.
8522         * tests/test-isnanf.c (main): Likewise.
8523         * tests/test-isnanl.h (main): Likewise.
8524
8525         Detect pseudo-denormals on x86 even when cross-compiling.
8526         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8527         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8528         invalid bit patterns that happen to satisfy ==.
8529
8530         Avoid link failures with separate libtests.a.
8531         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8532         last, to satisfy circular dependencies.
8533
8534 2007-12-11  Eric Blake  <ebb9@byu.net>
8535         and Bruno Haible  <bruno@clisp.org>
8536
8537         Fix OpenBSD 4.0 <float.h> handling of long double.
8538         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8539         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8540         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8541
8542 2007-12-11  Jim Meyering  <meyering@redhat.com>
8543
8544         * users.txt: Add libvirt.
8545
8546         Support versions of autoconf prior to 2.59c.
8547         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8548         if it is not already defined.
8549
8550 2007-12-09  Bruno Haible  <bruno@clisp.org>
8551
8552         Let 'gnulib-tool --import' collect sources needed for the tests in
8553         tests/ rather than in lib/.
8554         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8555         argument. If true, add rules to generate libtests.a, and put libtests.a
8556         into $(LDADD). Consider source files in subdirectories and set
8557         uses_subdirs.
8558         (func_emit_initmacro_start, func_emit_initmacro_end,
8559         func_emit_initmacro_done): Pass all arguments explicitly.
8560         (func_import): Determine two module lists main_modules,
8561         testsrelated_modules. Determine use_libtests. Determine two variables
8562         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8563         instead of just sed_transform_lib_file. Determine two variables
8564         main_files and testsrelated_files. Compute 'files' as the union of
8565         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8566         func_add_or_update. In the generated gnulib-comp.m4, collect the
8567         object files for tests/ in different variables than those for lib/.
8568         Substitute LIBTESTS_LIBDEPS.
8569         (func_create_testdir): Combine the uses_subdirs results from
8570         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8571
8572 2007-12-09  Bruno Haible  <bruno@clisp.org>
8573
8574         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8575         the build-aux directory.
8576
8577 2007-12-09  Bruno Haible  <bruno@clisp.org>
8578
8579         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8580         introduced on 2006-09-09.
8581
8582 2007-12-07  Jim Meyering  <meyering@redhat.com>
8583
8584         Let these macros work also with autoconf-2.59.
8585         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8586         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8587         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8588
8589 2007-12-06  Jim Meyering  <meyering@redhat.com>
8590
8591         Avoid a configure-time syntax error in gl_FUNC_ACL.
8592         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8593         function in each branch, before testing the cache variable.
8594
8595 2007-12-04  Eric Blake  <ebb9@byu.net>
8596
8597         Make scripts executable.
8598         * build-aux/config.guess: Add execute permissions.
8599         * build-aux/config.sub: Likewise.
8600         * build-aux/gendocs.sh: Likewise.
8601
8602         Fix frexp on mingw.
8603         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8604         cross-compiling.
8605         * doc/functions/frexp.texi (frexp): Document the bug.
8606
8607         Make cygwin fseeko check more reliable.
8608         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8609         version numbers, rather than unrelated feature check.
8610         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8611         * doc/functions/ftello.texi (ftello): Likewise.
8612         Reported by Bruno Haible.
8613
8614         * m4/strerror.m4: Bump version number.
8615
8616 2007-12-03  Bruno Haible  <bruno@clisp.org>
8617
8618         * doc/functions/mprotect.texi: Mention the mingw problem.
8619
8620 2007-12-03  Eric Blake  <ebb9@byu.net>
8621
8622         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8623         REPLACE_STRERROR is initialized before this macro.
8624
8625 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8628         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8629         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8630         put -lsec in even for programs other than 'ls'.  This fixes a problem
8631         for gettext reported by Bruno Haible in
8632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8633         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8634         Add support for Solaris 10.  This isn't efficient, but should get the
8635         job done for now.
8636
8637 2007-12-03  James Youngman  <jay@gnu.org>
8638
8639         * doc/regexprops-generic.texi: change "an close-group" to "a
8640         close-group" and "illegal" to "not allowed".
8641
8642 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8643
8644         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8645         pr_byname.h. Needed for the rare case when the maintainer has done
8646         "make maintainer-clean" in the source directory and then attempts a
8647         build outside the source directory.
8648         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8649         scripts_byname.h.
8650
8651 2007-12-02  Martin Lambers <marlam@marlam.de>
8652             Bruno Haible  <bruno@clisp.org>
8653
8654         * lib/getpagesize.h: Remove file.
8655         * lib/unistd.in.h: Include declaration of getpagesize here.
8656         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8657         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8658         HAVE_SYS_PARAM_H.
8659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8660         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8661         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8662         (Depends-on): Add unistd.
8663         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8664         (Include): Use <unistd.h> instead of getpagesize.h.
8665         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8666         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8667         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8668         gl_GETPAGESIZE invocation, already handled by module dependency.
8669         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8670
8671 2007-12-02  Bruno Haible  <bruno@clisp.org>
8672
8673         * modules/strings-tests: New file.
8674         * tests/test-strings.c: New file.
8675
8676         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8677         * lib/strings.in.h: New file.
8678         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8679         * m4/strings_h.m4: New file.
8680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8681         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8682         * modules/strings: New file.
8683         * modules/string (Makefile.am): Update.
8684         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8685         Reported by Karl Berry.
8686
8687 2007-12-01  Eric Blake  <ebb9@byu.net>
8688
8689         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8690         accomodate fix in cygwin 1.5.25.
8691
8692 2007-12-01  Jim Meyering  <meyering@redhat.com>
8693
8694         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8695         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8696         that would inhibit utf8-optimization of a regexp containing line-
8697         or buffer-anchors, e.g., `^', `$'.
8698
8699 2007-11-30  Bruno Haible  <bruno@clisp.org>
8700
8701         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8702         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8703         glthread_recursive_lock_init.
8704         * lib/lock.c (glthread_recursive_lock_init)
8705         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8706         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8707
8708 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8709
8710         New function qset_acl, like set_acl but with syscall semantics.
8711         * lib/acl.h (qset_acl): New decl.
8712         * lib/acl.c (qset_acl): New function.
8713         (set_acl): Use new function.  Use more-consistent diagnostics.
8714
8715 2007-11-28  Jim Meyering  <meyering@redhat.com>
8716
8717         * modules/physmem (License): Change from GPL to LGPLv2+.
8718
8719 2007-11-26  Bruno Haible  <bruno@clisp.org>
8720
8721         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8722         'long double' type has excess precision.
8723         Reported by Jim Meyering in
8724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8725
8726 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8727
8728         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8729         Sync from <http://gnu.org/licenses>.
8730         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8731         with license text from same location.
8732         * doc/maintain.texi, doc/standards.texi:  Sync from
8733         <http://savannah.gnu.org/projects/gnustandards>.
8734
8735 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
8736         and Jim Meyering  <meyering@redhat.com>
8737
8738         Adjust getdate' grammar to accept a slightly more regular language.
8739         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8740         Before, the former was rejected.
8741         * lib/getdate.y (digits_to_date_time): New function, factored
8742         out of ...
8743         (number): ...here.  Just call digits_to_date_time.
8744         (hybrid): New non-terminal to handle an <unsigned number,
8745         signed relative offset> sequence consistently.
8746
8747 2007-11-18  Jim Meyering  <meyering@redhat.com>
8748
8749         Pull my changes from coreutils:
8750         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8751         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8752         use of $gnulib_tool_option_extras, so that it's separated from the
8753         preceding argument.
8754
8755         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8756         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8757         parent destination directories before copying a file into place.
8758
8759 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8760
8761         bootstrap: work also with 4-argument variant of AC_INIT
8762         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8763
8764 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8765
8766         Port test-getaddrinfo to Solaris.
8767         Problem reported by Bruno Haible in
8768         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8769         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8770         explanation of setting 'hints'.
8771         Don't reject an implementation merely because it returns EAI_SERVICE.
8772         (EAI_SERVICE): Define to 0 if not defined.
8773
8774 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8775
8776         The license of gnu-make and posix-shell is now "GPLed build tool".
8777         * modules/gnu-make (License): Likewise.
8778         * modules/posix-shell (License): Likewise.
8779
8780         New module posix-shell, for determining a POSIX shell
8781         or perhaps something that is close enough to a POSIX shell.
8782         * m4/posix-shell.m4: New file.
8783         * modules/posix-shell: New file.
8784
8785         * MODULES.html.sh: Mention new module.
8786
8787         New module gnu-make, for determining whether we're using GNU Make.
8788         * m4/gnu-make.m4: New file.
8789         * modules/gnu-make: New file.
8790         * MODULES.html.sh: Mention new module.
8791
8792 2007-11-14  Jim Meyering  <meyering@redhat.com>
8793
8794         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8795         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8796         use this macro to create a function _definition_.
8797         Remove useless "#undef ARGMATCH_DIE".
8798
8799 2007-11-14  Bruno Haible  <bruno@clisp.org>
8800
8801         * lib/config.charset: Update for OpenBSD 4.1.
8802         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8803
8804 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8805
8806         Document 64-bit #if problems in stdint.texi.
8807         * doc/headers/stdint.texi (stdint.h): Mention problems with
8808         64-bit-#if, and how to work around them.
8809
8810         Don't insist on 'long long int' support in the preprocessor.  It
8811         breaks too many things.  For example, PRIdMAX still uses a 'long
8812         long int' format with the latest Sun compiler, even though
8813         HAVE_LONG_LONG_INT isn't defined due to that compiler's
8814         preprocessor problem.  This causes the latest coreutils to dump
8815         core on Solaris 10 sparc with the Sun C compiler.
8816         Instead, fix the 2007-10-16 problem in a different way, by evaluating
8817         the troublesome expressions at configure-time, not at #if-time.
8818         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8819         preprocessor.
8820         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8821         compile-time C checks, done at 'configure'-time.
8822         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8823         * modules/inttypes (Makefile): Substitute the new symbols that
8824         gl_INTTYPES_H now generates.
8825         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8826
8827 2007-11-12  Bruno Haible  <bruno@clisp.org>
8828
8829         Tests for Unicode character classification functions.
8830
8831         * modules/unictype/bidicategory-byname-tests: New file.
8832         * modules/unictype/bidicategory-name-tests: New file.
8833         * modules/unictype/bidicategory-of-tests: New file.
8834         * modules/unictype/bidicategory-test-tests: New file.
8835         * modules/unictype/block-list-tests: New file.
8836         * modules/unictype/block-of-tests: New file.
8837         * modules/unictype/block-test-tests: New file.
8838         * modules/unictype/category-C-tests: New file.
8839         * modules/unictype/category-Cc-tests: New file.
8840         * modules/unictype/category-Cf-tests: New file.
8841         * modules/unictype/category-Cn-tests: New file.
8842         * modules/unictype/category-Co-tests: New file.
8843         * modules/unictype/category-Cs-tests: New file.
8844         * modules/unictype/category-L-tests: New file.
8845         * modules/unictype/category-Ll-tests: New file.
8846         * modules/unictype/category-Lm-tests: New file.
8847         * modules/unictype/category-Lo-tests: New file.
8848         * modules/unictype/category-Lt-tests: New file.
8849         * modules/unictype/category-Lu-tests: New file.
8850         * modules/unictype/category-M-tests: New file.
8851         * modules/unictype/category-Mc-tests: New file.
8852         * modules/unictype/category-Me-tests: New file.
8853         * modules/unictype/category-Mn-tests: New file.
8854         * modules/unictype/category-N-tests: New file.
8855         * modules/unictype/category-Nd-tests: New file.
8856         * modules/unictype/category-Nl-tests: New file.
8857         * modules/unictype/category-No-tests: New file.
8858         * modules/unictype/category-P-tests: New file.
8859         * modules/unictype/category-Pc-tests: New file.
8860         * modules/unictype/category-Pd-tests: New file.
8861         * modules/unictype/category-Pe-tests: New file.
8862         * modules/unictype/category-Pf-tests: New file.
8863         * modules/unictype/category-Pi-tests: New file.
8864         * modules/unictype/category-Po-tests: New file.
8865         * modules/unictype/category-Ps-tests: New file.
8866         * modules/unictype/category-S-tests: New file.
8867         * modules/unictype/category-Sc-tests: New file.
8868         * modules/unictype/category-Sk-tests: New file.
8869         * modules/unictype/category-Sm-tests: New file.
8870         * modules/unictype/category-So-tests: New file.
8871         * modules/unictype/category-Z-tests: New file.
8872         * modules/unictype/category-Zl-tests: New file.
8873         * modules/unictype/category-Zp-tests: New file.
8874         * modules/unictype/category-Zs-tests: New file.
8875         * modules/unictype/category-and-not-tests: New file.
8876         * modules/unictype/category-and-tests: New file.
8877         * modules/unictype/category-byname-tests: New file.
8878         * modules/unictype/category-name-tests: New file.
8879         * modules/unictype/category-none-tests: New file.
8880         * modules/unictype/category-of-tests: New file.
8881         * modules/unictype/category-or-tests: New file.
8882         * modules/unictype/category-test-withtable-tests: New file.
8883         * modules/unictype/combining-class-tests: New file.
8884         * modules/unictype/ctype-alnum-tests: New file.
8885         * modules/unictype/ctype-alpha-tests: New file.
8886         * modules/unictype/ctype-blank-tests: New file.
8887         * modules/unictype/ctype-cntrl-tests: New file.
8888         * modules/unictype/ctype-digit-tests: New file.
8889         * modules/unictype/ctype-graph-tests: New file.
8890         * modules/unictype/ctype-lower-tests: New file.
8891         * modules/unictype/ctype-print-tests: New file.
8892         * modules/unictype/ctype-punct-tests: New file.
8893         * modules/unictype/ctype-space-tests: New file.
8894         * modules/unictype/ctype-upper-tests: New file.
8895         * modules/unictype/ctype-xdigit-tests: New file.
8896         * modules/unictype/decimal-digit-tests: New file.
8897         * modules/unictype/digit-tests: New file.
8898         * modules/unictype/mirror-tests: New file.
8899         * modules/unictype/numeric-tests: New file.
8900         * modules/unictype/property-alphabetic-tests: New file.
8901         * modules/unictype/property-ascii-hex-digit-tests: New file.
8902         * modules/unictype/property-bidi-arabic-digit-tests: New file.
8903         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8904         * modules/unictype/property-bidi-block-separator-tests: New file.
8905         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8906         * modules/unictype/property-bidi-common-separator-tests: New file.
8907         * modules/unictype/property-bidi-control-tests: New file.
8908         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8909         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8910         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8911         * modules/unictype/property-bidi-european-digit-tests: New file.
8912         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8913         * modules/unictype/property-bidi-left-to-right-tests: New file.
8914         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8915         * modules/unictype/property-bidi-other-neutral-tests: New file.
8916         * modules/unictype/property-bidi-pdf-tests: New file.
8917         * modules/unictype/property-bidi-segment-separator-tests: New file.
8918         * modules/unictype/property-bidi-whitespace-tests: New file.
8919         * modules/unictype/property-byname-tests: New file.
8920         * modules/unictype/property-combining-tests: New file.
8921         * modules/unictype/property-composite-tests: New file.
8922         * modules/unictype/property-currency-symbol-tests: New file.
8923         * modules/unictype/property-dash-tests: New file.
8924         * modules/unictype/property-decimal-digit-tests: New file.
8925         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8926         * modules/unictype/property-deprecated-tests: New file.
8927         * modules/unictype/property-diacritic-tests: New file.
8928         * modules/unictype/property-extender-tests: New file.
8929         * modules/unictype/property-format-control-tests: New file.
8930         * modules/unictype/property-grapheme-base-tests: New file.
8931         * modules/unictype/property-grapheme-extend-tests: New file.
8932         * modules/unictype/property-grapheme-link-tests: New file.
8933         * modules/unictype/property-hex-digit-tests: New file.
8934         * modules/unictype/property-hyphen-tests: New file.
8935         * modules/unictype/property-id-continue-tests: New file.
8936         * modules/unictype/property-id-start-tests: New file.
8937         * modules/unictype/property-ideographic-tests: New file.
8938         * modules/unictype/property-ids-binary-operator-tests: New file.
8939         * modules/unictype/property-ids-trinary-operator-tests: New file.
8940         * modules/unictype/property-ignorable-control-tests: New file.
8941         * modules/unictype/property-iso-control-tests: New file.
8942         * modules/unictype/property-join-control-tests: New file.
8943         * modules/unictype/property-left-of-pair-tests: New file.
8944         * modules/unictype/property-line-separator-tests: New file.
8945         * modules/unictype/property-logical-order-exception-tests: New file.
8946         * modules/unictype/property-lowercase-tests: New file.
8947         * modules/unictype/property-math-tests: New file.
8948         * modules/unictype/property-non-break-tests: New file.
8949         * modules/unictype/property-not-a-character-tests: New file.
8950         * modules/unictype/property-numeric-tests: New file.
8951         * modules/unictype/property-other-alphabetic-tests: New file.
8952         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8953         * modules/unictype/property-other-grapheme-extend-tests: New file.
8954         * modules/unictype/property-other-id-continue-tests: New file.
8955         * modules/unictype/property-other-id-start-tests: New file.
8956         * modules/unictype/property-other-lowercase-tests: New file.
8957         * modules/unictype/property-other-math-tests: New file.
8958         * modules/unictype/property-other-uppercase-tests: New file.
8959         * modules/unictype/property-paired-punctuation-tests: New file.
8960         * modules/unictype/property-paragraph-separator-tests: New file.
8961         * modules/unictype/property-pattern-syntax-tests: New file.
8962         * modules/unictype/property-pattern-white-space-tests: New file.
8963         * modules/unictype/property-private-use-tests: New file.
8964         * modules/unictype/property-punctuation-tests: New file.
8965         * modules/unictype/property-quotation-mark-tests: New file.
8966         * modules/unictype/property-radical-tests: New file.
8967         * modules/unictype/property-sentence-terminal-tests: New file.
8968         * modules/unictype/property-soft-dotted-tests: New file.
8969         * modules/unictype/property-space-tests: New file.
8970         * modules/unictype/property-terminal-punctuation-tests: New file.
8971         * modules/unictype/property-test-tests: New file.
8972         * modules/unictype/property-titlecase-tests: New file.
8973         * modules/unictype/property-unassigned-code-value-tests: New file.
8974         * modules/unictype/property-unified-ideograph-tests: New file.
8975         * modules/unictype/property-uppercase-tests: New file.
8976         * modules/unictype/property-variation-selector-tests: New file.
8977         * modules/unictype/property-white-space-tests: New file.
8978         * modules/unictype/property-xid-continue-tests: New file.
8979         * modules/unictype/property-xid-start-tests: New file.
8980         * modules/unictype/property-zero-width-tests: New file.
8981         * modules/unictype/scripts-tests: New file.
8982         * modules/unictype/syntax-c-ident-tests: New file.
8983         * modules/unictype/syntax-c-whitespace-tests: New file.
8984         * modules/unictype/syntax-java-ident-tests: New file.
8985         * modules/unictype/syntax-java-whitespace-tests: New file.
8986         * tests/unictype/test-bidi_byname.c: New file.
8987         * tests/unictype/test-bidi_name.c: New file.
8988         * tests/unictype/test-bidi_of.c: New file.
8989         * tests/unictype/test-bidi_test.c: New file.
8990         * tests/unictype/test-block_list.c: New file.
8991         * tests/unictype/test-block_of.c: New file.
8992         * tests/unictype/test-block_test.c: New file.
8993         * tests/unictype/test-categ_and.c: New file.
8994         * tests/unictype/test-categ_and_not.c: New file.
8995         * tests/unictype/test-categ_byname.c: New file.
8996         * tests/unictype/test-categ_name.c: New file.
8997         * tests/unictype/test-categ_none.c: New file.
8998         * tests/unictype/test-categ_of.c: New file.
8999         * tests/unictype/test-categ_or.c: New file.
9000         * tests/unictype/test-categ_test_withtable.c: New file.
9001         * tests/unictype/test-combining.c: New file.
9002         * tests/unictype/test-decdigit.c: New file.
9003         * tests/unictype/test-digit.c: New file.
9004         * tests/unictype/test-mirror.c: New file.
9005         * tests/unictype/test-numeric.c: New file.
9006         * tests/unictype/test-pr_byname.c: New file.
9007         * tests/unictype/test-pr_test.c: New file.
9008         * tests/unictype/test-predicate-part1.h: New file.
9009         * tests/unictype/test-predicate-part2.h: New file.
9010         * tests/unictype/test-scripts.c: New file.
9011         * tests/unictype/test-sy_c_ident.c: New file.
9012         * tests/unictype/test-sy_java_ident.c: New file.
9013
9014         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9015         for Unicode 5.0.0.
9016         * tests/unictype/test-categ_Cc.c: Likewise.
9017         * tests/unictype/test-categ_Cf.c: Likewise.
9018         * tests/unictype/test-categ_Cn.c: Likewise.
9019         * tests/unictype/test-categ_Co.c: Likewise.
9020         * tests/unictype/test-categ_Cs.c: Likewise.
9021         * tests/unictype/test-categ_L.c: Likewise.
9022         * tests/unictype/test-categ_Ll.c: Likewise.
9023         * tests/unictype/test-categ_Lm.c: Likewise.
9024         * tests/unictype/test-categ_Lo.c: Likewise.
9025         * tests/unictype/test-categ_Lt.c: Likewise.
9026         * tests/unictype/test-categ_Lu.c: Likewise.
9027         * tests/unictype/test-categ_M.c: Likewise.
9028         * tests/unictype/test-categ_Mc.c: Likewise.
9029         * tests/unictype/test-categ_Me.c: Likewise.
9030         * tests/unictype/test-categ_Mn.c: Likewise.
9031         * tests/unictype/test-categ_N.c: Likewise.
9032         * tests/unictype/test-categ_Nd.c: Likewise.
9033         * tests/unictype/test-categ_Nl.c: Likewise.
9034         * tests/unictype/test-categ_No.c: Likewise.
9035         * tests/unictype/test-categ_P.c: Likewise.
9036         * tests/unictype/test-categ_Pc.c: Likewise.
9037         * tests/unictype/test-categ_Pd.c: Likewise.
9038         * tests/unictype/test-categ_Pe.c: Likewise.
9039         * tests/unictype/test-categ_Pf.c: Likewise.
9040         * tests/unictype/test-categ_Pi.c: Likewise.
9041         * tests/unictype/test-categ_Po.c: Likewise.
9042         * tests/unictype/test-categ_Ps.c: Likewise.
9043         * tests/unictype/test-categ_S.c: Likewise.
9044         * tests/unictype/test-categ_Sc.c: Likewise.
9045         * tests/unictype/test-categ_Sk.c: Likewise.
9046         * tests/unictype/test-categ_Sm.c: Likewise.
9047         * tests/unictype/test-categ_So.c: Likewise.
9048         * tests/unictype/test-categ_Z.c: Likewise.
9049         * tests/unictype/test-categ_Zl.c: Likewise.
9050         * tests/unictype/test-categ_Zp.c: Likewise.
9051         * tests/unictype/test-categ_Zs.c: Likewise.
9052         * tests/unictype/test-ctype_alnum.c: Likewise.
9053         * tests/unictype/test-ctype_alpha.c: Likewise.
9054         * tests/unictype/test-ctype_blank.c: Likewise.
9055         * tests/unictype/test-ctype_cntrl.c: Likewise.
9056         * tests/unictype/test-ctype_digit.c: Likewise.
9057         * tests/unictype/test-ctype_graph.c: Likewise.
9058         * tests/unictype/test-ctype_lower.c: Likewise.
9059         * tests/unictype/test-ctype_print.c: Likewise.
9060         * tests/unictype/test-ctype_punct.c: Likewise.
9061         * tests/unictype/test-ctype_space.c: Likewise.
9062         * tests/unictype/test-ctype_upper.c: Likewise.
9063         * tests/unictype/test-ctype_xdigit.c: Likewise.
9064         * tests/unictype/test-decdigit.h: Likewise.
9065         * tests/unictype/test-digit.h: Likewise.
9066         * tests/unictype/test-numeric.h: Likewise.
9067         * tests/unictype/test-pr_alphabetic.c: Likewise.
9068         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9069         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9070         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9071         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9072         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9073         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9074         * tests/unictype/test-pr_bidi_control.c: Likewise.
9075         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9076         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9077         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9078         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9079         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9080         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9081         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9082         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9083         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9084         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9085         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9086         * tests/unictype/test-pr_combining.c: Likewise.
9087         * tests/unictype/test-pr_composite.c: Likewise.
9088         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9089         * tests/unictype/test-pr_dash.c: Likewise.
9090         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9091         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9092         * tests/unictype/test-pr_deprecated.c: Likewise.
9093         * tests/unictype/test-pr_diacritic.c: Likewise.
9094         * tests/unictype/test-pr_extender.c: Likewise.
9095         * tests/unictype/test-pr_format_control.c: Likewise.
9096         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9097         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9098         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9099         * tests/unictype/test-pr_hex_digit.c: Likewise.
9100         * tests/unictype/test-pr_hyphen.c: Likewise.
9101         * tests/unictype/test-pr_id_continue.c: Likewise.
9102         * tests/unictype/test-pr_id_start.c: Likewise.
9103         * tests/unictype/test-pr_ideographic.c: Likewise.
9104         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9105         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9106         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9107         * tests/unictype/test-pr_iso_control.c: Likewise.
9108         * tests/unictype/test-pr_join_control.c: Likewise.
9109         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9110         * tests/unictype/test-pr_line_separator.c: Likewise.
9111         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9112         * tests/unictype/test-pr_lowercase.c: Likewise.
9113         * tests/unictype/test-pr_math.c: Likewise.
9114         * tests/unictype/test-pr_non_break.c: Likewise.
9115         * tests/unictype/test-pr_not_a_character.c: Likewise.
9116         * tests/unictype/test-pr_numeric.c: Likewise.
9117         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9118         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9119         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9120         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9121         * tests/unictype/test-pr_other_id_start.c: Likewise.
9122         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9123         * tests/unictype/test-pr_other_math.c: Likewise.
9124         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9125         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9126         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9127         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9128         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9129         * tests/unictype/test-pr_private_use.c: Likewise.
9130         * tests/unictype/test-pr_punctuation.c: Likewise.
9131         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9132         * tests/unictype/test-pr_radical.c: Likewise.
9133         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9134         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9135         * tests/unictype/test-pr_space.c: Likewise.
9136         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9137         * tests/unictype/test-pr_titlecase.c: Likewise.
9138         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9139         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9140         * tests/unictype/test-pr_uppercase.c: Likewise.
9141         * tests/unictype/test-pr_variation_selector.c: Likewise.
9142         * tests/unictype/test-pr_white_space.c: Likewise.
9143         * tests/unictype/test-pr_xid_continue.c: Likewise.
9144         * tests/unictype/test-pr_xid_start.c: Likewise.
9145         * tests/unictype/test-pr_zero_width.c: Likewise.
9146         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9147         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9148
9149 2007-11-12  Bruno Haible  <bruno@clisp.org>
9150
9151         Unicode character classification functions.
9152         * lib/unictype.h: New file.
9153         * modules/unictype/base: New file.
9154         * modules/unictype/category-L: New file.
9155         * modules/unictype/category-Lu: New file.
9156         * modules/unictype/category-Ll: New file.
9157         * modules/unictype/category-Lt: New file.
9158         * modules/unictype/category-Lm: New file.
9159         * modules/unictype/category-Lo: New file.
9160         * modules/unictype/category-M: New file.
9161         * modules/unictype/category-Mn: New file.
9162         * modules/unictype/category-Mc: New file.
9163         * modules/unictype/category-Me: New file.
9164         * modules/unictype/category-N: New file.
9165         * modules/unictype/category-Nd: New file.
9166         * modules/unictype/category-Nl: New file.
9167         * modules/unictype/category-No: New file.
9168         * modules/unictype/category-P: New file.
9169         * modules/unictype/category-Pc: New file.
9170         * modules/unictype/category-Pd: New file.
9171         * modules/unictype/category-Ps: New file.
9172         * modules/unictype/category-Pe: New file.
9173         * modules/unictype/category-Pi: New file.
9174         * modules/unictype/category-Pf: New file.
9175         * modules/unictype/category-Po: New file.
9176         * modules/unictype/category-S: New file.
9177         * modules/unictype/category-Sm: New file.
9178         * modules/unictype/category-Sc: New file.
9179         * modules/unictype/category-Sk: New file.
9180         * modules/unictype/category-So: New file.
9181         * modules/unictype/category-Z: New file.
9182         * modules/unictype/category-Zs: New file.
9183         * modules/unictype/category-Zl: New file.
9184         * modules/unictype/category-Zp: New file.
9185         * modules/unictype/category-C: New file.
9186         * modules/unictype/category-Cc: New file.
9187         * modules/unictype/category-Cf: New file.
9188         * modules/unictype/category-Cs: New file.
9189         * modules/unictype/category-Co: New file.
9190         * modules/unictype/category-Cn: New file.
9191         * modules/unictype/category-or: New file.
9192         * modules/unictype/category-of: New file.
9193         * modules/unictype/category-test: New file.
9194         * modules/unictype/category-test-withtable: New file.
9195         * modules/unictype/category-byname: New file.
9196         * modules/unictype/category-none: New file.
9197         * modules/unictype/category-and: New file.
9198         * modules/unictype/category-and-not: New file.
9199         * modules/unictype/category-name: New file.
9200         * modules/unictype/combining-class: New file.
9201         * modules/unictype/category-all: New file.
9202         * modules/unictype/bidicategory-all: New file.
9203         * modules/unictype/bidicategory-byname: New file.
9204         * modules/unictype/bidicategory-name: New file.
9205         * modules/unictype/bidicategory-of: New file.
9206         * modules/unictype/bidicategory-test: New file.
9207         * modules/unictype/decimal-digit: New file.
9208         * modules/unictype/digit: New file.
9209         * modules/unictype/numeric: New file.
9210         * modules/unictype/mirror: New file.
9211         * modules/unictype/property-white-space: New file.
9212         * modules/unictype/property-alphabetic: New file.
9213         * modules/unictype/property-other-alphabetic: New file.
9214         * modules/unictype/property-not-a-character: New file.
9215         * modules/unictype/property-default-ignorable-code-point: New file.
9216         * modules/unictype/property-other-default-ignorable-code-point: New
9217         file.
9218         * modules/unictype/property-deprecated: New file.
9219         * modules/unictype/property-logical-order-exception: New file.
9220         * modules/unictype/property-variation-selector: New file.
9221         * modules/unictype/property-private-use: New file.
9222         * modules/unictype/property-unassigned-code-value: New file.
9223         * modules/unictype/property-uppercase: New file.
9224         * modules/unictype/property-other-uppercase: New file.
9225         * modules/unictype/property-lowercase: New file.
9226         * modules/unictype/property-other-lowercase: New file.
9227         * modules/unictype/property-titlecase: New file.
9228         * modules/unictype/property-soft-dotted: New file.
9229         * modules/unictype/property-id-start: New file.
9230         * modules/unictype/property-other-id-start: New file.
9231         * modules/unictype/property-id-continue: New file.
9232         * modules/unictype/property-other-id-continue: New file.
9233         * modules/unictype/property-xid-start: New file.
9234         * modules/unictype/property-xid-continue: New file.
9235         * modules/unictype/property-pattern-white-space: New file.
9236         * modules/unictype/property-pattern-syntax: New file.
9237         * modules/unictype/property-join-control: New file.
9238         * modules/unictype/property-grapheme-base: New file.
9239         * modules/unictype/property-grapheme-extend: New file.
9240         * modules/unictype/property-other-grapheme-extend: New file.
9241         * modules/unictype/property-grapheme-link: New file.
9242         * modules/unictype/property-bidi-control: New file.
9243         * modules/unictype/property-bidi-left-to-right: New file.
9244         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9245         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9246         * modules/unictype/property-bidi-european-digit: New file.
9247         * modules/unictype/property-bidi-eur-num-separator: New file.
9248         * modules/unictype/property-bidi-eur-num-terminator: New file.
9249         * modules/unictype/property-bidi-arabic-digit: New file.
9250         * modules/unictype/property-bidi-common-separator: New file.
9251         * modules/unictype/property-bidi-block-separator: New file.
9252         * modules/unictype/property-bidi-segment-separator: New file.
9253         * modules/unictype/property-bidi-whitespace: New file.
9254         * modules/unictype/property-bidi-non-spacing-mark: New file.
9255         * modules/unictype/property-bidi-boundary-neutral: New file.
9256         * modules/unictype/property-bidi-pdf: New file.
9257         * modules/unictype/property-bidi-embedding-or-override: New file.
9258         * modules/unictype/property-bidi-other-neutral: New file.
9259         * modules/unictype/property-hex-digit: New file.
9260         * modules/unictype/property-ascii-hex-digit: New file.
9261         * modules/unictype/property-ideographic: New file.
9262         * modules/unictype/property-unified-ideograph: New file.
9263         * modules/unictype/property-radical: New file.
9264         * modules/unictype/property-ids-binary-operator: New file.
9265         * modules/unictype/property-ids-trinary-operator: New file.
9266         * modules/unictype/property-zero-width: New file.
9267         * modules/unictype/property-space: New file.
9268         * modules/unictype/property-non-break: New file.
9269         * modules/unictype/property-iso-control: New file.
9270         * modules/unictype/property-format-control: New file.
9271         * modules/unictype/property-dash: New file.
9272         * modules/unictype/property-hyphen: New file.
9273         * modules/unictype/property-punctuation: New file.
9274         * modules/unictype/property-line-separator: New file.
9275         * modules/unictype/property-paragraph-separator: New file.
9276         * modules/unictype/property-quotation-mark: New file.
9277         * modules/unictype/property-sentence-terminal: New file.
9278         * modules/unictype/property-terminal-punctuation: New file.
9279         * modules/unictype/property-currency-symbol: New file.
9280         * modules/unictype/property-math: New file.
9281         * modules/unictype/property-other-math: New file.
9282         * modules/unictype/property-paired-punctuation: New file.
9283         * modules/unictype/property-left-of-pair: New file.
9284         * modules/unictype/property-combining: New file.
9285         * modules/unictype/property-composite: New file.
9286         * modules/unictype/property-decimal-digit: New file.
9287         * modules/unictype/property-numeric: New file.
9288         * modules/unictype/property-diacritic: New file.
9289         * modules/unictype/property-extender: New file.
9290         * modules/unictype/property-ignorable-control: New file.
9291         * modules/unictype/property-test: New file.
9292         * modules/unictype/property-byname: New file.
9293         * modules/unictype/property-all: New file.
9294         * modules/unictype/scripts: New file.
9295         * modules/unictype/scripts-all: New file.
9296         * modules/unictype/block-of: New file.
9297         * modules/unictype/block-test: New file.
9298         * modules/unictype/block-list: New file.
9299         * modules/unictype/block-all: New file.
9300         * modules/unictype/syntax-c-whitespace: New file.
9301         * modules/unictype/syntax-java-whitespace: New file.
9302         * modules/unictype/syntax-c-ident: New file.
9303         * modules/unictype/syntax-java-ident: New file.
9304         * modules/unictype/ctype-alnum: New file.
9305         * modules/unictype/ctype-alpha: New file.
9306         * modules/unictype/ctype-cntrl: New file.
9307         * modules/unictype/ctype-digit: New file.
9308         * modules/unictype/ctype-graph: New file.
9309         * modules/unictype/ctype-lower: New file.
9310         * modules/unictype/ctype-print: New file.
9311         * modules/unictype/ctype-punct: New file.
9312         * modules/unictype/ctype-space: New file.
9313         * modules/unictype/ctype-upper: New file.
9314         * modules/unictype/ctype-xdigit: New file.
9315         * modules/unictype/ctype-blank: New file.
9316         * lib/unictype/bidi_byname.c: New file.
9317         * lib/unictype/bidi_name.c: New file.
9318         * lib/unictype/bidi_of.c: New file.
9319         * lib/unictype/bidi_test.c: New file.
9320         * lib/unictype/bitmap.h: New file.
9321         * lib/unictype/block_test.c: New file.
9322         * lib/unictype/blocks.c: New file.
9323         * lib/unictype/categ_C.c: New file.
9324         * lib/unictype/categ_Cc.c: New file.
9325         * lib/unictype/categ_Cf.c: New file.
9326         * lib/unictype/categ_Cn.c: New file.
9327         * lib/unictype/categ_Co.c: New file.
9328         * lib/unictype/categ_Cs.c: New file.
9329         * lib/unictype/categ_L.c: New file.
9330         * lib/unictype/categ_Ll.c: New file.
9331         * lib/unictype/categ_Lm.c: New file.
9332         * lib/unictype/categ_Lo.c: New file.
9333         * lib/unictype/categ_Lt.c: New file.
9334         * lib/unictype/categ_Lu.c: New file.
9335         * lib/unictype/categ_M.c: New file.
9336         * lib/unictype/categ_Mc.c: New file.
9337         * lib/unictype/categ_Me.c: New file.
9338         * lib/unictype/categ_Mn.c: New file.
9339         * lib/unictype/categ_N.c: New file.
9340         * lib/unictype/categ_Nd.c: New file.
9341         * lib/unictype/categ_Nl.c: New file.
9342         * lib/unictype/categ_No.c: New file.
9343         * lib/unictype/categ_P.c: New file.
9344         * lib/unictype/categ_Pc.c: New file.
9345         * lib/unictype/categ_Pd.c: New file.
9346         * lib/unictype/categ_Pe.c: New file.
9347         * lib/unictype/categ_Pf.c: New file.
9348         * lib/unictype/categ_Pi.c: New file.
9349         * lib/unictype/categ_Po.c: New file.
9350         * lib/unictype/categ_Ps.c: New file.
9351         * lib/unictype/categ_S.c: New file.
9352         * lib/unictype/categ_Sc.c: New file.
9353         * lib/unictype/categ_Sk.c: New file.
9354         * lib/unictype/categ_Sm.c: New file.
9355         * lib/unictype/categ_So.c: New file.
9356         * lib/unictype/categ_Z.c: New file.
9357         * lib/unictype/categ_Zl.c: New file.
9358         * lib/unictype/categ_Zp.c: New file.
9359         * lib/unictype/categ_Zs.c: New file.
9360         * lib/unictype/categ_and.c: New file.
9361         * lib/unictype/categ_and_not.c: New file.
9362         * lib/unictype/categ_byname.c: New file.
9363         * lib/unictype/categ_name.c: New file.
9364         * lib/unictype/categ_none.c: New file.
9365         * lib/unictype/categ_of.c: New file.
9366         * lib/unictype/categ_or.c: New file.
9367         * lib/unictype/categ_test.c: New file.
9368         * lib/unictype/combining.c: New file.
9369         * lib/unictype/ctype_alnum.c: New file.
9370         * lib/unictype/ctype_alpha.c: New file.
9371         * lib/unictype/ctype_blank.c: New file.
9372         * lib/unictype/ctype_cntrl.c: New file.
9373         * lib/unictype/ctype_digit.c: New file.
9374         * lib/unictype/ctype_graph.c: New file.
9375         * lib/unictype/ctype_lower.c: New file.
9376         * lib/unictype/ctype_print.c: New file.
9377         * lib/unictype/ctype_punct.c: New file.
9378         * lib/unictype/ctype_space.c: New file.
9379         * lib/unictype/ctype_upper.c: New file.
9380         * lib/unictype/ctype_xdigit.c: New file.
9381         * lib/unictype/decdigit.c: New file.
9382         * lib/unictype/digit.c: New file.
9383         * lib/unictype/identsyntaxmap.h: New file.
9384         * lib/unictype/mirror.c: New file.
9385         * lib/unictype/numeric.c: New file.
9386         * lib/unictype/pr_alphabetic.c: New file.
9387         * lib/unictype/pr_ascii_hex_digit.c: New file.
9388         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9389         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9390         * lib/unictype/pr_bidi_block_separator.c: New file.
9391         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9392         * lib/unictype/pr_bidi_common_separator.c: New file.
9393         * lib/unictype/pr_bidi_control.c: New file.
9394         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9395         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9396         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9397         * lib/unictype/pr_bidi_european_digit.c: New file.
9398         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9399         * lib/unictype/pr_bidi_left_to_right.c: New file.
9400         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9401         * lib/unictype/pr_bidi_other_neutral.c: New file.
9402         * lib/unictype/pr_bidi_pdf.c: New file.
9403         * lib/unictype/pr_bidi_segment_separator.c: New file.
9404         * lib/unictype/pr_bidi_whitespace.c: New file.
9405         * lib/unictype/pr_byname.c: New file.
9406         * lib/unictype/pr_byname.gperf: New file.
9407         * lib/unictype/pr_combining.c: New file.
9408         * lib/unictype/pr_composite.c: New file.
9409         * lib/unictype/pr_currency_symbol.c: New file.
9410         * lib/unictype/pr_dash.c: New file.
9411         * lib/unictype/pr_decimal_digit.c: New file.
9412         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9413         * lib/unictype/pr_deprecated.c: New file.
9414         * lib/unictype/pr_diacritic.c: New file.
9415         * lib/unictype/pr_extender.c: New file.
9416         * lib/unictype/pr_format_control.c: New file.
9417         * lib/unictype/pr_grapheme_base.c: New file.
9418         * lib/unictype/pr_grapheme_extend.c: New file.
9419         * lib/unictype/pr_grapheme_link.c: New file.
9420         * lib/unictype/pr_hex_digit.c: New file.
9421         * lib/unictype/pr_hyphen.c: New file.
9422         * lib/unictype/pr_id_continue.c: New file.
9423         * lib/unictype/pr_id_start.c: New file.
9424         * lib/unictype/pr_ideographic.c: New file.
9425         * lib/unictype/pr_ids_binary_operator.c: New file.
9426         * lib/unictype/pr_ids_trinary_operator.c: New file.
9427         * lib/unictype/pr_ignorable_control.c: New file.
9428         * lib/unictype/pr_iso_control.c: New file.
9429         * lib/unictype/pr_join_control.c: New file.
9430         * lib/unictype/pr_left_of_pair.c: New file.
9431         * lib/unictype/pr_line_separator.c: New file.
9432         * lib/unictype/pr_logical_order_exception.c: New file.
9433         * lib/unictype/pr_lowercase.c: New file.
9434         * lib/unictype/pr_math.c: New file.
9435         * lib/unictype/pr_non_break.c: New file.
9436         * lib/unictype/pr_not_a_character.c: New file.
9437         * lib/unictype/pr_numeric.c: New file.
9438         * lib/unictype/pr_other_alphabetic.c: New file.
9439         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9440         * lib/unictype/pr_other_grapheme_extend.c: New file.
9441         * lib/unictype/pr_other_id_continue.c: New file.
9442         * lib/unictype/pr_other_id_start.c: New file.
9443         * lib/unictype/pr_other_lowercase.c: New file.
9444         * lib/unictype/pr_other_math.c: New file.
9445         * lib/unictype/pr_other_uppercase.c: New file.
9446         * lib/unictype/pr_paired_punctuation.c: New file.
9447         * lib/unictype/pr_paragraph_separator.c: New file.
9448         * lib/unictype/pr_pattern_syntax.c: New file.
9449         * lib/unictype/pr_pattern_white_space.c: New file.
9450         * lib/unictype/pr_private_use.c: New file.
9451         * lib/unictype/pr_punctuation.c: New file.
9452         * lib/unictype/pr_quotation_mark.c: New file.
9453         * lib/unictype/pr_radical.c: New file.
9454         * lib/unictype/pr_sentence_terminal.c: New file.
9455         * lib/unictype/pr_soft_dotted.c: New file.
9456         * lib/unictype/pr_space.c: New file.
9457         * lib/unictype/pr_terminal_punctuation.c: New file.
9458         * lib/unictype/pr_test.c: New file.
9459         * lib/unictype/pr_titlecase.c: New file.
9460         * lib/unictype/pr_unassigned_code_value.c: New file.
9461         * lib/unictype/pr_unified_ideograph.c: New file.
9462         * lib/unictype/pr_uppercase.c: New file.
9463         * lib/unictype/pr_variation_selector.c: New file.
9464         * lib/unictype/pr_white_space.c: New file.
9465         * lib/unictype/pr_xid_continue.c: New file.
9466         * lib/unictype/pr_xid_start.c: New file.
9467         * lib/unictype/pr_zero_width.c: New file.
9468         * lib/unictype/scripts.c: New file.
9469         * lib/unictype/sy_c_ident.c: New file.
9470         * lib/unictype/sy_c_whitespace.c: New file.
9471         * lib/unictype/sy_java_ident.c: New file.
9472         * lib/unictype/sy_java_whitespace.c: New file.
9473
9474         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9475         Unicode 5.0.0.
9476         * lib/unictype/blocks.h: Likewise.
9477         * lib/unictype/categ_C.h: Likewise.
9478         * lib/unictype/categ_Cc.h: Likewise.
9479         * lib/unictype/categ_Cf.h: Likewise.
9480         * lib/unictype/categ_Cn.h: Likewise.
9481         * lib/unictype/categ_Co.h: Likewise.
9482         * lib/unictype/categ_Cs.h: Likewise.
9483         * lib/unictype/categ_L.h: Likewise.
9484         * lib/unictype/categ_Ll.h: Likewise.
9485         * lib/unictype/categ_Lm.h: Likewise.
9486         * lib/unictype/categ_Lo.h: Likewise.
9487         * lib/unictype/categ_Lt.h: Likewise.
9488         * lib/unictype/categ_Lu.h: Likewise.
9489         * lib/unictype/categ_M.h: Likewise.
9490         * lib/unictype/categ_Mc.h: Likewise.
9491         * lib/unictype/categ_Me.h: Likewise.
9492         * lib/unictype/categ_Mn.h: Likewise.
9493         * lib/unictype/categ_N.h: Likewise.
9494         * lib/unictype/categ_Nd.h: Likewise.
9495         * lib/unictype/categ_Nl.h: Likewise.
9496         * lib/unictype/categ_No.h: Likewise.
9497         * lib/unictype/categ_P.h: Likewise.
9498         * lib/unictype/categ_Pc.h: Likewise.
9499         * lib/unictype/categ_Pd.h: Likewise.
9500         * lib/unictype/categ_Pe.h: Likewise.
9501         * lib/unictype/categ_Pf.h: Likewise.
9502         * lib/unictype/categ_Pi.h: Likewise.
9503         * lib/unictype/categ_Po.h: Likewise.
9504         * lib/unictype/categ_Ps.h: Likewise.
9505         * lib/unictype/categ_S.h: Likewise.
9506         * lib/unictype/categ_Sc.h: Likewise.
9507         * lib/unictype/categ_Sk.h: Likewise.
9508         * lib/unictype/categ_Sm.h: Likewise.
9509         * lib/unictype/categ_So.h: Likewise.
9510         * lib/unictype/categ_Z.h: Likewise.
9511         * lib/unictype/categ_Zl.h: Likewise.
9512         * lib/unictype/categ_Zp.h: Likewise.
9513         * lib/unictype/categ_Zs.h: Likewise.
9514         * lib/unictype/categ_of.h: Likewise.
9515         * lib/unictype/combining.h: Likewise.
9516         * lib/unictype/ctype_alnum.h: Likewise.
9517         * lib/unictype/ctype_alpha.h: Likewise.
9518         * lib/unictype/ctype_blank.h: Likewise.
9519         * lib/unictype/ctype_cntrl.h: Likewise.
9520         * lib/unictype/ctype_digit.h: Likewise.
9521         * lib/unictype/ctype_graph.h: Likewise.
9522         * lib/unictype/ctype_lower.h: Likewise.
9523         * lib/unictype/ctype_print.h: Likewise.
9524         * lib/unictype/ctype_punct.h: Likewise.
9525         * lib/unictype/ctype_space.h: Likewise.
9526         * lib/unictype/ctype_upper.h: Likewise.
9527         * lib/unictype/ctype_xdigit.h: Likewise.
9528         * lib/unictype/decdigit.h: Likewise.
9529         * lib/unictype/digit.h: Likewise.
9530         * lib/unictype/mirror.h: Likewise.
9531         * lib/unictype/numeric.h: Likewise.
9532         * lib/unictype/pr_alphabetic.h: Likewise.
9533         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9534         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9535         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9536         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9537         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9538         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9539         * lib/unictype/pr_bidi_control.h: Likewise.
9540         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9541         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9542         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9543         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9544         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9545         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9546         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9547         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9548         * lib/unictype/pr_bidi_pdf.h: Likewise.
9549         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9550         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9551         * lib/unictype/pr_combining.h: Likewise.
9552         * lib/unictype/pr_composite.h: Likewise.
9553         * lib/unictype/pr_currency_symbol.h: Likewise.
9554         * lib/unictype/pr_dash.h: Likewise.
9555         * lib/unictype/pr_decimal_digit.h: Likewise.
9556         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9557         * lib/unictype/pr_deprecated.h: Likewise.
9558         * lib/unictype/pr_diacritic.h: Likewise.
9559         * lib/unictype/pr_extender.h: Likewise.
9560         * lib/unictype/pr_format_control.h: Likewise.
9561         * lib/unictype/pr_grapheme_base.h: Likewise.
9562         * lib/unictype/pr_grapheme_extend.h: Likewise.
9563         * lib/unictype/pr_grapheme_link.h: Likewise.
9564         * lib/unictype/pr_hex_digit.h: Likewise.
9565         * lib/unictype/pr_hyphen.h: Likewise.
9566         * lib/unictype/pr_id_continue.h: Likewise.
9567         * lib/unictype/pr_id_start.h: Likewise.
9568         * lib/unictype/pr_ideographic.h: Likewise.
9569         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9570         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9571         * lib/unictype/pr_ignorable_control.h: Likewise.
9572         * lib/unictype/pr_iso_control.h: Likewise.
9573         * lib/unictype/pr_join_control.h: Likewise.
9574         * lib/unictype/pr_left_of_pair.h: Likewise.
9575         * lib/unictype/pr_line_separator.h: Likewise.
9576         * lib/unictype/pr_logical_order_exception.h: Likewise.
9577         * lib/unictype/pr_lowercase.h: Likewise.
9578         * lib/unictype/pr_math.h: Likewise.
9579         * lib/unictype/pr_non_break.h: Likewise.
9580         * lib/unictype/pr_not_a_character.h: Likewise.
9581         * lib/unictype/pr_numeric.h: Likewise.
9582         * lib/unictype/pr_other_alphabetic.h: Likewise.
9583         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9584         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9585         * lib/unictype/pr_other_id_continue.h: Likewise.
9586         * lib/unictype/pr_other_id_start.h: Likewise.
9587         * lib/unictype/pr_other_lowercase.h: Likewise.
9588         * lib/unictype/pr_other_math.h: Likewise.
9589         * lib/unictype/pr_other_uppercase.h: Likewise.
9590         * lib/unictype/pr_paired_punctuation.h: Likewise.
9591         * lib/unictype/pr_paragraph_separator.h: Likewise.
9592         * lib/unictype/pr_pattern_syntax.h: Likewise.
9593         * lib/unictype/pr_pattern_white_space.h: Likewise.
9594         * lib/unictype/pr_private_use.h: Likewise.
9595         * lib/unictype/pr_punctuation.h: Likewise.
9596         * lib/unictype/pr_quotation_mark.h: Likewise.
9597         * lib/unictype/pr_radical.h: Likewise.
9598         * lib/unictype/pr_sentence_terminal.h: Likewise.
9599         * lib/unictype/pr_soft_dotted.h: Likewise.
9600         * lib/unictype/pr_space.h: Likewise.
9601         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9602         * lib/unictype/pr_titlecase.h: Likewise.
9603         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9604         * lib/unictype/pr_unified_ideograph.h: Likewise.
9605         * lib/unictype/pr_uppercase.h: Likewise.
9606         * lib/unictype/pr_variation_selector.h: Likewise.
9607         * lib/unictype/pr_white_space.h: Likewise.
9608         * lib/unictype/pr_xid_continue.h: Likewise.
9609         * lib/unictype/pr_xid_start.h: Likewise.
9610         * lib/unictype/pr_zero_width.h: Likewise.
9611         * lib/unictype/scripts.h: Likewise.
9612         * lib/unictype/scripts_byname.gperf: Likewise.
9613         * lib/unictype/sy_c_ident.h: Likewise.
9614         * lib/unictype/sy_c_whitespace.h: Likewise.
9615         * lib/unictype/sy_java_ident.h: Likewise.
9616         * lib/unictype/sy_java_whitespace.h: Likewise.
9617
9618         * lib/unictype/Makefile: New file.
9619         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9620         glibc.
9621         * lib/unictype/3level.h: New file, copied from glibc.
9622         * lib/unictype/3levelbit.h: New file.
9623
9624 2007-11-11  Bruno Haible  <bruno@clisp.org>
9625
9626         * modules/gperf: New file.
9627         * modules/iconv_open (Depends-on): Add it.
9628         (Makefile.am): Remove the GPERF definition.
9629
9630 2007-11-11  Bruno Haible  <bruno@clisp.org>
9631
9632         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9633         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9634
9635 2007-11-11  Bruno Haible  <bruno@clisp.org>
9636
9637         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9638         (usage): Remove function.
9639
9640 2007-11-11  Bruno Haible  <bruno@clisp.org>
9641
9642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9643         gl_FUNC_CEILF_LIBS.
9644         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9645         gl_FUNC_CEIL_LIBS.
9646         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9647         gl_FUNC_CEILL_LIBS.
9648         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9649         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9650         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9651
9652 2007-11-11  Bruno Haible  <bruno@clisp.org>
9653
9654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9655         roundf were declared but do not exist on functions.
9656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9657         roundl were declared but do not exist on functions.
9658         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9659         HAVE_FLOORL_AND_CEILL, respectively.
9660         Needed for Sun C on Solaris 10.
9661
9662 2007-11-11  Bruno Haible  <bruno@clisp.org>
9663
9664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9665         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9666         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9667         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9669         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9670         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9671         HAVE_DECL_ROUNDF.
9672         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9673         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9675         of HAVE_DECL_ROUND*.
9676         * modules/math (Makefile.am): Update.
9677
9678 2007-11-10  Bruno Haible  <bruno@clisp.org>
9679
9680         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9681         ptrdiff_t as m4/intl.m4.
9682
9683 2007-11-10  Jim Meyering  <meyering@redhat.com>
9684
9685         Avoid link failure for the argmatch test.
9686         * tests/test-argmatch.c (usage): Define function to avoid a link
9687         failure: argmatch_die requires a usage function.
9688
9689 2007-11-09  Bruno Haible  <bruno@clisp.org>
9690
9691         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9692         * doc/functions/vsnprintf.texi: Likewise.
9693         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9694         with a size argument < 2.
9695
9696 2007-11-09  Bruno Haible  <bruno@clisp.org>
9697
9698         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9699         buffer. Fixes an inefficiency introduced on 2007-11-03.
9700
9701 2007-11-09  Bruno Haible  <bruno@clisp.org>
9702
9703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9704         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9705
9706 2007-11-08  Jim Meyering  <meyering@redhat.com>
9707
9708         Change cache variable name prefix "jm_" to "gl_" everywhere.
9709         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9710         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9711         * m4/uptime.m4: s/gl_/jm_/
9712
9713 2007-11-07  Bruno Haible  <bruno@clisp.org>
9714
9715         Update to GNU gettext 0.17.
9716         * m4/intl.m4: Update to GNU gettext 0.17.
9717         * m4/po.m4: Likewise.
9718         * modules/gettext (Files): Remove m4/ulonglong.m4.
9719         (configure.ac): Require gettext infrastructure from version 0.17.
9720
9721 2007-11-06  Bruno Haible  <bruno@clisp.org>
9722
9723         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9724         symbolic values are not defined in a public header.
9725         * lib/freadable.c (freadable) [QNX]: Likewise.
9726         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9727         * lib/freading.c (freading) [QNX]: Likewise.
9728         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9729         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9730         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9731         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9732         Reported by Alain Magloire.
9733
9734         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9735
9736 2007-11-05  Bruno Haible  <bruno@clisp.org>
9737
9738         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9739         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9740         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9741         Reported by Eric Blake.
9742
9743 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9744             Bruno Haible  <bruno@clisp.org>
9745
9746         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9747         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9748         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9749         (malloc): Undefine also before including <stdlib.h>.
9750         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9751         Needed on OSF/1 4.0.
9752
9753 2007-11-05  Jim Meyering  <meyering@redhat.com>
9754
9755         git-version-gen: sync from coreutils.
9756         * build-aux/git-version-gen: Add comments.
9757         Change the first '-' to '.' in the snapshot version string,
9758         e.g., 6.9-377-08144 -> 6.9.377-08144
9759         Remove first parameter.
9760         Don't declare a version "-dirty" merely because a time
9761         stamp has changed.
9762
9763 2007-11-04  Bruno Haible  <bruno@clisp.org>
9764
9765         * lib/lock.h: Protect all macro definitions containing an 'if'
9766         statement through a "do { ... } while (0)".
9767         * lib/tls.h: Likewise.
9768
9769 2007-11-04  Bruno Haible  <bruno@clisp.org>
9770
9771         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9772
9773 2007-11-04  Bruno Haible  <bruno@clisp.org>
9774
9775         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9776         * modules/fprintf-posix (Depends-on): Add nocrash.
9777         * modules/snprintf-posix (Depends-on): Likewise.
9778         * modules/sprintf-posix (Depends-on): Likewise.
9779         * modules/vasnprintf-posix (Depends-on): Likewise.
9780         * modules/vasprintf-posix (Depends-on): Likewise.
9781         * modules/vfprintf-posix (Depends-on): Likewise.
9782         * modules/vsnprintf-posix (Depends-on): Likewise.
9783         * modules/vsprintf-posix (Depends-on): Likewise.
9784         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9785         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9786         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9787         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9788         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9789         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9790         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9791
9792 2007-11-04  Bruno Haible  <bruno@clisp.org>
9793
9794         * modules/nocrash: New file.
9795         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9796         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9797
9798 2007-11-04  Bruno Haible  <bruno@clisp.org>
9799
9800         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9801         precision handling.
9802         * tests/test-vasprintf-posix.c (test_function): Likewise.
9803         * tests/test-snprintf-posix.h (test_function): Likewise.
9804         * tests/test-sprintf-posix.h (test_function): Likewise.
9805
9806         Fix *printf behaviour for large precisions on mingw and BeOS.
9807         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9808         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9810         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9812         gl_PRINTF_PRECISION and test its result. Invoke
9813         gl_PREREQ_VASNPRINTF_PRECISION.
9814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9821         * doc/functions/fprintf.texi: Update.
9822         * doc/functions/printf.texi: Update.
9823         * doc/functions/snprintf.texi: Update.
9824         * doc/functions/sprintf.texi: Update.
9825         * doc/functions/vfprintf.texi: Update.
9826         * doc/functions/vprintf.texi: Update.
9827         * doc/functions/vsnprintf.texi: Update.
9828         * doc/functions/vsprintf.texi: Update.
9829
9830 2007-11-04  Bruno Haible  <bruno@clisp.org>
9831
9832         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9833
9834 2007-11-04  Bruno Haible  <bruno@clisp.org>
9835
9836         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9837         Reported by Sylvain Beucler <beuc@gnu.org>.
9838
9839 2007-11-03  Bruno Haible  <bruno@clisp.org>
9840
9841         * tests/test-fprintf-posix2.sh: New file.
9842         * tests/test-fprintf-posix2.c: New file.
9843         * modules/fprintf-posix-tests (Files): Add them.
9844         (TESTS): Add test-fprintf-posix2.sh.
9845         (configure.ac): Check for getrlimit and setrlimit.
9846         (check_PROGRAMS): Add test-fprintf-posix2.
9847
9848         * tests/test-printf-posix2.sh: New file.
9849         * tests/test-printf-posix2.c: New file.
9850         * modules/printf-posix-tests (Files): Add them.
9851         (TESTS): Add test-printf-posix2.sh.
9852         (configure.ac): Check for getrlimit and setrlimit.
9853         (check_PROGRAMS): Add test-printf-posix2.
9854
9855         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9856         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9857         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9858         (decode_double): New function, copied from decode_long_double.
9859         (scale10_round_decimal_decoded): New function, extracted from
9860         scale10_round_decimal_long_double.
9861         (scale10_round_decimal_long_double): Use it.
9862         (scale10_round_decimal_double): New function.
9863         (floorlog10): New function.
9864         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9866         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9867         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9868         gl_PRINTF_ENOMEM and test its result. Invoke
9869         gl_PREREQ_VASNPRINTF_ENOMEM.
9870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9877         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9878         * modules/snprintf-posix (Depends-on): Likewise.
9879         * modules/sprintf-posix (Depends-on): Likewise.
9880         * modules/vasnprintf-posix (Depends-on): Likewise.
9881         * modules/vasprintf-posix (Depends-on): Likewise.
9882         * modules/vfprintf-posix (Depends-on): Likewise.
9883         * modules/vsnprintf-posix (Depends-on): Likewise.
9884         * modules/vsprintf-posix (Depends-on): Likewise.
9885         * doc/functions/fprintf.texi: Update.
9886         * doc/functions/printf.texi: Update.
9887         * doc/functions/snprintf.texi: Update.
9888         * doc/functions/sprintf.texi: Update.
9889         * doc/functions/vfprintf.texi: Update.
9890         * doc/functions/vprintf.texi: Update.
9891         * doc/functions/vsnprintf.texi: Update.
9892         * doc/functions/vsprintf.texi: Update.
9893
9894 2007-11-03  Bruno Haible  <bruno@clisp.org>
9895
9896         * modules/frexp-nolibm-tests: New file.
9897
9898         * modules/frexp-nolibm: New file.
9899         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9900
9901 2007-11-03  Bruno Haible  <bruno@clisp.org>
9902
9903         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9904         value is C99 compliant.
9905         Needed for OSF/1 5.1.
9906
9907 2007-11-03  Bruno Haible  <bruno@clisp.org>
9908
9909         Fix out-of-memory handling of vasnprintf.
9910         * lib/printf-parse.c: Include <errno.h>.
9911         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9912         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9913         is already set.
9914
9915 2007-11-02  Eric Blake  <ebb9@byu.net>
9916
9917         Fix tests on cygwin.
9918         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9919
9920 2007-11-01  Bruno Haible  <bruno@clisp.org>
9921
9922         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9923         warning.
9924         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9925         needed for POSIX compatibility.
9926
9927 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9930         for compatibility with GNU.
9931
9932 2007-11-01  Bruno Haible  <bruno@clisp.org>
9933
9934         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9935         (putenv): Renamed from rpl_putenv. Change argument type from
9936         'const char *' to 'char *'.
9937         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9938         of defining putenv in config.h, just set REPLACE_PUTENV.
9939         * modules/putenv (Depends-on): Add stdlib.
9940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9941         (Include): Use <stdlib.h>.
9942         * lib/stdlib.in.h (putenv): New declaration.
9943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9944         REPLACE_PUTENV.
9945         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9946         REPLACE_PUTENV.
9947         Needed for MacOS X 10.5.0.
9948         Reported by Peter O'Gorman <peter@pogma.com>.
9949
9950 2007-11-01  Jim Meyering  <meyering@redhat.com>
9951
9952         Treat an empty date string exactly like "0".
9953         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9954         if the remaining date string (to be parsed) is empty, use "0".
9955         Reported by Mischa Molhoek and discussed in this thread:
9956         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9957
9958 2007-10-31  Bruno Haible  <bruno@clisp.org>
9959
9960         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9961         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9962         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9963         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9964         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9965         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9966
9967 2007-10-31  Bruno Haible  <bruno@clisp.org>
9968
9969         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9970         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9971         (AC_TYPE_LONG_LONG_INT): Use it.
9972         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9973         it as well.
9974         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9975         to m4/longlong.m4.
9976         * modules/stdint (Files): Remove m4/ulonglong.m4.
9977         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9978         m4/ulonglong.m4.
9979         * modules/strtoumax (Files): Likewise.
9980
9981 2007-10-30  Bruno Haible  <bruno@clisp.org>
9982
9983         * modules/xvasprintf-posix: New file.
9984         Suggested by Eric Blake.
9985
9986 2007-10-30  Bruno Haible  <bruno@clisp.org>
9987
9988         * modules/xprintf-posix-tests: New file.
9989         * tests/test-xprintf-posix.sh: New file.
9990         * tests/test-xprintf-posix.c: New file.
9991         * tests/test-xfprintf-posix.c: New file.
9992
9993         * modules/xprintf-posix: New file.
9994
9995 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9996
9997         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9998         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9999         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10000
10001 2007-10-29  Bruno Haible  <bruno@clisp.org>
10002
10003         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10004         contain the special marker '_cv_'.
10005         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10006         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10007         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10008         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10010         Reported by Ralf Wildenhues.
10011
10012 2007-10-29  Bruno Haible  <bruno@clisp.org>
10013
10014         * gnulib-tool (func_import): When --lgpl is not specified, set
10015         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10016         GPLv3.
10017         Reported by Simon Josefsson.
10018
10019 2007-10-28  Bruno Haible  <bruno@clisp.org>
10020
10021         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10022         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10023         HAVE_DECL_ISFINITE.
10024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10025         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10026         HAVE_DECL_ISFINITE.
10027
10028 2007-10-28  Bruno Haible  <bruno@clisp.org>
10029
10030         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10031         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10032
10033 2007-10-28  Bruno Haible  <bruno@clisp.org>
10034
10035         Fix link errors with Sun C 5.0 on Solaris 10.
10036         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10037         function is declared but not present in the compiler's libm.
10038         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10039         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10040         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10041         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10042         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10043         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10044         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10046         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10047         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10048         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10049         HAVE_DECL_FLOORL.
10050
10051 2007-10-28  Bruno Haible  <bruno@clisp.org>
10052
10053         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10054         gl_FUNC_FLOORL. Cache the result.
10055         (gl_FUNC_FLOORL): Use it.
10056         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10057         gl_FUNC_CEILL. Cache the result.
10058         (gl_FUNC_CEILL): Use it.
10059
10060         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10061         gl_FUNC_FLOOR. Cache the result.
10062         (gl_FUNC_FLOOR): Use it.
10063         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10064         gl_FUNC_CEIL. Cache the result.
10065         (gl_FUNC_CEIL): Use it.
10066
10067         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10068         gl_FUNC_FLOORF. Cache the result.
10069         (gl_FUNC_FLOORF): Use it.
10070         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10071         gl_FUNC_CEILF. Cache the result.
10072         (gl_FUNC_CEILF): Use it.
10073
10074 2007-10-28  Bruno Haible  <bruno@clisp.org>
10075
10076         * gnulib-tool: Allow specifying the LGPL version number through
10077         --lgpl=2 or --lgpl=3.
10078         (func_usage): Document --lgpl with argument.
10079         Handle --lgpl=... arguments.
10080         (func_import): Recognize also gl_LGPL calls with an argument. When
10081         --lgpl=2 is used and the module's license is just LGPL, report an
10082         error. Set sed_transform_lib_file according to the lgpl variable. In
10083         the generated files, use --lgpl or gl_LGPL invocations with argument,
10084         if necessary.
10085         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10086         an LGPv2+ license.
10087         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10088         gl_LGPL macro.
10089
10090 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10091             Bruno Haible  <bruno@clisp.org>
10092
10093         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10094         (u16_uctomb_aux): Likewise.
10095         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10096         !HAVE_INLINE.
10097         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10098
10099 2007-10-28  Bruno Haible  <bruno@clisp.org>
10100
10101         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10102         Invoke AM_GETTEXT_OPTION if it exists.
10103         * modules/vasprintf: Likewise.
10104         * modules/verror: Likewise.
10105         * modules/xprintf: Likewise.
10106         * modules/xvasprintf: Likewise.
10107
10108 2007-10-27  Ben Pfaff  <blp@gnu.org>
10109
10110         * lib/math.in.h: Define isfinite macro and prototypes for
10111         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10112         implementations.
10113         * m4/math_h.m4: New substitutions for isfinite module.
10114         * lib/isfinite.c: New file.
10115         * m4/isfinite.m4: New file.
10116         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10117         * modules/isfinite: New file.
10118         * modules/isfinite-tests: New file.
10119         * tests/tests-isfinite.c: New file.
10120         * doc/functions/isfinite.texi: Mention isfinite module.
10121         * MODULES.html.sh: Mention new module.
10122
10123 2007-10-27  Ben Pfaff  <blp@gnu.org>
10124
10125         Ralf Wildenhues reported that Tru64 4.0D declares the round
10126         functions but does not have definitions.
10127         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10128         cannot be found in any library, set the output variable to
10129         "missing" instead of "".
10130         * m4/round.m4: Also use our substitute if we cannot find round in
10131         any library, even if it is declared.
10132         * m4/roundf.m4: Likewise for roundf.
10133         * m4/roundl.m4: Likewise for roundl.
10134         * lib/math.in.h: Undefine roundf, round, roundl before defining
10135         their replacements, to allow for hypothetical systems where these
10136         may be defined as macros but not available in libraries.
10137
10138 2007-10-27  Bruno Haible  <bruno@clisp.org>
10139
10140         * doc/gnulib.texi: Invoke @firstparagraphindent.
10141         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10142         changes in gnulib.
10143         (Source changes): New section.
10144
10145 2007-10-26  Bruno Haible  <bruno@clisp.org>
10146
10147         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10148         borrowed from autoconf.
10149
10150 2007-10-26  Bruno Haible  <bruno@clisp.org>
10151
10152         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10153         strerror returned the empty string. Needed on HP-UX 11.00.
10154
10155 2007-10-24  Micah Cowan  <micah@cowan.name>
10156
10157         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10158         * build-aux/bootstrap: Remove support for now-unnecessary option,
10159         --cvs-user, and envvars CVS_USER, CVS_RSH.
10160
10161 2007-10-24  Jim Meyering  <meyering@redhat.com>
10162
10163         Avoid diagnostics from sha1sum when there is no cached checksum.
10164         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10165         if the po.s1 file hasn't been created yet.
10166
10167         * build-aux/bootstrap: Sync from coreutils:
10168         2007-10-24  Jim Meyering  <meyering@redhat.com>
10169         Get gnulib from the git repository, not from an obsolete cvs one.
10170         * build-aux/bootstrap: Suggestion from Micah Cowan.
10171         2007-10-04  Jim Meyering  <jim@meyering.net>
10172         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10173         (update_po_files): Work also when there are no .po files in po/.
10174
10175 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10176
10177         * README: Append ".git" to git and cg examples.
10178         Problem reported by Benoit Sigoure.
10179
10180 2007-10-23  Micah Cowan  <micah@cowan.name>
10181
10182         * users.txt: Add wget.
10183
10184 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10185
10186         Fix linking of some unistdio tests on FreeBSD.
10187         * modules/unistdio/u16-vsnprintf-tests
10188         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10189         * modules/unistdio/u16-vsprintf-tests
10190         (test_u16_vsnprintf1_LDADD): Likewise.
10191         * modules/unistdio/u32-vsnprintf-tests
10192         (test_u32_vsnprintf1_LDADD): Likewise.
10193         * modules/unistdio/u32-vsprintf-tests
10194         (test_u32_vsprintf1_LDADD): Likewise.
10195         * modules/unistdio/u8-vsnprintf-tests
10196         (test_u8_vsnprintf1_LDADD): Likewise.
10197         * modules/unistdio/u8-vsprintf-tests
10198         (test_u8_vsprintf1_LDADD): Likewise.
10199         * modules/unistdio/ulc-vsnprintf-tests
10200         (test_ulc_vsnprintf1_LDADD): Likewise.
10201         * modules/unistdio/ulc-vsprintf-tests
10202         (test_ulc_vsprintf1_LDADD): Likewise.
10203
10204         Fix linking of some uniconv tests on FreeBSD.
10205         * modules/uniconv/u16-conv-from-enc-tests
10206         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10207         * modules/uniconv/u16-conv-to-enc-tests
10208         (test_u16_conv_to_enc_LDADD): Likewise.
10209         * modules/uniconv/u16-strconv-from-enc-tests
10210         (test_u16_strconv_from_enc_LDADD): Likewise.
10211         * modules/uniconv/u16-strconv-to-enc-tests
10212         (test_u16_strconv_to_enc_LDADD): Likewise.
10213         * modules/uniconv/u32-conv-from-enc-tests
10214         (test_u32_conv_from_enc_LDADD): Likewise.
10215         * modules/uniconv/u32-conv-to-enc-tests
10216         (test_u32_conv_to_enc_LDADD): Likewise.
10217         * modules/uniconv/u32-strconv-from-enc-tests
10218         (test_u32_strconv_from_enc_LDADD): Likewise.
10219         * modules/uniconv/u32-strconv-to-enc-tests
10220         (test_u32_strconv_to_enc_LDADD): Likewise.
10221         * modules/uniconv/u8-conv-from-enc-tests
10222         (test_u8_conv_from_enc_LDADD): Likewise.
10223         * modules/uniconv/u8-conv-to-enc-tests
10224         (test_u8_conv_to_enc_LDADD): Likewise.
10225         * modules/uniconv/u8-strconv-from-enc-tests
10226         (test_u8_strconv_from_enc_LDADD): Likewise.
10227         * modules/uniconv/u8-strconv-to-enc-tests
10228         (test_u8_strconv_to_enc_LDADD): Likewise.
10229
10230 2007-10-22  Bruno Haible  <bruno@clisp.org>
10231
10232         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10233         size.
10234
10235 2007-10-22  Eric Blake  <ebb9@byu.net>
10236
10237         Tweak x*printf documentation.
10238         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10239         variable name and comments.
10240         Suggested by Bruno Haible.
10241
10242 2007-10-22  Bruno Haible  <bruno@clisp.org>
10243
10244         * lib/acl.c (copy_acl): Fix file name in comment.
10245
10246 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10247
10248         Fix Tru64 problem with stdbool.h.
10249         * lib/stdbool.in.h (false, true):
10250         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10251         Don't declare as an enum in this situation; it runs afoul of Tru64.
10252         Problem reported by Steven M. Schweda in
10253         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10254
10255 2007-10-22  Eric Blake  <ebb9@byu.net>
10256
10257         Also wrap vf?printf.
10258         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10259         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10260         (xvprintf, xvfprintf): New functions.
10261
10262 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10263
10264         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10265         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10266
10267         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10268         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10269
10270 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10273         by Bruno Haible.
10274
10275 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10276
10277         * lib/getloadavg.c
10278         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10279         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10280
10281         * tests/test-i-ring.c: Work for C89.
10282
10283 2007-10-22  Bruno Haible  <bruno@clisp.org>
10284
10285         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10286         -1u, in preprocessor expression, so that we don't test for the bug
10287         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10289
10290 2007-10-22  Eric Blake  <ebb9@byu.net>
10291
10292         * tests/test-yesno.sh: Silence stderr during test.
10293
10294 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10295
10296         * modules/crypto/gc-camellia: New file.
10297
10298         * m4/gc-camellia.m4: New file.
10299
10300         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10301
10302         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10303
10304 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10305
10306         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10307         --help to stdout.  Reported by sms@antinode.org (Steven
10308         M. Schweda).
10309
10310 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10311
10312         * users.txt: Fix link to libksba.
10313
10314 2007-10-21  Ben Pfaff  <blp@gnu.org>
10315
10316         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10317         round.c roundf implementation that depends on floorf and ceilf to
10318         be tested unconditionally.
10319
10320 2007-10-21  Ben Pfaff  <blp@gnu.org>
10321
10322         * m4/check-libm-func.m4: Removed.
10323         * m4/check-math-lib.m4: New file.
10324         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10325         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10326         definition and lack of AC_LIBOBJ([roundf]).
10327         * m4/roundl.m4: Ditto, and similarly for roundl.
10328         * modules/round: Reference new m4 file.
10329         * modules/roundf: Ditto.
10330         * modules/roundl: Ditto.
10331         * tests/test-round2.c (main): Use ROUND instead of round.
10332         Bug report from Bruno Haible.
10333
10334 2007-10-21  Bruno Haible  <bruno@clisp.org>
10335
10336         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10337         context.
10338
10339 2007-10-21  Bruno Haible  <bruno@clisp.org>
10340
10341         * tests/test-wcwidth.c (main): Allow negative result for some control
10342         characters.
10343
10344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10345         Needed on OSF/1 5.1.
10346
10347 2007-10-21  Bruno Haible  <bruno@clisp.org>
10348
10349         * tests/test-floorf1.c: Include isnanf.h.
10350         (main): Use isnanf() instead of isnan().
10351         * tests/test-ceilf1.c: Include isnanf.h.
10352         (main): Use isnanf() instead of isnan().
10353         * tests/test-truncf1.c: Include isnanf.h.
10354         (main): Use isnanf() instead of isnan().
10355         * tests/test-roundf1.c: Include isnanf.h.
10356         (main): Use isnanf() instead of isnan().
10357
10358 2007-10-21  Eric Blake  <ebb9@byu.net>
10359
10360         * users.txt: Update URL for m4.
10361
10362 2007-10-21  Bruno Haible  <bruno@clisp.org>
10363
10364         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10365
10366 2007-10-21  Bruno Haible  <bruno@clisp.org>
10367
10368         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10369         Git's management files if the CVS files are not present.
10370
10371 2007-10-20  Bruno Haible  <bruno@clisp.org>
10372
10373         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10374         gcc-3.4.x.
10375
10376 2007-10-20  Ben Pfaff  <blp@gnu.org>
10377
10378         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10379         implementations.
10380         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10381         * lib/round.c: New file.
10382         * lib/roundf.c: New file.
10383         * lib/roundl.c: New file.
10384         * m4/round.m4: New file.
10385         * m4/roundf.m4: New file.
10386         * m4/roundl.m4: New file.
10387         * m4/check-libm-func-m4: New file.
10388         * modules/math: Replace round, roundf, roundl related @VARS@ in
10389         math.in.h.
10390         * modules/round: New file.
10391         * modules/round-tests: New file.
10392         * modules/roundf: New file.
10393         * modules/roundf-tests: New file.
10394         * modules/roundl: New file.
10395         * modules/roundl-tests: New file.
10396         * tests/test-round1.c: New file.
10397         * tests/test-round2.c: New file.
10398         * tests/test-roundf1.c: New file.
10399         * tests/test-roundf2.c: New file.
10400         * tests/test-roundl.c: New file.
10401         * doc/functions/round.texi: Mention round module.
10402         * doc/functions/roundf.texi: Mention roundf module.
10403         * doc/functions/roundl.texi: Mention roundl module.
10404         * MODULES.html.sh: Mention new modules.
10405         Thanks to Bruno Haible for suggestions.
10406
10407 2007-10-20  Jim Meyering  <meyering@redhat.com>
10408
10409         * lib/xprintf.c: Include <config.h> unconditionally.
10410
10411         Change xprintf's license to GPL.
10412         * modules/xprintf (License): s/LGPL/GPL/, since this module
10413         depends on modules (exit and exitfail) which are GPL.
10414         Suggestion from Bruno Haible.
10415
10416         xprintf fixes.
10417         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10418         Use a clearer diagnostic.
10419         Patch from Bruno Haible.
10420
10421 2007-10-20  Bruno Haible  <bruno@clisp.org>
10422
10423         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10424         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10426
10427 2007-10-20  Bruno Haible  <bruno@clisp.org>
10428
10429         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10430         precision in the comparison result > x - 1 or similar.
10431         * tests/test-ceilf2.c (correct_result_p): Likewise.
10432         * tests/test-truncf2.c (correct_result_p): Likewise.
10433         * tests/test-trunc2.c (correct_result_p): Likewise.
10434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10435
10436 2007-10-20  Bruno Haible  <bruno@clisp.org>
10437
10438         * modules/ceil: New file.
10439         * m4/ceil.m4: New file.
10440         * doc/functions/ceil.texi: Mention the 'ceil' module.
10441
10442 2007-10-20  Bruno Haible  <bruno@clisp.org>
10443
10444         * modules/floor: New file.
10445         * m4/floor.m4: New file.
10446         * doc/functions/floor.texi: Mention the 'floor' module.
10447
10448 2007-10-20  Bruno Haible  <bruno@clisp.org>
10449
10450         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10451         of %a.
10452         * modules/floorf-tests (Depends-on): Likewise.
10453         * modules/truncf-tests (Depends-on): Likewise.
10454         * modules/trunc-tests (Depends-on): Likewise.
10455         Reported by Ben Pfaff.
10456
10457 2007-10-19  Jim Meyering  <meyering@redhat.com>
10458
10459         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10460         Don't bother testing specific errno values.  Just test ferror.
10461
10462         New module: xprintf
10463         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10464
10465 2007-10-19  Bruno Haible  <bruno@clisp.org>
10466
10467         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10468         syntax.
10469         * modules/javaexec (Makefile.am): Likewise.
10470         * modules/relocatable-prog (Makefile.am): Likewise.
10471         Suggested by Jim Meyering.
10472
10473 2007-10-18  Bruno Haible  <bruno@clisp.org>
10474
10475         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10476         Reported by Jim Meyering.
10477
10478 2007-10-18  Eric Blake  <ebb9@byu.net>
10479
10480         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10481
10482 2007-10-18  Bruno Haible  <bruno@clisp.org>
10483
10484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10485         the format string into writable memory. Needed in Fortify conditions.
10486
10487 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10488             Bruno Haible  <bruno@clisp.org>
10489
10490         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10491         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10492         * modules/trim (Depends-on): Add mbchar.
10493         (configure.ac): Add gl_FUNC_MBRTOWC.
10494         (Makefile.am): Augment lib_SOURCES.
10495
10496 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10497
10498         Modify glob.c to use fstatat and dirfd, to simplify it.
10499         Suggested by Eric Blake.
10500         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10501         Don't include <stdbool.h>; not used.
10502         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10503         (link_exists_p): Simplify implementation, since we can now assume
10504         dirfd and fstatat.
10505         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10506
10507 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10508
10509         * gnulib-tool (func_get_dependencies): Fix sed script to
10510         match only tests.
10511
10512 2007-10-17  Bruno Haible  <bruno@clisp.org>
10513
10514         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10515         allow locale names without encoding suffix.
10516         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10517         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10518
10519 2007-10-16  Bruno Haible  <bruno@clisp.org>
10520
10521         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10522         * lib/getgroups.c (getgroups): Likewise.
10523         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10524
10525 2007-10-16  Bruno Haible  <bruno@clisp.org>
10526
10527         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10528         * modules/malloc-posix (License): Likewise.
10529         * modules/realloc-posix (License): Likewise.
10530         * modules/calloc-posix (License): Likewise.
10531         * modules/intprops (License): Change from GPL to LGPL, with
10532         Paul Eggert's approval.
10533
10534 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10535
10536         Merge glibc changes into lib/glob.c.
10537
10538         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10539         2007-10-15 04:59:03 UTC.  Here are the changes:
10540
10541         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10542
10543         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10544
10545         * lib/glob.c: Add some branch prediction throughout.
10546
10547         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10548
10549         [BZ #5103]
10550         * lib/glob.c (glob): Recognize patterns starting \/.
10551
10552         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10553
10554         [BZ #3996]
10555         * lib/glob.c (attribute_hidden): Define if not defined.
10556         (glob): Unescape dirname, filename or username when needed and not
10557         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10558         is NULL.  Handle unescaped [ in pattern without closing ].
10559         Don't pass GLOB_CHECK down to recursive glob for directories.
10560         (__glob_pattern_type): New function.
10561         (__glob_pattern_p): Implement using __glob_pattern_type.
10562         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10563         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10564         Remove unreachable code.
10565
10566         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10567
10568         * lib/glob.c (glob_in_dir): Add some comments and asserts to
10569         explain why there are no leaks.
10570
10571         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10572
10573         [BZ #3253]
10574         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10575         time, rather allocate increasingly bigger arrays of pointers, if
10576         possible with alloca, if too large with malloc.
10577
10578 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10579
10580         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10581         Problem reported by H.Merijn Brand in
10582         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10583         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10584         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10585
10586 2007-10-15  Bruno Haible  <bruno@clisp.org>
10587
10588         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10589         with explicit rpl_ prefix.
10590         * lib/fopen.c (fopen): Likewise.
10591         * lib/freopen.c (freopen): Likewise.
10592         * lib/iconv.c (iconv): Likewise.
10593         * lib/iconv_close.c (iconv_close): Likewise.
10594
10595 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10596
10597         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10598
10599 2007-10-15  Bruno Haible  <bruno@clisp.org>
10600
10601         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10602         <stddef.h> instead of <stdlib.h> since we only need NULL.
10603         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10604
10605 2007-10-15  Bruno Haible  <bruno@clisp.org>
10606
10607         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10608         Replace paragraph talking about LIBOBJS.
10609         Reported by Colin Watson <cjwatson@debian.org>.
10610
10611 2007-10-15  Bruno Haible  <bruno@clisp.org>
10612
10613         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10614         <stdlib.h> before using NULL.
10615
10616 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10617
10618         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10619         Reported by Albert Chin <china@thewrittenword.com>.
10620
10621 2007-10-14  Bruno Haible  <bruno@clisp.org>
10622
10623         * modules/iconv_open-utf-tests: New file.
10624         * tests/test-iconv-utf.c: New file.
10625
10626         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10627         * modules/iconv_open-utf: New file.
10628         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10629         (iconv, iconv_close): New declarations.
10630         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10631         be defined.
10632         (iconv_open): Add special handling of conversion between UTF-8 and
10633         UTF-{16,32}{BE,LE}.
10634         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10635         * lib/iconv_close.c: New file.
10636         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10637         gl_FUNC_ICONV_OPEN.
10638         (gl_FUNC_ICONV_OPEN): Use it.
10639         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10640         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10641         and REPLACE_ICONV_UTF.
10642         * modules/iconv_open (Depends-on): Add c-strcase.
10643         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10644         ICONV_CONST.
10645         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10646
10647 2007-10-13  Albert Chin  <china@thewrittenword.com>
10648             Bruno Haible  <bruno@clisp.org>
10649
10650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10651         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10652
10653 2007-10-13  Bruno Haible  <bruno@clisp.org>
10654
10655         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10656         defined, use the ISO C99 inline semantics.
10657         * lib/argp.h (ARGP_EI): Likewise.
10658
10659 2007-10-13  Bruno Haible  <bruno@clisp.org>
10660
10661         Handle 'inline' change in gcc 4.3.0.
10662         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10663         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10664         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10665         argp_fmtstream_point): Disable 'extern' declaration if the function
10666         definition is going to be provided inline.
10667         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10668         semantics, not the ISO C99 inline semantics.
10669         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10670         'extern' declaration if the function definition is going to be provided
10671         inline.
10672         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10673         the GNU C inline semantics, not the ISO C99 inline semantics. With
10674         GCC 4.2, avoid a warning.
10675
10676 2007-10-13  Bruno Haible  <bruno@clisp.org>
10677
10678         * lib/freading.h (freading): Enable the use of __freading for
10679         glibc >= 2.7.
10680         * lib/freading.c (freading): Likewise.
10681
10682 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10685         "warning: C99 inline functions are not supported; using GNU89".
10686
10687 2007-10-12  Bruno Haible  <bruno@clisp.org>
10688
10689         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10690         of 2.
10691         * tests/test-ceilf2.c: New file.
10692         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10693
10694         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10695         * modules/ceilf-tests: Update.
10696
10697 2007-10-12  Bruno Haible  <bruno@clisp.org>
10698
10699         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10700         of 2.
10701         * tests/test-floorf2.c: New file.
10702         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10703
10704         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10705         * modules/floorf-tests: Update.
10706
10707 2007-10-12  Bruno Haible  <bruno@clisp.org>
10708
10709         * tests/test-trunc2.c: New file.
10710         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10711
10712         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10713         * modules/trunc-tests: Update.
10714
10715 2007-10-12  Bruno Haible  <bruno@clisp.org>
10716
10717         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10718         of 2.
10719         * tests/test-truncf2.c: New file.
10720         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10721
10722         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10723         * modules/truncf-tests: Update.
10724
10725 2007-10-11  Eric Blake  <ebb9@byu.net>
10726
10727         Don't claim strerror is broken on Interix.
10728         * doc/functions/strerror.texi (strerror): Known broken systems are
10729         now Solaris 8, and not Interix.
10730         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10731         Interix on cross-compile.
10732         Reported by Martin Koeppe in
10733         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10734
10735 2007-10-11  Bruno Haible  <bruno@clisp.org>
10736
10737         * modules/i-ring-tests: New file.
10738         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10739         instead of assert.
10740
10741 2007-10-11  Bruno Haible  <bruno@clisp.org>
10742
10743         * modules/filenamecat-tests: New file.
10744         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10745         * lib/filenamecat.c: Remove test code.
10746
10747 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10750
10751         * lib/strerror.c: Include <string.h> always, to test interface,
10752         and to remove the need for the dummy.
10753         Include intprops.h to compute width instead of doing it ourselves
10754         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10755         (strerror): Define it to return NULL if there's no system strerror.
10756         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10757         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10758         ancient pre-strerror Unix systems well any more.  Saying "unknown
10759         system error" is enough.
10760         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10761         simpler strerror.c implementation.
10762         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10763         Simplify the tests to reflect the simpler strerror implementation.
10764         * modules/strerror (Depends-on): Add intprops.
10765
10766 2007-10-09  Eric Blake  <ebb9@byu.net>
10767
10768         Silence test-fpending.
10769         * modules/fpending-tests (Files): Add wrapper script.
10770         * tests/test-fpending.sh: New file.
10771
10772 2007-10-09  Bruno Haible  <bruno@clisp.org>
10773
10774         * MODULES.html.sh (func_module): Don't create a hyperlink for
10775         function names like 'printf_frexp'.
10776         (Misc): Add crc, memxor.
10777         (Characteristics of floating types): New section.
10778         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10779         isnanf-nolibm, signbit, trunc, truncf, truncl.
10780         (Enhancements for ISO C 99 functions): New subsection Input/output.
10781         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10782         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10783         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10784         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10785         (Enhancements for POSIX:2001 functions): Add chdir-long.
10786         (File system functions): Add areadlink, chdir-safer, read-file.
10787         Remove cycle-check.
10788         (File system as inode set): New section.
10789         (Date and time): Add gethrxtime.
10790         (Multithreading): Add openmp.
10791         (Internationalization functions): Add localename.
10792         (Unicode string functions): Add unistr/u*-mbsnlen.
10793         (Support for maintaining and releasing projects): Add git-version-gen.
10794         (Lone files): Remove directories.
10795
10796 2007-10-08  Ben Pfaff  <blp@gnu.org>
10797
10798         * lib/xmalloca.h: Fix typo in comment.
10799
10800 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10801
10802         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10803         when avoiding problems with integer overflow.  Use a portable test
10804         instead.
10805
10806 2007-10-08  Simon Josefsson  <simon@josefsson.org>
10807
10808         * modules/dummy (License): Change to LGPLv2+.
10809         * modules/float (License): Likewise
10810         * modules/realloc (License): Likewise
10811         * modules/stdlib (License): Likewise
10812
10813 2007-10-07  Bruno Haible  <bruno@clisp.org>
10814
10815         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10816         * floor.c (TWO_MANT_DIG): Likewise.
10817         * ceil.c (TWO_MANT_DIG): Likewise.
10818         Reported by Ben Pfaff.
10819
10820 2007-10-07  Bruno Haible  <bruno@clisp.org>
10821
10822         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10823         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10824         * lib/frexp.c (FUNC): Likewise.
10825         * lib/printf-frexp.h (printf_frexp): Likewise.
10826         * lib/printf-frexpl.h (printf_frexpl): Likewise.
10827         * lib/printf-frexp.c (FUNC): Likewise.
10828         Suggested by Jim Meyering.
10829
10830 2007-10-07  Jim Meyering  <meyering@redhat.com>
10831
10832         Make xnanosleep's integer overflow test more robust.
10833         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10834         so that gcc-4.3.0 doesn't optimize away this test for overflow.
10835
10836 2007-10-07  Bruno Haible  <bruno@clisp.org>
10837
10838         * NEWS: Mention the license change.
10839
10840         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10841         abbreviations in the modules files.
10842
10843         Change copyright notice from GPLv2+ to GPLv3+.
10844         * README: Change copyright notice.
10845         * MODULES.html.sh: Likewise.
10846         * build-aux/bootstrap.conf: Likewise.
10847         * build-aux/config.libpath: Likewise.
10848         * build-aux/csharpcomp.sh.in: Likewise.
10849         * build-aux/csharpexec.sh.in: Likewise.
10850         * build-aux/install-reloc: Likewise.
10851         * build-aux/javacomp.sh.in: Likewise.
10852         * build-aux/javaexec.sh.in: Likewise.
10853         * build-aux/ldd.sh.in: Likewise.
10854         * build-aux/reloc-ldflags: Likewise.
10855         * build-aux/relocatable.sh.in: Likewise.
10856         * build-aux/x-to-1.in: Likewise.
10857         * check-module: Likewise.
10858         * config/srclistvars.sh: Likewise.
10859         * gnulib-tool: Likewise.
10860         * lib/acl-internal.h: Likewise.
10861         * lib/acl.c: Likewise.
10862         * lib/acl.h: Likewise.
10863         * lib/acl_entries.c: Likewise.
10864         * lib/areadlink-with-size.c: Likewise.
10865         * lib/areadlink.c: Likewise.
10866         * lib/areadlink.h: Likewise.
10867         * lib/argmatch.c: Likewise.
10868         * lib/argmatch.h: Likewise.
10869         * lib/argp-ba.c: Likewise.
10870         * lib/argp-eexst.c: Likewise.
10871         * lib/argp-fmtstream.c: Likewise.
10872         * lib/argp-fmtstream.h: Likewise.
10873         * lib/argp-fs-xinl.c: Likewise.
10874         * lib/argp-help.c: Likewise.
10875         * lib/argp-namefrob.h: Likewise.
10876         * lib/argp-parse.c: Likewise.
10877         * lib/argp-pin.c: Likewise.
10878         * lib/argp-pv.c: Likewise.
10879         * lib/argp-pvh.c: Likewise.
10880         * lib/argp-xinl.c: Likewise.
10881         * lib/argp.h: Likewise.
10882         * lib/at-func.c: Likewise.
10883         * lib/atanl.c: Likewise.
10884         * lib/backupfile.c: Likewise.
10885         * lib/backupfile.h: Likewise.
10886         * lib/basename.c: Likewise.
10887         * lib/binary-io.h: Likewise.
10888         * lib/byteswap.in.h: Likewise.
10889         * lib/c-stack.c: Likewise.
10890         * lib/c-stack.h: Likewise.
10891         * lib/c-strcasestr.c: Likewise.
10892         * lib/c-strcasestr.h: Likewise.
10893         * lib/c-strstr.c: Likewise.
10894         * lib/c-strstr.h: Likewise.
10895         * lib/c-strtod.c: Likewise.
10896         * lib/calloc.c: Likewise.
10897         * lib/canon-host.c: Likewise.
10898         * lib/canon-host.h: Likewise.
10899         * lib/canonicalize-lgpl.c: Likewise.
10900         * lib/canonicalize.c: Likewise.
10901         * lib/canonicalize.h: Likewise.
10902         * lib/ceil.c: Likewise.
10903         * lib/ceilf.c: Likewise.
10904         * lib/ceill.c: Likewise.
10905         * lib/chdir-long.c: Likewise.
10906         * lib/chdir-long.h: Likewise.
10907         * lib/chdir-safer.c: Likewise.
10908         * lib/chdir-safer.h: Likewise.
10909         * lib/chown.c: Likewise.
10910         * lib/classpath.c: Likewise.
10911         * lib/classpath.h: Likewise.
10912         * lib/clean-temp.c: Likewise.
10913         * lib/clean-temp.h: Likewise.
10914         * lib/cloexec.c: Likewise.
10915         * lib/close-stream.c: Likewise.
10916         * lib/closein.c: Likewise.
10917         * lib/closein.h: Likewise.
10918         * lib/closeout.c: Likewise.
10919         * lib/closeout.h: Likewise.
10920         * lib/concat-filename.c: Likewise.
10921         * lib/copy-file.c: Likewise.
10922         * lib/copy-file.h: Likewise.
10923         * lib/count-one-bits.h: Likewise.
10924         * lib/crc.c: Likewise.
10925         * lib/crc.h: Likewise.
10926         * lib/creat-safer.c: Likewise.
10927         * lib/csharpcomp.c: Likewise.
10928         * lib/csharpcomp.h: Likewise.
10929         * lib/csharpexec.c: Likewise.
10930         * lib/csharpexec.h: Likewise.
10931         * lib/cycle-check.c: Likewise.
10932         * lib/cycle-check.h: Likewise.
10933         * lib/diacrit.c: Likewise.
10934         * lib/diacrit.h: Likewise.
10935         * lib/diffseq.h: Likewise.
10936         * lib/dirchownmod.c: Likewise.
10937         * lib/dirent.in.h: Likewise.
10938         * lib/dirfd.c: Likewise.
10939         * lib/dirfd.h: Likewise.
10940         * lib/dirname.c: Likewise.
10941         * lib/dirname.h: Likewise.
10942         * lib/dummy.c: Likewise.
10943         * lib/dup-safer.c: Likewise.
10944         * lib/dup2.c: Likewise.
10945         * lib/eealloc.h: Likewise.
10946         * lib/error.c: Likewise.
10947         * lib/error.h: Likewise.
10948         * lib/euidaccess.c: Likewise.
10949         * lib/exclude.c: Likewise.
10950         * lib/exclude.h: Likewise.
10951         * lib/execute.c: Likewise.
10952         * lib/execute.h: Likewise.
10953         * lib/exitfail.c: Likewise.
10954         * lib/exitfail.h: Likewise.
10955         * lib/expl.c: Likewise.
10956         * lib/fatal-signal.c: Likewise.
10957         * lib/fatal-signal.h: Likewise.
10958         * lib/fbufmode.c: Likewise.
10959         * lib/fbufmode.h: Likewise.
10960         * lib/fchdir.c: Likewise.
10961         * lib/fchmodat.c: Likewise.
10962         * lib/fchownat.c: Likewise.
10963         * lib/fcntl--.h: Likewise.
10964         * lib/fcntl-safer.h: Likewise.
10965         * lib/fcntl.in.h: Likewise.
10966         * lib/fd-safer.c: Likewise.
10967         * lib/fflush.c: Likewise.
10968         * lib/file-has-acl.c: Likewise.
10969         * lib/file-set.c: Likewise.
10970         * lib/file-type.c: Likewise.
10971         * lib/file-type.h: Likewise.
10972         * lib/fileblocks.c: Likewise.
10973         * lib/filemode.c: Likewise.
10974         * lib/filemode.h: Likewise.
10975         * lib/filename.h: Likewise.
10976         * lib/filenamecat.c: Likewise.
10977         * lib/filenamecat.h: Likewise.
10978         * lib/findprog.c: Likewise.
10979         * lib/findprog.h: Likewise.
10980         * lib/float.in.h: Likewise.
10981         * lib/floor.c: Likewise.
10982         * lib/floorf.c: Likewise.
10983         * lib/floorl.c: Likewise.
10984         * lib/fopen-safer.c: Likewise.
10985         * lib/fopen.c: Likewise.
10986         * lib/fpending.c: Likewise.
10987         * lib/fpending.h: Likewise.
10988         * lib/fprintf.c: Likewise.
10989         * lib/fprintftime.h: Likewise.
10990         * lib/fpucw.h: Likewise.
10991         * lib/fpurge.c: Likewise.
10992         * lib/fpurge.h: Likewise.
10993         * lib/freadable.c: Likewise.
10994         * lib/freadable.h: Likewise.
10995         * lib/freadahead.c: Likewise.
10996         * lib/freadahead.h: Likewise.
10997         * lib/freading.c: Likewise.
10998         * lib/freading.h: Likewise.
10999         * lib/free.c: Likewise.
11000         * lib/freopen.c: Likewise.
11001         * lib/frexp.c: Likewise.
11002         * lib/frexpl.c: Likewise.
11003         * lib/fseek.c: Likewise.
11004         * lib/fseterr.c: Likewise.
11005         * lib/fseterr.h: Likewise.
11006         * lib/fstatat.c: Likewise.
11007         * lib/fstrcmp.c: Likewise.
11008         * lib/fstrcmp.h: Likewise.
11009         * lib/fsusage.c: Likewise.
11010         * lib/fsusage.h: Likewise.
11011         * lib/ftell.c: Likewise.
11012         * lib/ftello.c: Likewise.
11013         * lib/fts-cycle.c: Likewise.
11014         * lib/fts.c: Likewise.
11015         * lib/fts_.h: Likewise.
11016         * lib/full-read.c: Likewise.
11017         * lib/full-read.h: Likewise.
11018         * lib/full-write.c: Likewise.
11019         * lib/full-write.h: Likewise.
11020         * lib/fwritable.c: Likewise.
11021         * lib/fwritable.h: Likewise.
11022         * lib/fwriteerror.c: Likewise.
11023         * lib/fwriteerror.h: Likewise.
11024         * lib/fwriting.c: Likewise.
11025         * lib/fwriting.h: Likewise.
11026         * lib/gcd.c: Likewise.
11027         * lib/gcd.h: Likewise.
11028         * lib/getcwd.c: Likewise.
11029         * lib/getdate.h: Likewise.
11030         * lib/getdate.y: Likewise.
11031         * lib/getdomainname.c: Likewise.
11032         * lib/getdomainname.h: Likewise.
11033         * lib/getgroups.c: Likewise.
11034         * lib/gethostname.c: Likewise.
11035         * lib/gethrxtime.c: Likewise.
11036         * lib/gethrxtime.h: Likewise.
11037         * lib/getloadavg.c: Likewise.
11038         * lib/getndelim2.c: Likewise.
11039         * lib/getndelim2.h: Likewise.
11040         * lib/getnline.c: Likewise.
11041         * lib/getnline.h: Likewise.
11042         * lib/getopt.c: Likewise.
11043         * lib/getopt.in.h: Likewise.
11044         * lib/getopt1.c: Likewise.
11045         * lib/getopt_int.h: Likewise.
11046         * lib/getpagesize.h: Likewise.
11047         * lib/getsubopt.c: Likewise.
11048         * lib/gettime.c: Likewise.
11049         * lib/getugroups.c: Likewise.
11050         * lib/getugroups.h: Likewise.
11051         * lib/getusershell.c: Likewise.
11052         * lib/gl_anyavltree_list1.h: Likewise.
11053         * lib/gl_anyavltree_list2.h: Likewise.
11054         * lib/gl_anyhash_list1.h: Likewise.
11055         * lib/gl_anyhash_list2.h: Likewise.
11056         * lib/gl_anylinked_list1.h: Likewise.
11057         * lib/gl_anylinked_list2.h: Likewise.
11058         * lib/gl_anyrbtree_list1.h: Likewise.
11059         * lib/gl_anyrbtree_list2.h: Likewise.
11060         * lib/gl_anytree_list1.h: Likewise.
11061         * lib/gl_anytree_list2.h: Likewise.
11062         * lib/gl_anytree_oset.h: Likewise.
11063         * lib/gl_anytreehash_list1.h: Likewise.
11064         * lib/gl_anytreehash_list2.h: Likewise.
11065         * lib/gl_array_list.c: Likewise.
11066         * lib/gl_array_list.h: Likewise.
11067         * lib/gl_array_oset.c: Likewise.
11068         * lib/gl_array_oset.h: Likewise.
11069         * lib/gl_avltree_list.c: Likewise.
11070         * lib/gl_avltree_list.h: Likewise.
11071         * lib/gl_avltree_oset.c: Likewise.
11072         * lib/gl_avltree_oset.h: Likewise.
11073         * lib/gl_avltreehash_list.c: Likewise.
11074         * lib/gl_avltreehash_list.h: Likewise.
11075         * lib/gl_carray_list.c: Likewise.
11076         * lib/gl_carray_list.h: Likewise.
11077         * lib/gl_linked_list.c: Likewise.
11078         * lib/gl_linked_list.h: Likewise.
11079         * lib/gl_linkedhash_list.c: Likewise.
11080         * lib/gl_linkedhash_list.h: Likewise.
11081         * lib/gl_list.c: Likewise.
11082         * lib/gl_list.h: Likewise.
11083         * lib/gl_oset.c: Likewise.
11084         * lib/gl_oset.h: Likewise.
11085         * lib/gl_rbtree_list.c: Likewise.
11086         * lib/gl_rbtree_list.h: Likewise.
11087         * lib/gl_rbtree_oset.c: Likewise.
11088         * lib/gl_rbtree_oset.h: Likewise.
11089         * lib/gl_rbtreehash_list.c: Likewise.
11090         * lib/gl_rbtreehash_list.h: Likewise.
11091         * lib/gl_sublist.c: Likewise.
11092         * lib/gl_sublist.h: Likewise.
11093         * lib/group-member.c: Likewise.
11094         * lib/group-member.h: Likewise.
11095         * lib/hard-locale.c: Likewise.
11096         * lib/hard-locale.h: Likewise.
11097         * lib/hash-pjw.c: Likewise.
11098         * lib/hash-pjw.h: Likewise.
11099         * lib/hash-triple.c: Likewise.
11100         * lib/hash.c: Likewise.
11101         * lib/hash.h: Likewise.
11102         * lib/human.c: Likewise.
11103         * lib/human.h: Likewise.
11104         * lib/i-ring.c: Likewise.
11105         * lib/i-ring.h: Likewise.
11106         * lib/idcache.c: Likewise.
11107         * lib/imaxabs.c: Likewise.
11108         * lib/imaxdiv.c: Likewise.
11109         * lib/inet_pton.c: Likewise.
11110         * lib/inet_pton.h: Likewise.
11111         * lib/intprops.h: Likewise.
11112         * lib/inttostr.c: Likewise.
11113         * lib/inttostr.h: Likewise.
11114         * lib/inttypes.in.h: Likewise.
11115         * lib/isapipe.c: Likewise.
11116         * lib/isdir.c: Likewise.
11117         * lib/isnan.c: Likewise.
11118         * lib/isnan.h: Likewise.
11119         * lib/isnanf.c: Likewise.
11120         * lib/isnanf.h: Likewise.
11121         * lib/isnanl-nolibm.h: Likewise.
11122         * lib/isnanl.c: Likewise.
11123         * lib/isnanl.h: Likewise.
11124         * lib/javacomp.c: Likewise.
11125         * lib/javacomp.h: Likewise.
11126         * lib/javaexec.c: Likewise.
11127         * lib/javaexec.h: Likewise.
11128         * lib/javaversion.c: Likewise.
11129         * lib/javaversion.h: Likewise.
11130         * lib/javaversion.java: Likewise.
11131         * lib/lbrkprop.h: Likewise.
11132         * lib/lchmod.h: Likewise.
11133         * lib/lchown.c: Likewise.
11134         * lib/ldexpl.c: Likewise.
11135         * lib/linebreak.c: Likewise.
11136         * lib/linebreak.h: Likewise.
11137         * lib/linebuffer.c: Likewise.
11138         * lib/linebuffer.h: Likewise.
11139         * lib/locale.in.h: Likewise.
11140         * lib/logl.c: Likewise.
11141         * lib/long-options.c: Likewise.
11142         * lib/long-options.h: Likewise.
11143         * lib/lstat.c: Likewise.
11144         * lib/lstat.h: Likewise.
11145         * lib/math.in.h: Likewise.
11146         * lib/mbchar.c: Likewise.
11147         * lib/mbchar.h: Likewise.
11148         * lib/mbfile.h: Likewise.
11149         * lib/mbiter.h: Likewise.
11150         * lib/mbscasecmp.c: Likewise.
11151         * lib/mbscasestr.c: Likewise.
11152         * lib/mbschr.c: Likewise.
11153         * lib/mbscspn.c: Likewise.
11154         * lib/mbslen.c: Likewise.
11155         * lib/mbsncasecmp.c: Likewise.
11156         * lib/mbsnlen.c: Likewise.
11157         * lib/mbspbrk.c: Likewise.
11158         * lib/mbspcasecmp.c: Likewise.
11159         * lib/mbsrchr.c: Likewise.
11160         * lib/mbssep.c: Likewise.
11161         * lib/mbsspn.c: Likewise.
11162         * lib/mbsstr.c: Likewise.
11163         * lib/mbstok_r.c: Likewise.
11164         * lib/mbswidth.c: Likewise.
11165         * lib/mbswidth.h: Likewise.
11166         * lib/mbuiter.h: Likewise.
11167         * lib/memcasecmp.c: Likewise.
11168         * lib/memcasecmp.h: Likewise.
11169         * lib/memchr.c: Likewise.
11170         * lib/memcmp.c: Likewise.
11171         * lib/memcoll.c: Likewise.
11172         * lib/memcoll.h: Likewise.
11173         * lib/memcpy.c: Likewise.
11174         * lib/memrchr.c: Likewise.
11175         * lib/mkancesdirs.c: Likewise.
11176         * lib/mkdir-p.c: Likewise.
11177         * lib/mkdir-p.h: Likewise.
11178         * lib/mkdir.c: Likewise.
11179         * lib/mkdirat.c: Likewise.
11180         * lib/mkdtemp.c: Likewise.
11181         * lib/mkstemp-safer.c: Likewise.
11182         * lib/mkstemp.c: Likewise.
11183         * lib/modechange.c: Likewise.
11184         * lib/modechange.h: Likewise.
11185         * lib/mountlist.c: Likewise.
11186         * lib/mountlist.h: Likewise.
11187         * lib/mpsort.c: Likewise.
11188         * lib/nanosleep.c: Likewise.
11189         * lib/obstack.c: Likewise.
11190         * lib/obstack.h: Likewise.
11191         * lib/open-safer.c: Likewise.
11192         * lib/open.c: Likewise.
11193         * lib/openat-die.c: Likewise.
11194         * lib/openat-priv.h: Likewise.
11195         * lib/openat-proc.c: Likewise.
11196         * lib/openat.c: Likewise.
11197         * lib/openat.h: Likewise.
11198         * lib/pagealign_alloc.c: Likewise.
11199         * lib/pagealign_alloc.h: Likewise.
11200         * lib/physmem.c: Likewise.
11201         * lib/physmem.h: Likewise.
11202         * lib/pipe-safer.c: Likewise.
11203         * lib/pipe.c: Likewise.
11204         * lib/pipe.h: Likewise.
11205         * lib/posixtm.c: Likewise.
11206         * lib/posixtm.h: Likewise.
11207         * lib/posixver.c: Likewise.
11208         * lib/printf-frexp.c: Likewise.
11209         * lib/printf-frexp.h: Likewise.
11210         * lib/printf-frexpl.c: Likewise.
11211         * lib/printf-frexpl.h: Likewise.
11212         * lib/printf.c: Likewise.
11213         * lib/progname.c: Likewise.
11214         * lib/progname.h: Likewise.
11215         * lib/progreloc.c: Likewise.
11216         * lib/putenv.c: Likewise.
11217         * lib/quote.c: Likewise.
11218         * lib/quote.h: Likewise.
11219         * lib/quotearg.c: Likewise.
11220         * lib/quotearg.h: Likewise.
11221         * lib/raise.c: Likewise.
11222         * lib/readline.c: Likewise.
11223         * lib/readline.h: Likewise.
11224         * lib/readlink.c: Likewise.
11225         * lib/readtokens.c: Likewise.
11226         * lib/readtokens.h: Likewise.
11227         * lib/readtokens0.c: Likewise.
11228         * lib/readtokens0.h: Likewise.
11229         * lib/readutmp.c: Likewise.
11230         * lib/readutmp.h: Likewise.
11231         * lib/realloc.c: Likewise.
11232         * lib/relocwrapper.c: Likewise.
11233         * lib/rename-dest-slash.c: Likewise.
11234         * lib/rename.c: Likewise.
11235         * lib/rmdir.c: Likewise.
11236         * lib/rpmatch.c: Likewise.
11237         * lib/safe-read.c: Likewise.
11238         * lib/safe-read.h: Likewise.
11239         * lib/safe-write.c: Likewise.
11240         * lib/safe-write.h: Likewise.
11241         * lib/same-inode.h: Likewise.
11242         * lib/same.c: Likewise.
11243         * lib/same.h: Likewise.
11244         * lib/save-cwd.c: Likewise.
11245         * lib/save-cwd.h: Likewise.
11246         * lib/savedir.c: Likewise.
11247         * lib/savedir.h: Likewise.
11248         * lib/savewd.c: Likewise.
11249         * lib/savewd.h: Likewise.
11250         * lib/search.in.h: Likewise.
11251         * lib/setenv.c: Likewise.
11252         * lib/setenv.h: Likewise.
11253         * lib/settime.c: Likewise.
11254         * lib/sh-quote.c: Likewise.
11255         * lib/sh-quote.h: Likewise.
11256         * lib/sig2str.c: Likewise.
11257         * lib/sig2str.h: Likewise.
11258         * lib/signal.in.h: Likewise.
11259         * lib/signbitd.c: Likewise.
11260         * lib/signbitf.c: Likewise.
11261         * lib/signbitl.c: Likewise.
11262         * lib/sigprocmask.c: Likewise.
11263         * lib/sincosl.c: Likewise.
11264         * lib/sleep.c: Likewise.
11265         * lib/sprintf.c: Likewise.
11266         * lib/sqrtl.c: Likewise.
11267         * lib/stat-time.h: Likewise.
11268         * lib/stdio--.h: Likewise.
11269         * lib/stdio-safer.h: Likewise.
11270         * lib/stdlib--.h: Likewise.
11271         * lib/stdlib-safer.h: Likewise.
11272         * lib/stdlib.in.h: Likewise.
11273         * lib/stpcpy.c: Likewise.
11274         * lib/stpncpy.c: Likewise.
11275         * lib/strchrnul.c: Likewise.
11276         * lib/strcspn.c: Likewise.
11277         * lib/strerror.c: Likewise.
11278         * lib/strftime.c: Likewise.
11279         * lib/strftime.h: Likewise.
11280         * lib/striconveh.c: Likewise.
11281         * lib/striconveh.h: Likewise.
11282         * lib/striconveha.c: Likewise.
11283         * lib/striconveha.h: Likewise.
11284         * lib/stripslash.c: Likewise.
11285         * lib/strnlen1.c: Likewise.
11286         * lib/strnlen1.h: Likewise.
11287         * lib/strtod.c: Likewise.
11288         * lib/strtoimax.c: Likewise.
11289         * lib/strtok_r.c: Likewise.
11290         * lib/strtol.c: Likewise.
11291         * lib/strtoll.c: Likewise.
11292         * lib/strtoul.c: Likewise.
11293         * lib/strtoull.c: Likewise.
11294         * lib/sysexits.in.h: Likewise.
11295         * lib/tempname.c: Likewise.
11296         * lib/tempname.h: Likewise.
11297         * lib/timespec.h: Likewise.
11298         * lib/tls.c: Likewise.
11299         * lib/tls.h: Likewise.
11300         * lib/tmpdir.c: Likewise.
11301         * lib/tmpdir.h: Likewise.
11302         * lib/tmpfile-safer.c: Likewise.
11303         * lib/tmpfile.c: Likewise.
11304         * lib/trigl.c: Likewise.
11305         * lib/trigl.h: Likewise.
11306         * lib/trim.c: Likewise.
11307         * lib/trim.h: Likewise.
11308         * lib/trunc.c: Likewise.
11309         * lib/truncf.c: Likewise.
11310         * lib/truncl.c: Likewise.
11311         * lib/tsearch.c: Likewise.
11312         * lib/unicodeio.c: Likewise.
11313         * lib/unicodeio.h: Likewise.
11314         * lib/unistd--.h: Likewise.
11315         * lib/unistd-safer.h: Likewise.
11316         * lib/unistdio/ulc-fprintf.c: Likewise.
11317         * lib/unistdio/ulc-vfprintf.c: Likewise.
11318         * lib/unlinkdir.c: Likewise.
11319         * lib/unlinkdir.h: Likewise.
11320         * lib/unlocked-io.h: Likewise.
11321         * lib/unsetenv.c: Likewise.
11322         * lib/userspec.c: Likewise.
11323         * lib/utime.c: Likewise.
11324         * lib/utimecmp.c: Likewise.
11325         * lib/utimecmp.h: Likewise.
11326         * lib/utimens.c: Likewise.
11327         * lib/verify.h: Likewise.
11328         * lib/verror.c: Likewise.
11329         * lib/verror.h: Likewise.
11330         * lib/version-etc-fsf.c: Likewise.
11331         * lib/version-etc.c: Likewise.
11332         * lib/version-etc.h: Likewise.
11333         * lib/vfprintf.c: Likewise.
11334         * lib/vprintf.c: Likewise.
11335         * lib/vsprintf.c: Likewise.
11336         * lib/w32spawn.h: Likewise.
11337         * lib/wait-process.c: Likewise.
11338         * lib/wait-process.h: Likewise.
11339         * lib/wcwidth.c: Likewise.
11340         * lib/write-any-file.c: Likewise.
11341         * lib/xalloc-die.c: Likewise.
11342         * lib/xalloc.h: Likewise.
11343         * lib/xasprintf.c: Likewise.
11344         * lib/xgetcwd.c: Likewise.
11345         * lib/xgetcwd.h: Likewise.
11346         * lib/xgetdomainname.c: Likewise.
11347         * lib/xgetdomainname.h: Likewise.
11348         * lib/xgethostname.c: Likewise.
11349         * lib/xmalloc.c: Likewise.
11350         * lib/xmalloca.c: Likewise.
11351         * lib/xmalloca.h: Likewise.
11352         * lib/xmemcoll.c: Likewise.
11353         * lib/xnanosleep.c: Likewise.
11354         * lib/xreadlink.c: Likewise.
11355         * lib/xreadlink.h: Likewise.
11356         * lib/xsetenv.c: Likewise.
11357         * lib/xsetenv.h: Likewise.
11358         * lib/xstriconv.c: Likewise.
11359         * lib/xstriconv.h: Likewise.
11360         * lib/xstrndup.c: Likewise.
11361         * lib/xstrndup.h: Likewise.
11362         * lib/xstrtod.c: Likewise.
11363         * lib/xstrtod.h: Likewise.
11364         * lib/xstrtol-error.c: Likewise.
11365         * lib/xstrtol.c: Likewise.
11366         * lib/xstrtol.h: Likewise.
11367         * lib/xtime.h: Likewise.
11368         * lib/xvasprintf.c: Likewise.
11369         * lib/xvasprintf.h: Likewise.
11370         * lib/yesno.c: Likewise.
11371         * lib/yesno.h: Likewise.
11372         * posix-modules: Likewise.
11373         * tests/test-alloca-opt.c: Likewise.
11374         * tests/test-arcfour.c: Likewise.
11375         * tests/test-arctwo.c: Likewise.
11376         * tests/test-argmatch.c: Likewise.
11377         * tests/test-argp-2.sh: Likewise.
11378         * tests/test-argp.c: Likewise.
11379         * tests/test-arpa_inet.c: Likewise.
11380         * tests/test-array_list.c: Likewise.
11381         * tests/test-array_oset.c: Likewise.
11382         * tests/test-atexit.c: Likewise.
11383         * tests/test-avltree_list.c: Likewise.
11384         * tests/test-avltree_oset.c: Likewise.
11385         * tests/test-avltreehash_list.c: Likewise.
11386         * tests/test-base64.c: Likewise.
11387         * tests/test-binary-io.c: Likewise.
11388         * tests/test-byteswap.c: Likewise.
11389         * tests/test-c-ctype.c: Likewise.
11390         * tests/test-c-strcasecmp.c: Likewise.
11391         * tests/test-c-strcasestr.c: Likewise.
11392         * tests/test-c-strncasecmp.c: Likewise.
11393         * tests/test-c-strstr.c: Likewise.
11394         * tests/test-canonicalize-lgpl.c: Likewise.
11395         * tests/test-canonicalize.c: Likewise.
11396         * tests/test-carray_list.c: Likewise.
11397         * tests/test-ceilf.c: Likewise.
11398         * tests/test-ceill.c: Likewise.
11399         * tests/test-count-one-bits.c: Likewise.
11400         * tests/test-crc.c: Likewise.
11401         * tests/test-dirname.c: Likewise.
11402         * tests/test-fbufmode.c: Likewise.
11403         * tests/test-fcntl.c: Likewise.
11404         * tests/test-fflush.c: Likewise.
11405         * tests/test-floorf.c: Likewise.
11406         * tests/test-floorl.c: Likewise.
11407         * tests/test-fopen.c: Likewise.
11408         * tests/test-fprintf-posix.c: Likewise.
11409         * tests/test-fprintf-posix.h: Likewise.
11410         * tests/test-fpurge.c: Likewise.
11411         * tests/test-freadable.c: Likewise.
11412         * tests/test-freadahead.c: Likewise.
11413         * tests/test-freading.c: Likewise.
11414         * tests/test-freopen.c: Likewise.
11415         * tests/test-frexp.c: Likewise.
11416         * tests/test-frexpl.c: Likewise.
11417         * tests/test-fseek.c: Likewise.
11418         * tests/test-fseeko.c: Likewise.
11419         * tests/test-fseterr.c: Likewise.
11420         * tests/test-fstrcmp.c: Likewise.
11421         * tests/test-ftell.c: Likewise.
11422         * tests/test-ftello.c: Likewise.
11423         * tests/test-fwritable.c: Likewise.
11424         * tests/test-fwriting.c: Likewise.
11425         * tests/test-getaddrinfo.c: Likewise.
11426         * tests/test-getpass.c: Likewise.
11427         * tests/test-gettimeofday.c: Likewise.
11428         * tests/test-hmac-md5.c: Likewise.
11429         * tests/test-hmac-sha1.c: Likewise.
11430         * tests/test-iconv.c: Likewise.
11431         * tests/test-iconvme.c: Likewise.
11432         * tests/test-inttypes.c: Likewise.
11433         * tests/test-isnan.c: Likewise.
11434         * tests/test-isnanf.c: Likewise.
11435         * tests/test-isnanl-nolibm.c: Likewise.
11436         * tests/test-isnanl.c: Likewise.
11437         * tests/test-isnanl.h: Likewise.
11438         * tests/test-ldexpl.c: Likewise.
11439         * tests/test-linked_list.c: Likewise.
11440         * tests/test-linkedhash_list.c: Likewise.
11441         * tests/test-locale.c: Likewise.
11442         * tests/test-localename.c: Likewise.
11443         * tests/test-lock.c: Likewise.
11444         * tests/test-lseek.c: Likewise.
11445         * tests/test-malloca.c: Likewise.
11446         * tests/test-math.c: Likewise.
11447         * tests/test-mbscasecmp.c: Likewise.
11448         * tests/test-mbscasestr1.c: Likewise.
11449         * tests/test-mbscasestr2.c: Likewise.
11450         * tests/test-mbscasestr3.c: Likewise.
11451         * tests/test-mbscasestr4.c: Likewise.
11452         * tests/test-mbschr.c: Likewise.
11453         * tests/test-mbscspn.c: Likewise.
11454         * tests/test-mbsncasecmp.c: Likewise.
11455         * tests/test-mbspbrk.c: Likewise.
11456         * tests/test-mbspcasecmp.c: Likewise.
11457         * tests/test-mbsrchr.c: Likewise.
11458         * tests/test-mbsspn.c: Likewise.
11459         * tests/test-mbsstr1.c: Likewise.
11460         * tests/test-mbsstr2.c: Likewise.
11461         * tests/test-mbsstr3.c: Likewise.
11462         * tests/test-md5.c: Likewise.
11463         * tests/test-memmem.c: Likewise.
11464         * tests/test-netinet_in.c: Likewise.
11465         * tests/test-open.c: Likewise.
11466         * tests/test-printf-frexp.c: Likewise.
11467         * tests/test-printf-frexpl.c: Likewise.
11468         * tests/test-printf-posix.c: Likewise.
11469         * tests/test-printf-posix.h: Likewise.
11470         * tests/test-rbtree_list.c: Likewise.
11471         * tests/test-rbtree_oset.c: Likewise.
11472         * tests/test-rbtreehash_list.c: Likewise.
11473         * tests/test-read-file.c: Likewise.
11474         * tests/test-rijndael.c: Likewise.
11475         * tests/test-search.c: Likewise.
11476         * tests/test-signbit.c: Likewise.
11477         * tests/test-sleep.c: Likewise.
11478         * tests/test-snprintf-posix.c: Likewise.
11479         * tests/test-snprintf-posix.h: Likewise.
11480         * tests/test-snprintf.c: Likewise.
11481         * tests/test-sprintf-posix.c: Likewise.
11482         * tests/test-sprintf-posix.h: Likewise.
11483         * tests/test-stat-time.c: Likewise.
11484         * tests/test-stdbool.c: Likewise.
11485         * tests/test-stdint.c: Likewise.
11486         * tests/test-stdio.c: Likewise.
11487         * tests/test-stdlib.c: Likewise.
11488         * tests/test-stpncpy.c: Likewise.
11489         * tests/test-strcasestr.c: Likewise.
11490         * tests/test-striconv.c: Likewise.
11491         * tests/test-striconveh.c: Likewise.
11492         * tests/test-striconveha.c: Likewise.
11493         * tests/test-string.c: Likewise.
11494         * tests/test-sys_select.c: Likewise.
11495         * tests/test-sys_socket.c: Likewise.
11496         * tests/test-sys_stat.c: Likewise.
11497         * tests/test-sys_time.c: Likewise.
11498         * tests/test-sysexits.c: Likewise.
11499         * tests/test-time.c: Likewise.
11500         * tests/test-tls.c: Likewise.
11501         * tests/test-trunc.c: Likewise.
11502         * tests/test-truncf.c: Likewise.
11503         * tests/test-truncl.c: Likewise.
11504         * tests/test-unistd.c: Likewise.
11505         * tests/test-vasnprintf-posix.c: Likewise.
11506         * tests/test-vasnprintf-posix2.c: Likewise.
11507         * tests/test-vasnprintf.c: Likewise.
11508         * tests/test-vasprintf-posix.c: Likewise.
11509         * tests/test-vasprintf.c: Likewise.
11510         * tests/test-verify.c: Likewise.
11511         * tests/test-vfprintf-posix.c: Likewise.
11512         * tests/test-vprintf-posix.c: Likewise.
11513         * tests/test-vsnprintf-posix.c: Likewise.
11514         * tests/test-vsnprintf.c: Likewise.
11515         * tests/test-vsprintf-posix.c: Likewise.
11516         * tests/test-wchar.c: Likewise.
11517         * tests/test-wctype.c: Likewise.
11518         * tests/test-wcwidth.c: Likewise.
11519         * tests/test-xstrtol.c: Likewise.
11520         * tests/test-xvasprintf.c: Likewise.
11521         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11522         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11523         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11524         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11525         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11526         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11527         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11528         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11529         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11530         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11531         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11532         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11533         * tests/uniname/test-uninames.c: Likewise.
11534         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11535         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11536         * tests/unistdio/test-u16-printf1.h: Likewise.
11537         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11538         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11539         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11540         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11541         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11542         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11543         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11544         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11545         * tests/unistdio/test-u32-printf1.h: Likewise.
11546         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11547         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11548         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11549         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11550         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11551         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11552         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11553         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11554         * tests/unistdio/test-u8-printf1.h: Likewise.
11555         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11556         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11557         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11558         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11559         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11560         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11561         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11562         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11563         * tests/unistdio/test-ulc-printf1.h: Likewise.
11564         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11565         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11566         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11567         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11568         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11569         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11570         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11571         * tests/uniwidth/test-u16-width.c: Likewise.
11572         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11573         * tests/uniwidth/test-u32-width.c: Likewise.
11574         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11575         * tests/uniwidth/test-u8-width.c: Likewise.
11576         * tests/uniwidth/test-uc_width.c: Likewise.
11577         * config/srclist-update: Likewise.
11578         (fixlicense): Update to GPLv3+.
11579
11580         Change copyright notice from LGPLv2.1+ to LGPLv3+.
11581         * tests/test-tsearch.c: Change copyright notice.
11582
11583         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11584         * lib/c-strcaseeq.h: Change copyright notice.
11585         * lib/streq.h: Likewise.
11586         * lib/uniconv.h: Likewise.
11587         * lib/uniconv/u-conv-from-enc.h: Likewise.
11588         * lib/uniconv/u-conv-to-enc.h: Likewise.
11589         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11590         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11591         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11592         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11593         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11594         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11595         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11596         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11597         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11598         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11599         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11600         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11601         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11602         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11603         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11604         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11605         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11606         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11607         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11608         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11609         * lib/uniname.h: Likewise.
11610         * lib/uniname/uniname.c: Likewise.
11611         * lib/unistdio.h: Likewise.
11612         * lib/unistdio/u-asnprintf.h: Likewise.
11613         * lib/unistdio/u-asprintf.h: Likewise.
11614         * lib/unistdio/u-printf-args.c: Likewise.
11615         * lib/unistdio/u-printf-args.h: Likewise.
11616         * lib/unistdio/u-printf-parse.h: Likewise.
11617         * lib/unistdio/u-snprintf.h: Likewise.
11618         * lib/unistdio/u-sprintf.h: Likewise.
11619         * lib/unistdio/u-vasprintf.h: Likewise.
11620         * lib/unistdio/u-vsnprintf.h: Likewise.
11621         * lib/unistdio/u-vsprintf.h: Likewise.
11622         * lib/unistdio/u16-asnprintf.c: Likewise.
11623         * lib/unistdio/u16-asprintf.c: Likewise.
11624         * lib/unistdio/u16-printf-parse.c: Likewise.
11625         * lib/unistdio/u16-snprintf.c: Likewise.
11626         * lib/unistdio/u16-sprintf.c: Likewise.
11627         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11628         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11629         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11630         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11631         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11632         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11633         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11634         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11635         * lib/unistdio/u16-vasnprintf.c: Likewise.
11636         * lib/unistdio/u16-vasprintf.c: Likewise.
11637         * lib/unistdio/u16-vsnprintf.c: Likewise.
11638         * lib/unistdio/u16-vsprintf.c: Likewise.
11639         * lib/unistdio/u32-asnprintf.c: Likewise.
11640         * lib/unistdio/u32-asprintf.c: Likewise.
11641         * lib/unistdio/u32-printf-parse.c: Likewise.
11642         * lib/unistdio/u32-snprintf.c: Likewise.
11643         * lib/unistdio/u32-sprintf.c: Likewise.
11644         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11645         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11646         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11647         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11648         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11649         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11650         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11651         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11652         * lib/unistdio/u32-vasnprintf.c: Likewise.
11653         * lib/unistdio/u32-vasprintf.c: Likewise.
11654         * lib/unistdio/u32-vsnprintf.c: Likewise.
11655         * lib/unistdio/u32-vsprintf.c: Likewise.
11656         * lib/unistdio/u8-asnprintf.c: Likewise.
11657         * lib/unistdio/u8-asprintf.c: Likewise.
11658         * lib/unistdio/u8-printf-parse.c: Likewise.
11659         * lib/unistdio/u8-snprintf.c: Likewise.
11660         * lib/unistdio/u8-sprintf.c: Likewise.
11661         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11662         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11663         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11664         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11665         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11666         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11667         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11668         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11669         * lib/unistdio/u8-vasnprintf.c: Likewise.
11670         * lib/unistdio/u8-vasprintf.c: Likewise.
11671         * lib/unistdio/u8-vsnprintf.c: Likewise.
11672         * lib/unistdio/u8-vsprintf.c: Likewise.
11673         * lib/unistdio/ulc-asnprintf.c: Likewise.
11674         * lib/unistdio/ulc-asprintf.c: Likewise.
11675         * lib/unistdio/ulc-printf-parse.c: Likewise.
11676         * lib/unistdio/ulc-snprintf.c: Likewise.
11677         * lib/unistdio/ulc-sprintf.c: Likewise.
11678         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11679         * lib/unistdio/ulc-vasprintf.c: Likewise.
11680         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11681         * lib/unistdio/ulc-vsprintf.c: Likewise.
11682         * lib/unistr.h: Likewise.
11683         * lib/unistr/u-cpy-alloc.h: Likewise.
11684         * lib/unistr/u-cpy.h: Likewise.
11685         * lib/unistr/u-endswith.h: Likewise.
11686         * lib/unistr/u-move.h: Likewise.
11687         * lib/unistr/u-set.h: Likewise.
11688         * lib/unistr/u-startswith.h: Likewise.
11689         * lib/unistr/u-stpcpy.h: Likewise.
11690         * lib/unistr/u-stpncpy.h: Likewise.
11691         * lib/unistr/u-strcat.h: Likewise.
11692         * lib/unistr/u-strcpy.h: Likewise.
11693         * lib/unistr/u-strcspn.h: Likewise.
11694         * lib/unistr/u-strdup.h: Likewise.
11695         * lib/unistr/u-strlen.h: Likewise.
11696         * lib/unistr/u-strncat.h: Likewise.
11697         * lib/unistr/u-strncpy.h: Likewise.
11698         * lib/unistr/u-strnlen.h: Likewise.
11699         * lib/unistr/u-strpbrk.h: Likewise.
11700         * lib/unistr/u-strspn.h: Likewise.
11701         * lib/unistr/u-strstr.h: Likewise.
11702         * lib/unistr/u-strtok.h: Likewise.
11703         * lib/unistr/u16-check.c: Likewise.
11704         * lib/unistr/u16-chr.c: Likewise.
11705         * lib/unistr/u16-cmp.c: Likewise.
11706         * lib/unistr/u16-cpy-alloc.c: Likewise.
11707         * lib/unistr/u16-cpy.c: Likewise.
11708         * lib/unistr/u16-endswith.c: Likewise.
11709         * lib/unistr/u16-mblen.c: Likewise.
11710         * lib/unistr/u16-mbsnlen.c: Likewise.
11711         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11712         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11713         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11714         * lib/unistr/u16-mbtouc.c: Likewise.
11715         * lib/unistr/u16-mbtoucr.c: Likewise.
11716         * lib/unistr/u16-move.c: Likewise.
11717         * lib/unistr/u16-next.c: Likewise.
11718         * lib/unistr/u16-prev.c: Likewise.
11719         * lib/unistr/u16-set.c: Likewise.
11720         * lib/unistr/u16-startswith.c: Likewise.
11721         * lib/unistr/u16-stpcpy.c: Likewise.
11722         * lib/unistr/u16-stpncpy.c: Likewise.
11723         * lib/unistr/u16-strcat.c: Likewise.
11724         * lib/unistr/u16-strchr.c: Likewise.
11725         * lib/unistr/u16-strcmp.c: Likewise.
11726         * lib/unistr/u16-strcpy.c: Likewise.
11727         * lib/unistr/u16-strcspn.c: Likewise.
11728         * lib/unistr/u16-strdup.c: Likewise.
11729         * lib/unistr/u16-strlen.c: Likewise.
11730         * lib/unistr/u16-strmblen.c: Likewise.
11731         * lib/unistr/u16-strmbtouc.c: Likewise.
11732         * lib/unistr/u16-strncat.c: Likewise.
11733         * lib/unistr/u16-strncmp.c: Likewise.
11734         * lib/unistr/u16-strncpy.c: Likewise.
11735         * lib/unistr/u16-strnlen.c: Likewise.
11736         * lib/unistr/u16-strpbrk.c: Likewise.
11737         * lib/unistr/u16-strrchr.c: Likewise.
11738         * lib/unistr/u16-strspn.c: Likewise.
11739         * lib/unistr/u16-strstr.c: Likewise.
11740         * lib/unistr/u16-strtok.c: Likewise.
11741         * lib/unistr/u16-to-u32.c: Likewise.
11742         * lib/unistr/u16-to-u8.c: Likewise.
11743         * lib/unistr/u16-uctomb-aux.c: Likewise.
11744         * lib/unistr/u16-uctomb.c: Likewise.
11745         * lib/unistr/u32-check.c: Likewise.
11746         * lib/unistr/u32-chr.c: Likewise.
11747         * lib/unistr/u32-cmp.c: Likewise.
11748         * lib/unistr/u32-cpy-alloc.c: Likewise.
11749         * lib/unistr/u32-cpy.c: Likewise.
11750         * lib/unistr/u32-endswith.c: Likewise.
11751         * lib/unistr/u32-mblen.c: Likewise.
11752         * lib/unistr/u32-mbsnlen.c: Likewise.
11753         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11754         * lib/unistr/u32-mbtouc.c: Likewise.
11755         * lib/unistr/u32-mbtoucr.c: Likewise.
11756         * lib/unistr/u32-move.c: Likewise.
11757         * lib/unistr/u32-next.c: Likewise.
11758         * lib/unistr/u32-prev.c: Likewise.
11759         * lib/unistr/u32-set.c: Likewise.
11760         * lib/unistr/u32-startswith.c: Likewise.
11761         * lib/unistr/u32-stpcpy.c: Likewise.
11762         * lib/unistr/u32-stpncpy.c: Likewise.
11763         * lib/unistr/u32-strcat.c: Likewise.
11764         * lib/unistr/u32-strchr.c: Likewise.
11765         * lib/unistr/u32-strcmp.c: Likewise.
11766         * lib/unistr/u32-strcpy.c: Likewise.
11767         * lib/unistr/u32-strcspn.c: Likewise.
11768         * lib/unistr/u32-strdup.c: Likewise.
11769         * lib/unistr/u32-strlen.c: Likewise.
11770         * lib/unistr/u32-strmblen.c: Likewise.
11771         * lib/unistr/u32-strmbtouc.c: Likewise.
11772         * lib/unistr/u32-strncat.c: Likewise.
11773         * lib/unistr/u32-strncmp.c: Likewise.
11774         * lib/unistr/u32-strncpy.c: Likewise.
11775         * lib/unistr/u32-strnlen.c: Likewise.
11776         * lib/unistr/u32-strpbrk.c: Likewise.
11777         * lib/unistr/u32-strrchr.c: Likewise.
11778         * lib/unistr/u32-strspn.c: Likewise.
11779         * lib/unistr/u32-strstr.c: Likewise.
11780         * lib/unistr/u32-strtok.c: Likewise.
11781         * lib/unistr/u32-to-u16.c: Likewise.
11782         * lib/unistr/u32-to-u8.c: Likewise.
11783         * lib/unistr/u32-uctomb.c: Likewise.
11784         * lib/unistr/u8-check.c: Likewise.
11785         * lib/unistr/u8-chr.c: Likewise.
11786         * lib/unistr/u8-cmp.c: Likewise.
11787         * lib/unistr/u8-cpy-alloc.c: Likewise.
11788         * lib/unistr/u8-cpy.c: Likewise.
11789         * lib/unistr/u8-endswith.c: Likewise.
11790         * lib/unistr/u8-mblen.c: Likewise.
11791         * lib/unistr/u8-mbsnlen.c: Likewise.
11792         * lib/unistr/u8-mbtouc-aux.c: Likewise.
11793         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11794         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11795         * lib/unistr/u8-mbtouc.c: Likewise.
11796         * lib/unistr/u8-mbtoucr.c: Likewise.
11797         * lib/unistr/u8-move.c: Likewise.
11798         * lib/unistr/u8-next.c: Likewise.
11799         * lib/unistr/u8-prev.c: Likewise.
11800         * lib/unistr/u8-set.c: Likewise.
11801         * lib/unistr/u8-startswith.c: Likewise.
11802         * lib/unistr/u8-stpcpy.c: Likewise.
11803         * lib/unistr/u8-stpncpy.c: Likewise.
11804         * lib/unistr/u8-strcat.c: Likewise.
11805         * lib/unistr/u8-strchr.c: Likewise.
11806         * lib/unistr/u8-strcmp.c: Likewise.
11807         * lib/unistr/u8-strcpy.c: Likewise.
11808         * lib/unistr/u8-strcspn.c: Likewise.
11809         * lib/unistr/u8-strdup.c: Likewise.
11810         * lib/unistr/u8-strlen.c: Likewise.
11811         * lib/unistr/u8-strmblen.c: Likewise.
11812         * lib/unistr/u8-strmbtouc.c: Likewise.
11813         * lib/unistr/u8-strncat.c: Likewise.
11814         * lib/unistr/u8-strncmp.c: Likewise.
11815         * lib/unistr/u8-strncpy.c: Likewise.
11816         * lib/unistr/u8-strnlen.c: Likewise.
11817         * lib/unistr/u8-strpbrk.c: Likewise.
11818         * lib/unistr/u8-strrchr.c: Likewise.
11819         * lib/unistr/u8-strspn.c: Likewise.
11820         * lib/unistr/u8-strstr.c: Likewise.
11821         * lib/unistr/u8-strtok.c: Likewise.
11822         * lib/unistr/u8-to-u16.c: Likewise.
11823         * lib/unistr/u8-to-u32.c: Likewise.
11824         * lib/unistr/u8-uctomb-aux.c: Likewise.
11825         * lib/unistr/u8-uctomb.c: Likewise.
11826         * lib/unitypes.h: Likewise.
11827         * lib/uniwidth.h: Likewise.
11828         * lib/uniwidth/cjk.h: Likewise.
11829         * lib/uniwidth/u16-strwidth.c: Likewise.
11830         * lib/uniwidth/u16-width.c: Likewise.
11831         * lib/uniwidth/u32-strwidth.c: Likewise.
11832         * lib/uniwidth/u32-width.c: Likewise.
11833         * lib/uniwidth/u8-strwidth.c: Likewise.
11834         * lib/uniwidth/u8-width.c: Likewise.
11835         * lib/uniwidth/width.c: Likewise.
11836
11837 2007-10-07  Bruno Haible  <bruno@clisp.org>
11838
11839         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11840         The file is still under LGPL (see modules/inttypes).
11841
11842 2007-10-06  Bruno Haible  <bruno@clisp.org>
11843
11844         * modules/trunc (Dependencies): Add 'extensions'.
11845         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11846         Reported by Ben Pfaff <blp@gnu.org>.
11847
11848 2007-10-06  Bruno Haible  <bruno@clisp.org>
11849
11850         * modules/freopen-tests: New file.
11851         * tests/test-freopen.c: New file.
11852
11853         * modules/fopen-tests: New file.
11854         * tests/test-fopen.c: New file.
11855
11856         * modules/fopen: New file.
11857         * lib/fopen.c: New file.
11858         * m4/fopen.m4: New file.
11859         * modules/freopen: New file.
11860         * lib/freopen.c: New file.
11861         * m4/freopen.m4: New file.
11862         * lib/stdio.in.h (fopen, freopen): New declarations.
11863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11864         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11865         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11866         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11867         * doc/functions/fopen.texi: Mention the 'fopen' module.
11868         * doc/functions/freopen.texi: Mention the 'freopen' module.
11869
11870 2007-10-06  Bruno Haible  <bruno@clisp.org>
11871
11872         * modules/open-tests: New file.
11873         * tests/test-open.c: New file.
11874
11875         * modules/open: New file.
11876         * lib/open.c: New file.
11877         * m4/open.m4: New file.
11878         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11879         lib/open.c does.
11880         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11881         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11882         macros.
11883         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11884         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11885         REPLACE_OPEN.
11886         * doc/functions/open.texi: Mention the 'open' module.
11887
11888 2007-10-04  Bruno Haible  <bruno@clisp.org>
11889
11890         * modules/ceill-tests: New file.
11891         * tests/test-ceill.c: New file.
11892
11893         * modules/ceill: New file.
11894         * lib/ceill.c: Replace entire file.
11895         * m4/ceill.m4: New file.
11896         * lib/math.in.h (ceill): Replace declaration.
11897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11898         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11899         * doc/functions/ceill.texi: Mention the 'ceill' module.
11900         * modules/mathl (Files): Remove lib/ceill.c.
11901         (Depends-on): Add ceill.
11902
11903 2007-10-04  Bruno Haible  <bruno@clisp.org>
11904
11905         * modules/ceilf-tests: New file.
11906         * tests/test-ceilf.c: New file.
11907
11908         * modules/ceilf: New file.
11909         * lib/ceil.c: New file.
11910         * lib/ceilf.c: New file.
11911         * m4/ceilf.m4: New file.
11912         * lib/math.in.h (ceilf): New declaration.
11913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11914         HAVE_DECL_CEILF.
11915         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11916         HAVE_DECL_CEILF.
11917         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11918
11919 2007-10-04  Bruno Haible  <bruno@clisp.org>
11920
11921         * modules/floorl-tests: New file.
11922         * tests/test-floorl.c: New file.
11923
11924         * modules/floorl: New file.
11925         * lib/floorl.c: Replace entire file.
11926         * m4/floorl.m4: New file.
11927         * lib/math.in.h (floorl): Replace declaration.
11928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11929         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11930         * doc/functions/floorl.texi: Mention the 'floorl' module.
11931         * modules/mathl (Files): Remove lib/floorl.c.
11932         (Depends-on): Add floorl.
11933
11934 2007-10-04  Bruno Haible  <bruno@clisp.org>
11935
11936         * modules/floorf-tests: New file.
11937         * tests/test-floorf.c: New file.
11938
11939         * modules/floorf: New file.
11940         * lib/floor.c: New file.
11941         * lib/floorf.c: New file.
11942         * m4/floorf.m4: New file.
11943         * lib/math.in.h (floorf): New declaration.
11944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11945         HAVE_DECL_FLOORF.
11946         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11947         HAVE_DECL_FLOORF.
11948         * doc/functions/floorf.texi: Mention the 'floorf' module.
11949
11950 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11951             Bruno Haible  <bruno@clisp.org>
11952
11953         Advertise for the Git server instead of the CVS server.
11954         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11955         repository instead of the CVS one.
11956         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11957         about all VCS systems generically.
11958         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11959
11960 2007-10-04  Bruno Haible  <bruno@clisp.org>
11961
11962         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11963         means.
11964         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11965
11966 2007-10-04  Bruno Haible  <bruno@clisp.org>
11967
11968         * modules/truncl-tests: New file.
11969         * tests/test-truncl.c: New file.
11970
11971         * modules/truncl: New file.
11972         * lib/truncl.c: New file.
11973         * m4/truncl.m4: New file.
11974         * lib/math.in.h (truncl): New declaration.
11975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11976         HAVE_DECL_TRUNCL.
11977         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11978         HAVE_DECL_TRUNCL.
11979         * doc/functions/truncl.texi: Mention the 'truncl' module.
11980
11981 2007-10-04  Bruno Haible  <bruno@clisp.org>
11982
11983         * modules/truncf-tests: New file.
11984         * tests/test-truncf.c: New file.
11985
11986         * modules/truncf: New file.
11987         * lib/trunc.c: Make paramerizable through USE_* macros.
11988         * lib/truncf.c: New file.
11989         * m4/truncf.m4: New file.
11990         * lib/math.in.h (truncf): New declaration.
11991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11992         HAVE_DECL_TRUNCF.
11993         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11994         HAVE_DECL_TRUNCF.
11995         * doc/functions/truncf.texi: Mention the 'truncf' module.
11996
11997 2007-10-03  Bruno Haible  <bruno@clisp.org>
11998
11999         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12000         augmentation also for tests modules.
12001         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12002         * modules/atexit-tests (Makefile.am): Likewise.
12003         * modules/binary-io-tests (Makefile.am): Likewise.
12004         * modules/c-strcase-tests (Makefile.am): Likewise.
12005         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12006         * modules/canonicalize-tests (Makefile.am): Likewise.
12007         * modules/closein-tests (Makefile.am): Likewise.
12008         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12009         * modules/freadahead-tests (Makefile.am): Likewise.
12010         * modules/fseek-tests (Makefile.am): Likewise.
12011         * modules/fseeko-tests (Makefile.am): Likewise.
12012         * modules/ftell-tests (Makefile.am): Likewise.
12013         * modules/ftello-tests (Makefile.am): Likewise.
12014         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12015         * modules/isnanl-tests (Makefile.am): Likewise.
12016         * modules/lseek-tests (Makefile.am): Likewise.
12017         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12018         * modules/mbscasestr-tests (Makefile.am): Likewise.
12019         * modules/mbschr-tests (Makefile.am): Likewise.
12020         * modules/mbscspn-tests (Makefile.am): Likewise.
12021         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12022         * modules/mbspbrk-tests (Makefile.am): Likewise.
12023         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12024         * modules/mbsrchr-tests (Makefile.am): Likewise.
12025         * modules/mbsspn-tests (Makefile.am): Likewise.
12026         * modules/mbsstr-tests (Makefile.am): Likewise.
12027         * modules/printf-posix-tests (Makefile.am): Likewise.
12028         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12029         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12030         * modules/tsearch-tests (Makefile.am): Likewise.
12031         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12032         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12033         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12034         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12035         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12036         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12037         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12038         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12039         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12040         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12041         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12042         * modules/xstrtol-tests (Makefile.am): Likewise.
12043         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12044         * modules/yesno-tests (Makefile.am): Likewise.
12045
12046 2007-10-03  Bruno Haible  <bruno@clisp.org>
12047
12048         * modules/trunc-tests: New file.
12049         * tests/test-trunc.c: New file.
12050
12051         * modules/trunc: New file.
12052         * lib/trunc.c: New file.
12053         * m4/trunc.m4: New file.
12054         * lib/math.in.h (trunc): New declaration.
12055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12056         HAVE_DECL_TRUNC.
12057         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12058         HAVE_DECL_TRUNC.
12059         * doc/functions/trunc.texi: Mention the 'trunc' module.
12060
12061 2007-10-03  Bruno Haible  <bruno@clisp.org>
12062
12063         * tests/test-fpending.c: New file, mostly copied
12064         from coreutils/lib/t-fpending.c.
12065         * modules/fpending-tests: New file.
12066
12067 2007-10-03  Bruno Haible  <bruno@clisp.org>
12068
12069         Port the stdio extensions to QNX (untested).
12070         * lib/fseterr.c (fseterr): Add support for QNX.
12071         * lib/fbufmode.c (fbufmode): Likewise.
12072         * lib/freadable.c (freadable): Likewise.
12073         * lib/fwritable.c (fwritable): Likewise.
12074         * lib/freading.c (freading): Likewise.
12075         * lib/fwriting.c (fwriting): Likewise.
12076         * lib/freadahead.c (freadahed): Likewise.
12077         * lib/fpurge.c (fpurge): Likewise.
12078         * lib/fseeko.c (rpl_fseeko): Likewise.
12079
12080 2007-10-03  Bruno Haible  <bruno@clisp.org>
12081             Jim Meyering  <jim@meyering.net>
12082             Eric Blake  <ebb9@byu.net>
12083
12084         * doc/relocatable.texi: Use @command instead of @program.
12085
12086 2007-10-02  Jim Meyering  <jim@meyering.net>
12087
12088         Perform one more "_.h" -> ".in.h" substitution.
12089         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12090         instead of unistd_.h here, too.
12091
12092 2007-10-01  Bruno Haible  <bruno@clisp.org>
12093
12094         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12095         Needed for the alloca-opt module.
12096
12097 2007-09-30  Bruno Haible  <bruno@clisp.org>
12098
12099         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12100         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12101         alloca_.h.
12102         * lib/argz.in.h: Renamed from lib/argz_.h.
12103         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12104         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12105         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12106         byteswap_.h.
12107         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12108         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12109         dirent_.h.
12110         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12111         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12112         fcntl_.h.
12113         * lib/float.in.h: Renamed from lib/float_.h.
12114         * modules/float (Files, Makefile.am): Use float.in.h instead of
12115         float_.h.
12116         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12117         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12118         fnmatch_.h.
12119         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12120         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12121         getopt_.h.
12122         * lib/glob.in.h: Renamed from lib/glob_.h.
12123         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12124         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12125         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12126         iconv_.h.
12127         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12128         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12129         inttypes_.h.
12130         * lib/locale.in.h: Renamed from lib/locale_.h.
12131         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12132         locale_.h.
12133         * lib/math.in.h: Renamed from lib/math_.h.
12134         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12135         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12136         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12137         of netinet_in_.h. Add dependency.
12138         * lib/poll.in.h: Renamed from lib/poll_.h.
12139         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12140         * lib/search.in.h: Renamed from lib/search_.h.
12141         * modules/search (Files, Makefile.am): Use search.in.h instead of
12142         search_.h.
12143         * lib/signal.in.h: Renamed from lib/signal_.h.
12144         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12145         _signal.h.
12146         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12147         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12148         stdbool_.h.
12149         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12150         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12151         stdint_.h.
12152         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12153         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12154         stdio_.h.
12155         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12156         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12157         stdlib_.h.
12158         * lib/string.in.h: Renamed from lib/string_.h.
12159         * modules/string (Files, Makefile.am): Use string.in.h instead of
12160         string_.h.
12161         * doc/gnulib-tool.texi (Initial import): Update.
12162         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12163         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12164         of sys_select_.h. Add dependency.
12165         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12166         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12167         of sys_socket_.h.
12168         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12169         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12170         sys_stat_.h.
12171         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12172         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12173         sys_time_.h.
12174         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12175         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12176         sysexits_.h.
12177         * lib/time.in.h: Renamed from lib/time_.h.
12178         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12179         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12180         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12181         unistd_.h.
12182         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12183         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12184         wchar_.h.
12185         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12186         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12187         wctype_.h.
12188         * build-aux/bootstrap (slurp): Update.
12189         * lib/.cppi-disable: Update.
12190
12191 2007-09-30  Bruno Haible  <bruno@clisp.org>
12192
12193         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12194         Needed on BeOS.
12195
12196 2007-09-30  Bruno Haible  <bruno@clisp.org>
12197
12198         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12199
12200 2007-09-29  Bruno Haible  <bruno@clisp.org>
12201
12202         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12203
12204 2007-09-29  Bruno Haible  <bruno@clisp.org>
12205
12206         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12207         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12208         * build-aux/install-reloc: Compile also areadlink.c.
12209         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12210
12211 2007-09-29  Bruno Haible  <bruno@clisp.org>
12212
12213         * gnulib-tool (func_emit_initmacro_done): Indentation.
12214
12215 2007-09-29  Bruno Haible  <bruno@clisp.org>
12216
12217         * README: Add CVS checkout update instructions.
12218         Info from Bob Proulx <bob@proulx.com>.
12219
12220 2007-09-28  Eric Blake  <ebb9@byu.net>
12221
12222         Provide move-if-change.
12223         * build-aux/move-if-change: New file, based on best practice
12224         rather than any canonical upstream location.
12225
12226 2007-09-28  Jim Meyering  <jim@meyering.net>
12227
12228         Fix canonicalize loop-detection corner case.
12229         Do not attempt to stat the symlink values stored via seen_triple.
12230         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12231         on linux-2.6.18, (but not 2.6.22).
12232         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12233         triple_compare.  The former compares dev,ino,filename, while the latter
12234         would actually stat dirname(filename) when dev and ino were equal.
12235         * lib/hash-triple.c: Install <string.h>.
12236         (STREQ): Define.
12237         (triple_compare_ino_str): New function.
12238         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12239
12240 2007-09-28  Eric Blake  <ebb9@byu.net>
12241
12242         Enforce that AC_REPLACE_FUNCS files exist.
12243         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12244         override check for typos.
12245
12246         Fix test-closein on Solaris 10.
12247         * tests/test-closein.c (main): Don't assume stdin can be inherited
12248         closed on all systems.
12249         * tests/test-closein.sh: Likewise.
12250         Reported by Piotr Tarnowski.
12251
12252 2007-09-28  Jim Meyering  <jim@meyering.net>
12253
12254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12255
12256 2007-09-27  Jim Meyering  <jim@meyering.net>
12257
12258         canonicalize: Avoid a false-positive cycle failure.
12259         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12260         Sort.  Remove cycle-check.
12261         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12262         not cycle-check.h.
12263         (seen_triple): New function.
12264         (canonicalize_filename_mode): Use it instead of cycle-check.
12265         * tests/test-canonicalize.c: Add a test for this bug.
12266         * tests/test-canonicalize.sh: Set up and run the test.
12267
12268         New module, file-set, from coreutils.
12269         * modules/file-set: Define it.
12270         * lib/file-set.c, lib/file-set.h: Implement.
12271
12272         New module, hash-triple, from coreutils.
12273         * modules/hash-triple: Define it.
12274         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12275
12276 2007-09-25  Eric Blake  <ebb9@byu.net>
12277
12278         Fix strerror on Interix.
12279         * lib/string_.h (strerror): Declare replacement.
12280         * doc/functions/strerror.texi (strerror): Document the Interix
12281         shortcoming.
12282         * modules/string (Makefile.am): Support new hooks.
12283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12284         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12285         gl_FUNC_STRERROR_SEPARATE.
12286         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12287         * lib/strerror.c (rpl_strerror): Provide replacement.
12288         * modules/strerror (Depends-on): Add string.
12289         (configure.ac): Detect use of module.
12290         * tests/test-strerror.c: New file.
12291         * modules/strerror-tests: New test module.
12292         * modules/argp (Depends-on): Add strerror.
12293         * modules/error (Depends-on): Likewise.
12294         Reported by Martin Koeppe.
12295
12296 2007-09-24  Bruno Haible  <bruno@clisp.org>
12297
12298         * README: Update git instructions.
12299
12300 2007-09-24  Eric Blake  <ebb9@byu.net>
12301
12302         Revert fpending breakage from 2007-09-08.
12303         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12304         __fpending.c.
12305
12306 2007-09-24  Jim Meyering  <jim@meyering.net>
12307
12308         filenamecat.c: Add a test.
12309         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12310         showing how the function works when DIR is the empty string.
12311
12312 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12313
12314         * tests/test-canonicalize.sh: Turn on executable bit.
12315
12316 2007-09-19  Eric Blake  <ebb9@byu.net>
12317
12318         * README: Update CVS instructions.
12319
12320 2007-09-18  Bruno Haible  <bruno@clisp.org>
12321
12322         * modules/areadlink: New file.
12323         * lib/areadlink.h (areadlink): New declaration.
12324         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12325
12326 2007-09-17  Jim Meyering  <jim@meyering.net>
12327
12328         * lib/savewd.c (ESTALE) [!defined]: Define.
12329         Reported to be required on Interix by Martin Koeppe.
12330
12331 2007-09-17  Bruno Haible  <bruno@clisp.org>
12332
12333         * gnulib-tool (func_version): Use $version.
12334
12335 2007-09-16  Bruno Haible  <bruno@clisp.org>
12336
12337         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12338         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12339         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12340         Reported by Greg Schafer <gschafer@zip.com.au>.
12341
12342 2007-09-15  Bruno Haible  <bruno@clisp.org>
12343
12344         * gnulib-tool (sed): Try a little harder to make bash understand the
12345         alias.
12346         Reported by Bruce Korb <bruce.korb@gmail.com>.
12347
12348 2007-09-13  Eric Blake  <ebb9@byu.net>
12349
12350         * ChangeLog: Remove conflict markers.
12351
12352 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12353
12354         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12355         Reported by Bruno Haible <bruno@clisp.org>.
12356
12357 2007-09-12  Bruno Haible  <bruno@clisp.org>
12358
12359         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12360         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12361         is not defined.
12362
12363 2007-09-12  Eric Blake  <ebb9@byu.net>
12364
12365         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12366         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12367         Autoconf definition.
12368         * modules/euidaccess (Depends-on): Add extensions, for
12369         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12370         * modules/fnmatch (Depends-on): Likewise.
12371         * modules/getaddrinfo (Depends-on): Likewise.
12372         * modules/getdelim (Depends-on): Likewise.
12373         * modules/getline (Depends-on): Likewise.
12374         * modules/getsubopt (Depends-on): Likewise.
12375         * modules/gettext (Depends-on): Likewise.
12376         * modules/group-member (Depends-on): Likewise.
12377         * modules/mbchar (Depends-on): Likewise.
12378         * modules/memmem (Depends-on): Likewise.
12379         * modules/mempcpy (Depends-on): Likewise.
12380         * modules/memrchr (Depends-on): Likewise.
12381         * modules/pagealign_alloc (Depends-on): Likewise.
12382         * modules/readutmp (Depends-on): Likewise.
12383         * modules/stpcpy (Depends-on): Likewise.
12384         * modules/stpncpy (Depends-on): Likewise.
12385         * modules/strchrnul (Depends-on): Likewise.
12386         * modules/strndup (Depends-on): Likewise.
12387         * modules/strsep (Depends-on): Likewise.
12388         * modules/strverscmp (Depends-on): Likewise.
12389         * modules/vasprintf (Depends-on): Likewise.
12390         * modules/wcwidth (Depends-on): Likewise.
12391         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12392         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12393         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12395         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12396         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12397         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12398         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12399         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12400         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12402         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12403         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12405         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12406         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12407         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12408         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12409         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12410         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12411         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12412         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12413         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12414         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12415         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12417         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12418         so that lock.m4 can be used in gettext without extensions module.
12419
12420 2007-09-11  Bruno Haible  <bruno@clisp.org>
12421
12422         * m4/isc-posix.m4: Remove file.
12423         Suggested by Eric Blake.
12424
12425 2007-09-11  Eric Blake  <ebb9@byu.net>
12426
12427         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12428
12429 2007-09-10  Bruno Haible  <bruno@clisp.org>
12430
12431         * posix-modules: Fix typo in error message.
12432         Reported by Matt <mkraai@beckman.com>.
12433
12434 2007-09-09  Bruno Haible  <bruno@clisp.org>
12435
12436         * doc/functions/getdelim.texi: Update list of platforms lacking the
12437         function.
12438         * doc/functions/getline.texi: Likewise.
12439
12440 2007-09-09  Jim Meyering  <jim@meyering.net>
12441
12442         * lib/hash.c (hash_initialize): Detect calloc failure.
12443         Reported by Bruno Haible.
12444
12445 2007-09-09  Bruno Haible  <bruno@clisp.org>
12446
12447         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12448         malloc or realloc fails.
12449
12450 2007-09-09  Bruno Haible  <bruno@clisp.org>
12451
12452         * modules/getcwd (Depends-on): Add malloc-posix.
12453         * modules/glob (Depends-on): Likewise.
12454         * modules/putenv (Depends-on): Likewise.
12455         * modules/strdup (Depends-on): Likewise.
12456         * modules/getdelim (Depends-on): Add realloc-posix.
12457         * modules/read-file (Depends-on): Likewise.
12458
12459 2007-09-09  Bruno Haible  <bruno@clisp.org>
12460
12461         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12462         (gl_FUNC_MALLOC_POSIX): Require it.
12463         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12464         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12465         * modules/realloc (Files): Add m4/malloc.m4.
12466         * modules/calloc (Files): Likewise.
12467
12468 2007-09-09  Bruno Haible  <bruno@clisp.org>
12469
12470         * modules/malloc-posix: New file.
12471         * modules/malloc (Depends-on): Add malloc-posix.
12472         * lib/malloc.c: Include errno.h.
12473         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12474         and a POSIX-compatible malloc into a single function. Set ENOMEM
12475         when returning NULL.
12476         * m4/malloc.m4: New file.
12477         * doc/functions/malloc.texi: Mention the malloc-posix module.
12478         * lib/stdlib_.h (malloc): New declaration.
12479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12480         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12481         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12482         and HAVE_MALLOC_POSIX.
12483
12484 2007-09-09  Bruno Haible  <bruno@clisp.org>
12485
12486         * modules/realloc-posix: New file.
12487         * modules/realloc (Depends-on): Add realloc-posix.
12488         * lib/realloc.c: Include errno.h.
12489         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12490         and a POSIX-compatible realloc into a single function. Set ENOMEM
12491         when returning NULL.
12492         * m4/realloc.m4: New file.
12493         * doc/functions/realloc.texi: Mention the realloc-posix module.
12494         * lib/stdlib_.h (realloc): New declaration.
12495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12496         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12497         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12498         and HAVE_REALLOC_POSIX.
12499
12500 2007-09-09  Bruno Haible  <bruno@clisp.org>
12501
12502         * modules/calloc-posix: New file.
12503         * modules/calloc (Depends-on): Add calloc-posix.
12504         * lib/calloc.c: Include errno.h.
12505         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12506         and a POSIX-compatible calloc into a single function. Set ENOMEM
12507         when returning NULL.
12508         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12509         * doc/functions/calloc.texi: Mention the calloc-posix module.
12510         * lib/stdlib_.h (calloc): New declaration.
12511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12512         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12513         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12514         and HAVE_CALLOC_POSIX.
12515
12516 2007-09-09  Bruno Haible  <bruno@clisp.org>
12517
12518         Allow for modules to show an arbitrary notice.
12519         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12520         * gnulib-tool: New option --extract-notice.
12521         (func_usage): Document it.
12522         (sed_extract_prog): Update.
12523         (func_get_notice): New function.
12524         (func_modules_notice): New function.
12525         (func_import, func_create_testdir): Invoke it.
12526         Suggested by Jim Meyering.
12527
12528 2007-09-09  Bruno Haible  <bruno@clisp.org>
12529
12530         * gnulib-tool: New options --verbose, --quiet.
12531         (func_usage): Document them.
12532         (verbose): New variable.
12533         (func_execute_command): New function.
12534         (func_import): Don't show the module list and the file list if
12535         $verbose < 0.
12536         (func_create_testdir): Likewise. Use func_execute_command.
12537         (func_create_megatestdir): Use func_execute_command.
12538
12539 2007-09-08  Bruno Haible  <bruno@clisp.org>
12540
12541         * gnulib-tool (func_import): Prefer rsync over wget when available,
12542         for fetching the PO files.
12543
12544 2007-09-08  Bruno Haible  <bruno@clisp.org>
12545
12546         * posix-modules: New file. Portions copied from gnulib-tool.
12547         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12548
12549 2007-09-08  Jim Meyering  <jim@meyering.net>
12550
12551         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12552         * lib/fpending.h: Rename from __fpending.h.
12553         * lib/fpending.c: Rename from __fpending.c.
12554         Include "fpending.h", not "__fpending.h".
12555         * lib/__fpending.h, lib/__fpending.c: Remove files.
12556         * modules/fpending (Files): Reflect new file names.
12557         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12558
12559 2007-09-08  Bruno Haible  <bruno@clisp.org>
12560
12561         * m4/inttypes-h.m4: Remove stub file.
12562
12563 2007-09-07  Simon Josefsson  <simon@josefsson.org>
12564
12565         * doc/headers/stdint.texi: Discuss #include_next issue.
12566
12567 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12568
12569         * build-aux/bootstrap: Remove obsolete comment about wget --help.
12570
12571 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12572
12573         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12574         in variable name.
12575
12576 2007-09-03  Jim Meyering  <jim@meyering.net>
12577
12578         New module: git-version-gen.
12579         * modules/git-version-gen: New file.
12580
12581         Import changes from coreutils for bootstrap script.
12582
12583         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12584
12585         bootstrap: uses rsync to download the .po files
12586         * build-aux/bootstrap (po_download_command_format): New global.
12587         (download_po_files): Use rsync.
12588         (update_po_files): Don't remove .po files after download,
12589         so future rsync runs can take advantage of the copies.
12590
12591         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12592
12593         Solve the unnecessary-.po-file-regeneration problem once and for all.
12594         * build-aux/bootstrap (download_po_files): New function, renamed from
12595         get_translations.  Now, downloads, but doesn't update LINGUAS.
12596         (update_po_files): New function.
12597
12598         bootstrap: Ignore more.
12599         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12600         uniwidth to e.g., lib/.gitignore.
12601         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12602
12603         * build-aux/bootstrap: New setting: vc_ignore.
12604         (insert_sorted_if_absent): Create $file if absent.
12605         Adapt to new, possibly empty, list: $vc_ignore.
12606
12607         bootstrap: generate more ignorable names
12608         * build-aux/bootstrap (slurp): When generating ignorable names,
12609         also map .sin to .sed, .gperf to .c, and .y to .c.
12610
12611 2007-09-03  Jim Meyering  <jim@meyering.net>
12612
12613         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12614         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12615
12616 2007-09-02  Bruno Haible  <bruno@clisp.org>
12617
12618         Fix mis-recognition of 'mcs' on QNX 6.
12619         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12620         output contains the string "Mono".
12621         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12622         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12623
12624 2007-09-01  Bruno Haible  <bruno@clisp.org>
12625
12626         Fix collision between uniwidth/* and linebreak modules.
12627         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12628         u32_width): Remove declarations.
12629         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12630         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12631         streq3, streq2, streq1, streq0): Remove functions.
12632         (STREQ): Remove macro.
12633         (is_cjk_encoding): Remove function.
12634         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12635         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12636         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12637         * NEWS: Document the change.
12638
12639 2007-09-01  Bruno Haible  <bruno@clisp.org>
12640
12641         * lib/streq.h: Add double-inclusion guard.
12642
12643 2007-09-01  Karl Berry  <karl@gnu.org>
12644
12645         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12646
12647 2007-08-28  Jim Meyering  <jim@meyering.net>
12648
12649         Rename mreadlink_with_size to areadlink_with_size.
12650         * NEWS: Document the change.
12651         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12652         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12653         * lib/mreadlink.h: Rename this to...
12654         * lib/areadlink.h: ...this.
12655         * modules/mreadlink-with-size: Rename this to...
12656         * modules/areadlink-with-size: ...this.
12657         * lib/canonicalize.c: Reflect the renaming.
12658         * modules/canonicalize: Likewise.
12659
12660 2007-08-26  Bruno Haible  <bruno@clisp.org>
12661
12662         * gnulib-tool (func_import): When deciding which files to remove,
12663         consider also dangling symbolic links.
12664         Reported by Eric Blake.
12665
12666 2007-08-26  Bruno Haible  <bruno@clisp.org>
12667
12668         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12669
12670 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12671
12672         * lib/readline.c: Don't include getline.h, the prototype is now
12673         found in stdio.h.
12674
12675 2007-08-23  Jim Meyering  <jim@meyering.net>
12676
12677         Getdelim touchup.
12678         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12679         around the funlockfile call, since funlockfile never sets errno.
12680         Don't set errno upon failed realloc.
12681
12682 2007-08-22  Eric Blake  <ebb9@byu.net>
12683
12684         Getline touchups.
12685         * lib/getdelim.c (getdelim): Revert regression that required *n to
12686         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12687         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12688         getdelim, rather than whether implementation is missing.
12689         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12690         * lib/stdio_.h (getline): Also declare if replacement is
12691         required.
12692         * doc/functions/getdelim.texi: New file.
12693         * doc/functions/getline.texi: Likewise.
12694         * doc/gnulib.texi (Function Substitutes): Add new files.
12695         Reported by Bruno Haible.
12696
12697 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12698
12699         * users.txt: Add Guile.
12700
12701 2007-08-22  Eric Blake  <ebb9@byu.net>
12702
12703         * tests/test-getdelim.c (main): Use remove, not unlink.
12704         * tests/test-getline.c (main): Likewise.
12705
12706         Move getline and getdelim into stdio.h, per POSIX 200x.
12707         * modules/getline (Files): Remove getline.h.
12708         (Depends-on): Add stdio.
12709         (configure.ac): Add module indicator.
12710         * modules/getdelim (Files): Remove getdelim.h.
12711         (Depends-on): Add stdio.
12712         (configure.ac): Add module indicator.
12713         * modules/stdio (Makefile.am): Work with new indicators.
12714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12715         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12716         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12717         * lib/getdelim.h: Delete.
12718         * lib/getline.h: Delete.
12719         * lib/stdio_.h (getdelim, getline): Declare.
12720         * modules/getdelim-tests: New module.
12721         * modules/getline-tests: Likewise.
12722         * tests/test-getdelim.c: New file.
12723         * tests/test-getline.c: Likewise.
12724         * NEWS: Document the change.
12725         * lib/getline.c: Update choice of header.
12726         * lib/csharpcomp.c: Likewise.
12727         * lib/getpass.c: Likewise.
12728         * lib/javacomp.c: Likewise.
12729         * lib/javaversion.c: Likewise.
12730         * lib/yesno.c: Likewise.
12731         * lib/getdelim.c: Likewise.
12732         (getdelim): Set errno on failure, and avoid memory leak.
12733
12734 2007-08-19  Bruno Haible  <bruno@clisp.org>
12735
12736         * modules/closein (Depends-on): Add freadahead.
12737         * lib/closein.c: Include freadahead.h.
12738         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12739         is zero.
12740
12741 2007-08-19  Bruno Haible  <bruno@clisp.org>
12742
12743         * modules/freadahead-tests: New file.
12744         * tests/test-freadahead.sh: New file.
12745         * tests/test-freadahead.c: New file.
12746
12747         * modules/freadahead: New file.
12748         * lib/freadahead.h: New file.
12749         * lib/freadahead.c: New file.
12750         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12751         fbufmode, fpurge, freadable, fwritable.
12752
12753 2007-08-19  Eric Blake  <ebb9@byu.net>
12754
12755         Test yesno in combination with closein.
12756         * lib/yesno.c (yesno): Document use of stdin.
12757         * modules/yesno-tests (Files): New module.
12758         * tests/test-yesno.c (main): New file.
12759         * tests/test-yesno.sh: Likewise.
12760
12761 2007-08-19  Bruno Haible  <bruno@clisp.org>
12762
12763         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12764         * lib/fseeko.c (rpl_fseeko): Likewise.
12765         * lib/fseterr.c (fseterr): Likewise.
12766
12767 2007-08-19  Bruno Haible  <bruno@clisp.org>
12768
12769         * tests/test-lseek.c (main): Disable a test for BeOS.
12770         * doc/functions/lseek.texi: Document the BeOS bug.
12771
12772 2007-08-19  Bruno Haible  <bruno@clisp.org>
12773             Eric Blake  <ebb9@byu.net>
12774
12775         * lib/lseek.c: Include <sys/stat.h>.
12776         (rpl_lseek): Add workaround code also for Unix platforms.
12777         Needed for BeOS.
12778         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12779         * doc/functions/lseek.texi: Document BeOS definiency.
12780
12781 2007-08-18  Bruno Haible  <bruno@clisp.org>
12782
12783         * modules/fstrcmp-tests: New file.
12784         * tests/test-fstrcmp.c: New file.
12785
12786 2007-08-18  Bruno Haible  <bruno@clisp.org>
12787
12788         * modules/fstrcmp: New file, from GNU gettext with modifications.
12789         * lib/fstrcmp.h: New file, from GNU gettext.
12790         * lib/fstrcmp.c: New file, from GNU gettext.
12791         * MODULES.html.sh (String handling): Add fstrcmp.
12792
12793 2007-08-18  Bruno Haible  <bruno@clisp.org>
12794
12795         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12796         'bool'.
12797         (diag, compareseq): Remove const from the ctxt argument.
12798         (USE_HEURISTIC): Undefine at the end.
12799
12800 2007-08-18  Jim Meyering  <jim@meyering.net>
12801
12802         New file: lib/idcache.h
12803         * NEWS: Mention the addition.
12804         * modules/idcache (Files): Add lib/idcache.h
12805         * lib/idcache.c: Include "idcache.h".
12806         Don't include <sys/types.h>.
12807         Add a FIXME comment.
12808         Move file-scoped "static" declarations to the top.
12809         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
12810
12811 2007-08-17  Bruno Haible  <bruno@clisp.org>
12812         and Paul Eggert  <eggert@cs.ucla.edu>
12813
12814         * MODULES.html.sh: Add diffseq.
12815         * modules/diffseq: New file.
12816         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12817         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12818
12819 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         Import changes from coreutils for bootstrap script.
12822
12823         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
12824
12825         * build-aux/bootstrap (slurp): Work even in environments where
12826         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
12827         current code does not slurp files whose names start with ".", and
12828         this looks like it might be a troublesome area.
12829
12830         2007-07-11  Jim Meyering  <jim@meyering.net>
12831
12832         If there's a GPL vN copyright comment, require that N == 3.
12833
12834         2007-07-08  Jim Meyering  <jim@meyering.net>
12835
12836         Run the coreutils-specific code only if tests/Makefile.am.in exists.
12837         * build-aux/bootstrap (mam_template): Move definition out of loop.
12838
12839         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12840
12841         * build-aux/bootstrap (symlink_to_dir): Rename function from
12842         symlink_to_gnulib.  Add a directory parameter.  Update all
12843         callers.
12844         (cp_mark_as_generated): Also check for -- and link to -- files in
12845         gl/.
12846
12847         2007-07-08  Jim Meyering  <jim@meyering.net>
12848
12849         Adapt to deeper hierarchy in gnulib.
12850         * build-aux/bootstrap (symlink_to_dir): If the destination
12851         directory doesn't exist, create it. This is required at least for
12852         "lib/uniwidth/cjk.h".
12853
12854         2007-05-15  Jim Meyering  <jim@meyering.net>
12855
12856         * build-aux/bootstrap: Now that generated Makefile.am files
12857         are no longer under version control, they must be created at
12858         bootstrap time.
12859
12860 2007-08-14  Ben Pfaff  <blp@gnu.org>
12861
12862         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
12863
12864 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12865
12866         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12867         given the changes below.
12868         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
12869         even on hosts that have padding bits beyond the supported 64.
12870
12871 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12872
12873         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12874         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12875         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
12876         depends on it.
12877         (xstrtol_error): Remove.
12878         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12879         but with a different signature.
12880         (ATTRIBUTE_NORETURN, __attribute__): New macros.
12881         * lib/xstrtol-error.c: Include exitfail.h.
12882         (xstrtol_fatal): New function, with a different signature from the
12883         old xstrtol_error, so that the caller need not worry about passing
12884         in an exit status, or about storage management of the option argument.
12885         (xstrtol_error): Now a static function.  Redo signature to
12886         implement xstrtol_fatal.  Output the correct number of hyphens in
12887         front of the option so that the caller need not worry about
12888         storage management.
12889         (N_): New macro.
12890         (_): Remove; not used now.
12891         * modules/xstrtol: Depend on getopt.
12892         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12893         of old STRTOL_FATAL_ERROR macro.
12894         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12895         of test program.
12896         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12897         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12898
12899 2007-08-08  Eric Blake  <ebb9@byu.net>
12900
12901         * lib/xstrtol-error.c: Add missing include.
12902
12903         Move xstrtol messages into gnulib domain, when --pobase is used.
12904         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12905         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12906         * modules/xstrtol (Files): Distribute new file.
12907         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12908         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12909         * tests/test-xstrtol.c: ...into new file.
12910         * tests/test-xstrtoul.c: Also test xstrtoul.
12911         * tests/test-xstrtoimax.c: Also test xstrtoimax.
12912         * tests/test-xstrtoumax.c: Also test xstrtoumax.
12913         * tests/test-xstrtol.sh: Drive the tests.
12914         * tests/test-xstrtoimax.sh: Likewise.
12915         * tests/test-xstrtoumax.sh: Likewise.
12916         * modules/xstrtol-tests: New module.
12917         * modules/xstrtoimax-tests: Likewise.
12918         * modules/xstrtoumax-tests: Likewise.
12919
12920 2007-08-08  Jim Meyering  <jim@meyering.net>
12921
12922         New function: mfile_name_concat.
12923         * lib/filenamecat.c (mfile_name_concat): New function, just like
12924         file_name_concat, but return NULL upon failure rather than exiting
12925         with a diagnostic.
12926         * lib/filenamecat.h: Declare it.
12927
12928 2007-08-07  Bruno Haible  <bruno@clisp.org>
12929
12930         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12931         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12932         warning from gcc.
12933         Reported by Eric Blake.
12934
12935 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12936
12937         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12938         * modules/crypto/arcfour (License): Likewise.
12939         * modules/crypto/des-tests (License): Likewise.
12940         * modules/crypto/gc-arctwo-tests (License): Likewise.
12941         * modules/crypto/gc-des-tests (License): Likewise.
12942         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12943         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12944         * modules/crypto/gc-md2-tests (License): Likewise.
12945         * modules/crypto/gc-md4-tests (License): Likewise.
12946         * modules/crypto/gc-md5-tests (License): Likewise.
12947         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12948         * modules/crypto/gc-rijndael-tests (License): Likewise.
12949         * modules/crypto/gc-sha1-tests (License): Likewise.
12950         * modules/crypto/gc-tests (License): Likewise.
12951         * modules/crypto/hmac-md5 (License): Likewise.
12952         * modules/crypto/hmac-sha1 (License): Likewise.
12953         * modules/crypto/md2-tests (License): Likewise.
12954         * modules/crypto/md4-tests (License): Likewise.
12955         * modules/crypto/md5 (License): Likewise.
12956         * modules/crypto/rijndael (License): Likewise.
12957         * modules/crypto/sha1 (License): Likewise.
12958         * modules/memxor (License): Likewise.
12959
12960 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12961         and Bruno Haible  <bruno@clisp.org>
12962
12963         * NEWS: Describe interface changes to human, xstrtol.
12964         * lib/human.h: Include <xstrtol.h>.
12965         (human_options): Return enum strtol_error, not int.  Remove
12966         bool arg; take int * instead.
12967         * lib/human.c: Don't include "gettext.h".
12968         (_): Remove; no longer used.
12969         Don't include <xstrtol.h>, since human.h does it.
12970         (human_options): Adjust to abovementioned interface changes.
12971         Do not report error to stderr; that's now the caller's
12972         responsibility.
12973         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12974         interface change.
12975         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12976         Str, Argument_type_string.  All uses changed.  Put " argument"
12977         in diagnostics to make them clearer.  Change wording of suffix
12978         message for clarity.
12979         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12980         Argument_type_string.
12981         (STRTOL_FATAL_WARN): Remove; no longer used.
12982         * modules/human (Depends-on): Remove gettext-h.
12983
12984 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12985
12986         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12987
12988 2007-07-31  Bruno Haible  <bruno@clisp.org>
12989
12990         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12991         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12992         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12993
12994 2007-07-31  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12997         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12998
12999 2007-07-30  Bruno Haible  <bruno@clisp.org>
13000
13001         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13002         * modules/c-ctype (License): Likewise.
13003         * modules/c-strcase (License): Likewise.
13004         * modules/check-version (License): Likewise.
13005         * modules/iconv (License): Likewise.
13006         * modules/iconv_open (License): Likewise.
13007         * modules/read-file (License): Likewise.
13008         * modules/striconv (License): Likewise.
13009         * modules/strverscmp (License): Likewise.
13010         * modules/vasprintf (License): Likewise.
13011         * modules/crypto/des (License): Likewise.
13012         * modules/crypto/gc (License): Likewise.
13013         * modules/crypto/gc-arcfour (License): Likewise.
13014         * modules/crypto/gc-arctwo (License): Likewise.
13015         * modules/crypto/gc-des (License): Likewise.
13016         * modules/crypto/gc-hmac-md5 (License): Likewise.
13017         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13018         * modules/crypto/gc-md2 (License): Likewise.
13019         * modules/crypto/gc-md4 (License): Likewise.
13020         * modules/crypto/gc-md5 (License): Likewise.
13021         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13022         * modules/crypto/gc-random (License): Likewise.
13023         * modules/crypto/gc-rijndael (License): Likewise.
13024         * modules/crypto/gc-sha1 (License): Likewise.
13025         * modules/crypto/md2 (License): Likewise.
13026         * modules/crypto/md4 (License): Likewise.
13027
13028 2007-07-30  Jim Meyering  <jim@meyering.net>
13029
13030         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13031         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13032         it has valid stat data.  This bug would cause du not to count the
13033         sizes of inaccessible directories.
13034         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13035         in <http://bugzilla.redhat.com/250077>.
13036
13037 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13038             Bruno Haible  <bruno@clisp.org>
13039
13040         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13041         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13042         #include_next, gives a diagnostic about it, but reports no error in
13043         the exit code.
13044         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13045
13046 2007-07-24  Ben Pfaff  <blp@gnu.org>
13047
13048         Improve name: "count-one-bits" is better than "popcount".
13049         * MODULES.html.sh: Update name.
13050         * lib/popcount.h: Renamed lib/count-one-bits.h.
13051         (popcount): Renamed count_one_bits.
13052         (popcountl): Renamed count_one_bits_l.
13053         (popcountll): Renamed count_one_bits_ll.
13054         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13055         * modules/popcount: Renamed module/count-one-bits.
13056         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13057         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13058
13059 2007-07-23  Ben Pfaff  <blp@gnu.org>
13060
13061         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13062         better code generation, and add U to large constants to avoid
13063         warnings, in non-GCC case.
13064         Suggested by Bruno Haible.
13065
13066 2007-07-23  Ben Pfaff  <blp@gnu.org>
13067
13068         * lib/popcount.h: Use verify_true instead of if...abort.
13069         * modules/popcount: Depend on verify module.
13070         Suggested by Jim Meyering.
13071
13072 2007-07-23  Bruno Haible  <bruno@clisp.org>
13073
13074         * gnulib-tool (func_import): Create a .cvsignore file also when the
13075         directory is not yet in CVS but the toplevel directory is. When
13076         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13077         Reported by Karl Berry.
13078
13079 2007-07-22  Ben Pfaff  <blp@gnu.org>
13080
13081         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13082         case.
13083         Suggested by Eric Blake.
13084
13085 2007-07-22  Ben Pfaff  <blp@gnu.org>
13086
13087         New module: popcount.
13088         * MODULES.html.sh: Add popcount.
13089         * modules/popcount: New file.
13090         * modules/popcount-tests: New file.
13091         * tests/test-popcount.c: New file.
13092         * lib/popcount.h: New file.
13093         * m4/popcount.m4: New file.
13094
13095 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         * build-aux/announce-gen: Update to GPLv3.
13098
13099         * build-aux/config.guess: Update from config.
13100
13101 2007-07-21  Bruno Haible  <bruno@clisp.org>
13102
13103         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13104         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13105
13106 2007-07-20  Jim Meyering  <jim@meyering.net>
13107
13108         * check-module: Diagnose a self-dependency.
13109
13110 2007-07-19  Bruno Haible  <bruno@clisp.org>
13111
13112         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13113         empty.
13114         Reported by Eric Blake.
13115
13116 2007-07-18  Bruno Haible  <bruno@clisp.org>
13117
13118         * gnulib-tool: New options --po-base, --po-domain.
13119         (func_usage): Document them.
13120         (pobase, po_domain): New variables.
13121         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13122         DEFAULT_TEXT_DOMAIN.
13123         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13124         (func_import): Consider pobase and po_domain. Create a po/ directory.
13125         (func_create_testdir): Set pobase and po_domain to empty.
13126         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13127         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13128
13129 2007-07-18  Bruno Haible  <bruno@clisp.org>
13130
13131         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13132         EXTRA_DIST augmentation for files in build-aux/.
13133
13134 2007-07-16  Bruno Haible  <bruno@clisp.org>
13135
13136         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13137         * modules/getdelim (License): Likewise.
13138
13139 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13140
13141         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13142         * modules/d-type (License): Likewise.
13143         * modules/extensions (License): Likewise.
13144         * modules/fnmatch (License): Likewise.
13145         * modules/fseeko (License): Likewise.
13146         * modules/getaddrinfo (License): Likewise.
13147         * modules/getline (License): Likewise.
13148         * modules/getlogin_r (License): Likewise.
13149         * modules/getpass (License): Likewise.
13150         * modules/gettimeofday (License): Likewise.
13151         * modules/glob (License): Likewise.
13152         * modules/inet_ntop (License): Likewise.
13153         * modules/malloc (License): Likewise.
13154         * modules/malloca (License): Likewise.
13155         * modules/memmem (License): Likewise.
13156         * modules/mempcpy (License): Likewise.
13157         * modules/memset (License): Likewise.
13158         * modules/minmax (License): Likewise.
13159         * modules/mktime (License): Likewise.
13160         * modules/netinet_in (License): Likewise.
13161         * modules/pathmax (License): Likewise.
13162         * modules/poll (License): Likewise.
13163         * modules/regex (License): Likewise.
13164         * modules/snprintf (License): Likewise.
13165         * modules/stdbool (License): Likewise.
13166         * modules/stdint (License): Likewise.
13167         * modules/stdio (License): Likewise.
13168         * modules/strcase (License): Likewise.
13169         * modules/strcasestr (License): Likewise.
13170         * modules/strdup (License): Likewise.
13171         * modules/string (License): Likewise.
13172         * modules/strndup (License): Likewise.
13173         * modules/strnlen (License): Likewise.
13174         * modules/strpbrk (License): Likewise.
13175         * modules/strptime (License): Likewise.
13176         * modules/strsep (License): Likewise.
13177         * modules/sys_select (License): Likewise.
13178         * modules/sys_socket (License): Likewise.
13179         * modules/sys_stat (License): Likewise.
13180         * modules/sys_time (License): Likewise.
13181         * modules/time (License): Likewise.
13182         * modules/time_r (License): Likewise.
13183         * modules/timegm (License): Likewise.
13184         * modules/unistd (License): Likewise.
13185         * modules/vsnprintf (License): Likewise.
13186         * modules/wctype (License): Likewise.
13187
13188 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13189
13190         * modules/argz (License): LGPLv2+.
13191
13192 2007-07-15  Karl Berry  <karl@gnu.org>
13193
13194         * doc/gnulib.texi: revise node structure per new fdl.texi.
13195
13196 2007-07-14  Bruno Haible  <bruno@clisp.org>
13197
13198         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13199         the output file.
13200         * lib/uniname/uninames.h: Regenerated.
13201
13202 2007-07-14  Karl Berry  <karl@gnu.org>
13203
13204         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13205         omitting sectioning and index commands.
13206
13207 2007-07-13  Bruno Haible  <bruno@clisp.org>
13208
13209         New gnulib-tool option --more-symlinks.
13210         * gnulib-tool (func_usage): Document --more-symlinks.
13211         (do_copyrights): New variable.
13212         Recognize option --more-symlinks.
13213         (func_import): Don't add a copyright notice transform to
13214         sed_transform_lib_file if do_copyrights is empty.
13215
13216 2007-07-13  Bruno Haible  <bruno@clisp.org>
13217
13218         * lib/vasnprintf.c (decimal_point_char): Define also if
13219         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13220         && !NEED_PRINTF_DIRECTIVE_A.
13221         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13222         Gary V. Vaughan <gary@gnu.org>.
13223
13224 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13225
13226         * lib/inttypes_.h: Undo previous change, since it was fixed
13227         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13228
13229 2007-07-13  Bruno Haible  <bruno@clisp.org>
13230
13231         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13232         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13233
13234 2007-07-13  Jim Meyering  <jim@meyering.net>
13235
13236         df: Don't fail for Tru64's "file-on-file mount".
13237         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13238         so we fall through and use statfs instead.  Details here:
13239         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13240         Reported by Albert Chin.
13241
13242 2007-07-13  Bruno Haible  <bruno@clisp.org>
13243
13244         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13245         * modules/configmake (License): Likewise.
13246         * modules/gettext (License): Likewise.
13247         * modules/gettext-h (License): Likewise.
13248         * modules/include_next (License): Likewise.
13249         * modules/link-warning (License): Likewise.
13250         * modules/localcharset (License): Likewise.
13251         * modules/localename (License): Likewise.
13252         * modules/lock (License): Likewise.
13253         * modules/relocatable-lib-lgpl (License): Likewise.
13254         * modules/size_max (License): Likewise.
13255         * modules/vasnprintf (License): Likewise.
13256         * modules/wchar (License): Likewise.
13257         * modules/xsize (License): Likewise.
13258
13259 2007-07-13  Bruno Haible  <bruno@clisp.org>
13260
13261         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13262         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13263
13264 2007-07-12  Bruno Haible  <bruno@clisp.org>
13265
13266         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13267         in the modules files.
13268
13269 2007-07-11  Karl Berry  <karl@gnu.org>
13270
13271         * MODULES.html.sh (func_module): use
13272          sed -e '\|^'"${includefile}"'$|d'
13273          instead of /.../d, to avoid errors on $includefile's containing /.
13274
13275 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13276
13277         * gnulib-tool (func_import): Avoid duplication of --avoid
13278         statements
13279         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13280         names to `_' in variable names.
13281
13282 2007-07-10  Eric Blake  <ebb9@byu.net>
13283
13284         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13285         * NEWS: Document this change.
13286
13287 2007-07-08  Bruno Haible  <bruno@clisp.org>
13288
13289         Update to Unicode 5.0.
13290         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13291         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13292         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13293         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13294         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13295         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13296         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13297         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13298         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13299         U+10A3F, U+1D242..U+1D244.
13300         (nonspacing_table_ind): Update.
13301         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13302         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13303
13304 2007-07-08  Bruno Haible  <bruno@clisp.org>
13305
13306         Update to Unicode 5.0.
13307         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13308         code transform. Extend the name index field of unicode_name_to_code and
13309         unicode_code_to_name from 16 to 24 bits.
13310         * lib/uniname/uniname.c (unicode_character_name,
13311         unicode_name_character): Add the range 0x12xxx to the code transform.
13312         * lib/uniname/uninames.h: Regenerated.
13313         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13314
13315 2007-07-07  Bruno Haible  <bruno@clisp.org>
13316
13317         * modules/wcwidth-tests: New file.
13318         * tests/test-wcwidth.c: New file.
13319
13320         Work around MacOS X wcwidth() bug.
13321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13322         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13323         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13324         original wcwidth in non-UTF-8 locales.
13325         * modules/wcwidth (Depends-on): Add localcharset, streq,
13326         uniwidth/width.
13327         * doc/functions/wcwidth.texi: Update.
13328
13329 2007-07-07  Bruno Haible  <bruno@clisp.org>
13330
13331         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13332         (wcwidth): New declaration.
13333         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13334         macros.
13335         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13336         here. Prepare for creating <wchar.h> unconditionally.
13337         * modules/wchar (Depends-on): Add link-warning.
13338         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13339         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13340         * lib/wcwidth.h: Remove file.
13341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13342         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13343         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13344         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13345         (Include): Replace wcwidth.h with <wchar.h>.
13346         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13347         * lib/mbchar.h: Don't include wcwidth.h.
13348         * lib/mbswidth.c: Likewise.
13349         * NEWS: Mention the change.
13350
13351 2007-07-07  Bruno Haible  <bruno@clisp.org>
13352
13353         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13354         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13355         definition with an external declaration.
13356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13357         defined as a function. Remove AC_C_INLINE requirement.
13358         * modules/wcwidth (Files): Add lib/wcwidth.c.
13359         (Makefile.am): Remove redundant statement.
13360
13361 2007-07-07  Bruno Haible  <bruno@clisp.org>
13362
13363         * MODULES.html.sh (Unicode string functions): Add the new modules.
13364
13365         * tests/uniwidth/test-u32-strwidth.c: New file.
13366         * modules/uniwidth/u32-strwidth-tests: New file.
13367
13368         * lib/uniwidth/u32-strwidth.c: New file.
13369         * modules/uniwidth/u32-strwidth: New file.
13370
13371         * tests/uniwidth/test-u16-strwidth.c: New file.
13372         * modules/uniwidth/u16-strwidth-tests: New file.
13373
13374         * lib/uniwidth/u16-strwidth.c: New file.
13375         * modules/uniwidth/u16-strwidth: New file.
13376
13377         * tests/uniwidth/test-u8-strwidth.c: New file.
13378         * modules/uniwidth/u8-strwidth-tests: New file.
13379
13380         * lib/uniwidth/u8-strwidth.c: New file.
13381         * modules/uniwidth/u8-strwidth: New file.
13382
13383         * tests/uniwidth/test-u32-width.c: New file.
13384         * modules/uniwidth/u32-width-tests: New file.
13385
13386         * lib/uniwidth/u32-width.c: New file.
13387         * modules/uniwidth/u32-width: New file.
13388
13389         * tests/uniwidth/test-u16-width.c: New file.
13390         * modules/uniwidth/u16-width-tests: New file.
13391
13392         * lib/uniwidth/u16-width.c: New file.
13393         * modules/uniwidth/u16-width: New file.
13394
13395         * tests/uniwidth/test-u8-width.c: New file.
13396         * modules/uniwidth/u8-width-tests: New file.
13397
13398         * lib/uniwidth/u8-width.c: New file.
13399         * modules/uniwidth/u8-width: New file.
13400
13401         * tests/uniwidth/test-uc_width.c: New file.
13402         * modules/uniwidth/width-tests: New file.
13403
13404         * lib/uniwidth/width.c: New file, from GNU libiconv.
13405         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13406         * modules/uniwidth/width: New file.
13407
13408         * lib/uniwidth.h: New file, from GNU libiconv.
13409         * modules/uniwidth/base: New file.
13410
13411 2007-07-07  Bruno Haible  <bruno@clisp.org>
13412
13413         * lib/uniname.h: New file, from GNU gettext.
13414         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13415         * lib/uniname/uninames.h: New file, from GNU gettext.
13416         * lib/uniname/uniname.c: New file, from GNU gettext.
13417         * tests/uniname/test-uninames.sh: New file.
13418         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13419         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13420         * modules/uniname/base: New file.
13421         * modules/uniname/uniname: New file.
13422         * modules/uniname/uniname-tests: New file.
13423         * MODULES.html.sh (Unicode string functions): Add the new modules.
13424
13425 2007-07-06  Bruno Haible  <bruno@clisp.org>
13426
13427         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13428
13429 2007-07-06  Bruno Haible  <bruno@clisp.org>
13430
13431         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13432         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13433         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13434         include <sys/time.h>.
13435         Reported by Eric Blake.
13436
13437 2007-07-06  Eric Blake  <ebb9@byu.net>
13438
13439         Fix testing canonicalize on cygwin.
13440         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13441         Revert patch from 2007-06-19.
13442         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13443         canonicalize module is also in use.
13444         * tests/test-canonicalize.c: New file.
13445         * tests/test-canonicalize.sh: Likewise.
13446         * modules/canonicalize-tests: Likewise.
13447
13448 2007-07-06  Jim Meyering  <jim@meyering.net>
13449
13450         * lib/getugroups.c (getugroups): Detect getgrent failure.
13451         Adjust comment to reflect reality: this function may return -1.
13452
13453 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13454
13455         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13456         the new TP address.
13457         (usage): Fix typo
13458         (gnulib_mk): New variable.
13459
13460 2007-07-05  Jim Meyering  <jim@meyering.net>
13461
13462         Don't let endgrent clobber errno, no matter how improbable.
13463         * lib/getugroups.c (getugroups): Save and restore errno around
13464         endgrent call.
13465
13466         Close the group DB even when failing with 2^31 or more members.
13467         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13468
13469 2007-07-04  Jim Meyering  <jim@meyering.net>
13470
13471         * lib/getugroups.h: New file.
13472         * lib/getugroups.c: Include "getugroups.h".
13473         Remove uses of "register" keyword.
13474         Move local variable, "cp", down into scope where used.
13475         Give "username" parameter the "const" attribute.
13476         * modules/getugroups (Files): Add lib/getugroups.h
13477
13478 2007-07-04  Karl Berry  <karl@gnu.org>
13479
13480         * MODULES.html.sh (func_all_modules): Complete rename of
13481         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13482
13483 2007-07-02  Bruno Haible  <bruno@clisp.org>
13484
13485         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13486         mode, when inttypes.h comes from gnulib.
13487         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13488
13489 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13490
13491         * NEWS: Mention lgpl module name change.
13492
13493         * modules/lgpl-2.1: Renamed from lgpl.
13494
13495         * NEWS: Mention gpl module name change.
13496
13497         * modules/gpl-3.0: New file, based on gpl-2.0.
13498
13499         * modules/gpl-2.0: Renamed from gpl.
13500
13501         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13502         doc/gpl-2.0.texi.
13503
13504 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13505
13506         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13507         #define __STDC_LIMIT_MACROS temporarily while including
13508         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13509         Problem reported by Joel E. Denny in
13510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13511
13512 2007-07-01  Bruno Haible  <bruno@clisp.org>
13513
13514         * lib/unistdio.h: New file.
13515         * lib/unistdio/u-asnprintf.h: New file.
13516         * lib/unistdio/u-asprintf.h: New file.
13517         * lib/unistdio/u-printf-args.c: New file.
13518         * lib/unistdio/u-printf-args.h: New file.
13519         * lib/unistdio/u-printf-parse.h: New file.
13520         * lib/unistdio/u-snprintf.h: New file.
13521         * lib/unistdio/u-sprintf.h: New file.
13522         * lib/unistdio/u-vasprintf.h: New file.
13523         * lib/unistdio/u-vsnprintf.h: New file.
13524         * lib/unistdio/u-vsprintf.h: New file.
13525         * lib/unistdio/ulc-asnprintf.c: New file.
13526         * lib/unistdio/ulc-asprintf.c: New file.
13527         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13528         * lib/unistdio/ulc-printf-parse.c: New file.
13529         * lib/unistdio/ulc-snprintf.c: New file.
13530         * lib/unistdio/ulc-sprintf.c: New file.
13531         * lib/unistdio/ulc-vasnprintf.c: New file.
13532         * lib/unistdio/ulc-vasprintf.c: New file.
13533         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13534         * lib/unistdio/ulc-vsnprintf.c: New file.
13535         * lib/unistdio/ulc-vsprintf.c: New file.
13536         * lib/unistdio/u8-asnprintf.c: New file.
13537         * lib/unistdio/u8-asprintf.c: New file.
13538         * lib/unistdio/u8-printf-parse.c: New file.
13539         * lib/unistdio/u8-snprintf.c: New file.
13540         * lib/unistdio/u8-sprintf.c: New file.
13541         * lib/unistdio/u8-vasnprintf.c: New file.
13542         * lib/unistdio/u8-vasprintf.c: New file.
13543         * lib/unistdio/u8-vsnprintf.c: New file.
13544         * lib/unistdio/u8-vsprintf.c: New file.
13545         * lib/unistdio/u8-u8-asnprintf.c: New file.
13546         * lib/unistdio/u8-u8-asprintf.c: New file.
13547         * lib/unistdio/u8-u8-snprintf.c: New file.
13548         * lib/unistdio/u8-u8-sprintf.c: New file.
13549         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13550         * lib/unistdio/u8-u8-vasprintf.c: New file.
13551         * lib/unistdio/u8-u8-vsnprintf.c: New file.
13552         * lib/unistdio/u8-u8-vsprintf.c: New file.
13553         * lib/unistdio/u16-asnprintf.c: New file.
13554         * lib/unistdio/u16-asprintf.c: New file.
13555         * lib/unistdio/u16-printf-parse.c: New file.
13556         * lib/unistdio/u16-snprintf.c: New file.
13557         * lib/unistdio/u16-sprintf.c: New file.
13558         * lib/unistdio/u16-vasnprintf.c: New file.
13559         * lib/unistdio/u16-vasprintf.c: New file.
13560         * lib/unistdio/u16-vsnprintf.c: New file.
13561         * lib/unistdio/u16-vsprintf.c: New file.
13562         * lib/unistdio/u16-u16-asnprintf.c: New file.
13563         * lib/unistdio/u16-u16-asprintf.c: New file.
13564         * lib/unistdio/u16-u16-snprintf.c: New file.
13565         * lib/unistdio/u16-u16-sprintf.c: New file.
13566         * lib/unistdio/u16-u16-vasnprintf.c: New file.
13567         * lib/unistdio/u16-u16-vasprintf.c: New file.
13568         * lib/unistdio/u16-u16-vsnprintf.c: New file.
13569         * lib/unistdio/u16-u16-vsprintf.c: New file.
13570         * lib/unistdio/u32-asnprintf.c: New file.
13571         * lib/unistdio/u32-asprintf.c: New file.
13572         * lib/unistdio/u32-printf-parse.c: New file.
13573         * lib/unistdio/u32-snprintf.c: New file.
13574         * lib/unistdio/u32-sprintf.c: New file.
13575         * lib/unistdio/u32-vasnprintf.c: New file.
13576         * lib/unistdio/u32-vasprintf.c: New file.
13577         * lib/unistdio/u32-vsnprintf.c: New file.
13578         * lib/unistdio/u32-vsprintf.c: New file.
13579         * lib/unistdio/u32-u32-asnprintf.c: New file.
13580         * lib/unistdio/u32-u32-asprintf.c: New file.
13581         * lib/unistdio/u32-u32-snprintf.c: New file.
13582         * lib/unistdio/u32-u32-sprintf.c: New file.
13583         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13584         * lib/unistdio/u32-u32-vasprintf.c: New file.
13585         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13586         * lib/unistdio/u32-u32-vsprintf.c: New file.
13587         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13588         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13589         * tests/unistdio/test-ulc-printf1.h: New file.
13590         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13591         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13592         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13593         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13594         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13595         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13596         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13597         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13598         * tests/unistdio/test-u8-asnprintf1.c: New file.
13599         * tests/unistdio/test-u8-asnprintf1.h: New file.
13600         * tests/unistdio/test-u8-printf1.h: New file.
13601         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13602         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13603         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13604         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13605         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13606         * tests/unistdio/test-u8-vasprintf1.c: New file.
13607         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13608         * tests/unistdio/test-u8-vsprintf1.c: New file.
13609         * tests/unistdio/test-u16-asnprintf1.c: New file.
13610         * tests/unistdio/test-u16-asnprintf1.h: New file.
13611         * tests/unistdio/test-u16-printf1.h: New file.
13612         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13613         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13614         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13615         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13616         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13617         * tests/unistdio/test-u16-vasprintf1.c: New file.
13618         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13619         * tests/unistdio/test-u16-vsprintf1.c: New file.
13620         * tests/unistdio/test-u32-asnprintf1.c: New file.
13621         * tests/unistdio/test-u32-asnprintf1.h: New file.
13622         * tests/unistdio/test-u32-printf1.h: New file.
13623         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13624         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13625         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13626         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13627         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13628         * tests/unistdio/test-u32-vasprintf1.c: New file.
13629         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13630         * tests/unistdio/test-u32-vsprintf1.c: New file.
13631         * modules/unistdio/base: New file.
13632         * modules/unistdio/u-printf-args: New file.
13633         * modules/unistdio/ulc-asnprintf: New file.
13634         * modules/unistdio/ulc-asprintf: New file.
13635         * modules/unistdio/ulc-fprintf: New file.
13636         * modules/unistdio/ulc-printf-parse: New file.
13637         * modules/unistdio/ulc-snprintf: New file.
13638         * modules/unistdio/ulc-sprintf: New file.
13639         * modules/unistdio/ulc-vasnprintf: New file.
13640         * modules/unistdio/ulc-vasprintf: New file.
13641         * modules/unistdio/ulc-vfprintf: New file.
13642         * modules/unistdio/ulc-vsnprintf: New file.
13643         * modules/unistdio/ulc-vsprintf: New file.
13644         * modules/unistdio/u8-asnprintf: New file.
13645         * modules/unistdio/u8-asprintf: New file.
13646         * modules/unistdio/u8-printf-parse: New file.
13647         * modules/unistdio/u8-snprintf: New file.
13648         * modules/unistdio/u8-sprintf: New file.
13649         * modules/unistdio/u8-vasnprintf: New file.
13650         * modules/unistdio/u8-vasprintf: New file.
13651         * modules/unistdio/u8-vsnprintf: New file.
13652         * modules/unistdio/u8-vsprintf: New file.
13653         * modules/unistdio/u8-u8-asnprintf: New file.
13654         * modules/unistdio/u8-u8-asprintf: New file.
13655         * modules/unistdio/u8-u8-snprintf: New file.
13656         * modules/unistdio/u8-u8-sprintf: New file.
13657         * modules/unistdio/u8-u8-vasnprintf: New file.
13658         * modules/unistdio/u8-u8-vasprintf: New file.
13659         * modules/unistdio/u8-u8-vsnprintf: New file.
13660         * modules/unistdio/u8-u8-vsprintf: New file.
13661         * modules/unistdio/u16-asnprintf: New file.
13662         * modules/unistdio/u16-asprintf: New file.
13663         * modules/unistdio/u16-printf-parse: New file.
13664         * modules/unistdio/u16-snprintf: New file.
13665         * modules/unistdio/u16-sprintf: New file.
13666         * modules/unistdio/u16-vasnprintf: New file.
13667         * modules/unistdio/u16-vasprintf: New file.
13668         * modules/unistdio/u16-vsnprintf: New file.
13669         * modules/unistdio/u16-vsprintf: New file.
13670         * modules/unistdio/u16-u16-asnprintf: New file.
13671         * modules/unistdio/u16-u16-asprintf: New file.
13672         * modules/unistdio/u16-u16-snprintf: New file.
13673         * modules/unistdio/u16-u16-sprintf: New file.
13674         * modules/unistdio/u16-u16-vasnprintf: New file.
13675         * modules/unistdio/u16-u16-vasprintf: New file.
13676         * modules/unistdio/u16-u16-vsnprintf: New file.
13677         * modules/unistdio/u16-u16-vsprintf: New file.
13678         * modules/unistdio/u32-asnprintf: New file.
13679         * modules/unistdio/u32-asprintf: New file.
13680         * modules/unistdio/u32-printf-parse: New file.
13681         * modules/unistdio/u32-snprintf: New file.
13682         * modules/unistdio/u32-sprintf: New file.
13683         * modules/unistdio/u32-vasnprintf: New file.
13684         * modules/unistdio/u32-vasprintf: New file.
13685         * modules/unistdio/u32-vsnprintf: New file.
13686         * modules/unistdio/u32-vsprintf: New file.
13687         * modules/unistdio/u32-u32-asnprintf: New file.
13688         * modules/unistdio/u32-u32-asprintf: New file.
13689         * modules/unistdio/u32-u32-snprintf: New file.
13690         * modules/unistdio/u32-u32-sprintf: New file.
13691         * modules/unistdio/u32-u32-vasnprintf: New file.
13692         * modules/unistdio/u32-u32-vasprintf: New file.
13693         * modules/unistdio/u32-u32-vsnprintf: New file.
13694         * modules/unistdio/u32-u32-vsprintf: New file.
13695         * modules/unistdio/ulc-asnprintf-tests: New file.
13696         * modules/unistdio/ulc-vasnprintf-tests: New file.
13697         * modules/unistdio/ulc-vasprintf-tests: New file.
13698         * modules/unistdio/ulc-vsnprintf-tests: New file.
13699         * modules/unistdio/ulc-vsprintf-tests: New file.
13700         * modules/unistdio/u8-asnprintf-tests: New file.
13701         * modules/unistdio/u8-vasnprintf-tests: New file.
13702         * modules/unistdio/u8-vasprintf-tests: New file.
13703         * modules/unistdio/u8-vsnprintf-tests: New file.
13704         * modules/unistdio/u8-vsprintf-tests: New file.
13705         * modules/unistdio/u16-asnprintf-tests: New file.
13706         * modules/unistdio/u16-vasnprintf-tests: New file.
13707         * modules/unistdio/u16-vasprintf-tests: New file.
13708         * modules/unistdio/u16-vsnprintf-tests: New file.
13709         * modules/unistdio/u16-vsprintf-tests: New file.
13710         * modules/unistdio/u32-asnprintf-tests: New file.
13711         * modules/unistdio/u32-vasnprintf-tests: New file.
13712         * modules/unistdio/u32-vasprintf-tests: New file.
13713         * modules/unistdio/u32-vsnprintf-tests: New file.
13714         * modules/unistdio/u32-vsprintf-tests: New file.
13715         * MODULES.html.sh (Unicode string functions): Add the new modules.
13716
13717 2007-07-01  Bruno Haible  <bruno@clisp.org>
13718
13719         * lib/sprintf.c (sprintf): Limit the available length estimation,
13720         to avoid address wraparound.
13721         * lib/vsprintf.c (vsprintf): Likewise.
13722         * modules/sprintf-posix (Dependencies): Add stdint.
13723         * modules/vsprintf-posix (Dependencies): Likewise.
13724
13725 2007-07-01  Bruno Haible  <bruno@clisp.org>
13726
13727         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13728         Windows PATH as well. Conservative double-quoting. Comments.
13729
13730 2007-07-01  Bruno Haible  <bruno@clisp.org>
13731             Eric Blake  <ebb9@byu.net>
13732             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13733
13734         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13735         empty components in $PATH, denoting '.'.
13736
13737 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13738
13739         * gnulib-tool: Fix indentation.
13740         (func_create_megatestdir): Likewise.
13741         Report by Bruno Haible.
13742
13743 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13744
13745         Sync from Automake.
13746         * build-aux/gnupload: Fix shell portability issues with for loops.
13747         Report by Karl Berry.
13748
13749 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13750
13751         * build-aux/maint.mk (POURL): Use translationproject.org.
13752
13753 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13754             Bruno Haible  <bruno@clisp.org>
13755
13756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13757         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13758         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13759         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13760         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13761
13762 2007-06-27  Bruno Haible  <bruno@clisp.org>
13763
13764         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13765         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13766
13767 2007-06-26  Karl Berry  <karl@gnu.org>
13768
13769         * MODULES.html.sh: remove xreadlink-with-size.
13770
13771 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13772
13773         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13774         method that I hope also handles the double-include problem noted
13775         by Bruno Haible in
13776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13777
13778 2007-06-23  Bruno Haible  <bruno@clisp.org>
13779
13780         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13781         Don't let the 'mostlyclean' target fail if the last subdirectory could
13782         not be removed.
13783         Reported by Karl Berry.
13784
13785 2007-06-23  Bruno Haible  <bruno@clisp.org>
13786
13787         * gnulib-tool (echo): Add a speedier workaround for ksh.
13788         * tests/test-echo.sh: Likewise.
13789
13790 2007-06-23  Bruno Haible  <bruno@clisp.org>
13791
13792         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13793         * tests/test-echo.sh: Likewise.
13794
13795 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13796
13797         * gnulib-tool (IFS): Initialize early, so we don't set it to
13798         empty later.
13799         (self_abspathname): Rewrite algorithm to set it, reindent.
13800         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13801         (func_create_megatestdir): Merge some sed scripts.
13802
13803 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13804
13805         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13806         exposed by Sun Studio 11 cc on Solaris 8.
13807
13808 2007-06-22  Bruno Haible  <bruno@clisp.org>
13809
13810         * gnulib-tool (echo): Ensure the echo primitive does not interpret
13811         backslashes.
13812         * tests/test-echo.sh: New file.
13813
13814 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13815
13816         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13817         simplify `sed_replace_build_aux' scripts, they are portable but
13818         echoing them with `echo' is not.
13819         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13820
13821 2007-06-21  Karl Berry  <karl@gnu.org>
13822
13823         * config/srclist.txt: guess we can't handle the licenses via
13824         srclist at the moment.
13825
13826 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13827
13828         * MODULES.html.sh: Add include_next.
13829         * modules/include_next: New file.
13830
13831 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13832
13833         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13834         INCLUDE_NEXT.
13835         (gl_CHECK_NEXT_HEADERS): New macro.
13836         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13837         the obsolescent gl_ABSOLUTE_HEADER.
13838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13839         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13840         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13841         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13842         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13843         * m4/math_h.m4 (gl_MATH_H): Likewise.
13844         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13845         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13846         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13847         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13848         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13849         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13850         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13854         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13855         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13856         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13857         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13858         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13859         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13860         * m4/inttypes.m4 (gl_INTTYPES_H): Define
13861         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13862         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13863         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13864         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13865         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13866         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13867         * lib/float_.h: Likewise.
13868         * lib/inttypes_.h: Likewise.
13869         * lib/math_.h: Likewise.
13870         * lib/search_.h: Likewise.
13871         * lib/signal_.h: Likewise.
13872         * lib/stdint_.h: Likewise.
13873         * lib/stdio_.h: Likewise.
13874         * lib/stdlib_.h: Likewise.
13875         * lib/string_.h: Likewise.
13876         * lib/sys_stat_.h: Likewise.
13877         * lib/sys_time_.h: Likewise.
13878         * lib/time_.h: Likewise.
13879         * lib/unistd_.h: Likewise.
13880         * lib/wchar_.h: Likewise.
13881         * lib/wctype_.h: Likewise.
13882         * lib/dirent_.h: Likewise.
13883         * lib/iconv_.h: Likewise.
13884         * lib/locale_.h: Likewise.
13885         * lib/netinet_in_.h: Likewise.
13886         * lib/sys_select_.h: Likewise.
13887         * lib/sys_socket_.h: Likewise.
13888         * lib/sysexits_.h: Likewise.
13889         * modules/fcntl (Depends-on): Depend on include_next, not
13890         absolute_header.
13891         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13892         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13893         * modules/fchdir: Likewise.
13894         * modules/float: Likewise.
13895         * modules/iconv_open: Likewise.
13896         * modules/inttypes: Likewise.
13897         * modules/locale: Likewise.
13898         * modules/math: Likewise.
13899         * modules/netinet_in: Likewise.
13900         * modules/search: Likewise.
13901         * modules/signal: Likewise.
13902         * modules/stdint: Likewise.
13903         * modules/stdio: Likewise.
13904         * modules/stdlib: Likewise.
13905         * modules/string: Likewise.
13906         * modules/sys_select: Likewise.
13907         * modules/sys_socket: Likewise.
13908         * modules/sys_stat: Likewise.
13909         * modules/sys_time: Likewise.
13910         * modules/sysexits: Likewise.
13911         * modules/time: Likewise.
13912         * modules/unistd: Likewise.
13913         * modules/wchar: Likewise.
13914         * modules/wctype: Likewise.
13915         * modules/sys_stat: Change maintainer to "all".
13916         * modules/unistd: Likewise.
13917
13918 2007-06-20  Karl Berry  <karl@gnu.org>
13919
13920         * config/srclist.txt: track www changes in license files.
13921
13922 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13923
13924         * build-aux/bootstrap: Remove stray dot.
13925         Make sure build_aux settings are honored when linking
13926         gnulib_extra_files.
13927
13928 2007-06-19  Eric Blake  <ebb9@byu.net>
13929
13930         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13931         Allow compilation on cygwin.
13932
13933 2007-06-19  Jim Meyering  <jim@meyering.net>
13934
13935         xreadlink-with-size: Remove module.  No longer used.
13936         Ex-callers now use xreadlink or mreadlink-with-size.
13937         * modules/xreadlink-with-size: Remove module.
13938         * lib/xreadlink-with-size.c: Remove file.
13939         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13940         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13941         just before the function definition *is* accurate.
13942
13943         Eliminate one way canonicalize_filename_mode could exit.
13944         * lib/canonicalize.c (canonicalize_filename_mode):
13945         Use mreadlink_with_size, not xreadlink_with_size.
13946
13947 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         Detect porting problems to FreeBSD/arm, which has time_t wider than
13950         long int.  Original problem reported for GNU diff by Xin Li in
13951         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13952         * modules/getdate (Depends-on): Add intprops, verify.
13953         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13954         is an integer type no wider than long int.
13955
13956 2007-06-18  Jim Meyering  <jim@meyering.net>
13957
13958         New module: mreadlink-with-size.
13959         * MODULES.html.sh: Add mreadlink-with-size.
13960         * modules/mreadlink-with-size: New module
13961         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13962         not xreadlink-with-size.
13963         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13964
13965 2007-06-16  Bruno Haible  <bruno@clisp.org>
13966
13967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13968         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13969         Reported by Gary V. Vaughan <gary@gnu.org>.
13970
13971 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         Revamp lchown so that it lives in unistd.h where it belongs.
13974         * lib/lchown.h: Remove.
13975         * lib/dirchownmod.c: Don't include lib/lchown.h.
13976         * lib/fchownat.c: Likewise.
13977         * lib/openat.c: Likewise.
13978         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13979         does not follow symlinks.
13980         (EOPNOTSUPP): Define if not defined.
13981         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13982         is defined to 0.
13983         (lchown): New decl.
13984         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13985         Do not check for lchown decl.
13986         Set REPLACE_LCHOWN.
13987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13988         REPLACE_LCHOWN.
13989         * modules/chown: Make it clear it follows symlinks.
13990         * modules/lchown: Make it clear it doesn't follow symlinks.
13991         (Files): Remove lib/lchown.h
13992         (Depends-on): Add unistd.
13993         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13994         (Include): Include <unistd.h>, not "lchown.h".
13995         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13996         REPLACE_LCHOWN.
13997
13998 2007-06-15  Jim Meyering  <jim@meyering.net>
13999
14000         Change license (GPL to LGPL) of fsusage and dependents.
14001         * modules/fsusage (License): Change to LGPL.
14002         * modules/full-read (License): Likewise.
14003         * modules/full-write (License): Likewise.
14004         * modules/safe-read (License): Likewise.
14005         * modules/safe-write (License): Likewise.
14006
14007 2007-06-14  Ben Pfaff  <blp@gnu.org>
14008
14009         Missing part of allocsa -> malloca transition.
14010         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14011         gl_MALLOCA.
14012
14013 2007-06-12  Bruno Haible  <bruno@clisp.org>
14014
14015         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14016         to ia64, x86_64, i386.
14017         Reported by Eric Blake.
14018
14019 2007-06-12  Bruno Haible  <bruno@clisp.org>
14020
14021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14022         cross-compiling to x86_64.
14023
14024 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14025
14026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14027         glitch reported by Ralf Wildenhues in
14028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14029
14030         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14031         Vin Shelton.
14032
14033 2007-06-11  Bruno Haible  <bruno@clisp.org>
14034
14035         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14036         replacement string.
14037         Reported by Eric Blake.
14038
14039 2007-06-10  Bruno Haible  <bruno@clisp.org>
14040
14041         Prepare vasnprintf code for use with Unicode strings.
14042         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14043         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14044         TYPE_U32_STRING.
14045         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14046         a_u32_string variants.
14047         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14048         * lib/printf-args.c: Don't include config.h and the specification
14049         header if PRINTF_FETCHARGS is already defined.
14050         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14051         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14052         TYPE_U16_STRING, TYPE_U32_STRING.
14053         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14054         u16_directive, u16_directives, u32_directive, u32_directives): New
14055         types.
14056         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14057         New declarations.
14058         * lib/printf-parse.c: Don't include config.h and the specification
14059         header if PRINTF_PARSE is already defined. Eliminate the set of
14060         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14061         them now. Include c-ctype.h.
14062         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14063         directive and CHAR_T_ONLY_ASCII.
14064         * lib/vasnprintf.c: Don't include config.h and the specification header
14065         if VASNPRINTF is already defined.
14066         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14067         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14068         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14069         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14070         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14071         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14072         code accordingly.
14073         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14074         pad_ourselves also in this case, with the 'c' and 's' directives, and
14075         with a different notion of "width".
14076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14077
14078 2007-06-10  Bruno Haible  <bruno@clisp.org>
14079
14080         * modules/unistr/u32-mbsnlen: New file.
14081         * lib/unistr/u32-mbsnlen.c: New file.
14082
14083         * modules/unistr/u16-mbsnlen: New file.
14084         * lib/unistr/u16-mbsnlen.c: New file.
14085
14086         * modules/unistr/u8-mbsnlen: New file.
14087         * lib/unistr/u8-mbsnlen.c: New file.
14088
14089         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14090         declarations.
14091
14092 2007-06-10  Bruno Haible  <bruno@clisp.org>
14093
14094         * lib/string_.h (mbsnlen): New declaration.
14095         * lib/mbsnlen.c: New file.
14096         * m4/mbsnlen.m4: New file.
14097         * modules/mbsnlen: New file.
14098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14099         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14100         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14101
14102 2007-06-10  Bruno Haible  <bruno@clisp.org>
14103
14104         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14105
14106 2007-06-10  Bruno Haible  <bruno@clisp.org>
14107
14108         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14109         * lib/mbuiter.h: Likewise.
14110
14111 2007-06-10  Bruno Haible  <bruno@clisp.org>
14112
14113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14114         declaration.
14115
14116 2007-06-10  Karl Berry  <karl@gnu.org>
14117
14118         * config/srclist.txt: remove gettext entries, Bruno prefers
14119         to update individually.
14120
14121 2007-06-10  Bruno Haible  <bruno@clisp.org>
14122
14123         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14124         'maxlen'. Ensure only length + width bytes are allocated, not
14125         length + 1 + width.
14126
14127 2007-06-09  Bruno Haible  <bruno@clisp.org>
14128
14129         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14130         (CHAR_T): Remove macro.
14131         (VASNPRINTF): Update.
14132
14133 2007-06-09  Bruno Haible  <bruno@clisp.org>
14134
14135         * MODULES.html.sh (Unicode string functions): Add the new modules.
14136
14137         * modules/uniconv/u32-conv-to-enc: New file.
14138         * lib/uniconv/u32-conv-to-enc.c: New file.
14139         * modules/uniconv/u32-conv-to-enc-tests: New file.
14140         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14141
14142         * modules/uniconv/u16-conv-to-enc: New file.
14143         * lib/uniconv/u16-conv-to-enc.c: New file.
14144         * lib/uniconv/u-conv-to-enc.h: New file.
14145         * modules/uniconv/u16-conv-to-enc-tests: New file.
14146         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14147
14148         * modules/uniconv/u8-conv-to-enc: New file.
14149         * lib/uniconv/u8-conv-to-enc.c: New file.
14150         * modules/uniconv/u8-conv-to-enc-tests: New file.
14151         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14152
14153         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14154         u32_conv_to_encoding): New declarations.
14155
14156 2007-06-09  Bruno Haible  <bruno@clisp.org>
14157
14158         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14159
14160 2007-06-09  Bruno Haible  <bruno@clisp.org>
14161
14162         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14163         * modules/malloca: Renamed from modules/allocsa, updated.
14164         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14165         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14166         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14167         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14168         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14169         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14170         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14171         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14172         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14173         * modules/c-strcasestr (Depends-on): Update.
14174         * lib/c-strcasestr.c: Update.
14175         * modules/c-strstr (Depends-on): Update.
14176         * lib/c-strstr.c: Update.
14177         * modules/canonicalize-lgpl (Depends-on): Update.
14178         * lib/canonicalize-lgpl.c: Update.
14179         * modules/clean-temp (Depends-on): Update.
14180         * lib/clean-temp.c: Update.
14181         * modules/csharpcomp (Depends-on): Update.
14182         * lib/csharpcomp.c: Update.
14183         * modules/csharpexec (Depends-on): Update.
14184         * lib/csharpexec.c: Update.
14185         * modules/javacomp (Depends-on): Update.
14186         * lib/javacomp.c: Update.
14187         * modules/javaexec (Depends-on): Update.
14188         * lib/javaexec.c: Update.
14189         * modules/mbscasestr (Depends-on): Update.
14190         * lib/mbscasestr.c: Update.
14191         * modules/mbsstr (Depends-on): Update.
14192         * lib/mbsstr.c: Update.
14193         * modules/setenv (Depends-on): Update.
14194         * lib/setenv.c: Update.
14195         * modules/strcasestr (Depends-on): Update.
14196         * lib/strcasestr.c: Update.
14197         * modules/striconveha (Depends-on): Update.
14198         * lib/striconveha.c: Update.
14199         * modules/relocatable-prog-wrapper (Files): Update.
14200         * lib/relocwrapper.c: Update.
14201         * build-aux/install-reloc: Update.
14202         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14203
14204 2007-06-08  Bruno Haible  <bruno@clisp.org>
14205
14206         Port to uClibc.
14207         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14208         * lib/fpurge.c (fpurge): Likewise.
14209         * lib/freading.c (freading): Likewise.
14210         * lib/fseeko.c (rpl_fseeko): Likewise.
14211         * lib/fseterr.c (fseterr): Likewise.
14212         * lib/fwriting.c (fwriting): Likewise.
14213         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14214
14215 2007-06-08  Bruno Haible  <bruno@clisp.org>
14216
14217         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14218         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14219         * modules/gettext (Files): Add m4/intlmacosx.m4.
14220
14221 2007-06-07  Bruno Haible  <bruno@clisp.org>
14222
14223         * modules/localename-tests: New file.
14224         * tests/test-localename.c: New file.
14225
14226         New module 'localename'.
14227         * lib/localename.h: New file.
14228         * lib/localename.c: New file, from GNU gettext.
14229         * m4/localename.m4: New file.
14230         * modules/localename: New file.
14231
14232 2007-06-07  Bruno Haible  <bruno@clisp.org>
14233
14234         Work around the lack of <wchar.h> on some builds of uClibc.
14235         * doc/headers/wchar.texi: Update.
14236         * lib/wchar_.h: Include <wchar.h> only if it exists.
14237         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14238         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14239         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14240         doesn't exist.
14241         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14242         * modules/mbfile (Depends-on): Add wchar.
14243         * modules/mbiter (Depends-on): Likewise.
14244         * modules/mbuiter (Depends-on): Likewise.
14245         Reported by Simon Josefsson.
14246
14247 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14248
14249         Work around problem reported by Steven M. Schweda in
14250         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14251         Tru64 5.1B with the Compaq compiler environment installed declares
14252         an 'isblank' function but does not define it in the C library.
14253         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14254         * lib/regex_internal.h (isblank): Likewise.
14255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14256         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14257
14258 2007-06-05  Bruno Haible  <bruno@clisp.org>
14259
14260         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14261         ia64.
14262         * modules/printf-safe: New file.
14263         * modules/fprintf-posix (Depends-on): Add printf-safe.
14264         * modules/printf-posix (Depends-on): Likewise.
14265         * modules/snprintf-posix (Depends-on): Likewise.
14266         * modules/sprintf-posix (Depends-on): Likewise.
14267         * modules/vasnprintf-posix (Depends-on): Likewise.
14268         * modules/vasprintf-posix (Depends-on): Likewise.
14269         * modules/vfprintf-posix (Depends-on): Likewise.
14270         * modules/vprintf-posix (Depends-on): Likewise.
14271         * modules/vsnprintf-posix (Depends-on): Likewise.
14272         * modules/vsprintf-posix (Depends-on): Likewise.
14273         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14274         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14275         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14276         "no" on i386, x86_64, ia64.
14277         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14278         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14279         on i386, x86_64, ia64.
14280         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14281         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14282         on i386, x86_64, ia64.
14283         * tests/test-vasnprintf-posix.c: Include float.h.
14284         (LDBL80_WORDS): New macro.
14285         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14286         on i386, x86_64, ia64.
14287         * tests/test-vasprintf-posix.c: Include float.h.
14288         (LDBL80_WORDS): New macro.
14289         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14290         on i386, x86_64, ia64.
14291         * tests/test-snprintf-posix.c: Include float.h.
14292         * tests/test-sprintf-posix.c: Likewise.
14293         * tests/test-vsnprintf-posix.c: Likewise.
14294         * tests/test-vsprintf-posix.c: Likewise.
14295
14296 2007-06-05  Bruno Haible  <bruno@clisp.org>
14297
14298         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14299         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14300         non-IEEE numbers on i386, x86_64, ia64.
14301         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14302         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14303         * tests/test-isnanl.h: Include float.h.
14304         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14305
14306 2007-06-05  Bruno Haible  <bruno@clisp.org>
14307
14308         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14309         also the %a / %A. Handle the %a / %A code before this extra handling.
14310
14311 2007-06-05  Bruno Haible  <bruno@clisp.org>
14312
14313         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14314         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14315
14316 2007-06-05  Bruno Haible  <bruno@clisp.org>
14317
14318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14319         typo in variable name.
14320
14321 2007-06-05  Eric Blake  <ebb9@byu.net>
14322
14323         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14324         Reported by Simon Josefsson.
14325
14326 2007-06-04  Bruno Haible  <bruno@clisp.org>
14327
14328         Avoid test failures on some PowerPC platforms.
14329         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14330         Define differently for PowerPC.
14331         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14332         Reported by Gary V. Vaughan <gary@gnu.org>.
14333
14334 2007-06-02  Bruno Haible  <bruno@clisp.org>
14335
14336         Fix test-stdint failure on FreeBSD/ia64.
14337         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14338         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14339         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14340         * doc/headers/stdint.texi: Update.
14341
14342 2007-06-01  Bruno Haible  <bruno@clisp.org>
14343
14344         * tests/test-binary-io.c (main): Pass a third argument to open().
14345         Reported by Gary V. Vaughan <gary@gnu.org>.
14346
14347 2007-06-01  Bruno Haible  <bruno@clisp.org>
14348
14349         * doc/functions/frexpl.texi: Update for mingw.
14350
14351 2007-06-01  Bruno Haible  <bruno@clisp.org>
14352
14353         * tests/test-lseek.c (main): Disable test of errno for invalid third
14354         argument.
14355         * doc/functions/lseek.texi: Update.
14356         Reported by Gary V. Vaughan <gary@gnu.org>.
14357
14358 2007-05-28  Bruno Haible  <bruno@clisp.org>
14359
14360         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14361
14362 2007-05-31  Eric Blake  <ebb9@byu.net>
14363
14364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14365         cross compiling.
14366
14367 2007-05-30  Eric Blake  <ebb9@byu.net>
14368         and Bruno Haible  <bruno@clisp.org>
14369
14370         Work around mingw test failures exposed by m4-1.4.9b.
14371         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14372         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14373         moment.
14374
14375 2007-05-30  Bruno Haible  <bruno@clisp.org>
14376
14377         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14378         assuming that they are closed. Needed on HP-UX 11.
14379
14380 2007-05-29  Bruno Haible  <bruno@clisp.org>
14381
14382         Fix a problem with #include_next.
14383         * lib/dirent_.h: Split the double-inclusion guard.
14384         * lib/fcntl_.h: Likewise.
14385         * lib/float_.h: Likewise.
14386         * lib/iconv_.h: Likewise.
14387         * lib/inttypes_.h: Likewise.
14388         * lib/locale_.h: Likewise.
14389         * lib/math_.h: Likewise.
14390         * lib/netinet_in_.h: Likewise.
14391         * lib/search_.h: Likewise.
14392         * lib/signal_.h: Likewise.
14393         * lib/stdint_.h: Likewise.
14394         * lib/stdio_.h: Likewise.
14395         * lib/stdlib_.h: Likewise.
14396         * lib/string_.h: Likewise.
14397         * lib/sys_select_.h: Likewise.
14398         * lib/sys_socket_.h: Likewise.
14399         * lib/sys_stat_.h: Likewise.
14400         * lib/sys_time_.h: Likewise.
14401         * lib/sysexits_.h: Likewise.
14402         * lib/time_.h: Likewise.
14403         * lib/unistd_.h: Likewise.
14404         * lib/wchar_.h: Likewise.
14405         * lib/wctype_.h: Likewise.
14406
14407 2007-05-29  Bruno Haible  <bruno@clisp.org>
14408
14409         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14410         for the moment.
14411
14412 2007-05-29  Bruno Haible  <bruno@clisp.org>
14413
14414         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14415         invocation.
14416         Reported by Eric Blake.
14417
14418 2007-05-29  Bruno Haible  <bruno@clisp.org>
14419
14420         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14421         compiling case.
14422
14423 2007-05-29  Eric Blake  <ebb9@byu.net>
14424             Bruno Haible  <bruno@clisp.org>
14425
14426         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14427         cross compiles.
14428
14429 2007-05-28  Eric Blake  <ebb9@byu.net>
14430
14431         * modules/closein-tests (test_closein_LDADD): Support test on
14432         cygwin with libtool.
14433
14434 2007-05-28  Bruno Haible  <bruno@clisp.org>
14435
14436         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14437         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14438         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14439         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14440         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14441         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14442         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14443         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14444         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14445
14446 2007-05-28  Eric Blake  <ebb9@byu.net>
14447
14448         Unconditionally include <config.h> in unit tests.
14449         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14450         * tests/test-allocsa.c, tests/test-arcfour.c,
14451         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14452         tests/test-array_list.c, tests/test-array_oset.c,
14453         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14454         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14455         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14456         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14457         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14458         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14459         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14460         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14461         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14462         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14463         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14464         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14465         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14466         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14467         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14468         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14469         test-md5.c, test-memmem.c, test-printf-posix.c,
14470         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14471         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14472         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14473         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14474         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14475         test-vasnprintf-posix2.c, test-vasnprintf.c,
14476         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14477         test-vfprintf-posix.c, test-vprintf-posix.c,
14478         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14479         test-xvasprintf.c: Likewise.
14480
14481 2007-05-28  Bruno Haible  <bruno@clisp.org>
14482
14483         * gnulib-tool (func_import): Remember the --with-tests command-line
14484         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14485         Reported by Eric Blake.
14486
14487 2007-05-28  Bruno Haible  <bruno@clisp.org>
14488
14489         * modules/ftell-tests: New file.
14490         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14491         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14492
14493         * lib/ftell.c: New file.
14494         * modules/ftell: New file.
14495         * m4/ftell.m4: New file.
14496         * doc/functions/ftell.texi: Update.
14497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14498         REPLACE_FTELL.
14499         * lib/stdio_.h (rpl_ftell): New declaration.
14500         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14501         REPLACE_FTELL.
14502
14503 2007-05-28  Eric Blake  <ebb9@byu.net>
14504
14505         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14506
14507 2007-05-28  Bruno Haible  <bruno@clisp.org>
14508
14509         * modules/fseek-tests: New file.
14510         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14511         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14512
14513         * lib/fseek.c: New file.
14514         * modules/fseek: New file.
14515         * m4/fseek.m4: New file.
14516         * doc/functions/fseek.texi: Update.
14517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14518         REPLACE_FSEEK.
14519         * lib/stdio_.h (rpl_fseek): New declaration.
14520         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14521         REPLACE_FSEEK.
14522
14523 2007-05-28  Bruno Haible  <bruno@clisp.org>
14524
14525         * lib/stdio_.h (fflush): More comments.
14526
14527 2007-05-28  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14530         runtime test.
14531
14532 2007-05-28  Eric Blake  <ebb9@byu.net>
14533
14534         Improve lseek module.
14535         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14536         * lib/unistd_.h (lseek): Scale back link warning message.
14537         * tests/test-lseek.c: Beef up test.
14538         * tests/test-lseek.sh: Exercise more facets of lseek.
14539         Reported by Bruno Haible.
14540
14541 2007-05-28  Bruno Haible  <bruno@clisp.org>
14542
14543         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14544         to define.
14545
14546 2007-05-27  Bruno Haible  <bruno@clisp.org>
14547
14548         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14549
14550 2007-05-27  Bruno Haible  <bruno@clisp.org>
14551
14552         * modules/openmp: New file.
14553         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14554         Noah Misch.
14555
14556 2007-05-26  Bruno Haible  <bruno@clisp.org>
14557
14558         * modules/chdir-long (Depends-on): Add fchdir.
14559         * modules/chdir-safer (Depends-on): Likewise.
14560         * modules/fts (Depends-on): Likewise.
14561         * modules/fts-lgpl (Depends-on): Likewise.
14562         * modules/openat (Depends-on): Likewise.
14563         * modules/savewd (Depends-on): Likewise.
14564
14565 2007-05-24  Eric Blake  <ebb9@byu.net>
14566
14567         Fix lseek on mingw.
14568         * modules/lseek: New module.
14569         * m4/lseek.m4: New file.
14570         * lib/lseek.c: New file.
14571         * modules/lseek-tests: New file.
14572         * tests/test-lseek.c: New file.
14573         * tests/test-lseek.sh: New file.
14574         * MODULES.html.sh: Document lseek module.
14575         * modules/fflush (Depends-on): Add lseek, fseeko.
14576         * modules/fseeko (Depends-on): Likewise.
14577         * modules/ftello (Depends-on): Likewise.
14578         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14579         broken.
14580         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14581         broken.
14582         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14583         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14584         * lib/ftello.c (rpl_ftello): Likewise.
14585         * tests/test-fseeko.c (main): Test this.
14586         * tests/test-fseeko.sh: Likewise.
14587         * tests/test-ftello.c (main): Likewise.
14588         * tests/test-ftello.sh: Likewise.
14589         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14590         implies replacing fseek.
14591         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14592         HAVE_FTELLO.
14593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14594         * modules/unistd (Makefile.am): Likewise.
14595         * lib/unistd_.h (lseek): Declare a replacement.
14596         * doc/functions/lseek.texi (lseek): Document this fix.
14597         * doc/functions/fseek.texi (fseek): Likewise.
14598         * doc/functions/ftell.texi (ftell): Likewise.
14599
14600 2007-05-24  Bruno Haible  <bruno@clisp.org>
14601
14602         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14603         in the printed representation of a NaN.
14604         * tests/test-vasprintf-posix.c (test_function): Likewise.
14605         * tests/test-snprintf-posix.h (test_function): Likewise.
14606         * tests/test-sprintf-posix.h (test_function): Likewise.
14607         Reported by Eric Blake.
14608
14609 2007-05-23  Eric Blake  <ebb9@byu.net>
14610
14611         Fix fseeko/ftello on cygwin 1.5.24.
14612         * doc/functions/fseeko.texi (fseeko): Document the fix.
14613         * doc/functions/ftello.texi (ftello): Document the fix.
14614         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14615         * doc/functions/stdout.text (stdout): New file.
14616         * doc/functions/stderr.text (stderr): New file.
14617         * doc/gnulib.texi (Function Substitutes): Use new files.
14618         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14619         prior to 1.7.0.
14620         * tests/test-ftello.c (main): Likewise for ftello.
14621         * tests/test-fseeko.sh: New file.
14622         * tests/test-ftello.sh: New file.
14623         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14624         with seekable stdin.
14625         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14626         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14627         (gl_REPLACE_FSEEKO): New macro.
14628         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14629         * modules/fseeko (Files): Distribute fseeko.c.
14630         * modules/ftello (Files): Distribute ftello.c.
14631         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14632         mode.
14633         * lib/ftello.c (rpl_ftello): New file.
14634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14635         fseeko, ftello.
14636         (gl_STDIN_LARGE_OFFSET): New macro.
14637         * modules/stdio (Makefile.am): Perform the replacement.
14638         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14639
14640 2007-05-23  Bruno Haible  <bruno@clisp.org>
14641
14642         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14643         GNULIB_POSIXCHECK is defined.
14644
14645 2007-05-21  Bruno Haible  <bruno@clisp.org>
14646
14647         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14648         Check also the output for NaN arguments. When cross-compiling, guess
14649         no on IRIX.
14650         * lib/vasnprintf.c: Update comments.
14651         * tests/test-vasnprintf-posix.c (strisnan): New function.
14652         (test_function): Use it.
14653         * tests/test-vasprintf-posix.c (strisnan): New function.
14654         (test_function): Use it.
14655         * tests/test-snprintf-posix.h (strisnan): New function.
14656         (test_function): Use it.
14657         * tests/test-sprintf-posix.h (strisnan): New function.
14658         (test_function): Use it.
14659         Reported by Eric Blake.
14660
14661 2007-05-20  Bruno Haible  <bruno@clisp.org>
14662
14663         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14664         numbers that fails on BeOS.
14665         * doc/functions/frexpl.texi: Update.
14666
14667 2007-05-20  Jim Meyering  <jim@meyering.net>
14668
14669         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14670         forced upon us by glibc-2.6.
14671
14672 2007-05-20  Bruno Haible  <bruno@clisp.org>
14673
14674         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14675         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14676         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14677         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14678         NEED_PRINTF_INFINITE.
14679         (is_infinitel): New function.
14680         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14682         gl_PREREQ_VASNPRINTF_INFINITE.
14683         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14684         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14685         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14686         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14687         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14688         gl_PREREQ_VASNPRINTF_INFINITE.
14689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14690         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14691         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14696         * doc/functions/fprintf.texi: Update.
14697         * doc/functions/printf.texi: Update.
14698         * doc/functions/snprintf.texi: Update.
14699         * doc/functions/sprintf.texi: Update.
14700         * doc/functions/vfprintf.texi: Update.
14701         * doc/functions/vprintf.texi: Update.
14702         * doc/functions/vsnprintf.texi: Update.
14703         * doc/functions/vsprintf.texi: Update.
14704
14705 2007-05-20  Bruno Haible  <bruno@clisp.org>
14706
14707         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14708         was not found in libc.
14709         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14710
14711 2007-05-20  Bruno Haible  <bruno@clisp.org>
14712
14713         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14714         printed as "-nan" instead of "nan".
14715         * tests/test-vasprintf-posix.c (test_function): Likewise.
14716         * tests/test-snprintf-posix.h (test_function): Likewise.
14717         * tests/test-sprintf-posix.h (test_function): Likewise.
14718         Needed for HP-UX 11.
14719
14720 2007-05-20  Jim Meyering  <jim@meyering.net>
14721
14722         Fix buggy test for the fchownat-deref bug.
14723         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14724         symlink required for the run-test.  Without it, this test would
14725         always declare that fchownat doesn't work, and client code would
14726         unnecessarily use the replacement function with fixed libc.
14727         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14728         Reported by Greg Schafer.
14729
14730 2007-05-19  Bruno Haible  <bruno@clisp.org>
14731
14732         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14733         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14734         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14735         Needed for IRIX 6.5 and Solaris 2.5.1.
14736
14737 2007-05-19  Bruno Haible  <bruno@clisp.org>
14738
14739         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14740         (test_function): Skip tests involving -0.0 on platforms where
14741         -0.0 = 0.0.
14742         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14743         (test_function): Skip tests involving -0.0 on platforms where
14744         -0.0 = 0.0.
14745         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14746         (test_function): Skip tests involving -0.0 on platforms where
14747         -0.0 = 0.0.
14748         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14749         (test_function): Skip tests involving -0.0 on platforms where
14750         -0.0 = 0.0.
14751         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14752         tests.
14753         * tests/test-printf-posix.h (test_function): Likewise.
14754         * tests/test-printf-posix.output: Remove all -0.0 related results.
14755         Needed for IRIX 6.5.
14756
14757 2007-05-19  Bruno Haible  <bruno@clisp.org>
14758
14759         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14760         printed as "nan0x7fffffff" instead of "nan".
14761         * tests/test-vasprintf-posix.c (test_function): Likewise.
14762         * tests/test-snprintf-posix.h (test_function): Likewise.
14763         * tests/test-sprintf-posix.h (test_function): Likewise.
14764         * tests/test-fprintf-posix.h (NaN): Remove macro.
14765         (test_function): Remove all NaN related tests.
14766         * tests/test-printf-posix.h (NaN): Remove macro.
14767         (test_function): Remove all NaN related tests.
14768         * tests/test-printf-posix.output: Remove all NaN related results.
14769         Needed for IRIX 6.5.
14770
14771 2007-05-19  Bruno Haible  <bruno@clisp.org>
14772
14773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14775
14776 2007-05-19  Bruno Haible  <bruno@clisp.org>
14777
14778         * lib/float_.h: New file.
14779         * m4/float_h.m4: New file.
14780         * modules/float: New file.
14781         * modules/isnanl (Dependencies): Add float.
14782         * modules/isnanl-nolibm (Dependencies): Likewise.
14783         * modules/mathl (Dependencies): Likewise.
14784         * modules/printf-frexpl (Dependencies): Likewise.
14785         * modules/signbit (Dependencies): Likewise.
14786         * modules/vasnprintf (Dependencies): Likewise.
14787         * doc/headers/float.texi: Update.
14788
14789 2007-05-19  Jim Meyering  <jim@meyering.net>
14790
14791         * lib/utimens.c (gl_futimens): Rename from futimens,
14792         now that glibc-2.6 declares futimens.
14793         * lib/utimens.h: Likewise.
14794
14795 2007-05-19  Bruno Haible  <bruno@clisp.org>
14796
14797         Avoid test failures on mingw.
14798         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14799         * tests/test-printf-posix.sh: Likewise.
14800         * tests/test-vfprintf-posix.sh: Likewise.
14801         * tests/test-vprintf-posix.sh: Likewise.
14802
14803 2007-05-19  Bruno Haible  <bruno@clisp.org>
14804
14805         Fix *printf result for NaN, Inf, -0.0 on mingw.
14806         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14807         * lib/vasnprintf.c: Include math.h and isnan.h.
14808         (is_infinite_or_zero): New function.
14809         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14810         values in the %f, %F, %e, %E, %g, %G directives.
14811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14813         gl_PRINTF_INFINITE and test its result. Invoke
14814         gl_PREREQ_VASNPRINTF_INFINITE.
14815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14822         * doc/functions/fprintf.texi: Update.
14823         * doc/functions/printf.texi: Update.
14824         * doc/functions/snprintf.texi: Update.
14825         * doc/functions/sprintf.texi: Update.
14826         * doc/functions/vfprintf.texi: Update.
14827         * doc/functions/vprintf.texi: Update.
14828         * doc/functions/vsnprintf.texi: Update.
14829         * doc/functions/vsprintf.texi: Update.
14830
14831 2007-05-19  Bruno Haible  <bruno@clisp.org>
14832
14833         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14834         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14835         Instead of multiplying with 10^k, set extra_zeroes to k.
14836         (scale10_round_long_double): Remove function.
14837
14838 2007-05-18  Bruno Haible  <bruno@clisp.org>
14839
14840         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14841         introduced on 2007-05-06.
14842
14843 2007-05-18  Bruno Haible  <bruno@clisp.org>
14844
14845         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14846         %g directives.
14847         * tests/test-vasprintf-posix.c (test_function): Likewise.
14848         * tests/test-snprintf-posix.h (test_function): Likewise.
14849         * tests/test-sprintf-posix.h (test_function): Likewise.
14850
14851 2007-05-18  Bruno Haible  <bruno@clisp.org>
14852
14853         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14854         (strmatch): New function.
14855         (test_function): Test the %f directive on numbers of various exponents.
14856         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14857         (strmatch): New function.
14858         (test_function): Test the %f directive on numbers of various exponents.
14859         * tests/test-snprintf-posix.h (strmatch): New function.
14860         (test_function): Test the %f directive on numbers of various exponents.
14861         * tests/test-sprintf-posix.h (strmatch): New function.
14862         (test_function): Test the %f directive on numbers of various exponents.
14863         * tests/test-snprintf-posix.c (SIZEOF): New macro.
14864         * tests/test-sprintf-posix.c (SIZEOF): New macro.
14865         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14866         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14867
14868 2007-05-18  Bruno Haible  <bruno@clisp.org>
14869
14870         Add support for 'long double' number output.
14871         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14872         * lib/vasnprintf.c: Include math.h and float+.h.
14873         (mp_limb_t): New type.
14874         (GMP_LIMB_BITS): New macro.
14875         (mp_twolimb_t): New type.
14876         (GMP_TWOLIMB_BITS): New macro.
14877         (mpn_t): New type.
14878         (multiply, divide, convert_to_decimal, decode_long_double,
14879         scale10_round_long_double, scale10_round_decimal_long_double,
14880         floorlog10l): New functions.
14881         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14882         for the %f, %F, %e, %E, %g, %G directives.
14883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14885         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14886         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14894         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14895         * modules/snprintf-posix (Depends-on): Likewise.
14896         * modules/sprintf-posix (Depends-on): Likewise.
14897         * modules/vasnprintf-posix (Depends-on): Likewise.
14898         * modules/vasprintf-posix (Depends-on): Likewise.
14899         * modules/vfprintf-posix (Depends-on): Likewise.
14900         * modules/vsnprintf-posix (Depends-on): Likewise.
14901         * modules/vsprintf-posix (Depends-on): Likewise.
14902         * modules/vasnprintf (Files): Add lib/float+.h.
14903         * doc/functions/fprintf.texi: Update.
14904         * doc/functions/printf.texi: Update.
14905         * doc/functions/snprintf.texi: Update.
14906         * doc/functions/sprintf.texi: Update.
14907         * doc/functions/vfprintf.texi: Update.
14908         * doc/functions/vprintf.texi: Update.
14909         * doc/functions/vsnprintf.texi: Update.
14910         * doc/functions/vsprintf.texi: Update.
14911
14912 2007-05-18  Bruno Haible  <bruno@clisp.org>
14913
14914         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14915
14916 2007-05-18  Bruno Haible  <bruno@clisp.org>
14917
14918         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14919         for printing 64-bit integers. Needed for mingw.
14920
14921 2007-05-18  Bruno Haible  <bruno@clisp.org>
14922
14923         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14924         gl_FUNC_FREXPL_WORKS.
14925         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14926
14927 2007-05-18  Bruno Haible  <bruno@clisp.org>
14928
14929         * modules/frexpl-nolibm-tests: New file.
14930
14931         * modules/frexpl-nolibm: New file.
14932         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14933
14934 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14935
14936         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14937         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14938         GCC 4.2, which otherwise issues a lot of warnings.
14939         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14940         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14941         Likewise.
14942         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14943         * modules/iconv_open (iconv.h): Likewise.
14944         * modules/locale (locale.h): Likewise.
14945         * modules/netinet_in (netinet/in.h): Likewise.
14946         * modules/sys_select (sys_select.h): Likewise.
14947         * modules/sys_socket (sys/socket.h): Likewise.
14948         * modules/sys_stat (sys/stat.h): Likewise.
14949         * modules/sysexits (sysexits.h): Likewise.
14950         * modules/unistd (unistd.h): Likewise.
14951
14952 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14953
14954         * modules/closein-tests (Makefile.am): Distribute
14955         `test-closein.sh'.
14956
14957 2007-05-17  Bruno Haible  <bruno@clisp.org>
14958
14959         * tests/test-printf-posix.output: Renamed from
14960         tests/test-fprintf-posix.out.
14961         * modules/fprintf-posix-tests: Update.
14962         * modules/printf-posix-tests: Update.
14963         * modules/vfprintf-posix-tests: Update.
14964         * modules/vprintf-posix-tests: Update.
14965         * tests/test-fprintf-posix.sh: Update.
14966         * tests/test-printf-posix.sh: Update.
14967         * tests/test-vfprintf-posix.sh: Update.
14968         * tests/test-vprintf-posix.sh: Update.
14969         Reported by Ralf Wildenhues.
14970
14971 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14974         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14975         GCC 4.2, which otherwise issues a lot of warnings.
14976         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14977         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14978         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14979         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14980         it should no longer be needed.
14981         * lib/string_.h: Likewise.
14982         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14983         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14984         * modules/inttypes (inttypes.h): Likewise.
14985         * modules/math (math.h): Likewise.
14986         * modules/search (search.h): Likewise.
14987         * modules/signal (signal.h): Likewise.
14988         * modules/stdint (stdint.h): Likewise.
14989         * modules/stdio (stdio.h): Likewise.
14990         * modules/stdlib (stdlib.h): Likewise.
14991         * modules/string (string.h): Likewise.
14992         * modules/sys_time (sys/time.h): Likewise.
14993         * modules/time (time.h): Likewise.
14994         * modules/wchar (wchar.h): Likewise.
14995         * modules/wctype (wtype.h): Likewise.
14996
14997 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14998
14999         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15000
15001 2007-05-13  Bruno Haible  <bruno@clisp.org>
15002
15003         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15004         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15005         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15006         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15007         (gl_PREREQ_STRTOK_R): Don't require it here.
15008
15009 2007-05-13  Bruno Haible  <bruno@clisp.org>
15010
15011         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15012         when used in C++ mode.
15013
15014 2007-05-12  Bruno Haible  <bruno@clisp.org>
15015
15016         * lib/linebuffer.h: Tweak doc.
15017         * lib/linebuffer.c: Likewise.
15018
15019 2007-05-12  James Youngman  <jay@gnu.org>
15020
15021         * lib/linebuffer.c (readlinebuffer_delim): New function,
15022         like readlinebuffer, but use a caller-specified delimiter.
15023         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15024         as the delimiter.
15025         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15026
15027 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15028
15029         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15030         * modules/openat (Files): Remove openat-die.c.
15031         (Depends-on): Add openat-die.
15032         * modules/openat-die: New module.
15033
15034 2007-05-06  Bruno Haible  <bruno@clisp.org>
15035
15036         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15037         Update with info about Cygwin.
15038         * doc/functions/fprintf.texi: Update.
15039         * doc/functions/printf.texi: Update.
15040         * doc/functions/snprintf.texi: Update.
15041         * doc/functions/sprintf.texi: Update.
15042         * doc/functions/vfprintf.texi: Update.
15043         * doc/functions/vprintf.texi: Update.
15044         * doc/functions/vsnprintf.texi: Update.
15045         * doc/functions/vsprintf.texi: Update.
15046         Reported by Eric Blake.
15047
15048 2007-05-06  Bruno Haible  <bruno@clisp.org>
15049
15050         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15051         padding ourselves for the floating-point directives.
15052         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15055         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15056         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15064         * tests/test-snprintf-posix.h (test_function): Also check the width
15065         and some flags in the %f directive.
15066         * tests/test-sprintf-posix.h (test_function): Likewise.
15067         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15068         * tests/test-vasprintf-posix.c (test_function): Likewise.
15069         * doc/functions/fprintf.texi: Update.
15070         * doc/functions/printf.texi: Update.
15071         * doc/functions/snprintf.texi: Update.
15072         * doc/functions/sprintf.texi: Update.
15073         * doc/functions/vfprintf.texi: Update.
15074         * doc/functions/vprintf.texi: Update.
15075         * doc/functions/vsnprintf.texi: Update.
15076         * doc/functions/vsprintf.texi: Update.
15077
15078 2007-05-06  Bruno Haible  <bruno@clisp.org>
15079
15080         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15081         pass the ' flag character to sprintf or snprintf.
15082         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15084         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15085         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15086         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15094         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15095         flag.
15096         * tests/test-sprintf-posix.h (test_function): Likewise.
15097         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15098         * tests/test-vasprintf-posix.c (test_function): Likewise.
15099         * doc/functions/fprintf.texi: Update.
15100         * doc/functions/printf.texi: Update.
15101         * doc/functions/snprintf.texi: Update.
15102         * doc/functions/sprintf.texi: Update.
15103         * doc/functions/vfprintf.texi: Update.
15104         * doc/functions/vprintf.texi: Update.
15105         * doc/functions/vsnprintf.texi: Update.
15106         * doc/functions/vsprintf.texi: Update.
15107
15108 2007-05-01  Bruno Haible  <bruno@clisp.org>
15109
15110         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15111
15112 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15115         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15116
15117 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15118
15119         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15120         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15122
15123 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15124
15125         * lib/argp-help.c (struct hol_entry): New member `ord'.
15126         (HOL_ENTRY_PTRCMP): Use ord for comparison
15127         (hol_sort): Initialize ord.
15128
15129 2007-05-01  Bruno Haible  <bruno@clisp.org>
15130
15131         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15132         Reported by Eric Blake.
15133         * doc/gnulib.texi (Function Substitutes): Update.
15134
15135 2007-05-01  Bruno Haible  <bruno@clisp.org>
15136
15137         * doc/functions.texi: Remove file, now redundant through
15138         doc/functions/*.texi.
15139
15140 2007-05-01  Bruno Haible  <bruno@clisp.org>
15141
15142         * modules/argp (Depends-on): Add sleep.
15143
15144 2007-05-01  Bruno Haible  <bruno@clisp.org>
15145
15146         * modules/sleep-tests: New file.
15147         * tests/test-sleep.c: New file.
15148
15149         * modules/sleep: New file.
15150         * lib/sleep.c: New file.
15151         * m4/sleep.m4: New file.
15152         * lib/unistd_.h (sleep): New declaration.
15153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15154         HAVE_SLEEP.
15155         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15156         * doc/functions/sleep.texi: Document the sleep module.
15157
15158 2007-05-01  Bruno Haible  <bruno@clisp.org>
15159
15160         * lib/sigprocmask.h: Remove file.
15161         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15162         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15163         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15164         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15165         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15166         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15167         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15168         HAVE_SIGSET_T as a shell variable.
15169         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15170         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15171         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15172         (Depends-on): Add signal. Remove verify.
15173         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15174         (Include): Mention <signal.h> instead of sigprocmask.h.
15175         * NEWS: Mention the change.
15176         * lib/fatal-signal.c: Don't include sigprocmask.h.
15177
15178 2007-05-01  Bruno Haible  <bruno@clisp.org>
15179
15180         * modules/signal: New file.
15181         * lib/signal_.h: New file.
15182         * m4/signal_h.m4: New file.
15183
15184 2007-05-01  Bruno Haible  <bruno@clisp.org>
15185
15186         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15187         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15188         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15189         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15190
15191 2007-05-01  Bruno Haible  <bruno@clisp.org>
15192
15193         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15194         configure time.
15195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15196         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15197         * modules/sys_stat (Makefile.am): Substitute their values into
15198         sys/stat.h.
15199
15200 2007-05-01  Bruno Haible  <bruno@clisp.org>
15201
15202         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15203         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15204         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15205
15206 2007-05-01  Bruno Haible  <bruno@clisp.org>
15207
15208         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15209         'assert' module here.
15210
15211 2007-05-01  Bruno Haible  <bruno@clisp.org>
15212
15213         * doc/functions/*.texi: New files.
15214         * doc/functions/google-ranking.txt: New file.
15215         * doc/gnulib.texi (Function Substitutes): New chapter.
15216         (ctime, inet_ntoa): Remove sections.
15217         * doc/ctime.texi: Remove file.
15218         * doc/inet_ntoa.texi: Remove file.
15219         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15220         dependencies.
15221         (%.info): New rule, specifying a --reference-limit.
15222
15223 2007-05-01  Bruno Haible  <bruno@clisp.org>
15224
15225         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15226
15227 2007-05-01  Bruno Haible  <bruno@clisp.org>
15228
15229         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15230         the portability of 'mkdir' to mingw systems.
15231
15232 2007-05-01  Bruno Haible  <bruno@clisp.org>
15233
15234         * doc/headers/google-ranking.txt: New file.
15235
15236 2007-04-30  Eric Blake  <ebb9@byu.net>
15237
15238         Prefer fseeko to fseek.
15239         * modules/getpass (Depends-on): Add fseeko.
15240         * lib/getpass.c (getpass): Use fseeko, not fseek.
15241
15242 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15243
15244         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15245         assumes the sorting is stable, while most qsort implementations
15246         are not.  Use argument addresses to ensure they never compare as
15247         equal.
15248
15249         * tests/test-argp-2.sh (usage-indent test): Fix output
15250         (func_compare): Restore diff options
15251         * tests/test-argp.c: Restore #include "progname.h"
15252
15253 2007-04-29  Bruno Haible  <bruno@clisp.org>
15254
15255         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15257         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15259         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15260         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15261         (TESTS, check_PROGRAMS): Add test-snprintf.
15262         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15263         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15264         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15265         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15266         assertions that fail on HP-UX, OSF/1, or IRIX.
15267         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15268
15269 2007-04-29  Bruno Haible  <bruno@clisp.org>
15270
15271         * MODULES.html.sh (posix_functions): Remove 'contents'.
15272
15273 2007-04-29  Karl Berry  <karl@gnu.org>
15274
15275         * config/srclist.txt (gendocs_template_min): new entry.
15276
15277 2007-04-29  Bruno Haible  <bruno@clisp.org>
15278
15279         Work around fpurge bug on BSD systems.
15280         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15281         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15282         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15283         fpurge to rpl_fpurge if the system already has this function.
15284         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15285         the case where the system already has this function. Correct invariants
15286         on BSD systems.
15287         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15288         BSD systems.
15289
15290 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15291
15292         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15293         proposed by Sven Verdoolaege.
15294
15295         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15296         options.
15297         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15298         (usage and help tests): Update
15299
15300 2007-04-29  Bruno Haible  <bruno@clisp.org>
15301
15302         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15303         Print more information in case of failure. Disable a test on BeOS.
15304
15305 2007-04-29  Bruno Haible  <bruno@clisp.org>
15306
15307         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15308         This helps debugging on systems on which no gdb is available.
15309
15310 2007-04-29  Bruno Haible  <bruno@clisp.org>
15311
15312         * lib/freading.h: Improve comments.
15313         * lib/fwriting.h: Likewise.
15314         * tests/test-freading.c (main): Don't check freading immediately after
15315         repositioning. Needed for glibc.
15316
15317 2007-04-29  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/freading.c (freading): Trivial simplification.
15320
15321 2007-04-28  Bruno Haible  <bruno@clisp.org>
15322
15323         * tests/test-fwriting.c (main): Also test the interaction between
15324         fflush and fwriting.
15325         * modules/fwriting-tests (Depends-on): Add fflush.
15326
15327         * tests/test-freading.c (main): Also test the interaction between
15328         fflush and freading.
15329         * modules/freading-tests (Depends-on): Add fflush.
15330
15331 2007-04-28  Bruno Haible  <bruno@clisp.org>
15332
15333         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15334         fseeko and ftello.
15335         Suggested by Eric Blake.
15336
15337 2007-04-28  Jim Meyering  <jim@meyering.net>
15338
15339         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15340         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15341         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15342
15343 2007-04-27  Eric Blake  <ebb9@byu.net>
15344
15345         * doc/headers/assert.texi (assert.h): Document assert module use.
15346
15347 2007-04-27  Bruno Haible  <bruno@clisp.org>
15348
15349         * doc/headers/*.texi: New files.
15350         * doc/gnulib.texi (Header File Substitutes): New chapter.
15351         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15352         dependencies.
15353         (standards.info ,standards.html, standards.dvi): Update dependencies.
15354         (mostlyclean, clean): New targets.
15355
15356 2007-04-27  Bruno Haible  <bruno@clisp.org>
15357
15358         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15359         * modules/sysexits (Files, Makefile.am): Update.
15360
15361         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15362         * modules/sys_socket (Files, Makefile.am): Update.
15363
15364         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15365         * modules/sys_stat (Files, Makefile.am): Update.
15366
15367 2007-04-27  Eric Blake  <ebb9@byu.net>
15368
15369         * lib/freading.h: Improve comments.
15370         * lib/fwriting.h: Likewise.
15371         * lib/fflush.c: Likewise.
15372
15373         Fix closein for mingw.
15374         * modules/closein-tests: Add tests for closein.
15375         * tests/test-closein.c: New file.
15376         * tests/test-closein.sh: Likewise.
15377         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15378         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15379
15380 2007-04-27  Bruno Haible  <bruno@clisp.org>
15381
15382         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15383         version is < 6.
15384         * lib/math_.h [__DECC]: Likewise.
15385         * lib/stdio_.h [__DECC]: Likewise.
15386         * lib/stdlib_.h [__DECC]: Likewise.
15387         * lib/string_.h [__DECC]: Likewise.
15388         * lib/time_.h [__DECC]: Likewise.
15389         * lib/wchar_.h [__DECC]: Likewise.
15390         * lib/wctype_.h [__DECC]: Likewise.
15391
15392 2007-04-27  Bruno Haible  <bruno@clisp.org>
15393
15394         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15395
15396 2007-04-27  Bruno Haible  <bruno@clisp.org>
15397
15398         * lib/fflush.c: Add comments.
15399         * modules/fpurge-tests (Depends-on): Add fflush.
15400         * modules/freadable-tests (Depends-on): Likewise.
15401         * modules/fwritable-tests (Depends-on): Likewise.
15402
15403 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15404
15405         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15406         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15407         Report by Bruno Haible <bruno@clisp.org>.
15408
15409 2007-04-26  Eric Blake  <ebb9@byu.net>
15410
15411         Fix fflush on mingw.
15412         * modules/fflush (Depends-on): Add freading.
15413         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15414         but unread data.
15415
15416 2007-04-26  Eric Blake  <ebb9@byu.net>
15417         and Bruno Haible  <bruno@clisp.org>
15418
15419         Implement freading and fwriting.
15420         * lib/freading.c: New file.
15421         * lib/freading.h: Likewise.
15422         * m4/freading.m4: Likewise.
15423         * modules/freading: Likewise.
15424         * modules/freading-tests: Likewise.
15425         * tests/test-freading.c: Likewise.
15426         * lib/fwriting.c: New file.
15427         * lib/fwriting.h: Likewise.
15428         * m4/fwriting.m4: Likewise.
15429         * modules/fwriting: Likewise.
15430         * modules/fwriting-tests: Likewise.
15431         * tests/test-fwriting.c: Likewise.
15432         * MODULES.html.sh (File stream based Input/Output): Mention them.
15433
15434 2007-04-26  Bruno Haible  <bruno@clisp.org>
15435
15436         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15437         'long' when we assume it.
15438         Suggested by Eric Blake.
15439
15440 2007-04-26  Bruno Haible  <bruno@clisp.org>
15441
15442         Ensure fseeko, ftello are declared on glibc systems.
15443         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15444         * modules/fseeko (configure.ac-early): Likewise.
15445         * modules/ftello (configure.ac-early): Likewise.
15446         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15447         AC_FUNC_FSEEKO for this.
15448         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15449         (gl_CHECK_FSEEKO): Remove macro.
15450
15451 2007-04-26  Bruno Haible  <bruno@clisp.org>
15452
15453         * tests/test-fflush.c (main): Also check the ftell result after
15454         fflush and fseek/fseeko.
15455         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15456         file descriptor position cache in the stream.
15457         * lib/fseeko.c (rpl_fseeko): Likewise.
15458
15459 2007-04-26  Bruno Haible  <bruno@clisp.org>
15460
15461         * modules/fflush-tests (Depends-on): Add fseeko.
15462
15463 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15464             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15465
15466         * lib/argz_.h: ensure error_t definition is obtained in same
15467         mechanism system argz.h would have.
15468         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15469         argz facilities are known bad.  Err on the side of caution if
15470         cross-compiling.
15471
15472 2007-04-25  Eric Blake  <ebb9@byu.net>
15473
15474         * lib/fpurge.c (includes): Use stdlib.h for free.
15475         * tests/test-fflush.c (main): Also test fflush-fseeko.
15476
15477 2007-04-25  Bruno Haible  <bruno@clisp.org>
15478
15479         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15480         * lib/fseeko.c: New file.
15481         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15482         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15483         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15484         gl_FUNC_FSEEKO.
15485         (gl_FUNC_FSEEKO): Invoke it.
15486         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15487         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15488         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15489
15490 2007-04-25  Bruno Haible  <bruno@clisp.org>
15491
15492         * modules/fflush (Depends-on): Add ftello.
15493
15494 2007-04-25  Bruno Haible  <bruno@clisp.org>
15495
15496         * modules/ftello-tests: New file.
15497         * tests/test-ftello.c: New file.
15498
15499         * modules/ftello: New file.
15500         * m4/ftello.m4: New file.
15501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15502         HAVE_FTELLO.
15503         * lib/stdio_.h (ftello): New declaration.
15504         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15505         HAVE_FTELLO.
15506
15507 2007-04-25  Bruno Haible  <bruno@clisp.org>
15508
15509         * modules/fseeko-tests: New file.
15510         * tests/test-fseeko.c: New file.
15511
15512         * modules/fseeko: New file.
15513         * m4/fseeko.m4: New file.
15514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15515         HAVE_FSEEKO.
15516         * lib/stdio_.h (fseeko): New declaration.
15517         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15518         HAVE_FSEEKO.
15519
15520 2007-04-25  Bruno Haible  <bruno@clisp.org>
15521
15522         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15523
15524 2007-04-25  Bruno Haible  <bruno@clisp.org>
15525
15526         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15527         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15528         * tests/test-unistd.c: Likewise.
15529         * tests/test-fcntl.c: Likewise.
15530
15531 2007-04-23  Eric Blake  <ebb9@byu.net>
15532
15533         * lib/fflush.c: Fix missing include.
15534         Reported by Bruno Haible.
15535
15536 2007-04-23  Bruno Haible  <bruno@clisp.org>
15537
15538         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15539         Reported by Eric Blake.
15540
15541 2007-04-23  Bruno Haible  <bruno@clisp.org>
15542
15543         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15544
15545 2007-04-23  Bruno Haible  <bruno@clisp.org>
15546
15547         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15548
15549 2007-04-23  Bruno Haible  <bruno@clisp.org>
15550
15551         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15552         Needed on HP-UX 11.
15553
15554 2007-04-16  Eric Blake  <ebb9@byu.net>
15555
15556         Make fflush rely on fpurge.
15557         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15558         open coding all variants.
15559         * modules/fflush (Depends-on): Add fpurge and unistd.
15560         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15562
15563         Fix --with-tests compilation on cygwin.
15564         * modules/argmatch-tests (Makefile.am): List gnulib library first
15565         in LDADD.
15566         * modules/argp-tests (Makefile.am): Likewise.
15567         * modules/array-list-tests (Makefile.am): Likewise.
15568         * modules/array-oset-tests (Makefile.am): Likewise.
15569         * modules/avltree-list-tests (Makefile.am): Likewise.
15570         * modules/avltree-oset-tests (Makefile.am): Likewise.
15571         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15572         * modules/carray-list-tests (Makefile.am): Likewise.
15573         * modules/dirname-tests (Makefile.am): Likewise.
15574         * modules/frexp-tests (Makefile.am): Likewise.
15575         * modules/isnanl-tests (Makefile.am): Likewise.
15576         * modules/linked-list-tests (Makefile.am): Likewise.
15577         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15578         * modules/lock-tests (Makefile.am): Likewise.
15579         * modules/rbtree-list-tests (Makefile.am): Likewise.
15580         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15581         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15582         * modules/tls-tests (Makefile.am): Likewise.
15583         * modules/tsearch-tests (Makefile.am): Likewise.
15584         * modules/xvasprintf-tests (Makefile.am): Likewise.
15585
15586         Fix fpurge for cygwin.
15587         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15588         value.
15589         * modules/fpurge-tests (Depends-on): Clean up trash.
15590
15591 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15592
15593         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15594
15595         * m4/autobuild.m4: Re-indent.
15596
15597 2007-04-13  Bruno Haible  <bruno@clisp.org>
15598
15599         * modules/fpurge-tests: New file.
15600         * tests/test-fpurge.c: New file.
15601
15602         * modules/fpurge: New file.
15603         * lib/fpurge.h: New file.
15604         * lib/fpurge.c: New file.
15605         * m4/fpurge.m4: New file.
15606
15607 2007-04-13  Bruno Haible  <bruno@clisp.org>
15608
15609         * modules/fbufmode-tests: New file.
15610         * tests/test-fbufmode.c: New file.
15611
15612         * modules/fbufmode: New file.
15613         * lib/fbufmode.h: New file.
15614         * lib/fbufmode.c: New file.
15615         * m4/fbufmode.m4: New file.
15616
15617 2007-04-13  Bruno Haible  <bruno@clisp.org>
15618
15619         * modules/fwritable-tests: New file.
15620         * tests/test-fwritable.c: New file.
15621
15622         * modules/fwritable: New file.
15623         * lib/fwritable.h: New file.
15624         * lib/fwritable.c: New file.
15625         * m4/fwritable.m4: New file.
15626
15627 2007-04-13  Bruno Haible  <bruno@clisp.org>
15628
15629         * modules/freadable-tests: New file.
15630         * tests/test-freadable.c: New file.
15631
15632         * modules/freadable: New file.
15633         * lib/freadable.h: New file.
15634         * lib/freadable.c: New file.
15635         * m4/freadable.m4: New file.
15636
15637 2007-04-13  Bruno Haible  <bruno@clisp.org>
15638
15639         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15640         MOSTLYCLEANFILES.
15641
15642 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15643
15644         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15645         gzip bootstrap.conf to avoid dragging in i18n machinery.
15646         (gnulib_tool_option): Use it.
15647
15648 2007-04-13  Bruno Haible  <bruno@clisp.org>
15649
15650         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15651         %F directives.
15652         * tests/test-vasprintf-posix.c (test_function): Likewise.
15653         * tests/test-snprintf-posix.h (test_function): Likewise.
15654         * tests/test-sprintf-posix.h (test_function): Likewise.
15655         * tests/test-fprintf-posix.h (test_function): Likewise.
15656         * tests/test-printf-posix.h (test_function): Likewise.
15657         * tests/test-fprintf-posix.out: Likewise.
15658
15659 2007-04-13  Bruno Haible  <bruno@clisp.org>
15660
15661         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15662         * modules/tls-tests (configure.ac): Likewise.
15663         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15664
15665 2007-04-13  Bruno Haible  <bruno@clisp.org>
15666
15667         * lib/tls.c (glthread_tls_get): Fix return type.
15668         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15669
15670 2007-04-12  Eric Blake  <ebb9@byu.net>
15671
15672         * modules/gettime (Depends-on): Remove gettime.
15673         Reported by Dmitry V. Levin.
15674
15675 2007-04-12  Bruno Haible  <bruno@clisp.org>
15676
15677         * modules/fflush (Include): Mention <stdio.h>.
15678         * modules/strtoimax (Include): Mention <inttypes.h>.
15679         * modules/strtoumax (Include): Likewise.
15680
15681 2007-04-12  Eric Blake  <ebb9@byu.net>
15682
15683         * .cvsignore: New file.
15684         * .gitignore: Likewise.
15685
15686 2007-04-12  Bruno Haible  <bruno@clisp.org>
15687
15688         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15689         not before, since $(LDADD) often contains libgnu.a.
15690         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15691         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15692         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15693         Needed on Cygwin.
15694
15695 2007-04-12  Eric Blake  <ebb9@byu.net>
15696
15697         Work around glibc's failure to flush stdin on fclose.
15698         * lib/closein.c (close_stdin): Flush stdin before closing.
15699
15700         Work around glibc's failure to reset seekable stdin on exit.
15701         * modules/closein: New module.
15702         * lib/closein.c: New file.
15703         * lib/closein.h: Likewise.
15704         * m4/closein.m4: Likewise.
15705         * MODULES.html.sh (File stream based Input/Output): Document it.
15706
15707 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15708
15709         * gnulib-tool: Rename generated 'autobuild' script to
15710         'do-autobuild' in --create-megatestdir output.
15711
15712         * doc/gnulib.texi (Build robot for gnulib): Fix.
15713
15714 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15715
15716         * modules/sysexits (Depends-on): Add absolute-header.
15717
15718 2007-04-12  Eric Blake  <ebb9@byu.net>
15719
15720         No need to preserve errno on success.
15721         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15722         Reported by Bruno Haible.
15723
15724 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15725
15726         * MODULES.html.sh (Support for maintaining and releasing
15727         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15728
15729 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15730
15731         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15732
15733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15734
15735         * modules/autobuild: New module.
15736
15737         * m4/autobuild.m4: New file.
15738
15739 2007-04-11  Bruno Haible  <bruno@clisp.org>
15740
15741         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15742         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15743         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15746         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15747         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15749         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15750         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15752         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15753         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15758         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15759         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15761         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15762         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15769         Reported by Eric Blake.
15770
15771 2007-04-11  Bruno Haible  <bruno@clisp.org>
15772
15773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15774
15775 2007-04-10  Bruno Haible  <bruno@clisp.org>
15776
15777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15778         for NaN and Infinity. Needed on FreeBSD 6.1.
15779         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15780         regarding results for "%010a" of Infinity and NaN.
15781         * tests/test-vasprintf-posix.c (test_function): Likewise.
15782         * tests/test-snprintf-posix.h (test_function): Likewise.
15783         * tests/test-sprintf-posix.h (test_function): Likewise.
15784         * tests/test-fprintf-posix.h (test_function): Likewise.
15785         * tests/test-printf-posix.h (test_function): Likewise.
15786         * tests/test-fprintf-posix.out: Likewise.
15787
15788 2007-04-10  Bruno Haible  <bruno@clisp.org>
15789
15790         * modules/locale-tests: New file.
15791         * tests/test-locale.c: New file.
15792
15793         * modules/locale: New file.
15794         * lib/locale_.h: New file.
15795         * m4/locale_h.m4: New file.
15796
15797 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
15798             Bruno Haible  <bruno@clisp.org>
15799
15800         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15801         be determined, test for availability of the copysignf, copysign,
15802         copysignl functions.
15803         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15804         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15805         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15806
15807 2007-04-09  Eric Blake  <ebb9@byu.net>
15808
15809         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15810         * modules/stdio (Makefile.am): Support fflush.
15811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15812         * modules/fflush: New file.
15813         * lib/fflush.c: Likewise.
15814         * m4/fflush.m4: Likewise.
15815         * modules/fflush-tests: New test.
15816         * tests/test-fflush.c: Likewise.
15817         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15818
15819 2007-04-06  Bruno Haible  <bruno@clisp.org>
15820
15821         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15822         (VASNPRINTF): Use signbit for faster determination whether to print a
15823         minus sign.
15824         * modules/vasnprintf (Files): Remove lib/float+.h.
15825         * modules/fprintf-posix (Depends-on): Add signbit.
15826         * modules/snprintf-posix (Depends-on): Likewise.
15827         * modules/sprintf-posix (Depends-on): Likewise.
15828         * modules/vasnprintf-posix (Depends-on): Likewise.
15829         * modules/vasprintf-posix (Depends-on): Likewise.
15830         * modules/vfprintf-posix (Depends-on): Likewise.
15831         * modules/vsnprintf-posix (Depends-on): Likewise.
15832         * modules/vsprintf-posix (Depends-on): Likewise.
15833
15834 2007-04-06  Bruno Haible  <bruno@clisp.org>
15835
15836         * tests/test-frexp.c (main): Test also the sign bit of zero results.
15837         * tests/test-frexpl.c (main): Likewise.
15838         * tests/test-ldexpl.c (main): Likewise.
15839         * modules/frexp-tests (Depends-on): Add signbit.
15840         * modules/frexpl-tests (Depdends-on): Likewise.
15841         * modules/ldexpl-tests (Depdends-on): Likewise.
15842
15843 2007-04-06  Bruno Haible  <bruno@clisp.org>
15844
15845         * modules/signbit-tests: New file.
15846         * tests/test-signbit.c: New file.
15847
15848         * modules/signbit: New file.
15849         * lib/signbitf.c: New file.
15850         * lib/signbitd.c: New file.
15851         * lib/signbitl.c: New file.
15852         * m4/signbit.m4: New file.
15853         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15854         (signbit): New macro.
15855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15856         REPLACE_SIGNBIT.
15857         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15858         REPLACE_FREXPL into math.h.
15859
15860 2007-04-06  Bruno Haible  <bruno@clisp.org>
15861
15862         * modules/isnanf-nolibm-tests: New file.
15863         * tests/test-isnanf.c: New file.
15864
15865         * modules/isnanf-nolibm: New file.
15866         * lib/isnanf.h: New file.
15867         * lib/isnanf.c: New file.
15868         * lib/isnan.c: Consider the USE_FLOAT macro.
15869         * m4/isnanf.m4: New file.
15870
15871 2007-04-06  Bruno Haible  <bruno@clisp.org>
15872
15873         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15874         (Link): New section.
15875
15876         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15877
15878 2007-04-06  Bruno Haible  <bruno@clisp.org>
15879
15880         Assume the 'long double' type.
15881         * m4/longdouble.m4: Remove file.
15882         * config/srclist.txt: Don't mention longdouble.m4.
15883         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15884         * lib/float+.h: Likewise.
15885         * lib/frexp.c: Likewise.
15886         * lib/printf-args.h: Likewise.
15887         * lib/printf-args.c: Likewise.
15888         * lib/printf-frexp.c: Likewise.
15889         * lib/printf-parse.c: Likewise.
15890         * lib/vasnprintf.c: Likewise.
15891         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15892         * m4/intl.m4: Likewise.
15893         * m4/isnanl.m4: Likewise.
15894         * m4/printf.m4: Likewise.
15895         * m4/printf-frexpl.m4: Likewise.
15896         * m4/vasnprintf.m4: Likewise.
15897         * modules/allocsa (Files): Remove m4/longdouble.m4.
15898         * modules/gettext (Files): Likewise.
15899         * modules/relocatable-prog-wrapper (Files): Likewise.
15900         * modules/vasnprintf (Files): Likewise.
15901         * modules/isnanl (Files): Likewise.
15902         (Include): Simplify.
15903         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15904         (Include): Simplify.
15905         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15906         (Include): Simplify.
15907         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15908         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15909         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15910         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15911         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15912         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15913         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15914         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15915         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15916         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15917         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15918         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15919         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15920         * tests/test-isnanl.c: Likewise.
15921         * tests/test-snprintf-posix.h: Likewise.
15922         * tests/test-sprintf-posix.h: Likewise.
15923         * tests/test-vasnprintf-posix.c: Likewise.
15924         * tests/test-vasnprintf-posix2.c: Likewise.
15925         * tests/test-vasprintf-posix.c: Likewise.
15926
15927 2007-04-06  Bruno Haible  <bruno@clisp.org>
15928
15929         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15930         * lib/math_.h [__DECC]: Include the overridden include file through
15931         #include_next, outside the double-inclusion guard.
15932         * lib/stdio_.h [__DECC]: Likewise.
15933         * lib/stdlib_.h [__DECC]: Likewise.
15934         * lib/string_.h [__DECC]: Likewise.
15935         * lib/time_.h [__DECC]: Likewise.
15936         * lib/wchar_.h [__DECC]: Likewise.
15937         * lib/wctype_.h [__DECC]: Likewise.
15938         * lib/inttypes_.h [__DECC]: Likewise.
15939         Reported by Albert Chin <china@thewrittenword.com> in
15940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15941
15942 2007-04-04  Eric Blake  <ebb9@byu.net>
15943
15944         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15945         1.5.x.
15946
15947 2007-04-04  Bruno Haible  <bruno@clisp.org>
15948
15949         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15950         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15951
15952 2007-04-04  Bruno Haible  <bruno@clisp.org>
15953
15954         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15955         results for "%010a" of Infinity and NaN.
15956         * tests/test-vasprintf-posix.c (test_function): Likewise.
15957         * tests/test-snprintf-posix.h (test_function): Likewise.
15958         * tests/test-sprintf-posix.h (test_function): Likewise.
15959         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15960         * tests/test-printf-posix.h (test_function): Likewise.
15961         * tests/test-fprintf-posix.out: Update.
15962         Needed for FreeBSD 6.1.
15963
15964 2007-04-04  Bruno Haible  <bruno@clisp.org>
15965
15966         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15967         directly used by the gnulib modules nor by gnulib-tool.
15968
15969 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         * DEPENDENCIES: Give overall description of version dependency
15972         desirability.  Use more-typical names for apps.
15973         Add shell, coreutils, diffutils, grep, tar, gzip.
15974
15975 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15976
15977         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15978
15979 2007-04-04  Karl Berry  <karl@gnu.org>
15980
15981         * MODULES.html.sh (func_module): missing '.
15982
15983 2007-04-03  Bruno Haible  <bruno@clisp.org>
15984
15985         * modules/argmatch-tests (Makefile.am): New variable
15986         test_argmatch_LDADD.
15987         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15988         * modules/array-list-tests (Makefile.am): New variable
15989         test_array_list_LDADD.
15990         * modules/array-oset-tests (Makefile.am): New variable
15991         test_array_oset_LDADD.
15992         * modules/avltree-list-tests (Makefile.am): New variable
15993         test_avltree_list_LDADD.
15994         * modules/avltree-oset-tests (Makefile.am): New variable
15995         test_avltree_oset_LDADD.
15996         * modules/avltreehash-list-tests (Makefile.am): New variable
15997         test_avltreehash_list_LDADD.
15998         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15999         test_canonicalize_lgpl_LDADD.
16000         * modules/carray-list-tests (Makefile.am): New variable
16001         test_carray_list_LDADD.
16002         * modules/dirname-tests (Makefile.am): New variable
16003         test_dirname_LDADD.
16004         * modules/linked-list-tests (Makefile.am): New variable
16005         test_linked_list_LDADD.
16006         * modules/linkedhash-list-tests (Makefile.am): New variable
16007         test_linkedhash_list_LDADD.
16008         * modules/rbtree-list-tests (Makefile.am): New variable
16009         test_rbtree_list_LDADD.
16010         * modules/rbtree-oset-tests (Makefile.am): New variable
16011         test_rbtree_oset_LDADD.
16012         * modules/rbtreehash-list-tests (Makefile.am): New variable
16013         test_rbtreehash_list_LDADD.
16014         * modules/xvasprintf-tests (Makefile.am): New variable
16015         test_xvasprintf_LDADD.
16016         Reported by Eric Blake.
16017
16018 2007-04-03  Eric Blake  <ebb9@byu.net>
16019
16020         * DEPENDENCIES: Weaken m4 requirements.
16021
16022 2007-04-03  Bruno Haible  <bruno@clisp.org>
16023
16024         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16025         * modules/isnanl-tests (configure.ac): Likewise.
16026
16027 2007-04-03  Ben Pfaff  <blp@gnu.org>
16028
16029         * modules/iconv_open: Add $(srcdir)/ to source directory
16030         references in Makefile fragments that call gperf, to fix VPATH
16031         builds.
16032
16033 2007-04-03  Bruno Haible  <bruno@clisp.org>
16034
16035         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16036         * lib/ldexpl.c: Undo last change.
16037
16038 2007-04-03  Bruno Haible  <bruno@clisp.org>
16039
16040         * modules/printf-frexpl (Depends-on): Undo last change.
16041         (Files): Add m4/ldexpl.m4.
16042
16043 2007-04-03  Bruno Haible  <bruno@clisp.org>
16044
16045         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16046         * modules/isnanl (Link): New section.
16047
16048         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16049         * modules/frexp (Link): New section.
16050
16051         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16052         * modules/frexpl (Link): New section.
16053
16054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16055         * modules/ldexpl (Link): New section.
16056
16057 2007-04-03  Bruno Haible  <bruno@clisp.org>
16058
16059         * modules/TEMPLATE-EXTENDED: New file.
16060         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16061
16062 2007-04-03  Bruno Haible  <bruno@clisp.org>
16063
16064         * DEPENDENCIES: New file.
16065         Suggested by Simon Josefsson.
16066
16067 2007-04-03  Bruno Haible  <bruno@clisp.org>
16068
16069         * doc/gnulib.texi: Escape @.
16070
16071 2007-04-03  James Youngman  <jay@gnu.org>
16072         and Paul Eggert  <eggert@cs.ucla.edu>
16073
16074         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16075         birthtime on all systems that have birthtime, not just those which
16076         use st_birthtimensec rather than st_birthtim.  Putting zero in
16077         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16078         that the birth time is not available for files on an NFS mount.
16079
16080 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16081
16082         * modules/memxor: Move back from crypto/, suggested by Bruno.
16083         * modules/crypto/hmac-sha1: Fix memxor dependency.
16084
16085         * modules/crypto/gc: Moved from ../.
16086
16087 2007-04-02  Eric Blake  <ebb9@byu.net>
16088
16089         * lib/ldexpl.c (includes): Avoid libm.
16090
16091         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16092
16093 2007-04-02  Bruno Haible  <bruno@clisp.org>
16094
16095         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16096         on IRIX.
16097
16098 2007-04-02  Bruno Haible  <bruno@clisp.org>
16099
16100         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16101         x86 or x86_64 platforms running MacOS X.
16102         Reported by Ryan Schmidt <@ryandesign.com>.
16103
16104 2007-04-02  Bruno Haible  <bruno@clisp.org>
16105
16106         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16107         i386.
16108
16109 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16110
16111         * modules/crypto/arcfour: Moved from ../.
16112         * modules/crypto/arcfour-tests: Moved from ../.
16113         * modules/crypto/arctwo: Moved from ../.
16114         * modules/crypto/arctwo-tests: Moved from ../.
16115         * modules/crypto/des: Moved from ../.
16116         * modules/crypto/des-tests: Moved from ../.
16117         * modules/crypto/gc-arcfour: Moved from ../.
16118         * modules/crypto/gc-arcfour-tests: Moved from ../.
16119         * modules/crypto/gc-arctwo: Moved from ../.
16120         * modules/crypto/gc-arctwo-tests: Moved from ../.
16121         * modules/crypto/gc-des: Moved from ../.
16122         * modules/crypto/gc-des-tests: Moved from ../.
16123         * modules/crypto/gc-hmac-md5: Moved from ../.
16124         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16125         * modules/crypto/gc-hmac-sha1: Moved from ../.
16126         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16127         * modules/crypto/gc-md2: Moved from ../.
16128         * modules/crypto/gc-md2-tests: Moved from ../.
16129         * modules/crypto/gc-md4: Moved from ../.
16130         * modules/crypto/gc-md4-tests: Moved from ../.
16131         * modules/crypto/gc-md5: Moved from ../.
16132         * modules/crypto/gc-md5-tests: Moved from ../.
16133         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16134         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16135         * modules/crypto/gc-random: Moved from ../.
16136         * modules/crypto/gc-rijndael: Moved from ../.
16137         * modules/crypto/gc-rijndael-tests: Moved from ../.
16138         * modules/crypto/gc-sha1: Moved from ../.
16139         * modules/crypto/gc-sha1-tests: Moved from ../.
16140         * modules/crypto/gc-tests: Moved from ../.
16141         * modules/crypto/hmac-md5: Moved from ../.
16142         * modules/crypto/hmac-md5-tests: Moved from ../.
16143         * modules/crypto/hmac-sha1: Moved from ../.
16144         * modules/crypto/hmac-sha1-tests: Moved from ../.
16145         * modules/crypto/md2: Moved from ../.
16146         * modules/crypto/md2-tests: Moved from ../.
16147         * modules/crypto/md4: Moved from ../.
16148         * modules/crypto/md4-tests: Moved from ../.
16149         * modules/crypto/md5: Moved from ../.
16150         * modules/crypto/md5-tests: Moved from ../.
16151         * modules/crypto/memxor: Moved from ../.
16152         * modules/crypto/rijndael: Moved from ../.
16153         * modules/crypto/rijndael-tests: Moved from ../.
16154         * modules/crypto/sha1: Moved from ../.
16155
16156 2007-03-30  James Youngman  <jay@gnu.org>
16157
16158         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16159         rename() to change the ctime of a file (because ctime is unaffected
16160         by rename on jfs2 on AIX 5.1).
16161         (main): Start by doing cleanup, in case a previous run failed leaving
16162         test files behind.
16163
16164 2007-03-31  Bruno Haible  <bruno@clisp.org>
16165
16166         Support old proprietary implementations of iconv.
16167         * modules/iconv_open: New file.
16168         * lib/iconv_.h: New file.
16169         * m4/iconv_h.m4: New file.
16170         * lib/iconv_open.c: New file.
16171         * lib/iconv_open-aix.gperf: New file.
16172         * lib/iconv_open-hpux.gperf: New file.
16173         * lib/iconv_open-irix.gperf: New file.
16174         * lib/iconv_open-osf.gperf: New file.
16175         * m4/iconv_open.m4: New file.
16176         * modules/linebreak (Depends-on): Add iconv_open.
16177         * modules/striconv (Depends-on): Likewise.
16178         * modules/striconveh (Depends-on): Likewise.
16179         * modules/unicodeio (Depends-on): Likewise.
16180         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16181         (iconv_t)(-1).
16182         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16183         conversion if cd is (iconv_t)(-1).
16184         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16185         is not possible.
16186
16187 2007-03-31  Bruno Haible  <bruno@clisp.org>
16188
16189         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16190         work on Solaris either. Protect also second use of "autodetect_jp".
16191
16192 2007-03-31  Bruno Haible  <bruno@clisp.org>
16193
16194         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16195         the function is not present.
16196
16197 2007-03-31  Bruno Haible  <bruno@clisp.org>
16198
16199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16200         the function is not present.
16201
16202 2007-03-31  Bruno Haible  <bruno@clisp.org>
16203
16204         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16205         a bug in HP-UX iconv_open().
16206
16207 2007-03-31  Bruno Haible  <bruno@clisp.org>
16208
16209         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16210         (Mathematics <math.h>): New section, add fpieee.
16211         (Input/output <stdio.h>): Add fseterr.
16212         (Mathematics <math.h>): New section, add printf-frexp.
16213         (Container data structures): Add sublist.
16214         (Core language properties): Add fpucw, inline.
16215         (Functions for greatest-width integer types <inttypes.h>): Add
16216         imaxabs, imaxdiv, inttypes.
16217         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16218         isnanl-nolibm, ldexp.
16219         (Mathematics <math.h>): New section, add printf-frexpl.
16220         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16221         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16222         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16223         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16224         (Unicode string functions): Add unistr/u*-mbtoucr.
16225         (Java): Add javacomp-script, javaexec-script.
16226         (C#): Add csharpcomp-script, csharpexec-script.
16227         (Support for building libraries and executables): Add havelib,
16228         relocatable-*.
16229         (Support for maintaining and releasing projects): Renamed from
16230         'Support for maintaining and release projects'. Add announce-gen.
16231
16232 2007-03-31  Bruno Haible  <bruno@clisp.org>
16233
16234         * README: Talk primarily about git.
16235         (git and CVS): Renamed from CVS.
16236         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16237         gnulib is available through git.
16238         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16239
16240 2007-03-30  Bruno Haible  <bruno@clisp.org>
16241
16242         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16243         * lib/poll_.h: Likewise.
16244         * lib/stat_.h: Likewise.
16245         * lib/sys_time_.h: Likewise.
16246         * lib/sysexit_.h: Likewise.
16247         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16248         * lib/stdbool_.h: Likewise.
16249         * lib/byteswap_.h: Add double-inclusion guard.
16250
16251 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16252
16253         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16254
16255 2007-03-30  Karl Berry  <karl@gnu.org>
16256
16257         * config/srclist-update: double space after USA in the license
16258         substitution, since that's how it's usually (?) written.
16259
16260 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16261
16262         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16263         reported by Bruno Haible.
16264
16265 2007-03-29  Bruno Haible  <bruno@clisp.org>
16266
16267         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16268         a bug in AIX iconv().
16269
16270 2007-03-29  Bruno Haible  <bruno@clisp.org>
16271
16272         * modules/ldexpl-tests: New file.
16273         * tests/test-ldexpl.c: New file.
16274
16275 2007-03-29  Bruno Haible  <bruno@clisp.org>
16276
16277         * lib/ldexpl.c: Include fpucw.h.
16278         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16279         multiplication.
16280         * modules/ldexpl (Depends-on): Add fpucw.
16281
16282 2007-03-29  Bruno Haible  <bruno@clisp.org>
16283
16284         * modules/ldexpl: New file.
16285         * m4/ldexpl.m4: New file.
16286         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16287         set.
16288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16289         REPLACE_LDEXPL.
16290         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16291         REPLACE_LDEXPL.
16292         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16293         gl_FUNC_LDEXPL_WORKS.
16294         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16295         * modules/mathl (Files): Remove lib/ldexpl.c.
16296         (Depends-on): Add ldexpl.
16297
16298 2007-03-29  Bruno Haible  <bruno@clisp.org>
16299
16300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16301
16302 2007-03-29  Bruno Haible  <bruno@clisp.org>
16303
16304         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16305         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16306         and possibly also HP-UX.
16307         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16308         work on AIX, IRIX, HP-UX, OSF/1.
16309         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16310         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16311         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16312         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16313         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16314         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16315
16316 2007-03-29  Bruno Haible  <bruno@clisp.org>
16317
16318         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16319
16320 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16321
16322         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16323         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16324
16325 2007-03-29  Eric Blake  <ebb9@byu.net>
16326
16327         * lib/acl-internal.h: Remove redundant include.
16328         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16329         Cygwin when a file is locked.
16330
16331 2007-03-29  Bruno Haible  <bruno@clisp.org>
16332
16333         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16334         file.
16335         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16336
16337 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16338
16339         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16340         try to remove a parent directory if the child couldn't be removed
16341         (except for the first rmdir, which could fail because the child
16342         doesn't exist).  Problem reported by Jeff Blaine in
16343         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16344
16345 2007-03-28  Bruno Haible  <bruno@clisp.org>
16346
16347         * lib/striconveh.c (utf8conv_carefully): New function.
16348         (mem_cd_iconveh_internal): Invoke it.
16349
16350 2007-03-28  Bruno Haible  <bruno@clisp.org>
16351
16352         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16353         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16354         input.
16355         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16356         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16357         unistr/u8-uctomb.
16358
16359 2007-03-28  Bruno Haible  <bruno@clisp.org>
16360
16361         * modules/unistr/u8-mbtoucr: New file.
16362         * lib/unistr/u8-mbtoucr.c: New file.
16363         * modules/unistr/u16-mbtoucr: New file.
16364         * lib/unistr/u16-mbtoucr.c: New file.
16365         * modules/unistr/u16-mbtoucr: New file.
16366         * lib/unistr/u16-mbtoucr.c: New file.
16367         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16368
16369 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16370             Bruno Haible  <bruno@clisp.org>
16371
16372         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16373         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16374         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16375
16376         * m4/stdio_h.m4: Add stubs for vasprintf too.
16377
16378         * modules/stdio: Support vasprintf in sed command.
16379
16380         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16381         vasprintf.h.  Add stdio module indicator.
16382
16383         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16384         vasprintf.h.
16385
16386         * lib/vasprintf.h: File removed.
16387
16388         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16389         * lib/vasprintf.c: Ditto.
16390         * lib/xvasprintf.c: Ditto.
16391         * tests/test-vasprintf-posix.c: Ditto.
16392         * tests/test-vasprintf.c: Ditto.
16393
16394 2007-03-27  Bruno Haible  <bruno@clisp.org>
16395
16396         Make vasnprintf multithread-safe.
16397         * lib/vasnprintf.c (decimal_point_char): New function.
16398         (VASNPRINTF): Use it.
16399         Suggested by Simon Josefsson.
16400
16401 2007-03-27  Eric Blake  <ebb9@byu.net>
16402
16403         Support sub-second birthtime on cygwin.
16404         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16405         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16406         (get_stat_birthtime): Also work with st_birthtim.
16407
16408 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16409
16410         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16411         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16412         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16413         (get_stat_birthtime_ns): Simplify compile-time tests.
16414         (get_stat_birthtime): Change the API to look like
16415         get_stat_mtime etc., except return a negative tv_nsec on error.
16416         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16417         Don't check for "spare" fields.
16418         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16419         or for struct stat.st_birthtime, as these tests aren't used.
16420         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16421
16422 2007-03-27  Bruno Haible  <bruno@clisp.org>
16423
16424         * lib/stat-time.h: Include <sys/stat.h>.
16425
16426 2007-03-27  James Youngman  <jay@gnu.org>
16427
16428         * lib/stat-time.h (get_stat_birthtime): New function for
16429           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16430         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16431           and its variants.
16432         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16433         * modules/stat-time-test: New file.
16434         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16435
16436 2007-03-26  Bruno Haible  <bruno@clisp.org>
16437
16438         Better support of signalling NaNs.
16439         * lib/atanl.c: Include isnanl.h.
16440         (atanl): Perform test for NaN at the beginning of the function and
16441         through a call to isnanl.
16442         * lib/cosl.c: Include isnanl.h.
16443         (cosl): Perform test for NaN at the beginning of the function and
16444         through a call to isnanl.
16445         * lib/ldexpl.c: Include isnanl.h.
16446         (ldexpl): Perform test for NaN through a call to isnanl.
16447         * lib/logl.c: Include isnanl.h.
16448         (logl): Perform test for NaN at the beginning of the function and
16449         through a call to isnanl.
16450         * lib/sinl.c: Include isnanl.h.
16451         (sinl): Perform test for NaN at the beginning of the function and
16452         through a call to isnanl.
16453         * lib/sqrtl.c: Include isnanl.h.
16454         (sqrtl): Perform test for NaN at the beginning of the function and
16455         through a call to isnanl.
16456         * lib/tanl.c: Include isnanl.h.
16457         (tanl): Perform test for NaN at the beginning of the function and
16458         through a call to isnanl.
16459         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16460         * modules/mathl (Depends-on): Add isnanl.
16461
16462 2007-03-26  Eric Blake  <ebb9@byu.net>
16463
16464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16465         regression in logic sense of previous patch.
16466
16467 2007-03-26  Bruno Haible  <bruno@clisp.org>
16468
16469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16470         unportable shell command "if ! ...".
16471         Reported by Ralf Wildenhues.
16472
16473 2007-03-25  Bruno Haible  <bruno@clisp.org>
16474
16475         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16476         <sysexits.h> file, and only add EX_CONFIG.
16477         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16478         absolute file name and whether it is sufficient. Substitute also
16479         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16480         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16481         ABSOLUTE_SYSEXITS_H into sysexits.h.
16482
16483 2007-03-25  Bruno Haible  <bruno@clisp.org>
16484
16485         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16486         hints is NULL.
16487
16488 2007-03-25  Bruno Haible  <bruno@clisp.org>
16489
16490         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16491         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16492
16493 2007-03-25  Bruno Haible  <bruno@clisp.org>
16494
16495         * lib/vasnprintf.c: Include langinfo.h.
16496         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16497         multithread-safe.
16498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16499         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16507         Reported by Simon Josefsson.
16508
16509 2007-03-25  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16512         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16513         * modules/vasnprintf (Depends-on): Add stdint.
16514
16515 2007-03-25  Bruno Haible  <bruno@clisp.org>
16516
16517         * modules/fpieee: New file.
16518         * m4/fpieee.m4: New file.
16519         * modules/isnan-nolibm (Depends-on): Add fpieee.
16520         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16521         * modules/isnanl (Depends-on): Add fpieee.
16522
16523 2007-03-25  Bruno Haible  <bruno@clisp.org>
16524
16525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16526
16527 2007-03-25  Bruno Haible  <bruno@clisp.org>
16528
16529         Avoid test failures on IRIX 6.5.
16530         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16531         (main): Use it.
16532         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16533         macros.
16534         (main): Use them.
16535
16536 2007-03-25  Bruno Haible  <bruno@clisp.org>
16537
16538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16539         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16540         exists but doesn't work.
16541         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16542         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16544         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16545
16546 2007-03-25  Bruno Haible  <bruno@clisp.org>
16547
16548         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16549         returns inf. Needed on IRIX 6.5.
16550
16551 2007-03-25  Bruno Haible  <bruno@clisp.org>
16552
16553         * tests/test-frexpl.c: Include isnanl-nolibm.h.
16554         (main): Use isnanl instead of x != x idiom.
16555         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16556
16557         * tests/test-frexp.c: Include isnan.h.
16558         (main): Use isnan instead of x != x idiom.
16559         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16560
16561 2007-03-25  Bruno Haible  <bruno@clisp.org>
16562
16563         * tests/test-frexp.c (NaN): New function/macro.
16564         (main): Use it instead of 0.0 / 0.0.
16565         * tests/test-isnan.c (NaN): New function/macro.
16566         (main): Use it instead of 0.0 / 0.0.
16567         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16568         (test_function): Use it instead of 0.0 / 0.0.
16569         * tests/test-vasprintf-posix.c (NaN): New function/macro.
16570         (test_function): Use it instead of 0.0 / 0.0.
16571         * tests/test-snprintf-posix.h (NaN): New function/macro.
16572         (test_function): Use it instead of 0.0 / 0.0.
16573         * tests/test-sprintf-posix.h (NaN): New function/macro.
16574         (test_function): Use it instead of 0.0 / 0.0.
16575         * tests/test-fprintf-posix.h (NaN): New function/macro.
16576         (test_function): Use it instead of 0.0 / 0.0.
16577         * tests/test-printf-posix.h (NaN): New function/macro.
16578         (test_function): Use it instead of 0.0 / 0.0.
16579
16580         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16581
16582 2007-03-25  Bruno Haible  <bruno@clisp.org>
16583
16584         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16585
16586 2007-03-25  Bruno Haible  <bruno@clisp.org>
16587
16588         * lib/regexec.c (merge_state_with_log): Make static.
16589
16590 2007-03-25  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/trigl.c (kernel_rem_pio2): Make static.
16593
16594 2007-03-25  Bruno Haible  <bruno@clisp.org>
16595
16596         * lib/sincosl.c (sincosl_table): Make static.
16597
16598 2007-03-25  Bruno Haible  <bruno@clisp.org>
16599
16600         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16601         if the compiler does not support C99.
16602
16603 2007-03-25  Bruno Haible  <bruno@clisp.org>
16604
16605         * modules/time (Makefile.am): Ensure all rule action lines start with a
16606         tab.
16607
16608 2007-03-24  Bruno Haible  <bruno@clisp.org>
16609
16610         * modules/tsearch-tests: New file.
16611         * tests/test-tsearch.sh: New file.
16612         * tests/test-tsearch.c: New file, mostly copied from glibc.
16613
16614         * modules/search-tests: New file.
16615         * tests/test-search.c: New file.
16616
16617         * modules/search: New file.
16618         * lib/search_.h: New file, incorporating lib/tsearch.h.
16619         * m4/search_h.m4: New file.
16620         * lib/tsearch.h: Remove file.
16621         * lib/tsearch.c: Include search.h instead of tsearch.h.
16622         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16623         HAVE_TSEARCH.
16624         * modules/tsearch (Files): Remove lib/tsearch.h.
16625         (Depends-on): Add search.
16626         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16627         (Include): Change tsearch.h into search.h.
16628
16629 2007-03-24  Bruno Haible  <bruno@clisp.org>
16630
16631         * modules/fpucw: New file.
16632         * lib/fpucw.h: New file.
16633         * lib/frexp.c: Include fpucw.h.
16634         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16635         (FUNC): Use them.
16636         * lib/printf-frexp.c: Include fpucw.h.
16637         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16638         (FUNC): Use them.
16639         * lib/vasnprintf.c: Include fpucw.h.
16640         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16641         'long double' calculations.
16642         * tests/test-frexpl.c: Include fpucw.h.
16643         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16644         * tests/test-printf-frexpl.c: Include fpucw.h.
16645         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16646         * modules/frexpl (Depends-on): Add fpucw.
16647         * modules/printf-frexpl (Depends-on): Likewise.
16648         * modules/fprintf-posix (Depends-on): Likewise.
16649         * modules/snprintf-posix (Depends-on): Likewise.
16650         * modules/sprintf-posix (Depends-on): Likewise.
16651         * modules/vasnprintf-posix (Depends-on): Likewise.
16652         * modules/vasprintf-posix (Depends-on): Likewise.
16653         * modules/vfprintf-posix (Depends-on): Likewise.
16654         * modules/vsnprintf-posix (Depends-on): Likewise.
16655         * modules/vsprintf-posix (Depends-on): Likewise.
16656         * modules/frexpl-tests (Depends-on): Likewise.
16657         * modules/printf-frexpl-tests (Depends-on): Likewise.
16658
16659 2007-03-24  Bruno Haible  <bruno@clisp.org>
16660
16661         * lib/float+.h: New file.
16662         * lib/isnan.c: Include float+.h.
16663         (SIZE): New macro.
16664         (FUNC): Compare only SIZE bytes of the value.
16665         * lib/vasnprintf.c: Include float+.h.
16666         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16667         SIZEOF_LDBL or SIZEOF_DBL bytes.
16668         * modules/isnan-nolibm (Files): Add lib/float+.h.
16669         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16670         * modules/isnanl (Files): Add lib/float+.h.
16671         * modules/vasnprintf (Files): Add lib/float+.h.
16672
16673 2007-03-24  Bruno Haible  <bruno@clisp.org>
16674
16675         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16676         include isnanl-nolibm.h.
16677
16678 2007-03-24  Bruno Haible  <bruno@clisp.org>
16679
16680         * tests/test-read-file.c (main): Don't produce spurious output for
16681         expected situations. Make the test fail if it encountered unexpected
16682         results.
16683
16684 2007-03-24  Bruno Haible  <bruno@clisp.org>
16685
16686         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16687         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16688
16689 2007-03-24  Bruno Haible  <bruno@clisp.org>
16690
16691         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16692
16693 2007-03-24  Bruno Haible  <bruno@clisp.org>
16694
16695         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16696         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16697
16698         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16699         * modules/utf8-ucs4: Turn into a symbolic link to module
16700         unistr/u8-mbtouc.
16701
16702         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16703         utf8-ucs4-unsafe.
16704         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16705         unistr/u8-mbtouc-unsafe.
16706
16707         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16708         * modules/utf16-ucs4: Turn into a symbolic link to module
16709         unistr/u16-mbtouc.
16710
16711         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16712         utf16-ucs4-unsafe.
16713         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16714         unistr/u16-mbtouc-unsafe.
16715
16716         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16717         * modules/ucs4-utf8: Turn into a symbolic link to module
16718         unistr/u8-ubtomb.
16719
16720         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16721         * modules/ucs4-utf16: Turn into a symbolic link to module
16722         unistr/u16-ubtomb.
16723
16724 2007-03-24  Bruno Haible  <bruno@clisp.org>
16725
16726         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16727         Enable the function only if HAVE_INLINE.
16728         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16729         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16730         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16731         Enable the function only if HAVE_INLINE.
16732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16733         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16734         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16735         Enable the function only if HAVE_INLINE.
16736         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16737         Enable the function only if HAVE_INLINE.
16738         * modules/utf8-ucs4: Update.
16739         * modules/utf8-ucs4-unsafe: Update.
16740         * modules/utf16-ucs4: Update.
16741         * modules/utf16-ucs4-unsafe: Update.
16742         * modules/ucs4-utf8: Update.
16743         * modules/ucs4-utf16: Update.
16744
16745 2007-03-24  Bruno Haible  <bruno@clisp.org>
16746
16747         * lib/utf8-ucs4.h: Remove file.
16748         * lib/utf8-ucs4-unsafe.h: Remove file.
16749         * lib/utf16-ucs4.h: Remove file.
16750         * lib/utf16-ucs4-unsafe.h: Remove file.
16751         * lib/ucs4-utf8.h: Remove file.
16752         * lib/ucs4-utf16.h: Remove file.
16753         * lib/unistr.h: Include their previous contents.
16754         * m4/utf-ucs4.m4: Remove file.
16755         * m4/ucs4-utf.m4: Remove file.
16756         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16757         (Depends-on): Add unistr/base.
16758         (configure.ac): Remove gl_UTF_UCS4.
16759         (Makefile.am): Update.
16760         (Include): Change to unistr.h.
16761         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16762         (Depends-on): Add unistr/base.
16763         (configure.ac): Remove gl_UTF_UCS4.
16764         (Makefile.am): Update.
16765         (Include): Change to unistr.h.
16766         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16767         (Depends-on): Add unistr/base.
16768         (configure.ac): Remove gl_UTF_UCS4.
16769         (Makefile.am): Update.
16770         (Include): Change to unistr.h.
16771         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16772         (Depends-on): Add unistr/base.
16773         (configure.ac): Remove gl_UTF_UCS4.
16774         (Makefile.am): Update.
16775         (Include): Change to unistr.h.
16776         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16777         (Depends-on): Add unistr/base.
16778         (configure.ac): Remove gl_UCS4_UTF.
16779         (Makefile.am): Update.
16780         (Include): Change to unistr.h.
16781         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16782         (Depends-on): Add unistr/base.
16783         (configure.ac): Remove gl_UCS4_UTF.
16784         (Makefile.am): Update.
16785         (Include): Change to unistr.h.
16786         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16787         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16788         utf8-ucs4-unsafe.h.
16789         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16790         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16791         utf16-ucs4-unsafe.h.
16792         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16793         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16794         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16795         * lib/unistr/u8-strchr.c: Likewise.
16796         * lib/unistr/u8-strrchr.c: Likewise.
16797         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16798         * lib/unistr/u16-strchr.c: Likewise.
16799         * lib/unistr/u16-strrchr.c: Likewise.
16800         * lib/striconveh.c: Update.
16801         * lib/linebreak.c: Update.
16802
16803 2007-03-24  Bruno Haible  <bruno@clisp.org>
16804
16805         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16806         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16807
16808 2007-03-22  Bruno Haible  <bruno@clisp.org>
16809
16810         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16811
16812 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16813
16814         * MODULES.html.sh (File system functions): New module write-any-file.
16815         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16816         * m4/write-any-file.m4: New files.
16817
16818 2007-03-23  Eric Blake  <ebb9@byu.net>
16819
16820         * gnulib-tool: Rearrange space-tab sequences, since some editors
16821         like to eat them.
16822
16823 2007-03-23  Eric Blake  <ebb9@byu.net>
16824
16825         * lib/version-etc.c (version_etc_va): Update license wording to
16826         be more concise.  Recommended by Richard Stallman.
16827
16828 2007-03-22  Bruno Haible  <bruno@clisp.org>
16829
16830         * lib/poll.c (MSG_PEEK): New fallback definition.
16831
16832 2007-03-22  Bruno Haible  <bruno@clisp.org>
16833
16834         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16835         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16836         (main): Update.
16837         Fixes a compilation error on BeOS.
16838
16839 2007-03-22  Bruno Haible  <bruno@clisp.org>
16840
16841         * modules/frexpl-tests: New file.
16842         * tests/test-frexpl.c: New file.
16843
16844         * modules/frexpl: New file.
16845         * m4/frexpl.m4: New file.
16846         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16847         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16849         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16850         (Depends-on): Add frexpl. Remove isnanl-nolibm.
16851         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16852
16853 2007-03-22  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/frexpl.c: Share code with lib/frexp.c.
16856         * modules/mathl (Files): Add lib/frexp.c.
16857         (Depends-on): Add isnanl-nolibm.
16858
16859 2007-03-22  Bruno Haible  <bruno@clisp.org>
16860
16861         * modules/printf-frexp (Files): Add m4/frexp.m4.
16862         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16863         only if the found frexp function actually works.
16864
16865 2007-03-22  Bruno Haible  <bruno@clisp.org>
16866
16867         * lib/frexp.c: Remove older implementation that uses divisions.
16868
16869 2007-03-21  Bruno Haible  <bruno@clisp.org>
16870
16871         * modules/frexp-tests: New file.
16872         * tests/test-frexp.c: New file.
16873
16874         * modules/frexp: New file.
16875         * lib/frexp.c: New file.
16876         * m4/frexp.m4: New file.
16877         * lib/math_.h (frexp): New declaration.
16878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16879         REPLACE_FREXP.
16880         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16881
16882 2007-03-21  Bruno Haible  <bruno@clisp.org>
16883
16884         * modules/isnanl-tests: New file.
16885         * tests/test-isnanl.c: New file.
16886
16887         * modules/isnanl: New file.
16888         * lib/isnanl.h: New file.
16889         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16890         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16891         gl_FUNC_ISNANL_WORKS.
16892         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16893         New macros.
16894
16895 2007-03-21  Bruno Haible  <bruno@clisp.org>
16896
16897         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16898         lib/isnanl.h.
16899         (Include): Update.
16900         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16901         * lib/vasnprintf.c: Update.
16902         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16903         tests/test-isnanl.h, remove tests/test-isnanl.c.
16904         (Makefile.am): Update.
16905         * tests/test-isnanl-nolibm.c: New file.
16906         * tests/test-isnanl.h: New file.
16907         * tests/test-isnanl.c: Remove file.
16908
16909 2007-03-21  Jim Meyering  <jim@meyering.net>
16910
16911         When trying to open ".", treat ESTALE like EACCES.
16912         * lib/savewd.c (savewd_save): Resort to forking not just upon
16913         failure with EACCES, but also when errno is ESTALE.
16914
16915 2007-03-20  Bruno Haible  <bruno@clisp.org>
16916
16917         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16918         Needed on AIX 5.1. Reported by Matthew Woehlke.
16919
16920 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16921
16922         Suggestions by Bruno Haible:
16923         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16924         our own.
16925         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16926         * modules/acl (Depends-on): Add gettext.
16927
16928 2007-03-19  Bruno Haible  <bruno@clisp.org>
16929
16930         * modules/iconvme: Remove file.
16931         * lib/iconvme.h: Remove file.
16932         * lib/iconvme.c: Remove file.
16933         * m4/iconvme.m4: Remove file.
16934
16935 2007-03-19  Bruno Haible  <bruno@clisp.org>
16936
16937         * doc/relocatable-maint.texi: Break long shell script line.
16938         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16939
16940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16941
16942         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16943         handle file_has_acl.
16944         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16945         * lib/acl.c: Move header inclusions and related macro defns into
16946         lib/acl-internal.h.
16947         (S_ISLNK): Remove defn, since that's now done for us.
16948         (file_has_acl): Move to lib/file-has-acl.c.
16949         Call acl_trivial if available.  This is the crucial part of the fix.
16950         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16951         shared within the library.  Rewrite a bit, partly to make it compatible
16952         with the GNU coding style.
16953         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16954         Remove unnecessary double-quotes.
16955         Don't test for acl_to_text; the build will catch that.
16956         Replace acl_entries if it doesn't exist and it is needed.
16957         Check for -lsec and acl_trivial (as used on Solaris 10).
16958         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16959         lib/file-has-acl.c.
16960         (Depends-on): Add sys_stat, for S_ISLNK.
16961
16962 2007-03-19  Ben Pfaff  <blp@gnu.org>
16963
16964         * doc/gnulib.texi: Fix typos.
16965         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16966
16967 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16970         If size is zero here, buf must be zero.
16971
16972 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16973
16974         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16975         <bruno@clisp.org>.
16976
16977 2007-03-18  Bruno Haible  <bruno@clisp.org>
16978
16979         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16980         Suggested by Eric Blake.
16981
16982 2007-03-18  Ben Pfaff  <blp@gnu.org>
16983
16984         * doc/relocatable.texi: Recommend using as prefix a directory
16985         that does not exist and will never be created.  Based on
16986         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16987         and others.
16988
16989 2007-03-17  Bruno Haible  <bruno@clisp.org>
16990
16991         * lib/fchownat.c: Include lchown.h.
16992
16993 2007-03-17  Bruno Haible  <bruno@clisp.org>
16994
16995         Fix endless loop when the given allocated size was > INT_MAX.
16996         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16997         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16998         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16999         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17000         * lib/sprintf.c (sprintf): Likewise.
17001
17002 2007-03-17  Bruno Haible  <bruno@clisp.org>
17003
17004         * tests/test-argp-2.sh (func_compare): Output a context diff.
17005
17006 2007-03-17  Bruno Haible  <bruno@clisp.org>
17007
17008         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17009         locale's decimal-point character.
17010
17011 2007-03-17  Bruno Haible  <bruno@clisp.org>
17012
17013         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17014         before comparing it. Needed because on some platforms (e.g. x86) a
17015         'long double' occupies less bytes than sizeof (long double).
17016
17017 2007-03-17  Bruno Haible  <bruno@clisp.org>
17018
17019         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17020         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17021         * tests/test-getaddrinfo.c (simple): Likewise.
17022         * tests/test-read-file.c (main): Likewise.
17023
17024 2007-03-17  Bruno Haible  <bruno@clisp.org>
17025
17026         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17027
17028 2007-03-17  Bruno Haible  <bruno@clisp.org>
17029
17030         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17031         unused variable.
17032
17033 2007-03-17  Bruno Haible  <bruno@clisp.org>
17034
17035         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17036         * tests/test-c-strncasecmp.c: Likewise.
17037
17038 2007-03-17  Bruno Haible  <bruno@clisp.org>
17039
17040         * modules/stdlib (Depends-on): Add unistd.
17041         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17042         Needed for MacOS X 10.3.
17043
17044 2007-03-17  Bruno Haible  <bruno@clisp.org>
17045
17046         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17047
17048 2007-03-17  Bruno Haible  <bruno@clisp.org>
17049
17050         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17051
17052 2007-03-17  Bruno Haible  <bruno@clisp.org>
17053
17054         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17055         to reflect files copied from gnulib (with or without modifications).
17056         Suggested by Jim Meyering.
17057
17058 2007-03-17  Eric Blake  <ebb9@byu.net>
17059
17060         * NEWS: Document stdlib change from 2007-02-18.
17061
17062 2007-03-17  Jim Meyering  <jim@meyering.net>
17063
17064         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17065         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17066         someone uses a name containing shell meta-characters.
17067         Reported by Alfred M. Szmidt.
17068
17069         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17070
17071 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17072
17073         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17074         and copy gettext configuration files only if configure.ac contains
17075         a use of AM_GNU_GETTEXT_VERSION.
17076
17077 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17078
17079         * build-aux/bootstrap (gnulib_name): New variable.
17080         (gnulib_tool_options): Use it.
17081
17082 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17083
17084         * tests/test-des.c: Use new namespace.
17085
17086 2007-03-15  Bruno Haible  <bruno@clisp.org>
17087
17088         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17089         Reported by James Youngman <jay@gnu.org>.
17090
17091 2007-03-15  Bruno Haible  <bruno@clisp.org>
17092
17093         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17094         declared prototype. Needed with cc on OSF/1 5.1.
17095
17096 2007-03-15  Bruno Haible  <bruno@clisp.org>
17097
17098         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17099         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17100         (struct gl_list_implementation): Add dispose_fn argument to the
17101         'create_empty', 'create' methods.
17102         (struct gl_list_impl_base): Add field 'dispose_fn'.
17103         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17104         argument.
17105         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17106         dispose_fn argument.
17107         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17108         dispose_fn on the dropped values.
17109         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17110         dispose_fn argument.
17111         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17112         dropped values.
17113         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17114         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17115         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17116         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17117         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17118         argument.
17119         (gl_tree_list_free): Call dispose_fn on the dropped values.
17120         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17121         the dropped values.
17122         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17123         Add dispose_fn argument.
17124         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17125         Call dispose_fn on the dropped values.
17126         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17127         Add dispose_fn argument.
17128         (gl_sublist_create): Initialize the 'dispose_fn' field.
17129         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17130         * tests/test-array_list.c (main): Update.
17131         * tests/test-carray_list.c (main): Update.
17132         * tests/test-avltree_list.c (main): Update.
17133         * tests/test-rbtree_list.c (main): Update.
17134         * tests/test-avltreehash_list.c (main): Update.
17135         * tests/test-rbtreehash_list.c (main): Update.
17136         * tests/test-linked_list.c (main): Update.
17137         * tests/test-linkedhash_list.c (main): Update.
17138         * tests/test-array_oset.c (main): Update.
17139
17140 2007-03-15  Bruno Haible  <bruno@clisp.org>
17141
17142         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17143         (gl_oset_create_empty): Add dispose_fn argument.
17144         (struct gl_oset_implementation): Add dispose_fn argument to
17145         'create_empty' method.
17146         (struct gl_oset_impl_base): Add dispose_fn field.
17147         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17148         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17149         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17150         values.
17151         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17152         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17153         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17154         dropped value.
17155         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17156         dropped value.
17157         * tests/test-array_oset.c (main): Update.
17158         * tests/test-avltree_oset.c (main): Update.
17159         * tests/test-rbtree_oset.c (main): Update.
17160         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17161
17162 2007-03-13  Bruno Haible  <bruno@clisp.org>
17163
17164         * tests/test-stdbool.c (i): Update after last patch.
17165
17166 2007-03-12  Bruno Haible  <bruno@clisp.org>
17167
17168         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17169         the iswprint macro. Needed on Solaris 2.5.1.
17170
17171 2007-03-12  Bruno Haible  <bruno@clisp.org>
17172
17173         * tests/test-printf-frexp.c (main): Declare x as volatile.
17174
17175 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17176
17177         * doc/gnulib.texi (Build robot for gnulib): New section.
17178
17179 2007-03-12  Jim Meyering  <jim@meyering.net>
17180
17181         * build-aux/bootstrap: New file.
17182         * build-aux/bootstrap.conf: New file, from coreutils.
17183
17184 2007-03-11  Bruno Haible  <bruno@clisp.org>
17185
17186         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17187
17188 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17189
17190         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17191         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17192         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17193
17194 2007-03-11  Bruno Haible  <bruno@clisp.org>
17195
17196         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17197         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17198
17199 2007-03-11  Bruno Haible  <bruno@clisp.org>
17200
17201         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17202         formula. Needed for SunPRO C 5.0.
17203
17204 2007-03-11  Bruno Haible  <bruno@clisp.org>
17205
17206         * modules/long-options (Depends-on): Add getopt.
17207
17208 2007-03-11  Bruno Haible  <bruno@clisp.org>
17209
17210         * modules/modechange (Depends-on): Add stdbool.
17211
17212 2007-03-11  Bruno Haible  <bruno@clisp.org>
17213
17214         * modules/i-ring (Depends-on): Add stdbool.
17215
17216 2007-03-11  Bruno Haible  <bruno@clisp.org>
17217
17218         * modules/gc-des (Depends-on): Add stdbool.
17219
17220 2007-03-11  Bruno Haible  <bruno@clisp.org>
17221
17222         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17223
17224 2007-03-11  Bruno Haible  <bruno@clisp.org>
17225
17226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17227
17228 2007-03-11  Bruno Haible  <bruno@clisp.org>
17229
17230         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17231
17232 2007-03-11  Bruno Haible  <bruno@clisp.org>
17233
17234         * lib/vasnprintf.c (sprintf): Undefine.
17235
17236 2007-03-11  Bruno Haible  <bruno@clisp.org>
17237
17238         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17239         initializers in SunPRO C and Compaq C compilers.
17240
17241 2007-03-11  Bruno Haible  <bruno@clisp.org>
17242
17243         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17244         decrementing code ANSI C compliant.
17245
17246 2007-03-11  Bruno Haible  <bruno@clisp.org>
17247
17248         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17249         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17250
17251 2007-03-11  Bruno Haible  <bruno@clisp.org>
17252
17253         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17254         <stdbool.h> substitute doesn't pass.
17255
17256 2007-03-11  Bruno Haible  <bruno@clisp.org>
17257
17258         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17259
17260 2007-03-11  Bruno Haible  <bruno@clisp.org>
17261
17262         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17263         script, for submission to autobuild.josefsson.org.
17264
17265 2007-03-10  Bruno Haible  <bruno@clisp.org>
17266
17267         * modules/canonicalize-lgpl-tests: New file.
17268         * tests/test-canonicalize-lgpl.sh: New file.
17269         * tests/test-canonicalize-lgpl.c: New file.
17270
17271         * modules/c-strcase-tests: New file.
17272         * tests/test-c-strcase.sh: New file.
17273         * tests/test-c-strcasecmp.c: New file.
17274         * tests/test-c-strncasecmp.c: New file.
17275
17276         * modules/atexit-tests: New file.
17277         * tests/test-atexit.sh: New file.
17278         * tests/test-atexit.c: New file.
17279
17280 2007-03-10  Bruno Haible  <bruno@clisp.org>
17281
17282         * tests/test-binary-io.sh: Use temporary filenames that are not so
17283         likely to clash with those of other tests (in a parallel make).
17284         * tests/test-binary-io.c: Likewise.
17285
17286 2007-03-10  Bruno Haible  <bruno@clisp.org>
17287
17288         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17289         fallback; use #error instead.
17290         Suggested by Simon Josefsson.
17291
17292 2007-03-10  Bruno Haible  <bruno@clisp.org>
17293
17294         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17295         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17296         first and the last.
17297
17298 2007-03-10  Bruno Haible  <bruno@clisp.org>
17299
17300         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17301
17302 2007-03-10  Bruno Haible  <bruno@clisp.org>
17303
17304         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17305         "make distcheck".
17306         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17307         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17308         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17309
17310 2007-03-10  Bruno Haible  <bruno@clisp.org>
17311
17312         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17313         variable.
17314         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17315         variable.
17316
17317 2007-03-09  Eric Blake  <ebb9@byu.net>
17318         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17319
17320         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17321         types are not being provided by gnulib.
17322         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17323         types are supported.
17324
17325 2007-03-10  Bruno Haible  <bruno@clisp.org>
17326
17327         * lib/stdio_.h (__attribute__): New macro.
17328         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17329         vsprintf): Specify __attribute__ __format__ for GCC.
17330         Suggested by Eric Blake.
17331
17332 2007-03-09  Bruno Haible  <bruno@clisp.org>
17333
17334         * modules/printf-posix-tests: New file.
17335         * tests/test-printf-posix.sh: New file.
17336         * tests/test-printf-posix.c: New file.
17337
17338         * modules/printf-posix: New file.
17339         * lib/printf.c: New file.
17340         * m4/printf-posix-rpl.m4: New file.
17341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17342         REPLACE_PRINTF.
17343         * lib/stdio_.h (printf): New declaration.
17344         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17345         ____strfmon____): New macros.
17346         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17347         REPLACE_PRINTF.
17348
17349 2007-03-09  Bruno Haible  <bruno@clisp.org>
17350
17351         * tests/test-vasnprintf-posix2.sh: New file.
17352         * tests/test-vasnprintf-posix2.c: New file.
17353         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17354         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17355         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17356
17357         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17358         a locale dependent decimal point, rather than always '.'.
17359
17360 2007-03-09  Eric Blake  <ebb9@byu.net>
17361
17362         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17363         spite of platforms like Tandem/NSK that define it to -1.
17364
17365 2007-03-08  Bruno Haible  <bruno@clisp.org>
17366
17367         * modules/vprintf-posix-tests: New file.
17368         * tests/test-vprintf-posix.sh: New file.
17369         * tests/test-vprintf-posix.c: New file.
17370         * tests/test-printf-posix.h: New file.
17371
17372         * modules/vprintf-posix: New file.
17373         * lib/vprintf.c: New file.
17374         * m4/vprintf-posix.m4: New file.
17375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17376         REPLACE_VPRINTF.
17377         * lib/stdio_.h (vprintf): New declaration.
17378         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17379         REPLACE_VPRINTF.
17380
17381 2007-03-08  Bruno Haible  <bruno@clisp.org>
17382
17383         * modules/fprintf-posix-tests: New file.
17384         * tests/test-fprintf-posix.sh: New file.
17385         * tests/test-fprintf-posix.c: New file.
17386
17387         * modules/fprintf-posix: New file.
17388         * lib/fprintf.c: New file.
17389         * m4/fprintf-posix.m4: New file.
17390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17391         REPLACE_FPRINTF.
17392         * lib/stdio_.h (fprintf): New declaration.
17393         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17394         REPLACE_FPRINTF.
17395
17396 2007-03-08  Bruno Haible  <bruno@clisp.org>
17397
17398         * modules/vfprintf-posix-tests: New file.
17399         * tests/test-vfprintf-posix.sh: New file.
17400         * tests/test-vfprintf-posix.c: New file.
17401         * tests/test-fprintf-posix.h: New file.
17402         * tests/test-fprintf-posix.out: New file.
17403
17404         * modules/vfprintf-posix: New file.
17405         * lib/vfprintf.c: New file.
17406         * m4/vfprintf-posix.m4: New file.
17407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17408         REPLACE_VFPRINTF.
17409         * lib/stdio_.h (vfprintf): New declaration.
17410         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17411         REPLACE_VFPRINTF.
17412
17413 2007-03-08  Bruno Haible  <bruno@clisp.org>
17414
17415         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17416
17417 2007-03-08  Bruno Haible  <bruno@clisp.org>
17418
17419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17420         instead of 'expr' invocations.
17421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17426         Suggested by Paul Eggert.
17427
17428 2007-03-08  Bruno Haible  <bruno@clisp.org>
17429
17430         * modules/fseterr-tests: New file.
17431         * tests/test-fseterr.c: New file.
17432
17433         * modules/fseterr: New file.
17434         * lib/fseterr.h: New file.
17435         * lib/fseterr.c: New file.
17436
17437 2007-03-08  Bruno Haible  <bruno@clisp.org>
17438
17439         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17440         * lib/getopt_.h: Likewise.
17441         * lib/mbswidth.h: Likewise.
17442         * lib/setenv.h: Likewise.
17443         * lib/vasnprintf.h: Likewise.
17444         * lib/vasprintf.h: Likewise.
17445         * lib/verror.h: Likewise.
17446         * lib/xsetenv.h: Likewise.
17447         * lib/xvasprintf.h: Likewise.
17448
17449 2007-03-08  Jim Meyering  <jim@meyering.net>
17450
17451         * users.txt: Add parted.
17452
17453         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17454
17455 2007-03-07  Bruno Haible  <bruno@clisp.org>
17456
17457         * m4/printf.m4: Make the shell script snippets copy&pastable.
17458
17459 2007-03-02  Bruno Haible  <bruno@clisp.org>
17460
17461         * lib/netinet_in_.h: New file.
17462         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17463         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17464         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17465         (Depends-on): Add absolute-header.
17466         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17467         into netinet/in.h.
17468
17469 2007-03-03  Bruno Haible  <bruno@clisp.org>
17470
17471         * lib/sys_select_.h: New file.
17472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17473         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17474         * modules/sys_select (Files): Add lib/sys_select_.h.
17475         (Depends-on): Add absolute-header.
17476         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17477         into sys/select.h.
17478
17479 2007-03-02  Bruno Haible  <bruno@clisp.org>
17480
17481         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17482         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17483         values.
17484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17485         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17486         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17487         * modules/sys_socket (Depends-on): Add absolute-header.
17488         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17489         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17490         (Include): Remove requirement of inclusion of <sys/types.h>.
17491
17492 2007-03-02  Bruno Haible  <bruno@clisp.org>
17493
17494         * lib/byteswap_.h (bswap_32): Fix formula.
17495
17496 2007-03-06  Bruno Haible  <bruno@clisp.org>
17497
17498         * modules/sprintf-posix-tests: New file.
17499         * tests/test-sprintf-posix.c: New file.
17500
17501         * modules/sprintf-posix: New file.
17502         * lib/sprintf.c: New file.
17503         * m4/sprintf-posix.m4: New file.
17504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17505         REPLACE_SPRINTF.
17506         * lib/stdio_.h (sprintf): New declaration.
17507         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17508         REPLACE_SPRINTF.
17509
17510 2007-03-06  Bruno Haible  <bruno@clisp.org>
17511
17512         * modules/vsprintf-posix-tests: New file.
17513         * tests/test-vsprintf-posix.c: New file.
17514         * tests/test-sprintf-posix.h: New file.
17515
17516         * modules/vsprintf-posix: New file.
17517         * lib/vsprintf.c: New file.
17518         * m4/vsprintf-posix.m4: New file.
17519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17520         REPLACE_VSPRINTF.
17521         * lib/stdio_.h (vsprintf): New declaration.
17522         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17523         REPLACE_VSPRINTF.
17524
17525 2007-03-06  Bruno Haible  <bruno@clisp.org>
17526
17527         * modules/vsnprintf (Depend-on): Remove minmax.
17528
17529 2007-03-06  Bruno Haible  <bruno@clisp.org>
17530
17531         * modules/snprintf-posix-tests: New file.
17532         * tests/test-snprintf-posix.c: New file.
17533
17534         * modules/snprintf-posix: New file.
17535         * m4/snprintf-posix.m4: New file.
17536         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17537         gl_FUNC_SNPRINTF.
17538         (gl_FUNC_SNPRINTF): Invoke it.
17539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17540         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17541         is set.
17542         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17543
17544 2007-03-06  Bruno Haible  <bruno@clisp.org>
17545
17546         * modules/vsnprintf-posix-tests: New file.
17547         * tests/test-vsnprintf-posix.c: New file.
17548         * tests/test-snprintf-posix.h: New file.
17549
17550         * modules/vsnprintf-posix: New file.
17551         * m4/vsnprintf-posix.m4: New file.
17552         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17553         gl_FUNC_VSNPRINTF.
17554         (gl_FUNC_VSNPRINTF): Invoke it.
17555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17556         * lib/stdio_.h (vsnprintf): Define as a replacement if
17557         REPLACE_VSNPRINTF is set.
17558         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17559
17560 2007-03-06  Bruno Haible  <bruno@clisp.org>
17561
17562         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17564
17565 2007-03-06  Bruno Haible  <bruno@clisp.org>
17566
17567         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17568         (asinl): Declare also if HAVE_DECL_ASINL is set.
17569         (atanl): Declare also if HAVE_DECL_ATANL is set.
17570         (ceill): Declare also if HAVE_DECL_CEILL is set.
17571         (cosl): Declare also if HAVE_DECL_COSL is set.
17572         (expl): Declare also if HAVE_DECL_EXPL is set.
17573         (floorl): Declare also if HAVE_DECL_FLOORL is set.
17574         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17575         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17576         (logl): Declare also if HAVE_DECL_LOGL is set.
17577         (sinl): Declare also if HAVE_DECL_SINL is set.
17578         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17579         (tanl): Declare also if HAVE_DECL_TANL is set.
17580         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17582         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17583         declaration of frexpl, ldexpl.
17584         * modules/printf-frexpl (Depends-on): Add math.
17585         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17586
17587 2007-03-05  Bruno Haible  <bruno@clisp.org>
17588
17589         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17590         frexpl and ldexpl are declared.
17591         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17592
17593 2007-03-05  Bruno Haible  <bruno@clisp.org>
17594
17595         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17596         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17597
17598 2007-03-05  Bruno Haible  <bruno@clisp.org>
17599
17600         * lib/stdio_.h: Include <stddef.h>.
17601
17602 2007-03-05  Bruno Haible  <bruno@clisp.org>
17603
17604         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17605
17606 2007-03-05  Bruno Haible  <bruno@clisp.org>
17607
17608         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17609         NetBSD 4, from Ralf Wildenhues.
17610
17611 2007-03-04  Bruno Haible  <bruno@clisp.org>
17612
17613         * lib/vasprintf.h: Update #if logic for the case when the functions
17614         exist but are overridden.
17615
17616 2007-03-04  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17619         implementations: glibc-2.4 and MacOS X 10.3.
17620         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17621         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17622         * tests/test-vasprintf-posix.c (test_function): Likewise.
17623
17624 2007-03-04  Bruno Haible  <bruno@clisp.org>
17625
17626         * modules/vasprintf-posix-tests: New file.
17627         * tests/test-vasprintf-posix.c: New file.
17628
17629         * modules/vasprintf-posix: New file.
17630         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17631         defined.
17632         * m4/vasprintf-posix.m4: New file.
17633         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17634         gl_FUNC_VASPRINTF.
17635         (gl_FUNC_VASPRINTF): Invoke it.
17636         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17637         here.
17638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17639
17640 2007-03-04  Bruno Haible  <bruno@clisp.org>
17641
17642         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17643         REPLACE_GETTIMEOFDAY.
17644         * modules/sys_time (Makefile.am): Likewise.
17645         * m4/sys_time_h.m4: Likewise.
17646         * m4/gettimeofday.m4: Likewise.
17647
17648 2007-03-04  Bruno Haible  <bruno@clisp.org>
17649
17650         * modules/vasnprintf-posix-tests: New file.
17651         * tests/test-vasnprintf-posix.c: New file.
17652
17653         * modules/vasnprintf-posix: New file.
17654         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17655         printf-frexpl.h.
17656         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17657         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17658         REPLACE_VASNPRINTF is defined.
17659         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17660         gl_FUNC_VASNPRINTF.
17661         (gl_FUNC_VASNPRINTF): Invoke it.
17662         * m4/vasnprintf-posix.m4: New file.
17663         * m4/printf.m4: New file.
17664
17665 2007-03-04  Bruno Haible  <bruno@clisp.org>
17666
17667         Compile progreloc.c only if --enable-relocatable is specified.
17668         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17669         if --enable-relocatable was specified.
17670         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17671         lib_SOURCES.
17672
17673 2007-03-04  Jim Meyering  <jim@meyering.net>
17674
17675         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17676         Use it consistently, rather than enumerating errno constants.
17677
17678 2007-03-04  Bruno Haible  <bruno@clisp.org>
17679
17680         * modules/xvasprintf-tests: New file.
17681         * tests/test-xvasprintf.c: New file.
17682
17683         * modules/vasprintf-tests: New file.
17684         * tests/test-vasprintf.c: New file.
17685
17686         * modules/vasnprintf-tests: New file.
17687         * tests/test-vasnprintf.c: New file.
17688
17689         * modules/vsnprintf-tests: New file.
17690         * tests/test-vsnprintf.c: New file.
17691
17692         * modules/snprintf-tests: New file.
17693         * tests/test-snprintf.c: New file.
17694
17695 2007-03-04  Bruno Haible  <bruno@clisp.org>
17696
17697         Compile relocatable.c only if --enable-relocatable is specified.
17698         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17699         gl_RELOCATABLE_LIBRARY.
17700         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17701         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17702         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17703         gl_RELOCATABLE_LIBRARY.
17704         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17705         (Makefile.am): Remove lib_SOURCES.
17706         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17707         gl_RELOCATABLE_LIBRARY.
17708         (Makefile.am): Remove lib_SOURCES.
17709         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17710         always.
17711         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17712         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17713
17714 2007-03-04  Bruno Haible  <bruno@clisp.org>
17715
17716         * modules/argmatch-tests: New file.
17717         * tests/test-argmatch.c: New file.
17718
17719         * tests/test-allocsa.c (main): Halve the number of loop runs.
17720
17721         * modules/alloca-opt-tests: New file.
17722         * tests/test-alloca-opt.c: New file.
17723
17724 2007-03-04  Jim Meyering  <jim@meyering.net>
17725
17726         Work around difference between Linux ACLs and Solaris 10 ZFS.
17727         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17728         for EINVAL.
17729
17730 2007-03-03  Bruno Haible  <bruno@clisp.org>
17731
17732         * modules/relocatable-prog (Depends-on): Add back progreloc's
17733         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17734
17735 2007-03-03  Bruno Haible  <bruno@clisp.org>
17736
17737         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17738         * modules/relocatable-lib: New file.
17739
17740 2007-03-03  Bruno Haible  <bruno@clisp.org>
17741
17742         * modules/relocatable-prog: Renamed from modules/relocatable.
17743         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17744
17745 2007-03-03  Bruno Haible  <bruno@clisp.org>
17746
17747         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17748         m4/relocatable-lib.m4.
17749         (Depends-on): Remove 'relocatable'.
17750         (configure.ac): Add gl_RELOCATABLE_NOP.
17751
17752 2007-03-03  Bruno Haible  <bruno@clisp.org>
17753
17754         * modules/relocatable-prog-wrapper: New file.
17755         * modules/relocatable (Depends-on): Add it. Remove all other
17756         dependencies except progname.
17757         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17758
17759         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17760         (gl_FUNC_STRERROR): Nop.
17761         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17762
17763         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17764         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17765
17766         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17767         (gl_FUNC_READLINK): Update.
17768
17769         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17770
17771 2007-03-03  Bruno Haible  <bruno@clisp.org>
17772
17773         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17774         * modules/xreadlink (Depends-on): Add unistd.
17775         * modules/xreadlink-with-size (Depends-on): Likewise.
17776
17777 2007-03-03  Bruno Haible  <bruno@clisp.org>
17778
17779         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17780         extracted from gt_FUNC_SETENV.
17781         (gt_FUNC_SETENV): Remove macro.
17782         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17783         remove gt_FUNC_SETENV.
17784
17785 2007-03-03  Bruno Haible  <bruno@clisp.org>
17786
17787         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17788         ENABLE_RELOCATABLE here.
17789         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17790
17791 2007-03-03  Bruno Haible  <bruno@clisp.org>
17792
17793         * modules/rbtreehash-list-tests (Depends-on): Add progname.
17794         * tests/test-rbtreehash_list.c: Include progname.h.
17795         (main): Call set_program_name.
17796
17797         * modules/rbtree-oset-tests (Depends-on): Add progname.
17798         * tests/test-rbtree_oset.c: Include progname.h.
17799         (main): Call set_program_name.
17800
17801         * modules/rbtree-list-tests (Depends-on): Add progname.
17802         * tests/test-rbtree_list.c: Include progname.h.
17803         (main): Call set_program_name.
17804
17805         * modules/linked-list-tests (Depends-on): Add progname.
17806         * tests/test-linked_list.c: Include progname.h.
17807         (main): Call set_program_name.
17808
17809 2007-03-03  Bruno Haible  <bruno@clisp.org>
17810
17811         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17812         All uses of __restrict changed to _Restrict_.
17813         * lib/glob_.h (__restrict): Remove macro.
17814
17815 2007-03-02  Bruno Haible  <bruno@clisp.org>
17816
17817         * modules/gettext (configure.ac): Require gettext infrastructure
17818         from version 0.16.1.
17819
17820 2007-03-02  Bruno Haible  <bruno@clisp.org>
17821
17822         * modules/linkedhash-list-tests (Depends-on): Add progname.
17823         * tests/test-linkedhash_list.c: Include progname.h.
17824         (main): Call set_program_name.
17825
17826         * modules/carray-list-tests (Depends-on): Add progname.
17827         * tests/test-carray_list.c: Include progname.h.
17828         (main): Call set_program_name.
17829
17830         * modules/avltreehash-list-tests (Depends-on): Add progname.
17831         * tests/test-avltreehash_list.c: Include progname.h.
17832         (main): Call set_program_name.
17833
17834         * modules/avltree-oset-tests (Depends-on): Add progname.
17835         * tests/test-avltree_oset.c: Include progname.h.
17836         (main): Call set_program_name.
17837
17838         * modules/avltree-list-tests (Depends-on): Add progname.
17839         * tests/test-avltree_list.c: Include progname.h.
17840         (main): Call set_program_name.
17841
17842         * modules/array-oset-tests (Depends-on): Add progname.
17843         * tests/test-array_oset.c: Include progname.h.
17844         (main): Call set_program_name.
17845
17846         * modules/array-list-tests (Depends-on): Add progname.
17847         * tests/test-array_list.c: Include progname.h.
17848         (main): Call set_program_name.
17849
17850         * modules/argp-tests (Depends-on): Add progname.
17851         * tests/test-argp.c: Include argp.h first. Include progname.h.
17852         (main): Call set_program_name.
17853
17854 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
17855
17856         * doc/gnulib-tool.texi (Initial import): Reword description of
17857         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17858         limited effect even if defined after the first system include.
17859
17860 2007-03-01  Bruno Haible  <bruno@clisp.org>
17861
17862         * build-aux/config.libpath: Update to libtool-1.5.22.
17863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17864
17865 2007-03-01  Bruno Haible  <bruno@clisp.org>
17866
17867         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17868         foo_CFLAGS.
17869         Reported by Ralf Wildenhues.
17870
17871 2007-03-01  Bruno Haible  <bruno@clisp.org>
17872
17873         * build-aux/install-reloc: Remove object files left over by some
17874         compilers.
17875         Reported by Ralf Wildenhues.
17876
17877 2007-03-01  Bruno Haible  <bruno@clisp.org>
17878
17879         * build-aux/install-reloc: Break long lines.
17880
17881 2007-03-01  Bruno Haible  <bruno@clisp.org>
17882
17883         * doc/relocatable.texi: Document that it may not work on OpenBSD.
17884         Reported by Ralf Wildenhues.
17885
17886 2007-03-01  Bruno Haible  <bruno@clisp.org>
17887
17888         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17889         include ordering constraints.
17890
17891 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17892
17893         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17895         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17896         as another example.
17897         * lib/time_.h: Fix misspelling.
17898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17899         Require gl_HEADER_TIME_H_DEFAULTS.
17900         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17901         * m4/time_r.m4 (gl_TIME_R): Likewise.
17902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17903
17904 2007-03-01  Bruno Haible  <bruno@clisp.org>
17905
17906         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17907         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17908
17909 2007-03-01  Jim Meyering  <jim@meyering.net>
17910
17911         * modules/xreadlink (Maintainer): Add my name.
17912         * modules/xreadlink-with-size (Depends-on): Alphabetize.
17913
17914 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
17915             Bruno Haible  <bruno@clisp.org>
17916
17917         * build-aux/install-reloc: Compile also c-ctype.c.
17918         * build-aux/relocatable.sh.in: New file.
17919         * doc/relocatable.texi: New file.
17920         * doc/relocatable-maint.texi: New file.
17921         * doc/gnulib.texi: Include relocatable-maint.texi.
17922         * lib/progreloc.c: Include unistd.h unconditionally.
17923         * lib/relocwrapper.c: Include unistd.h unconditionally.
17924         Include c-ctype.h.
17925         (add_dotbin): Use c_tolower.
17926         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17927         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17928         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17929         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17930         to m4/relocatable-lib.m4.
17931         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17932         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17933         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17934         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17935         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17936         * modules/relocatable: New file.
17937         * modules/relocatable-lib: New file.
17938         * modules/relocatable-script: New file.
17939
17940 2007-02-28  Bruno Haible  <bruno@clisp.org>
17941
17942         Import --enable-relocatable infrastructure.
17943         * build-aux/config.libpath: New file, from GNU gettext.
17944         * build-aux/install-reloc: New file, from GNU gettext.
17945         * build-aux/reloc-ldflags: New file, from GNU gettext.
17946         * lib/relocatable.h: New file, from GNU gettext.
17947         * lib/relocatable.c: New file, from GNU gettext.
17948         * lib/relocwrapper.c: New file, from GNU gettext.
17949         * m4/relocatable.m4: New file, from GNU gettext.
17950
17951 2007-02-28  Bruno Haible  <bruno@clisp.org>
17952
17953         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17954
17955         * modules/xreadlink: New file, from GNU gettext with modifications.
17956         * lib/xreadlink.c: New file, from GNU gettext.
17957         * lib/xreadlink.h: Add comments.
17958         (xreadlink): New declaration.
17959
17960         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17961         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17962         lib/xreadlink-with-size.c.
17963         (configure.ac): Remove gl_XREADLINK invocation.
17964         (Makefile.am): Augment lib_SOURCES.
17965         * m4/xreadlink.m4: Remove file.
17966         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17967         (xreadlink_with_size): Renamed from xreadink.
17968         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17969         * modules/canonicalize (Depends-on): Replace xreadlink with
17970         xreadlink-with-size.
17971         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17972
17973 2007-02-25  Jim Meyering  <jim@meyering.net>
17974
17975         * build-aux/announce-gen: When complaining about excess arguments,
17976         list them.
17977
17978 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         * README: Document signed integer overflow situation more
17981         accurately.
17982
17983 2007-02-25  Bruno Haible  <bruno@clisp.org>
17984
17985         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17986         'a' or 'A' conversion.
17987
17988 2007-02-25  Bruno Haible  <bruno@clisp.org>
17989
17990         * modules/filename: Renamed from modules/pathname.
17991         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17992         lib/concatpath.c with lib/concat-filename.c.
17993         (Makefile.am): Update.
17994         (Include): Replace pathname.h with filename.h.
17995         * lib/filename.h: Renamed from lib/pathname.h.
17996         (concatenated_filename): Renamed from concatenated_pathname.
17997         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17998         (concatenated_filename): Renamed from concatenated_pathname.
17999         * lib/findprog.c: Include filename.h instead of pathname.h.
18000         (find_in_path): Update.
18001         * lib/javacomp.c: Include filename.h instead of pathname.h.
18002         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18003         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18004         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18005         is_oldgcj_14_13_usable, is_javac_usable): Update.
18006         * lib/javaexec.c: Include filename.h instead of pathname.h.
18007         (execute_java_class): Update.
18008         * modules/findprog: Update.
18009         * modules/javacomp: Update.
18010         * modules/javaexec: Update.
18011         * MODULES.html.sh (File system functions): Add 'filename', remove
18012         'pathname'.
18013
18014 2007-02-25  Bruno Haible  <bruno@clisp.org>
18015
18016         * modules/printf-frexpl-tests: New file.
18017         * tests/test-printf-frexpl.c: New file.
18018
18019         * modules/printf-frexpl: New file.
18020         * lib/printf-frexpl.h: New file.
18021         * lib/printf-frexpl.c: New file.
18022         * m4/printf-frexpl.m4: New file.
18023
18024 2007-02-25  Bruno Haible  <bruno@clisp.org>
18025
18026         * modules/printf-frexp-tests: New file.
18027         * tests/test-printf-frexp.c: New file.
18028
18029         * modules/printf-frexp: New file.
18030         * lib/printf-frexp.h: New file.
18031         * lib/printf-frexp.c: New file.
18032         * m4/printf-frexp.m4: New file.
18033
18034 2007-02-25  Bruno Haible  <bruno@clisp.org>
18035
18036         Assume automake >= 1.10 for the tests.
18037         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18038         * modules/arctwo-tests: Likewise.
18039         * modules/argp-tests: Likewise.
18040         * modules/avltree-list-tests: Likewise.
18041         * modules/avltree-oset-tests: Likewise.
18042         * modules/avltreehash-list-tests: Likewise.
18043         * modules/carray-list-tests: Likewise.
18044         * modules/crc-tests: Likewise.
18045         * modules/des-tests: Likewise.
18046         * modules/gc-arcfour-tests: Likewise.
18047         * modules/gc-arctwo-tests: Likewise.
18048         * modules/gc-des-tests: Likewise.
18049         * modules/gc-hmac-md5-tests: Likewise.
18050         * modules/gc-hmac-sha1-tests: Likewise.
18051         * modules/gc-md2-tests: Likewise.
18052         * modules/gc-md4-tests: Likewise.
18053         * modules/gc-md5-tests: Likewise.
18054         * modules/gc-pbkdf2-sha1-tests: Likewise.
18055         * modules/gc-rijndael-tests: Likewise.
18056         * modules/gc-sha1-tests: Likewise.
18057         * modules/gc-tests: Likewise.
18058         * modules/getaddrinfo-tests: Likewise.
18059         * modules/hmac-md5-tests: Likewise.
18060         * modules/hmac-sha1-tests: Likewise.
18061         * modules/linked-list-tests: Likewise.
18062         * modules/linkedhash-list-tests: Likewise.
18063         * modules/lock-tests: Likewise.
18064         * modules/md2-tests: Likewise.
18065         * modules/md4-tests: Likewise.
18066         * modules/md5-tests: Likewise.
18067         * modules/rbtree-list-tests: Likewise.
18068         * modules/rbtree-oset-tests: Likewise.
18069         * modules/rbtreehash-list-tests: Likewise.
18070         * modules/read-file-tests: Likewise.
18071         * modules/rijndael-tests: Likewise.
18072         * modules/stdint-tests: Likewise.
18073         * modules/tls-tests: Likewise.
18074
18075 2007-02-24  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18078         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18079         function; instead check whether isnan with a double argument links.
18080         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18081         function; instead check whether isnan with a 'long double' argument
18082         links.
18083         Reported by Eric Blake <ebb9@byu.net>.
18084
18085 2007-02-24  Bruno Haible  <bruno@clisp.org>
18086
18087         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18088         defined.
18089         * lib/isnanl.c: Remove all code. Just include isnan.c.
18090         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18091
18092 2007-02-25  Jim Meyering  <jim@meyering.net>
18093
18094         Avoid conflicting types for 'unsetenv' on FreeBSD.
18095         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18096         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18097         in stdlib.h.
18098
18099 2007-02-24  Bruno Haible  <bruno@clisp.org>
18100
18101         * modules/isnanl-nolibm-tests: New file.
18102         * tests/test-isnanl.c: New file.
18103
18104         * modules/isnanl-nolibm: New file.
18105         * lib/isnanl.h: New file.
18106         * lib/isnanl.c: New file.
18107         * m4/isnanl.m4: New file.
18108
18109 2007-02-24  Bruno Haible  <bruno@clisp.org>
18110
18111         * modules/isnan-nolibm-tests: New file.
18112         * tests/test-isnan.c: New file.
18113
18114         * modules/isnan-nolibm: New file.
18115         * lib/isnan.h: New file.
18116         * lib/isnan.c: New file.
18117         * m4/isnan.m4: New file.
18118
18119 2007-02-24  Bruno Haible  <bruno@clisp.org>
18120
18121         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18122         assume that an exponent fits in 20 bits.
18123
18124 2007-02-24  Jim Meyering  <jim@meyering.net>
18125
18126         * m4/regex.m4: Update the description of the configure-time option,
18127         --without-included-regex, to state accurately what the defaults are,
18128         and perhaps to give people an idea why using this option is risky.
18129
18130 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18131
18132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18133         loops on small arguments.  This attempts to avoid the problem
18134         Bruno Haible reported for AIX 4.3.2 in
18135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18136
18137 2007-02-23  Bruno Haible  <bruno@clisp.org>
18138
18139         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18140         Needed for help2man.
18141
18142 2007-02-23  Karl Berry  <karl@gnu.org>
18143
18144         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18145         exists, foo.h should be cvs-ignored, not committed.
18146
18147 2007-02-23  Eric Blake  <ebb9@byu.net>
18148
18149         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18150         * lib/stat-time.h (includes): Likewise.
18151         * lib/utimecmp.c (includes): Likewise.
18152         * lib/utimens.h (includes): Likewise.
18153         * lib/getdate.y (includes): Also include "timespec.h" for use
18154         internal to the module.
18155         * modules/utimens (Depends-on): Revert yesterday's patch.
18156         * modules/nanosleep (Depends-on): Add missing dependency.
18157
18158 2007-02-22  Bruno Haible  <bruno@clisp.org>
18159
18160         * lib/glob.c: Don't include getlogin_r.h.
18161
18162 2007-02-22  Jim Meyering  <jim@meyering.net>
18163
18164         * modules/utimens (Depends-on): Add timespec, required for
18165         utimens.h's inclusion of timespec.h.
18166
18167 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18168
18169         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18170         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18171         Schwab in
18172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18173         I'll try to think of a better way to fix the Solaris problem.
18174
18175         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18176         like glibc; on Solaris 10, it fails with errno == EINVAL.
18177         POSIX says the behavior is unspecified if the first argument is NULL,
18178         so play it safe and never pass NULL to the system getcwd.
18179
18180 2007-02-21  Jim Meyering  <jim@meyering.net>
18181
18182         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18183         of gettimeofday.  It would conflict with the one now always
18184         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18185         an IRIX 6.5 build failure.
18186
18187 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18188
18189         Minor fixups to port to Solaris 10 with Sun C 5.8.
18190         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18191         * modules/getcwd (Depends-on): Add dirfd.
18192         * lib/putenv.c (putenv): #undef it.
18193         (rpl_putenv): New decl.
18194         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18195
18196 2007-02-20  Bruno Haible  <bruno@clisp.org>
18197
18198         * modules/stdio-tests: New file.
18199         * tests/test-stdio.c: New file.
18200
18201         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18202         (Depends-on): Add stdio.
18203         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18204         (Include): Use <stdio.h> instead of vsnprintf.h.
18205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18206         HAVE_DECL_VSNPRINTF.
18207         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18208
18209         * modules/snprintf (Files): Remove lib/snprintf.h.
18210         (Depends-on): Add stdio.
18211         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18212         (Include): Use <stdio.h> instead of snprintf.h.
18213         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18214         HAVE_DECL_SNPRINTF.
18215         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18216         * lib/getaddrinfo.c: Likewise.
18217
18218         * modules/stdio: New file.
18219         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18220         * lib/snprintf.h: Remove file.
18221         * lib/vsnprintf.h: Remove file.
18222         * lib/.cppi-disable: Remove snprintf.h.
18223         * m4/stdio_h.m4: New file.
18224         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18225
18226 2007-02-20  Jim Meyering  <jim@meyering.net>
18227
18228         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18229         used by e.g., mingw.  From Bruno Haible.
18230
18231 2007-02-19  Bruno Haible  <bruno@clisp.org>
18232
18233         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18234         warnings.
18235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18236
18237 2007-02-19  Bruno Haible  <bruno@clisp.org>
18238
18239         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18240         from mingw users.
18241
18242 2007-02-19  Bruno Haible  <bruno@clisp.org>
18243
18244         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18245         warnings.
18246         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18247
18248 2007-02-19  Jim Meyering  <jim@meyering.net>
18249
18250         Don't use FD after a successful "fdopendir (fd)".
18251         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18252         Reset it by calling dirfd on the just-obtained DIR*.
18253
18254         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18255         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18256
18257 2007-02-18  Bruno Haible  <bruno@clisp.org>
18258
18259         * lib/readlink.c: Include <unistd.h>.
18260         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18261         HAVE_READLINK.
18262         * modules/readlink (Depends-on): Add unistd.
18263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18264         (Include): Add <unistd.h>.
18265
18266         * lib/getlogin_r.h: Remove file.
18267         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18268         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18269         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18270         HAVE_DECL_GETLOGIN_R.
18271         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18273         (Include): Use <unistd.h> instead of getlogin_r.h.
18274
18275         * lib/getcwd.h: Remove file.
18276         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18277         * lib/xgetcwd.c: Likewise.
18278         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18279         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18280         * modules/getcwd (Files): Remove lib/getcwd.h.
18281         (Depends-on): Add unistd.
18282         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18283         (Include): Use <unistd.h> instad of getcwd.h.
18284
18285         * lib/ftruncate.c: Include <unistd.h> first.
18286         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18287         Set HAVE_FTRUNCATE.
18288         * modules/ftruncate (Depends-on): Add unistd.
18289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18290
18291         * lib/fchdir.c: Include <unistd.h> first.
18292         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18294         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18295         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18296         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18297
18298         * lib/dup2.c: Include <unistd.h> first.
18299         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18300         HAVE_DUP2.
18301         * modules/dup2 (Depends-on): Add unistd.
18302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18303
18304         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18305         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18306         REPLACE_CHOWN. Don't define chown as a macro here.
18307         * modules/chown (Depends-on): Add unistd.
18308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18309
18310         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18311         Add definition for GL_LINK_WARNING.
18312         (chown, dup2): New declarations.
18313         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18314         link warning.
18315         (ftruncate): New declaration.
18316         (getcwd): New declaration, taken from old getcwd.h.
18317         (getlogin_r): New declaration, taken from old getlogin_r.h.
18318         (readlink): New declaration.
18319         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18320         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18321         (gl_PREREQ_UNISTD): Remove macro.
18322         (gl_UNISTD_MODULE_INDICATOR): New macro.
18323         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18324         many new variables. Don't set UNISTD_H.
18325         * modules/unistd (Description): Change.
18326         (Depends-on): Add link-warning.
18327         (configure.ac): Update.
18328         (Makefile.am): Create unistd.h always. Substitute many new variables
18329         into it.
18330
18331 2007-02-18  Bruno Haible  <bruno@clisp.org>
18332
18333         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18334         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18335         HAVE_GETSUBOPT.
18336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18337         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18338         * lib/getsubopt.h: Remove file.
18339         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18340         (Depends-on): Add stdlib.
18341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18342         (Includes): Use <stdlib.h> instead of getsubopt.h.
18343         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18344         Set HAVE_GETSUBOPT.
18345         * lib/getsubopt.c: Don't include getsubopt.h.
18346
18347 2007-02-18  Bruno Haible  <bruno@clisp.org>
18348
18349         * modules/fchdir (Depends-on): Add dup2.
18350
18351 2007-02-18  Bruno Haible  <bruno@clisp.org>
18352
18353         * lib/stdlib_.h: Handle glibc's special invocation convention
18354         specially.
18355
18356 2007-02-18  Bruno Haible  <bruno@clisp.org>
18357
18358         * modules/stdlib-tests: New file.
18359         * tests/test-stdlib.c: New file.
18360
18361         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18362         (Depends-on): Add stdlib.
18363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18364         (Includes): Use <stdlib.h> instead of mkstemp.h.
18365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18366         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18367         * lib/mkstemp.c: Don't include mkstemp.h.
18368         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18369         * lib/stdlib--.h: Don't include mkstemp.h.
18370
18371         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18372         (Depends-on): Add stdlib.
18373         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18374         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18375         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18376         HAVE_MKDTEMP.
18377         * lib/mkdtemp.c: Don't include mkdtemp.h.
18378         * lib/clean-temp.c: Don't include mkdtemp.h.
18379
18380         * modules/exit (Files): Remove lib/exit.h.
18381         (Depends-on): Add stdlib.
18382         (Makefile.am): Remove lib_SOURCES.
18383         (Include): Use <stdlib.h> instead of exit.h.
18384         * lib/argmatch.c: Don't include exit.h.
18385         * lib/execute.c: Likewise.
18386         * lib/pagealign_alloc.c: Likewise.
18387         * lib/pipe.c: Likewise.
18388         * lib/wait-process.c: Likewise.
18389         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18390         * lib/exitfail.c: Likewise.
18391         * lib/savewd.c: Likewise.
18392         * lib/xsetenv.c: Likewise.
18393
18394         * modules/stdlib: New file.
18395         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18396         and extra comments about mkstemp().
18397         * lib/exit.h: Remove file.
18398         * lib/mkdtemp.h: Remove file.
18399         * lib/mkstemp.h: Remove file.
18400         * m4/stdlib_h.m4: New file.
18401         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18402
18403 2007-02-18  Bruno Haible  <bruno@clisp.org>
18404
18405         * modules/math-tests: New file.
18406         * tests/test-math.c: New file.
18407
18408         * modules/math: New file.
18409         * modules/mathl (Files): Remove lib/mathl.h.
18410         (Depends-on): Add math.
18411         (Makefile.am): Don't mention mathl.h.
18412         (Include): Use <math.h> instead of mathl.h.
18413         * lib/math_.h: New file.
18414         * lib/mathl.h: Remove file.
18415         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18416         mathl.h.
18417         * lib/asinl.c: Likewise.
18418         * lib/atanl.c: Likewise.
18419         * lib/ceill.c: Likewise.
18420         * lib/cosl.c: Likewise.
18421         * lib/expl.c: Likewise.
18422         * lib/floorl.c: Likewise.
18423         * lib/frexpl.c: Likewise.
18424         * lib/ldexpl.c: Likewise.
18425         * lib/logl.c: Likewise.
18426         * lib/sincosl.c: Likewise.
18427         * lib/sinl.c: Likewise.
18428         * lib/sqrtl.c: Likewise.
18429         * lib/tanl.c: Likewise.
18430         * lib/trigl.c: Likewise.
18431         * m4/math_h.m4: New file.
18432         * MODULES.html.sh (Mathematics): Add math.
18433
18434 2007-02-17  Bruno Haible  <bruno@clisp.org>
18435
18436         * modules/wctype-tests: New file.
18437         * tests/test-wctype.c: New file.
18438
18439         * modules/wchar-tests: New file.
18440         * tests/test-wchar.c: New file.
18441
18442         * modules/unistd-tests: New file.
18443         * tests/test-unistd.c: New file.
18444
18445         * modules/time-tests: New file.
18446         * tests/test-time.c: New file.
18447
18448         * modules/sysexits-tests: New file.
18449         * tests/test-sysexits.c: New file.
18450
18451         * modules/sys_time-tests: New file.
18452         * tests/test-sys_time.c: New file.
18453
18454         * modules/sys_stat-tests: New file.
18455         * tests/test-sys_stat.c: New file.
18456
18457         * modules/sys_socket-tests: New file.
18458         * tests/test-sys_socket.c: New file.
18459
18460         * modules/sys_select-tests: New file.
18461         * tests/test-sys_select.c: New file.
18462
18463         * modules/string-tests: New file.
18464         * tests/test-string.c: New file.
18465
18466         * modules/stdbool-tests: New file.
18467         * tests/test-stdbool.c: New file.
18468
18469         * modules/netinet_in-tests: New file.
18470         * tests/test-netinet_in.c: New file.
18471
18472         * modules/inttypes-tests: New file.
18473         * tests/test-inttypes.c: New file.
18474
18475         * modules/fcntl-tests: New file.
18476         * tests/test-fcntl.c: New file.
18477
18478         * modules/byteswap-tests: New file.
18479         * tests/test-byteswap.c: New file.
18480
18481         * modules/arpa_inet-tests: New file.
18482         * tests/test-arpa_inet.c: New file.
18483
18484 2007-02-17  Bruno Haible  <bruno@clisp.org>
18485
18486         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18487         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18488         if the corresponding module is not enabled. Emit link warnings if
18489         the function is used nevertheless.
18490         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18491         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18492         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18493         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18494         * modules/inttypes (Depends-on): Add link-warning.
18495         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18496         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18497         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18498         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18499         * modules/imaxdiv (configure.ac): Likewise.
18500         * modules/strtoimax (configure.ac): Likewise.
18501         * modules/strtoumax (configure.ac): Likewise.
18502
18503 2007-02-17  Bruno Haible  <bruno@clisp.org>
18504
18505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18506         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18507         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18508         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18509
18510 2007-02-17  Bruno Haible  <bruno@clisp.org>
18511
18512         * modules/link-warning: New file.
18513         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18514         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18515         * modules/string (Depends-on): Add link-warning.
18516         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18517         string.h.
18518         * MODULES.html.sh (Support for building libraries and executables): Add
18519         link-warning.
18520
18521 2007-02-17  Bruno Haible  <bruno@clisp.org>
18522
18523         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18524         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18525         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18526         long lines.
18527
18528 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18529             Bruno Haible  <bruno@clisp.org>
18530
18531         * modules/tmpfile: New file.
18532         * lib/tmpfile.c: New file.
18533         * m4/tmpfile.m4: New file.
18534         * MODULES.html.sh (func_all_modules): New section "Input/output".
18535
18536 2007-02-15  Bruno Haible  <bruno@clisp.org>
18537
18538         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18539         (supports_delete_on_close): New function.
18540         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18541
18542 2007-02-14  Bruno Haible  <bruno@clisp.org>
18543
18544         * modules/mbspcasecmp-tests: New file.
18545         * tests/test-mbspcasecmp.sh: New file.
18546         * tests/test-mbspcasecmp.c: New file.
18547
18548         New module mbspcasecmp.
18549         * modules/mbspcasecmp: New file.
18550         * lib/mbspcasecmp.c: New file.
18551         * lib/string_.h (strncasecmp): Change warning message.
18552         (mbspcasecmp): New declaration.
18553         * m4/mbspcasecmp.m4: New file.
18554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18555         GNULIB_MBSPCASECMP.
18556         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18557         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18558
18559 2007-02-14  Bruno Haible  <bruno@clisp.org>
18560
18561         * modules/mbsncasecmp-tests: New file.
18562         * tests/test-mbsncasecmp.sh: New file.
18563         * tests/test-mbsncasecmp.c: New file.
18564
18565         New module mbsncasecmp.
18566         * modules/mbsncasecmp: New file.
18567         * lib/mbsncasecmp.c: New file.
18568         * lib/string_.h (mbsncasecmp): New declaration.
18569         * m4/mbsncasecmp.m4: New file.
18570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18571         GNULIB_MBSNCASECMP.
18572         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18573         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18574
18575 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18576
18577         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18578         Verify that it doesn't overlap with our flags.
18579         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18580         do not have the desired effect in multibyte locales; instead, use
18581         mbscasecmp.
18582         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18583         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18584         we don't require GNU fnmatch ourselves (if our users require it, they
18585         should do so explicitly).
18586
18587         Fix regex code so it doesn't rely on strcasecmp.
18588         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18589         Otherwise, include gnulib's langinfo.h.
18590         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18591         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18592         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18593         * modules/regex (FILES): Remove m4/codeset.m4.
18594         (Depends-on): Add localcharset.  Remove strcase.
18595
18596 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18597
18598         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18599         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18600
18601 2007-02-13  Bruno Haible  <bruno@clisp.org>
18602
18603         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18605
18606 2007-02-12  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18609         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18610         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18611         time warning rather than a link error.
18612
18613 2007-02-12  Bruno Haible  <bruno@clisp.org>
18614
18615         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18618
18619 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18620
18621         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18622         args, not 2.
18623
18624 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18625
18626         New module 'time', so that apps can include <time.h> as per
18627         POSIX and GNU instead of separate include files like time_r.h
18628         and timegm.h.  This implementation tries out a simpler approach
18629         for replacing decls in standard include files (as compared to
18630         the string module), somewhat as an experiment.
18631
18632         * config/srclist.txt: Comment out mktime.c for now.
18633         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18634         since it doesn't apply any more.  Use generic wording instead.
18635         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18636         'time'.
18637         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18638         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18639         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18640         Don't include <sys/types.h>; no longer needed since we assume C89.
18641         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18642         * lib/strftime.c: Likewise.
18643         * lib/time_r.c: Likewise.
18644         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18645         * lib/nanosleep.c: Include <time.h> first, to check interface.
18646         * lib/strptime.c: Likewise.
18647         * lib/time_r.c: Likewise.
18648         * lib/timegm.c: Likewise.
18649         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18650         needed.
18651         * lib/timegm.c: Don't include timegm.h; no longer needed.
18652         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18653         time.h now handles any problems in that area.
18654         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18655         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18656         that time.h defines struct timespec.
18657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18658         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18659         handles that.
18660         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18661         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18662         needed.  Set REPLACE_LOCALTIME.
18663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18664         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18665         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18666         nanosleep; time_h.m4 now does that.  Don't require
18667         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18668         module handles this now.
18669         * modules/getdate (Depends-on): Remove timespec.  Add time.
18670         * modules/nanosleep (Depends-on): Likewise.
18671         * modules/stat-time (Depends-on): Likewise.
18672         * modules/nanosleep (Include): Include time.h, not timespec.h.
18673         * modules/strptime (Files): Remove lib/strptime.h.
18674         (Depends-on): Add extensions, time.
18675         (Include): Include time.h, not strptime.h.
18676         * modules/time_r (Files): Remove lib/time_r.h.
18677         (Depends-on): Add time.
18678         (Include): Include time.h, not time_r.h.
18679         * modules/timegm: Likewise.
18680         * modules/timespec (Description): Now does timespec-related decls
18681         of our own, instead of struct timespec itself.
18682         (Depends-on): Add time; remove extensions.
18683         (Maintainer): Add self.
18684         * modules/utimecmp (Depends-on): Add time; remove timespec.
18685         * modules/utimens (Depends-on): Likewise.
18686         * modules/xnanosleep (Depends-on): Likewise.
18687
18688 2007-02-11  Bruno Haible  <bruno@clisp.org>
18689
18690         * lib/c-strstr.c: Include allocsa.h.
18691         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18692         * lib/c-strcasestr.c: Include allocsa.h.
18693         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18694         * lib/strcasestr.c: Include allocsa.h.
18695         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18696         * lib/mbsstr.c: Include allocsa.h.
18697         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18698         allocsa/freesa instead of malloc/free.
18699         * lib/mbscasestr.c: Include allocsa.h.
18700         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18701         allocsa/freesa instead of malloc/free.
18702         * modules/c-strstr (Depends-on): Add allocsa.
18703         * modules/c-strcasestr (Depends-on): Likewise.
18704         * modules/strcasestr (Depends-on): Likewise.
18705         * modules/mbsstr (Depends-on): Likewise.
18706         * modules/mbscasestr (Depends-on): Likewise.
18707
18708 2007-02-11  Bruno Haible  <bruno@clisp.org>
18709
18710         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18711
18712         * modules/mbsspn-tests: New file.
18713         * tests/test-mbsspn.sh: New file.
18714         * tests/test-mbsspn.c: New file.
18715
18716 2007-02-11  Bruno Haible  <bruno@clisp.org>
18717
18718         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18719
18720         * modules/mbspbrk-tests: New file.
18721         * tests/test-mbspbrk.sh: New file.
18722         * tests/test-mbspbrk.c: New file.
18723
18724 2007-02-11  Bruno Haible  <bruno@clisp.org>
18725
18726         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18727         unneeded cast.
18728
18729         * modules/mbscspn-tests: New file.
18730         * tests/test-mbscspn.sh: New file.
18731         * tests/test-mbscspn.c: New file.
18732
18733 2007-02-11  Bruno Haible  <bruno@clisp.org>
18734
18735         * modules/mbscasecmp-tests: New file.
18736         * tests/test-mbscasecmp.sh: New file.
18737         * tests/test-mbscasecmp.c: New file.
18738
18739 2007-02-11  Bruno Haible  <bruno@clisp.org>
18740
18741         Ensure O(n) worst-case complexity of mbscasestr.
18742         * lib/mbscasestr.c: Include stdbool.h.
18743         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18744         functions.
18745         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18746         the bookkeeping indicates that it's worth it.
18747         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18748
18749         * modules/mbscasestr-tests: New file.
18750         * tests/test-mbscasestr1.c: New file.
18751         * tests/test-mbscasestr2.sh: New file.
18752         * tests/test-mbscasestr2.c: New file.
18753         * tests/test-mbscasestr3.sh: New file.
18754         * tests/test-mbscasestr3.c: New file.
18755         * tests/test-mbscasestr4.sh: New file.
18756         * tests/test-mbscasestr4.c: New file.
18757         * m4/locale-tr.m4: New file.
18758
18759 2007-02-11  Bruno Haible  <bruno@clisp.org>
18760
18761         Ensure O(n) worst-case complexity of mbsstr.
18762         * lib/mbsstr.c: Include stdbool.h.
18763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18764         functions.
18765         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18766         bookkeeping indicates that it's worth it.
18767         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18768
18769         * modules/mbsstr-tests: New file.
18770         * tests/test-mbsstr1.c: New file.
18771         * tests/test-mbsstr2.sh: New file.
18772         * tests/test-mbsstr2.c: New file.
18773         * tests/test-mbsstr3.sh: New file.
18774         * tests/test-mbsstr3.c: New file.
18775         * m4/locale-fr.m4: New file.
18776
18777 2007-02-11  Bruno Haible  <bruno@clisp.org>
18778
18779         * lib/mbsrchr.c (mbsrchr): Fix bug.
18780
18781         * modules/mbsrchr-tests: New file.
18782         * tests/test-mbsrchr.sh: New file.
18783         * tests/test-mbsrchr.c: New file.
18784
18785 2007-02-11  Bruno Haible  <bruno@clisp.org>
18786
18787         * lib/mbschr.c (mbschr): Fix bug.
18788
18789         * modules/mbschr-tests: New file.
18790         * tests/test-mbschr.sh: New file.
18791         * tests/test-mbschr.c: New file.
18792         * m4/locale-zh.m4: New file.
18793
18794 2007-02-11  Bruno Haible  <bruno@clisp.org>
18795
18796         Support for copying multibyte string iterators.
18797         * lib/mbiter.h: Include <string.h>.
18798         (mbiter_multi_copy): New function.
18799         (mbi_copy): New macro.
18800         * lib/mbuiter.h: Include <string.h>.
18801         (mbuiter_multi_copy): New function.
18802         (mbui_copy): New macro.
18803
18804 2007-02-11  Bruno Haible  <bruno@clisp.org>
18805
18806         New module mbslen.
18807         * modules/mbslen: New file.
18808         * lib/mbslen.c: New file.
18809         * lib/string_.h (mbslen): New declaration.
18810         * m4/mbslen.m4: New file.
18811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18812         GNULIB_MBSLEN.
18813         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18814         * MODULES.html.sh (Internationalization functions): Add mbslen.
18815
18816 2007-02-11  Bruno Haible  <bruno@clisp.org>
18817
18818         Ensure O(n) worst-case complexity of strcasestr substitute.
18819         * lib/strcasestr.c: Include stdbool.h.
18820         (knuth_morris_pratt): New function.
18821         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18822         bookkeeping indicates that it's worth it.
18823         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18824
18825         * modules/strcasestr-tests: New file.
18826         * tests/test-strcasestr.c: New file.
18827
18828 2007-02-11  Bruno Haible  <bruno@clisp.org>
18829
18830         Ensure O(n) worst-case complexity of c_strcasestr.
18831         * lib/c-strcasestr.c: Include stdbool.h, string.h.
18832         (knuth_morris_pratt): New function.
18833         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18834         the bookkeeping indicates that it's worth it.
18835         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18836
18837         * modules/c-strcasestr-tests: New file.
18838         * tests/test-c-strcasestr.c: New file.
18839
18840 2007-02-11  Bruno Haible  <bruno@clisp.org>
18841
18842         Ensure O(n) worst-case complexity of c_strstr.
18843         * lib/c-strstr.c: Include stdbool.h, string.h.
18844         (knuth_morris_pratt): New function.
18845         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18846         bookkeeping indicates that it's worth it.
18847         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18848
18849         * lib/c-strstr.c: Complete rewrite for maintainability.
18850
18851         * modules/c-strstr-tests: New file.
18852         * tests/test-c-strstr.c: New file.
18853
18854 2007-02-11  Bruno Haible  <bruno@clisp.org>
18855
18856         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18857         5.2.1 and earlier, whereby \055 was treated just like the range
18858         delimiter '-'.
18859         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18860
18861 2007-02-08  Bruno Haible  <bruno@clisp.org>
18862
18863         * modules/regex (Depends-on): Add stdbool.
18864         Reported by Dalibor Topic <robilad@kaffe.org>.
18865
18866 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18867
18868         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18869         Prefer returning from main to exiting from it.
18870         Remove unnecessary parens after sizeof.
18871
18872 2007-02-05  Bruno Haible  <bruno@clisp.org>
18873
18874         New module mbssep.
18875         * modules/mbssep: New file.
18876         * lib/mbssep.c: New file.
18877         * lib/string_.h (strsep): Add a conditional link warning.
18878         (mbssep): New declaration.
18879         * m4/mbssep.m4: New file.
18880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18881         GNULIB_MBSSEP.
18882         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18883         * MODULES.html.sh (Internationalization functions): Add mbssep.
18884
18885 2007-02-05  Bruno Haible  <bruno@clisp.org>
18886
18887         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18888         Optimize search in case of 1 delimiter.
18889
18890 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18891
18892         * lib/acl.h: Include sys/types.h before sys/acl.h.
18893
18894 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18895
18896         Merge upstream fix for glibc bugzilla #3957:
18897
18898         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
18899
18900         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18901         bit for RE_HAT_LISTS_NOT_NEWLINE.
18902         (build_charclass_op): Remove bogus comment.
18903
18904 2007-02-05  Simon Josefsson  <simon@josefsson.org>
18905
18906         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18907
18908 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18909
18910         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18911         * lib/memmem.c [!defined _LIBC]: Include config.h.
18912
18913 2007-02-04  Bruno Haible  <bruno@clisp.org>
18914
18915         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18916         warning message.
18917
18918 2007-02-04  Bruno Haible  <bruno@clisp.org>
18919
18920         New module mbstok_r.
18921         * modules/mbstok_r: New file.
18922         * lib/mbstok_r.c: New file.
18923         * lib/string_.h (strtok_r): Change argument names to match the
18924         comments. Add a conditional link warning.
18925         (mbstok_r): New declaration.
18926         * m4/mbstok_r.m4: New file.
18927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18928         GNULIB_MBSTOK_R.
18929         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18930         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18931
18932 2007-02-04  Bruno Haible  <bruno@clisp.org>
18933
18934         New module mbsspn.
18935         * modules/mbsspn: New file.
18936         * lib/mbsspn.c: New file.
18937         * lib/string_.h (strspn): Add a conditional link warning.
18938         (mbsspn): New declaration.
18939         * m4/mbsspn.m4: New file.
18940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18941         GNULIB_MBSSPN.
18942         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18943         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18944
18945 2007-02-04  Bruno Haible  <bruno@clisp.org>
18946
18947         New module mbspbrk.
18948         * modules/mbspbrk: New file.
18949         * lib/mbspbrk.c: New file.
18950         * lib/string_.h (strpbrk): Add a conditional link warning.
18951         (mbspbrk): New declaration.
18952         * m4/mbspbrk.m4: New file.
18953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18954         GNULIB_MBSPBRK.
18955         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18956         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18957
18958 2007-02-04  Bruno Haible  <bruno@clisp.org>
18959
18960         New module mbscspn.
18961         * modules/mbscspn: New file.
18962         * lib/mbscspn.c: New file.
18963         * lib/string_.h (strcspn): Add a conditional link warning.
18964         (mbscspn): New declaration.
18965         * m4/mbscspn.m4: New file.
18966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18967         GNULIB_MBSCSPN.
18968         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18969         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18970
18971 2007-02-04  Bruno Haible  <bruno@clisp.org>
18972
18973         New module mbscasestr, reduced goal of strcasestr.
18974         * modules/mbscasestr: New file.
18975         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18976         (mbscasestr): Renamed from strcasestr.
18977         * lib/strcasestr.c: Don't include mbuiter.h.
18978         (strcasestr): Remove support for multibyte locales.
18979         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18980         Change the conditional link warning.
18981         (mbscasestr): New declaration.
18982         * m4/mbscasestr.m4: New file.
18983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18984         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18985         REPLACE_STRCASESTR.
18986         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18988         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18989         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18990         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18991         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18992         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18993         (Depends-on): Remove mbuiter.
18994         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18995
18996 2007-02-04  Bruno Haible  <bruno@clisp.org>
18997
18998         Simplify handling of strncasecmp.
18999         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19000         the conditional link warning.
19001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19002         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19003         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19004         * modules/strcase (configure.ac): Don't invoke
19005         gl_STRING_MODULE_INDICATOR.
19006         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19007
19008 2007-02-04  Bruno Haible  <bruno@clisp.org>
19009
19010         New module mbscasecmp, reduced goal of strcasecmp.
19011         * modules/mbscasecmp: New file.
19012         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19013         (mbscasecmp): Renamed from strcasecmp.
19014         * lib/strcasecmp.c: Don't include mbuiter.h.
19015         (strcasecmp): Remove support for multibyte locales.
19016         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19017         Change the conditional link warning.
19018         (mbscasecmp): New declaration.
19019         * m4/mbscasecmp.m4: New file.
19020         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19021         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19022         REPLACE_STRCASECMP.
19023         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19025         GNULIB_MBSCASECMP.
19026         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19027         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19028         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19029         (Depends-on): Remove mbuiter.
19030         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19031
19032 2007-02-04  Bruno Haible  <bruno@clisp.org>
19033
19034         New module mbsstr. Remove module strstr.
19035         * modules/mbsstr: New file.
19036         * modules/strstr: Remove file.
19037         * lib/mbsstr.c: Renamed from lib/strstr.c.
19038         (mbsstr): Renamed from strstr.
19039         * lib/string_.h (strstr): Remove declaration. Change the conditional
19040         link warning.
19041         (mbsstr): New declaration.
19042         * m4/mbsstr.m4: New file.
19043         * m4/strstr.m4: Remove file.
19044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19045         REPLACE_STRSTR.
19046         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19047         Don't initialize GNULIB_STRSTR.
19048         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19049         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19050         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19051         (Support for systems lacking ANSI C 89): Remove strstr.
19052
19053 2007-02-04  Bruno Haible  <bruno@clisp.org>
19054
19055         New module mbsrchr.
19056         * modules/mbsrchr: New file.
19057         * lib/mbsrchr.c: New file.
19058         * lib/string_.h (strrchr): Add a conditional link warning.
19059         (mbsrchr): New declaration.
19060         * m4/mbsrchr.m4: New file.
19061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19062         GNULIB_MBSRCHR.
19063         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19064         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19065
19066 2007-02-04  Bruno Haible  <bruno@clisp.org>
19067
19068         New module mbschr.
19069         * modules/mbschr: New file.
19070         * lib/mbschr.c: New file.
19071         * lib/string_.h (strchr): Add a conditional link warning.
19072         (mbschr): New declaration.
19073         * m4/mbschr.m4: New file.
19074         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19075         GNULIB_MBSCHR.
19076         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19077         * MODULES.html.sh (Internationalization functions): Add mbschr.
19078
19079 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19080
19081         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19082
19083         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19084
19085 2007-02-04  Bruno Haible  <bruno@clisp.org>
19086
19087         New module description section 'configure.ac-early'.
19088         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19089         (func_get_autoconf_early_snippet): New function.
19090         (func_import, func_create_testdir): Use it. Remove special cases for
19091         modules 'extensions' and 'lock'.
19092         * modules/extensions (configure.ac-early): Require
19093         gl_USE_SYSTEM_EXTENSIONS.
19094         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19095
19096 2007-02-04  Bruno Haible  <bruno@clisp.org>
19097
19098         Make use of gcj-4.3's -fsource and -ftarget option.
19099         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19100         and if so try the options -fsource and -ftarget.
19101         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19102         source_version, ftarget_option, target_version arguments.
19103         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19104         (is_envjavac_oldgcj_14_14_usable): Renamed from
19105         is_envjavac_gcj_14_14_usable.
19106         (is_envjavac_oldgcj_14_13_usable): Renamed from
19107         is_envjavac_gcj_14_13_usable.
19108         (is_gcj_present): Update.
19109         (is_gcj_43, is_gcj43_usable): New functions.
19110         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19111         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19112         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19113         try the options -fsource and -ftarget.
19114
19115 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19118         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19119         larger value.
19120
19121 2007-02-03  Jim Meyering  <jim@meyering.net>
19122
19123         Give tools a better chance to allocate space for very large buffers.
19124         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19125
19126         Make pwd and readlink work also when run with an unreadable parent dir
19127         on systems with openat support.
19128         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19129         provided getcwd function, even when we have openat support.
19130         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19131
19132 2007-02-02  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19135         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19136         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19137         portability problems if one of these functions is only used on specific
19138         platforms.
19139         Reported by Paul Eggert.
19140
19141 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19142
19143         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19144         is causing more trouble than it's curing.
19145         * lib/regex_internal.h (__mempcpy): Remove.
19146         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19147         (and make the code a tad smaller to boot).
19148         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19149
19150 2007-02-02  Jim Meyering  <jim@meyering.net>
19151
19152         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19153         section, not in the Makefile.am: one.
19154
19155 2007-02-02  Eric Blake  <ebb9@byu.net>
19156
19157         * lib/strchrnul.c: Always include config.h first.
19158
19159         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19160         gnulib strstr is not necessary here.
19161
19162 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19163
19164         * m4/socklen.m4: Fix typo.
19165
19166 2007-02-02  Eric Blake  <ebb9@byu.net>
19167
19168         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19169         * modules/netinet_in (Makefile.am): Likewise.
19170
19171 2007-02-01  Bruno Haible  <bruno@clisp.org>
19172
19173         * lib/string_.h (GL_LINK_WARNING): New macro.
19174         (strcasecmp, strstr, strcasestr): If provided by the system,
19175         conditionally define as a macro that leads to a warning instead of to
19176         an error.
19177         (strncasecmp): Conditionally define as a macro that leads to a warning.
19178
19179 2007-02-01  Karl Berry  <karl@gnu.org>
19180
19181         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19182
19183 2007-02-01  Bruno Haible  <bruno@clisp.org>
19184
19185         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19186         renamings.
19187
19188 2007-02-01  Eric Blake  <ebb9@byu.net>
19189
19190         * modules/regex (Depends-on): Revert dependence on mempcpy.
19191         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19192         module's definition of mempcpy.
19193         Reported by Paul Eggert.
19194
19195 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19196
19197         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19198         the symbol XYZ before redefining it.  This fixes a problem with
19199         programs that don't use XYZ, when compiled on systems that define
19200         XYZ to something else.
19201
19202 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19203
19204         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19205         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19206         writeable to group or other and (2) is intended to have a special
19207         mode bit that is set or cleared.  In such a case, the directory
19208         should be neither group- nor other-writeable until the special
19209         mode bits are right.
19210
19211 2007-01-31  Eric Blake  <ebb9@byu.net>
19212
19213         * modules/mountlist (Depends-on): Add strstr.
19214
19215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19216         bug.
19217         * modules/string (Makefile.am): Remove redundant replacement.
19218         * modules/regex (Depends-on): Add mempcpy.
19219
19220 2007-01-31  Bruno Haible  <bruno@clisp.org>
19221
19222         New module description field 'Link'.
19223         * gnulib-tool (func_usage): Document --extract-link-directive.
19224         (sed_extract_prog): Recognize 'Link' directive.
19225         (func_get_link_directive): New function.
19226         (func_import): Show summary of link directives.
19227         Handle --extract-link-directive option.
19228         * modules/acl (Link): New section.
19229         * modules/clock-time (Link): New section.
19230         * modules/euidaccess (Link): New section.
19231         * modules/gettext (Link): New section.
19232         * modules/iconv (Link): New section.
19233         * modules/lock (Link): New section.
19234         * modules/nanosleep (Link): New section.
19235         * modules/readline (Link): New section.
19236
19237 2007-01-27  Bruno Haible  <bruno@clisp.org>
19238
19239         Enforce the use of gnulib modules for unportable <string.h> functions.
19240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19241         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19242         (gl_HEADER_STRING_H_BODY): Require it.
19243         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19244         the symbol XYZ to one that gives a link error.
19245         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19246         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19247         * modules/mempcpy (configure.ac): Likewise.
19248         * modules/memrchr (configure.ac): Likewise.
19249         * modules/stpcpy (configure.ac): Likewise.
19250         * modules/stpncpy (configure.ac): Likewise.
19251         * modules/strcase (configure.ac): Likewise.
19252         * modules/strcasestr (configure.ac): Likewise.
19253         * modules/strchrnul (configure.ac): Likewise.
19254         * modules/strdup (configure.ac): Likewise.
19255         * modules/strndup (configure.ac): Likewise.
19256         * modules/strnlen (configure.ac): Likewise.
19257         * modules/strpbrk (configure.ac): Likewise.
19258         * modules/strsep (configure.ac): Likewise.
19259         * modules/strstr (configure.ac): Likewise.
19260         * modules/strtok_r (configure.ac): Likewise.
19261
19262 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19263
19264         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19265
19266 2007-01-30  Jim Meyering  <jim@meyering.net>
19267
19268         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19269
19270 2007-01-29  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19273         * lib/execute.c: Likewise.
19274         * lib/pipe.c: Likewise.
19275         * lib/printf-args.h: Likewise.
19276         * lib/printf-args.c: Likewise.
19277         * lib/printf-parse.c: Likewise.
19278         * lib/vasnprintf.c: Likewise.
19279
19280 2007-01-29  Eric Blake  <ebb9@byu.net>
19281
19282         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19283         declaration.
19284
19285 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19286
19287         * lib/strptime.h (strptime): Use 'restrict' for args where
19288         POSIX requires this.
19289         * lib/strptime.c (strptime): Likewise.
19290         Change license notice from LGPL to GPL, since gnulib-tool will
19291         change this as needed.
19292         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19293         defined.
19294         Include "strptime.h" first, to check interface.
19295         Do not #undef _LIBC and _NL_CURRENT.
19296         Do not include <stdlib.h>; no longer needed.
19297         Include "time_r.h" and declare ptime_locale_status
19298         only if _LIBC is not defined.
19299         (__P): Remove unused macro.
19300         (match_string): Bring back glibc version, but use it only if _LIBC
19301         is defined.
19302         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19303         Remove unnecessary assertion and abort() call.
19304         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19305         * m4/strptime.m4: Fix serial number comment.
19306         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19307         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19308         (Depends-on): Add time_r.
19309
19310 2007-01-29  Bruno Haible  <bruno@clisp.org>
19311
19312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19313         strptime.
19314         * modules/strptime (Depends-on): Add stdbool.
19315         * lib/strptime.h: Include <time.h> always. Add comments.
19316
19317 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19318
19319         * modules/strptime: New file.
19320         * lib/strptime.h: New file.
19321         * lib/strptime.c: New file.
19322         * m4/strptime.m4: New file.
19323
19324 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19325
19326         * MODULES.html.sh: New module mpsort.
19327         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19328
19329         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19330         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19332         All uses changed.
19333         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19334         All uses changed.
19335         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19336         to _Restrict_.
19337         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19338         the parameter matches the prototype.
19339
19340 2007-01-28  Jim Meyering  <jim@meyering.net>
19341
19342         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19343         sys/time.h here, reverting that part of the previous patch:
19344         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19345
19346 2007-01-28  Bruno Haible  <bruno@clisp.org>
19347
19348         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19349         value of $(SYS_TIME_H).
19350         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19351         remove it conditionally, too. [added by Jim Meyering]
19352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19354         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19355         GETTIMEOFDAY_REPLACEMENT to 1.
19356
19357 2007-01-28  Bruno Haible  <bruno@clisp.org>
19358
19359         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19360         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19362         Set UNISTD_H instead of UNISTD_H2.
19363         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19364
19365 2007-01-28  Bruno Haible  <bruno@clisp.org>
19366
19367         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19368         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19369
19370 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19371
19372         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19373         (func_create_testdir): Ensure C locale for `grep' and `tr'
19374         character ranges.
19375         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19376         ACLOCAL_AMFLAGS parsing state machine.
19377
19378 2007-01-27  Bruno Haible  <bruno@clisp.org>
19379
19380         * modules/unistr/base: Update.
19381
19382 2007-01-27  Bruno Haible  <bruno@clisp.org>
19383
19384         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19385         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19386         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19387         modules/unistr/u32-mbtouc.
19388         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19389         * lib/unistr.h: Update.
19390         * lib/linebreak.c: Update.
19391         * modules/unistr/u32-mbtouc: Renamed from
19392         modules/unistr/u32-mbtouc-safe.
19393         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19394         * lib/unistr.h: Update.
19395         * lib/unistr/u32-to-u8.c: Update.
19396         * lib/unistr/u32-to-u16.c: Update.
19397
19398 2007-01-27  Bruno Haible  <bruno@clisp.org>
19399
19400         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19401         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19402         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19403         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19404         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19405         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19406         modules/unistr/u16-mbtouc.
19407         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19408         * lib/unistr.h: Update.
19409         * lib/linebreak.c: Update.
19410         * modules/linebreak: Update.
19411         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19412         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19413         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19414         * modules/unistr/u16-mbtouc: Renamed from
19415         modules/unistr/u16-mbtouc-safe.
19416         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19417         * lib/unistr.h: Update.
19418         * lib/unistr/u16-to-u8.c: Update.
19419         * modules/unistr/u16-to-u8: Update.
19420         * lib/unistr/u16-to-u32.c: Update.
19421         * modules/unistr/u16-to-u32: Update.
19422
19423 2007-01-27  Bruno Haible  <bruno@clisp.org>
19424
19425         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19426         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19427         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19428         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19429         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19430         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19431         modules/unistr/u8-mbtouc.
19432         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19433         * lib/unistr.h: Update.
19434         * lib/striconveh.c: Update.
19435         * modules/striconveh: Update.
19436         * lib/linebreak.c: Update.
19437         * modules/linebreak: Update.
19438         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19439         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19440         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19441         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19442         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19443         * lib/unistr.h: Update.
19444         * lib/striconveh.c: Update.
19445         * modules/striconveh: Update.
19446         * lib/unistr/u8-to-u16.c: Update.
19447         * modules/unistr/u8-to-u16: Update.
19448         * lib/unistr/u8-to-u32.c: Update.
19449         * modules/unistr/u8-to-u32: Update.
19450
19451 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19452
19453         Sync from Libtool.
19454         * lib/argz.c: Do not include strings.h nor memory.h, include
19455         string.h unconditionally.  Patch by Simon Josefsson.
19456
19457 2007-01-27  Bruno Haible  <bruno@clisp.org>
19458
19459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19460         from gl_HEADER_STRING_H_BODY.
19461         (gl_HEADER_STRING_H_BODY): Require it.
19462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19463         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19464         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19465         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19467         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19469         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19470         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19472         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19473         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19474         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19475         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19476         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19477
19478 2007-01-27  Bruno Haible  <bruno@clisp.org>
19479
19480         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19481         check_PROGRAMS into noinst_PROGRAMS.
19482         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19483         check_PROGRAMS in this case.
19484         (func_import): Set for_test to false.
19485         (func_create_testdir): Set for_test to true.
19486
19487 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19488             Bruno Haible  <bruno@clisp.org>
19489
19490         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19491         (Depends-on): Add string.
19492         (Includes): Use <string.h> instead of strcasestr.h.
19493         * modules/string (Makefile.am): Also substitute the value of
19494         REPLACE_STRCASESTR.
19495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19496         assume strcasestr is declared in <string.h> not <strings.h>. Also
19497         set REPLACE_STRCASESTR.
19498         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19499         REPLACE_STRCASESTR.
19500         * lib/strcasestr.h: Remove file.
19501         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19502         * lib/string_.h (strcasestr): New declaration.
19503
19504 2007-01-27  Bruno Haible  <bruno@clisp.org>
19505
19506         * lib/string_.h: Use 'extern'.
19507
19508 2007-01-27  Jim Meyering  <jim@meyering.net>
19509
19510         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19511         of set-but-not-used local, "q".
19512
19513         * lib/mempcpy.c: Include <config.h> before <string.h>.
19514         This fixes a compilation error on HP-UX, due to the system's
19515         "restrict"-using mempcpy prototype.
19516
19517 2007-01-26  Bruno Haible  <bruno@clisp.org>
19518
19519         Small optimization.
19520         * lib/javacomp.c: Include c-strstr.h.
19521          (is_envjavac_gcj): Use c_strstr instead of strstr.
19522         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19523
19524 2007-01-26  Bruno Haible  <bruno@clisp.org>
19525
19526         * MODULES.html.sh (Unicode string functions): Add the new modules.
19527
19528         * modules/uniconv/u32-strconv-to-locale: New file.
19529         * lib/uniconv/u32-strconv-to-locale.c: New file.
19530
19531         * modules/uniconv/u16-strconv-to-locale: New file.
19532         * lib/uniconv/u16-strconv-to-locale.c: New file.
19533
19534         * modules/uniconv/u8-strconv-to-locale: New file.
19535         * lib/uniconv/u8-strconv-to-locale.c: New file.
19536
19537         * modules/uniconv/u32-strconv-from-locale: New file.
19538         * lib/uniconv/u32-strconv-from-locale.c: New file.
19539
19540         * modules/uniconv/u16-strconv-from-locale: New file.
19541         * lib/uniconv/u16-strconv-from-locale.c: New file.
19542
19543         * modules/uniconv/u8-strconv-from-locale: New file.
19544         * lib/uniconv/u8-strconv-from-locale.c: New file.
19545
19546         * modules/uniconv/u32-strconv-to-enc: New file.
19547         * lib/uniconv/u32-strconv-to-enc.c: New file.
19548         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19549         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19550
19551         * modules/uniconv/u16-strconv-to-enc: New file.
19552         * lib/uniconv/u16-strconv-to-enc.c: New file.
19553         * lib/uniconv/u-strconv-to-enc.h: New file.
19554         * modules/uniconv/u16-strconv-to-enc-tests: New file.
19555         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19556
19557         * modules/uniconv/u8-strconv-to-enc: New file.
19558         * lib/uniconv/u8-strconv-to-enc.c: New file.
19559         * modules/uniconv/u8-strconv-to-enc-tests: New file.
19560         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19561
19562         * modules/uniconv/u32-strconv-from-enc: New file.
19563         * lib/uniconv/u32-strconv-from-enc.c: New file.
19564         * modules/uniconv/u32-strconv-from-enc-tests: New file.
19565         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19566
19567         * modules/uniconv/u16-strconv-from-enc: New file.
19568         * lib/uniconv/u16-strconv-from-enc.c: New file.
19569         * modules/uniconv/u16-strconv-from-enc-tests: New file.
19570         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19571
19572         * modules/uniconv/u8-strconv-from-enc: New file.
19573         * lib/uniconv/u8-strconv-from-enc.c: New file.
19574         * lib/uniconv/u-strconv-from-enc.h: New file.
19575         * modules/uniconv/u8-strconv-from-enc-tests: New file.
19576         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19577
19578         * modules/uniconv/u32-conv-from-enc: New file.
19579         * lib/uniconv/u32-conv-from-enc.c: New file.
19580         * modules/uniconv/u32-conv-from-enc-tests: New file.
19581         * tests/uniconv/test-u32-conv-from-enc.c: New file.
19582
19583         * modules/uniconv/u16-conv-from-enc: New file.
19584         * lib/uniconv/u16-conv-from-enc.c: New file.
19585         * lib/uniconv/u-conv-from-enc.h: New file.
19586         * modules/uniconv/u16-conv-from-enc-tests: New file.
19587         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19588
19589         * modules/uniconv/u8-conv-from-enc: New file.
19590         * lib/uniconv/u8-conv-from-enc.c: New file.
19591         * modules/uniconv/u8-conv-from-enc-tests: New file.
19592         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19593
19594         * modules/uniconv/base: New file.
19595         * lib/uniconv.h: New file.
19596
19597 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         * doc/gnulib-tool.texi (Initial import): Update to match current
19600         behavior with strdup module.
19601         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19602         * lib/memmem.h: Remove; all uses removed.  This is now done
19603         by <string.h>.
19604         * lib/mempcpy.h: Likewise.
19605         * lib/memrchr.h: Likewise.
19606         * lib/stpcpy.h: Likewise.
19607         * lib/stpncpy.h: Likewise.
19608         * lib/strcase.h: Likewise.
19609         * lib/strchrnul.h: Likewise.
19610         * lib/strdup.h: Likewise.
19611         * lib/strndup.h: Likewise.
19612         * lib/strnlen.h: Likewise.
19613         * lib/strpbrk.h: Likewise.
19614         * lib/strsep.h: Likewise.
19615         * lib/strstr.h: Likewise.
19616         * lib/strtok_r.h: Likewise.
19617         * lib/string_.h: New file.
19618         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19619         Rely on <string.h> instead.
19620         * lib/canon-host.c: Likewise.
19621         * lib/chdir-long.c: Likewise.
19622         * lib/concatpath.c: Likewise.
19623         * lib/exclude.c: Likewise.
19624         * lib/fchdir.c: Likewise.
19625         * lib/getaddrinfo.c: Likewise.
19626         * lib/getcwd.c: Likewise.
19627         * lib/getsubopt.c: Likewise.
19628         * lib/glob.c: Likewise.
19629         * lib/hard-locale.c: Likewise.
19630         * lib/iconvme.c: Likewise.
19631         * lib/javacomp.c: Likewise.
19632         * lib/mempcpy.c: Likewise.
19633         * lib/memrchr.c: Likewise.
19634         * lib/regex_internal.h: Likewise.
19635         * lib/stpncpy.c: Likewise.
19636         * lib/strcasecmp.c: Likewise.
19637         * lib/strchrnul.c: Likewise.
19638         * lib/strdup.c: Likewise.
19639         * lib/striconv.c: Likewise.
19640         * lib/striconveh.c: Likewise.
19641         * lib/striconveha.c: Likewise.
19642         * lib/strncasecmp.c: Likewise.
19643         * lib/strndup.c: Likewise.
19644         * lib/strnlen.c: Likewise.
19645         * lib/strsep.c: Likewise.
19646         * lib/strstr.c: Likewise.
19647         * lib/strtok_r.c: Likewise.
19648         * lib/userspec.c: Likewise.
19649         * lib/w32spawn.h: Likewise.
19650         * lib/xstrndup.c: Likewise.
19651         * lib/mountlist.c (strstr): Remove decl.
19652         * m4/string_h.m4: New file.
19653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19654         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19655         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19656         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19657         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19658         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19659         Set REPLACE_STRCASECMP if necessary.
19660         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19661         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19662         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19663         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19664         HAVE_DECL_STRDUP if necessary.
19665         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19666         since gl_FUNC_STRNDUP does that now.
19667         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19668         Check for decl here...
19669         (gl_PREREQ_STRNLEN): ... not here.
19670         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19671         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19672         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19673         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19674         necessary.
19675         * modules/string: New file.
19676         * modules/memmem (Files): Remove special-purpose include file.
19677         (Depends-on): Add string.
19678         (Include): Include <string.h>, not the removed file.
19679         * modules/mempcpy: Likewise.
19680         * modules/memrchr: Likewise.
19681         * modules/stpcpy: Likewise.
19682         * modules/stpncpy: Likewise.
19683         * modules/strcase: Likewise.
19684         * modules/strchrnul: Likewise.
19685         * modules/strdup: Likewise.
19686         * modules/strndup: Likewise.
19687         * modules/strnlen: Likewise.
19688         * modules/strpbrk: Likewise.
19689         * modules/strsep: Likewise.
19690         * modules/strstr: Likewise.
19691         * modules/strtok_r: Likewise.
19692         * tests/test-dirname.c: Don't include "strdup.h", since
19693         <string.h> now suffices.
19694         * tests/test-memmem.c: Don't include "memmem.h", since
19695         <string.h> now suffices.
19696
19697 2007-01-25  Bruno Haible  <bruno@clisp.org>
19698
19699         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19700         *resultp is 0.
19701
19702         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19703         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19704         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19705         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19706
19707         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19708         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19709         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19710         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19711         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19712         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19713
19714 2007-01-24  Bruno Haible  <bruno@clisp.org>
19715
19716         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19717         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19718         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19719         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19720         gl_FUNC_FTS_CORE.
19721         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19722         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19723         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19724         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19725         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19726         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19727         gl_FUNC_FCHOWNAT.
19728         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19729         gl_FUNC_STRFTIME.
19730         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19731         Reported by Ralf Wildenhues.
19732
19733 2007-01-24  Bruno Haible  <bruno@clisp.org>
19734
19735         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19736         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19737         gl_GETADDRINFO.
19738         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19739         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19740         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19741
19742 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19743
19744         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19745         Don't use 'exit'; just return from 'main'.
19746         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19747
19748         * lib/fnmatch_.h: Readjust white space and comments to match
19749         glibc, to avoid spurious diffs.
19750
19751 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19752
19753         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19754         2004-12-01 change by Jakub Jelinek, since this code won't compile
19755         if !LIBC.  Problem reported by Bob Proulx.
19756
19757 2007-01-23  Bruno Haible  <bruno@clisp.org>
19758
19759         * lib/striconveh.c: Include c-strcaseeq.h.
19760         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19761         * modules/striconveh (Depends-on): Add c-strcaseeq.
19762
19763 2007-01-23  Bruno Haible  <bruno@clisp.org>
19764
19765         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19766
19767         * modules/c-strcaseeq: New file.
19768         * lib/c-strcaseeq.h: New file.
19769
19770         * modules/streq: New file.
19771         * lib/streq.h: New file.
19772
19773 2007-01-23  Bruno Haible  <bruno@clisp.org>
19774
19775         * modules/striconveha-tests: New file.
19776         * tests/test-striconveha.c: New file.
19777
19778         * lib/striconveha.h: Include <stdbool.h>.
19779         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19780         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19781         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19782         (mem_iconveha): New function.
19783         (str_iconveha_notranslit): Renamed from str_iconveha.
19784         (str_iconveha): New function.
19785         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19786         c-strcase.
19787
19788 2007-01-23  Bruno Haible  <bruno@clisp.org>
19789
19790         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19791         encodings without forgiving before trying any encoding with handler.
19792         (str_iconveha): Try all encodings without forgiving before trying any
19793         encoding with handler.
19794
19795 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19796
19797         Import the following changes from libc.
19798
19799         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19800
19801         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19802
19803         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19804
19805         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19806         normal_bracket label.
19807
19808         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
19809
19810         [BZ #361]
19811         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19812         to normal_bracket after fetching the next character.
19813
19814 2007-01-22  Bruno Haible  <bruno@clisp.org>
19815
19816         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19817         argument.
19818         * lib/striconveh.c (iconv_carefully_1): New function.
19819         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19820         argument.
19821         (str_cd_iconveh): Update.
19822         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19823         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19824         * tests/test-striconveh.c (MAGIC): New macro.
19825         (new_offsets): New function.
19826         (main): Test call with and without offsets.
19827
19828 2007-01-22  Bruno Haible  <bruno@clisp.org>
19829
19830         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19831         * modules/sys_select (Makefile.am): Likewise.
19832         * modules/sys_socket (Makefile.am): Likewise.
19833         * modules/sys_time (Makefile.am): Likewise.
19834
19835 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19836
19837         * modules/gettimeofday (License): Change from GPL to LGPL, since
19838         gettimeofday is a library function.
19839
19840 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19841
19842         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19843
19844 2007-01-21  Bruno Haible  <bruno@clisp.org>
19845
19846         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19847
19848 2007-01-21  Bruno Haible  <bruno@clisp.org>
19849
19850         * modules/striconveha: New file.
19851         * lib/striconveha.h: New file.
19852         * lib/striconveha.c: New file.
19853         * MODULES.html.sh (Internationalization functions): Add striconveha.
19854         * lib/striconv.c (str_iconv): Optimize the case of an empty input
19855         string.
19856         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19857
19858 2007-01-21  Bruno Haible  <bruno@clisp.org>
19859
19860         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19861         * lib/striconveh.c (str_iconveh): Likewise.
19862
19863 2007-01-21  Bruno Haible  <bruno@clisp.org>
19864
19865         * lib/striconveh.h (mem_iconveh): New declaration.
19866         * lib/striconveh.c (mem_iconveh): New function.
19867         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19868
19869 2007-01-21  Bruno Haible  <bruno@clisp.org>
19870
19871         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19872
19873         * lib/striconveh.h (mem_cd_iconveh): Change specification.
19874         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19875         original result buffer.
19876         (str_cd_iconveh): Update.
19877         * tests/test-striconveh.c (main): Update.
19878
19879         * lib/striconv.h (mem_cd_iconv): Change specification.
19880         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19881         result buffer.
19882         (str_cd_iconv): Update.
19883         * tests/test-striconv.c (main): Update.
19884
19885 2007-01-21  Bruno Haible  <bruno@clisp.org>
19886
19887         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19888
19889 2007-01-20  Jim Meyering  <jim@meyering.net>
19890
19891         * lib/userspec.c (parse_with_separator): If a user or group string
19892         starts with "+", skip the corresponding name-to-ID look-up, since
19893         such a look-up must fail: user and group names may not include "+".
19894
19895 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19896
19897         * lib/poll.c: Include sys/time.h and time.h unconditionally,
19898         since we now assume the sys_time module.
19899         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19900         check for sys/time.h; no longer needed.
19901         * modules/poll (Depends-on): Depend on sys_time.
19902
19903 2007-01-18  Bruno Haible  <bruno@clisp.org>
19904
19905         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19906         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19907
19908         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19909         gettimeofday.
19910
19911         * tests/test-gettimeofday.c: Include <time.h>.
19912         (dummy): Remove variable.
19913
19914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19915         gl_HEADER_SYS_TIME_H.
19916         (gl_HEADER_SYS_TIME_H): New macro.
19917
19918         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19919         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19921         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19922         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19924         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19925         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19926         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19927         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19928         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19929
19930         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19931         last change; it caused a compilation error when cross-compiling to
19932         Cygwin.
19933
19934 2007-01-18  Jim Meyering  <jim@meyering.net>
19935
19936         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19937         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19938         than the race-prone "test -d sys || mkdir sys".
19939         (configure.ac): Use AC_PROG_MKDIR_P.
19940         * modules/sys_select: Likewise.
19941         * modules/sys_socket: Likewise.
19942         * modules/sys_time: Likewise.
19943
19944 2007-01-18  Eric Blake  <ebb9@byu.net>
19945
19946         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19947         replace gettimeofday.
19948         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19949         name, to avoid infinite recursion.
19950
19951 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19952
19953         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19954         module sys_time.
19955         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19956         assume timespec.h defines struct timeval.
19957         * lib/settime.c: Likewise.
19958         * lib/utimens.c: Likewise.
19959         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19960         since we now assume the gettimeofday module.
19961         * lib/tempname.c (__gen_tempname): Likewise.
19962         * lib/gettimeofday.h: Remove.
19963         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19964         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19965         Include <time.h>, for 'time()'.
19966         (localtime_buffer_addr): Also use this workaround if
19967         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19968         to simplify the uses.  All uses changed.
19969         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19970         that #undef is inside {}, and 'const' follows type name consistently.
19971         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19972         (gettimeofday): Do not use the maximum possible value for
19973         tv->tv_usec, since that might break usages other than ls.c.
19974         Instead, we'll leave ls.c alone.  This undoes today's patch
19975         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19976         we've never observed the problem but might as well keep the
19977         canary.
19978         * lib/nanosleep.c: Include timespec.h first, for interface check.
19979         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19980         now assume the sys_time module.
19981         * lib/tempname.c: Likewise.
19982         * lib/timespec.h: Likewise.
19983         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19984         needed.
19985         * lib/strftime.c: Likewise.
19986         * lib/timespec.h: Likewise.
19987         * lib/posixtm.c: Include posixtm.h first, for interface check.
19988         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19989         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19990         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19991         * lib/sys_time_.h: New file.
19992         * lib/timespec.h (struct timespec): Use long int, not long.
19993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19994         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19995         Remove obsolescent call to AC_HEADER_TIME.
19996         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19999         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20000         Likewise.
20001         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20002         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20004         into the sys_time module.  Check for gettimeofday just once.
20005         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20006         for gettimeofday signature to just check the signature.  Merely
20007         compile it, since linking doesn't test signature.  Improve test for
20008         whether gettimeofday.o is actually needed.
20009         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20010         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20011         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20012         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20013         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20014         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20015         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20016         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20017         than worrying about sys/time.h.
20018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20019         Don't bother worrying about TIME_WITH_SYS_TIME.
20020         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20021         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20022         * m4/sys_time_h.m4: New file.
20023         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20024         Don't include sys/time.h.  Return from main rather than exiting.
20025         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20026         all uses changed.
20027         * modules/gethrxtime (Depends-on): Add sys_time.
20028         * modules/gettime (Depends-on): Likewise.
20029         * modules/gettimeofday (Depends-on): Likewise.
20030         * modules/nanosleep (Depends-on): Likewise.
20031         * modules/settime (Depends-on): Likewise.
20032         * modules/tempname (Depends-on): Likewise.
20033         * modules/utimens (Depends-on): Likewise.
20034         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20035         (Include:) Change back to <sys/time.h>.
20036         (Maintainer:) Add self.
20037         * modules/sys_time: New file.
20038         * modules/tempname (Depends-on): Add gettimeofday.
20039         * tests/test-gettimeofday.c: Include <sys/time.h>
20040         rather than gettimeofday.h.
20041
20042 2007-01-17  Bruno Haible  <bruno@clisp.org>
20043
20044         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20045         the license default to GPL.
20046         (func_create_testdir): Don't complain if a module is LGPL and its
20047         tests module depends on GPLed modules.
20048
20049 2007-01-17  Bruno Haible  <bruno@clisp.org>
20050
20051         * lib/gettimeofday.c (gettimeofday): Add code for the case
20052         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20053         maximum possible value for tv->tv_usec, rather than the minimum one.
20054
20055 2005-10-08  Martin Lambers  <marlam@marlam.de>
20056 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20057 2007-01-16  Bruno Haible  <bruno@clisp.org>
20058
20059         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20060         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20061         gl_FUNC_GETTIMEOFDAY.
20062         (Include): Add gettimeofday.h.
20063         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20064         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20065         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20066         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20067         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20068         * lib/gettimeofday.h: New file.
20069         * lib/gettimeofday.c: Include <sys/timeb.h>.
20070         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20071         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20072         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20073         fall back on time().
20074
20075         * tests/test-gettimeofday.c: New file.
20076         * modules/gettimeofday-tests: New file.
20077
20078 2007-01-16  Eric Blake  <ebb9@byu.net>
20079
20080         * modules/fnmatch (Depends-on): Depend on wchar.
20081         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20082         * m4/fnmatch.m4: Likewise.
20083         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20084         * m4/mbchar.m4: Likewise.
20085         * modules/mbswidth (Depends-on): Depend on wchar.
20086         * lib/mbswidth.c: Assume <wchar.h>.
20087         * m4/mbswidth.m4: Likewise.
20088         * modules/quotearg (Depends-on): Depend on wchar.
20089         * lib/quotearg.c: Assume <wchar.h>.
20090         * m4/quotearg.m4: Likewise.
20091         * modules/regex (Depends-on): Depend on wchar.
20092         * lib/regex_internal.h: Assume <wchar.h>.
20093         * m4/regex.m4: Likewise.
20094         * modules/stdint (Depends-on): Depend on wchar.
20095         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20096         * m4/stdint.m4: Likewise.
20097         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20098         * modules/strftime (Depends-on): Depend on wchar.
20099         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20100         * modules/strtol (Depends-on): Depend on wchar.
20101         * lib/strtol.c: Assume <wchar.h>.
20102         * modules/wcwidth (Depends-on): Depend on wchar.
20103         * lib/wcwidth.h: Assume <wchar.h>.
20104         * m4/wcwidth.m4: Likewise.
20105
20106 2007-01-16  Bruno Haible  <bruno@clisp.org>
20107
20108         * modules/csharpexec-script: New, created from...
20109         * modules/csharpexec: ... this.
20110
20111 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20112
20113         * modules/javaexec-script: New, created from...
20114         * modules/javaexec: ... this.
20115
20116 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20117
20118         * modules/poll (Dependencies): Add sys_select.
20119
20120 2007-01-15  Jim Meyering  <jim@meyering.net>
20121
20122         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20123         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20124         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20125         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20126
20127 2007-01-15  Bruno Haible  <bruno@clisp.org>
20128
20129         * modules/striconveh: New file.
20130         * lib/striconveh.h: New file.
20131         * lib/striconveh.c: New file.
20132         * MODULES.html.sh (Internationalization functions): Add striconveh.
20133
20134         * modules/striconveh-tests: New file.
20135         * tests/test-striconveh.c: New file.
20136
20137 2007-01-15  Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20140         not from GNU libiconv or GNU libc.
20141
20142 2007-01-15  Bruno Haible  <bruno@clisp.org>
20143
20144         * doc/gnulib-intro.texi (Copyright): Explain the different license
20145         terms for module descriptions, autoconf macros, tests, documentation.
20146
20147 2007-01-14  Bruno Haible  <bruno@clisp.org>
20148
20149         * modules/striconv-tests: New file.
20150         * tests/test-striconv.c: New file.
20151
20152 2007-01-14  Bruno Haible  <bruno@clisp.org>
20153
20154         * modules/iconv-tests: New file.
20155         * tests/test-iconv.c: New file.
20156
20157 2007-01-14  Bruno Haible  <bruno@clisp.org>
20158
20159         * gnulib-tool (func_get_license): For test modules, use the license of
20160         the main module.
20161
20162 2007-01-14  Bruno Haible  <bruno@clisp.org>
20163
20164         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20165         if iconv is found to exist.
20166
20167 2007-01-14  Bruno Haible  <bruno@clisp.org>
20168
20169         * modules/c-ctype-tests: New file.
20170         * tests/test-c-ctype.c: New file.
20171
20172 2007-01-14  Bruno Haible  <bruno@clisp.org>
20173
20174         * modules/binary-io-tests: New file.
20175         * tests/test-binary-io.sh: New file.
20176         * tests/test-binary-io.c: New file.
20177
20178 2007-01-14  Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/array-oset-tests: New file.
20181         * tests/test-array_oset.c: New file.
20182
20183 2007-01-14  Bruno Haible  <bruno@clisp.org>
20184
20185         * modules/array-list-tests: New file.
20186         * tests/test-array_list.c: New file.
20187
20188 2007-01-14  Bruno Haible  <bruno@clisp.org>
20189
20190         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20191         and make.
20192         Reported by Simon Josefsson in
20193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20194
20195 2007-01-14  Bruno Haible  <bruno@clisp.org>
20196
20197         * modules/allocsa-tests: New file.
20198         * tests/test-allocsa.c: New file.
20199
20200 2007-01-14  Bruno Haible  <bruno@clisp.org>
20201
20202         * modules/fchdir (Depends-on): Add absolute-header.
20203         * modules/unistd (Depends-on): Likewise.
20204
20205 2006-12-30  Bruno Haible  <bruno@clisp.org>
20206
20207         * modules/fchdir: New file.
20208         * modules/unistd (Files): Add lib/unistd_.h.
20209         (Makefile.am): Generate unistd.h from unistd_.h.
20210         * lib/fchdir.c: New file.
20211         * lib/dirent_.h: New file.
20212         * lib/unistd_.h: New file.
20213         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20214         * m4/fchdir.m4: New file.
20215         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20216         (gl_HEADER_UNISTD): Invoke it.
20217         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20218         function.
20219         * lib/backupfile.c (opendir, closedir): Undefine.
20220         * lib/chown.c (open, close): Undefine.
20221         * lib/clean-temp.c (open, close): Undefine.
20222         * lib/copy-file.c (open, close): Undefine.
20223         * lib/execute.c (open, close): Undefine.
20224         * lib/fsusage.c (open, close): Undefine.
20225         * lib/gc-gnulib.c (open, close): Undefine.
20226         * lib/getcwd.c (opendir, closedir): Undefine.
20227         * lib/glob.c (opendir, closedir): Undefine.
20228         * lib/javacomp.c (open, close): Undefine.
20229         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20230         * lib/openat-proc.c (open, close): Undefine.
20231         * lib/pagealign_alloc.c (open, close): Undefine.
20232         * lib/pipe.c (open, close): Undefine.
20233         * lib/progreloc.c (open, close): Undefine.
20234         * lib/savedir.c (opendir, closedir): Undefine.
20235         * lib/utime.c (open, close): Undefine.
20236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20237
20238 2007-01-10  Bruno Haible  <bruno@clisp.org>
20239
20240         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20241
20242 2007-01-12  Eric Blake  <ebb9@byu.net>
20243
20244         Provide a robust <wchar.h>.  Further simplifications are now
20245         possible in other modules, but not included here.
20246         * modules/wchar: New module.
20247         * m4/wchar.m4: New file.
20248         * lib/wchar_.h: Likewise.
20249         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20250         of the new module.
20251         * MODULES.html.sh (Extended multibyte and wide character utilities):
20252         New section.
20253
20254 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20255
20256         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20257         to a reasonable default for memory allocation.
20258         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20259         file system that reports garbage st_size values for symlinks.
20260         Problem reported by Liyang Hu.
20261
20262 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20263
20264         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20265         Emacs .#* auto-save files).
20266
20267 2007-01-11  Bruno Haible  <bruno@clisp.org>
20268
20269         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20270         directory.
20271
20272 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20273
20274         Use @...@ consistently in lib/wctype_.h.
20275         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20276         on it being set to 1 or 0.
20277         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20278         go back to AC_SUBSTing it.
20279         * modules/wctype (Makefile.am): Undo previous change.
20280
20281 2007-01-10  Eric Blake  <ebb9@byu.net>
20282
20283         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20284         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20285         * modules/wctype (Makefile.am): Likewise.
20286         Reported by Chris McGuire.
20287
20288 2007-01-10  Jim Meyering  <jim@meyering.net>
20289
20290         fts.c: a small readability/maintainability improvement
20291         * lib/fts.c (fts_read): Make this code slightly more readable and
20292         maintainable by hoisting the "sp->fts_cur = p" assignments to
20293         immediately follow the statements that set P.  Derived from
20294         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20295
20296 2007-01-10  Eric Blake  <ebb9@byu.net>
20297
20298         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20299         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20301         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20302         Reported by Chris McGuire.
20303
20304 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20305
20306         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20307         in sed script.
20308
20309 2007-01-09  Bruno Haible  <bruno@clisp.org>
20310
20311         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20312         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20313         variables.
20314         (func_module): Use them.
20315
20316 2007-01-09  Bruno Haible  <bruno@clisp.org>
20317
20318         * modules/unistr/base: New file.
20319         * lib/unistr.h: New file.
20320
20321         * modules/unistr/u8-to-u16: New file.
20322         * lib/unistr/u8-to-u16.c: New file.
20323
20324         * modules/unistr/u8-to-u32: New file.
20325         * lib/unistr/u8-to-u32.c: New file.
20326
20327         * modules/unistr/u16-to-u8: New file.
20328         * lib/unistr/u16-to-u8.c: New file.
20329
20330         * modules/unistr/u16-to-u32: New file.
20331         * lib/unistr/u16-to-u32.c: New file.
20332
20333         * modules/unistr/u32-to-u8: New file.
20334         * lib/unistr/u32-to-u8.c: New file.
20335
20336         * modules/unistr/u32-to-u16: New file.
20337         * lib/unistr/u32-to-u16.c: New file.
20338
20339         * modules/unistr/u8-check: New file.
20340         * modules/unistr/u16-check: New file.
20341         * modules/unistr/u32-check: New file.
20342         * lib/unistr/u8-check.c: New file.
20343         * lib/unistr/u16-check.c: New file.
20344         * lib/unistr/u32-check.c: New file.
20345
20346         * modules/unistr/u8-chr: New file.
20347         * modules/unistr/u16-chr: New file.
20348         * modules/unistr/u32-chr: New file.
20349         * lib/unistr/u8-chr.c: New file.
20350         * lib/unistr/u16-chr.c: New file.
20351         * lib/unistr/u32-chr.c: New file.
20352
20353         * modules/unistr/u8-cmp: New file.
20354         * modules/unistr/u16-cmp: New file.
20355         * modules/unistr/u32-cmp: New file.
20356         * lib/unistr/u8-cmp.c: New file.
20357         * lib/unistr/u16-cmp.c: New file.
20358         * lib/unistr/u32-cmp.c: New file.
20359
20360         * modules/unistr/u8-cpy: New file.
20361         * modules/unistr/u16-cpy: New file.
20362         * modules/unistr/u32-cpy: New file.
20363         * lib/unistr/u8-cpy.c: New file.
20364         * lib/unistr/u16-cpy.c: New file.
20365         * lib/unistr/u32-cpy.c: New file.
20366         * lib/unistr/u-cpy.h: New file.
20367
20368         * modules/unistr/u8-cpy-alloc: New file.
20369         * modules/unistr/u16-cpy-alloc: New file.
20370         * modules/unistr/u32-cpy-alloc: New file.
20371         * lib/unistr/u8-cpy-alloc.c: New file.
20372         * lib/unistr/u16-cpy-alloc.c: New file.
20373         * lib/unistr/u32-cpy-alloc.c: New file.
20374         * lib/unistr/u-cpy-alloc.h: New file.
20375
20376         * modules/unistr/u8-endswith: New file.
20377         * modules/unistr/u16-endswith: New file.
20378         * modules/unistr/u32-endswith: New file.
20379         * lib/unistr/u8-endswith.c: New file.
20380         * lib/unistr/u16-endswith.c: New file.
20381         * lib/unistr/u32-endswith.c: New file.
20382         * lib/unistr/u-endswith.h: New file.
20383
20384         * modules/unistr/u8-mblen: New file.
20385         * modules/unistr/u16-mblen: New file.
20386         * modules/unistr/u32-mblen: New file.
20387         * lib/unistr/u8-mblen.c: New file.
20388         * lib/unistr/u16-mblen.c: New file.
20389         * lib/unistr/u32-mblen.c: New file.
20390
20391         * modules/unistr/u8-mbtouc: New file.
20392         * modules/unistr/u16-mbtouc: New file.
20393         * modules/unistr/u32-mbtouc: New file.
20394         * lib/unistr/u8-mbtouc.c: New file.
20395         * lib/unistr/u16-mbtouc.c: New file.
20396         * lib/unistr/u32-mbtouc.c: New file.
20397
20398         * modules/unistr/u8-mbtouc-safe: New file.
20399         * modules/unistr/u16-mbtouc-safe: New file.
20400         * modules/unistr/u32-mbtouc-safe: New file.
20401         * lib/unistr/u8-mbtouc-safe.c: New file.
20402         * lib/unistr/u16-mbtouc-safe.c: New file.
20403         * lib/unistr/u32-mbtouc-safe.c: New file.
20404
20405         * modules/unistr/u8-move: New file.
20406         * modules/unistr/u16-move: New file.
20407         * modules/unistr/u32-move: New file.
20408         * lib/unistr/u8-move.c: New file.
20409         * lib/unistr/u16-move.c: New file.
20410         * lib/unistr/u32-move.c: New file.
20411         * lib/unistr/u-move.h: New file.
20412
20413         * modules/unistr/u8-next: New file.
20414         * modules/unistr/u16-next: New file.
20415         * modules/unistr/u32-next: New file.
20416         * lib/unistr/u8-next.c: New file.
20417         * lib/unistr/u16-next.c: New file.
20418         * lib/unistr/u32-next.c: New file.
20419
20420         * modules/unistr/u8-prev: New file.
20421         * modules/unistr/u16-prev: New file.
20422         * modules/unistr/u32-prev: New file.
20423         * lib/unistr/u8-prev.c: New file.
20424         * lib/unistr/u16-prev.c: New file.
20425         * lib/unistr/u32-prev.c: New file.
20426
20427         * modules/unistr/u8-set: New file.
20428         * modules/unistr/u16-set: New file.
20429         * modules/unistr/u32-set: New file.
20430         * lib/unistr/u8-set.c: New file.
20431         * lib/unistr/u16-set.c: New file.
20432         * lib/unistr/u32-set.c: New file.
20433         * lib/unistr/u-set.h: New file.
20434
20435         * modules/unistr/u8-startswith: New file.
20436         * modules/unistr/u16-startswith: New file.
20437         * modules/unistr/u32-startswith: New file.
20438         * lib/unistr/u8-startswith.c: New file.
20439         * lib/unistr/u16-startswith.c: New file.
20440         * lib/unistr/u32-startswith.c: New file.
20441         * lib/unistr/u-startswith.h: New file.
20442
20443         * modules/unistr/u8-stpcpy: New file.
20444         * modules/unistr/u16-stpcpy: New file.
20445         * modules/unistr/u32-stpcpy: New file.
20446         * lib/unistr/u8-stpcpy.c: New file.
20447         * lib/unistr/u16-stpcpy.c: New file.
20448         * lib/unistr/u32-stpcpy.c: New file.
20449         * lib/unistr/u-stpcpy.h: New file.
20450
20451         * modules/unistr/u8-stpncpy: New file.
20452         * modules/unistr/u16-stpncpy: New file.
20453         * modules/unistr/u32-stpncpy: New file.
20454         * lib/unistr/u8-stpncpy.c: New file.
20455         * lib/unistr/u16-stpncpy.c: New file.
20456         * lib/unistr/u32-stpncpy.c: New file.
20457         * lib/unistr/u-stpncpy.h: New file.
20458
20459         * modules/unistr/u8-strcat: New file.
20460         * modules/unistr/u16-strcat: New file.
20461         * modules/unistr/u32-strcat: New file.
20462         * lib/unistr/u8-strcat.c: New file.
20463         * lib/unistr/u16-strcat.c: New file.
20464         * lib/unistr/u32-strcat.c: New file.
20465         * lib/unistr/u-strcat.h: New file.
20466
20467         * modules/unistr/u8-strchr: New file.
20468         * modules/unistr/u16-strchr: New file.
20469         * modules/unistr/u32-strchr: New file.
20470         * lib/unistr/u8-strchr.c: New file.
20471         * lib/unistr/u16-strchr.c: New file.
20472         * lib/unistr/u32-strchr.c: New file.
20473
20474         * modules/unistr/u8-strcmp: New file.
20475         * modules/unistr/u16-strcmp: New file.
20476         * modules/unistr/u32-strcmp: New file.
20477         * lib/unistr/u8-strcmp.c: New file.
20478         * lib/unistr/u16-strcmp.c: New file.
20479         * lib/unistr/u32-strcmp.c: New file.
20480
20481         * modules/unistr/u8-strcpy: New file.
20482         * modules/unistr/u16-strcpy: New file.
20483         * modules/unistr/u32-strcpy: New file.
20484         * lib/unistr/u8-strcpy.c: New file.
20485         * lib/unistr/u16-strcpy.c: New file.
20486         * lib/unistr/u32-strcpy.c: New file.
20487         * lib/unistr/u-strcpy.h: New file.
20488
20489         * modules/unistr/u8-strcspn: New file.
20490         * modules/unistr/u16-strcspn: New file.
20491         * modules/unistr/u32-strcspn: New file.
20492         * lib/unistr/u8-strcspn.c: New file.
20493         * lib/unistr/u16-strcspn.c: New file.
20494         * lib/unistr/u32-strcspn.c: New file.
20495         * lib/unistr/u-strcspn.h: New file.
20496
20497         * modules/unistr/u8-strdup: New file.
20498         * modules/unistr/u16-strdup: New file.
20499         * modules/unistr/u32-strdup: New file.
20500         * lib/unistr/u8-strdup.c: New file.
20501         * lib/unistr/u16-strdup.c: New file.
20502         * lib/unistr/u32-strdup.c: New file.
20503         * lib/unistr/u-strdup.h: New file.
20504
20505         * modules/unistr/u8-strlen: New file.
20506         * modules/unistr/u16-strlen: New file.
20507         * modules/unistr/u32-strlen: New file.
20508         * lib/unistr/u8-strlen.c: New file.
20509         * lib/unistr/u16-strlen.c: New file.
20510         * lib/unistr/u32-strlen.c: New file.
20511         * lib/unistr/u-strlen.h: New file.
20512
20513         * modules/unistr/u8-strmblen: New file.
20514         * modules/unistr/u16-strmblen: New file.
20515         * modules/unistr/u32-strmblen: New file.
20516         * lib/unistr/u8-strmblen.c: New file.
20517         * lib/unistr/u16-strmblen.c: New file.
20518         * lib/unistr/u32-strmblen.c: New file.
20519
20520         * modules/unistr/u8-strmbtouc: New file.
20521         * modules/unistr/u16-strmbtouc: New file.
20522         * modules/unistr/u32-strmbtouc: New file.
20523         * lib/unistr/u8-strmbtouc.c: New file.
20524         * lib/unistr/u16-strmbtouc.c: New file.
20525         * lib/unistr/u32-strmbtouc.c: New file.
20526
20527         * modules/unistr/u8-strncat: New file.
20528         * modules/unistr/u16-strncat: New file.
20529         * modules/unistr/u32-strncat: New file.
20530         * lib/unistr/u8-strncat.c: New file.
20531         * lib/unistr/u16-strncat.c: New file.
20532         * lib/unistr/u32-strncat.c: New file.
20533         * lib/unistr/u-strncat.h: New file.
20534
20535         * modules/unistr/u8-strncmp: New file.
20536         * modules/unistr/u16-strncmp: New file.
20537         * modules/unistr/u32-strncmp: New file.
20538         * lib/unistr/u8-strncmp.c: New file.
20539         * lib/unistr/u16-strncmp.c: New file.
20540         * lib/unistr/u32-strncmp.c: New file.
20541
20542         * modules/unistr/u8-strncpy: New file.
20543         * modules/unistr/u16-strncpy: New file.
20544         * modules/unistr/u32-strncpy: New file.
20545         * lib/unistr/u8-strncpy.c: New file.
20546         * lib/unistr/u16-strncpy.c: New file.
20547         * lib/unistr/u32-strncpy.c: New file.
20548         * lib/unistr/u-strncpy.h: New file.
20549
20550         * modules/unistr/u8-strnlen: New file.
20551         * modules/unistr/u16-strnlen: New file.
20552         * modules/unistr/u32-strnlen: New file.
20553         * lib/unistr/u8-strnlen.c: New file.
20554         * lib/unistr/u16-strnlen.c: New file.
20555         * lib/unistr/u32-strnlen.c: New file.
20556         * lib/unistr/u-strnlen.h: New file.
20557
20558         * modules/unistr/u8-strpbrk: New file.
20559         * modules/unistr/u16-strpbrk: New file.
20560         * modules/unistr/u32-strpbrk: New file.
20561         * lib/unistr/u8-strpbrk.c: New file.
20562         * lib/unistr/u16-strpbrk.c: New file.
20563         * lib/unistr/u32-strpbrk.c: New file.
20564         * lib/unistr/u-strpbrk.h: New file.
20565
20566         * modules/unistr/u8-strrchr: New file.
20567         * modules/unistr/u16-strrchr: New file.
20568         * modules/unistr/u32-strrchr: New file.
20569         * lib/unistr/u8-strrchr.c: New file.
20570         * lib/unistr/u16-strrchr.c: New file.
20571         * lib/unistr/u32-strrchr.c: New file.
20572
20573         * modules/unistr/u8-strspn: New file.
20574         * modules/unistr/u16-strspn: New file.
20575         * modules/unistr/u32-strspn: New file.
20576         * lib/unistr/u8-strspn.c: New file.
20577         * lib/unistr/u16-strspn.c: New file.
20578         * lib/unistr/u32-strspn.c: New file.
20579         * lib/unistr/u-strspn.h: New file.
20580
20581         * modules/unistr/u8-strstr: New file.
20582         * modules/unistr/u16-strstr: New file.
20583         * modules/unistr/u32-strstr: New file.
20584         * lib/unistr/u8-strstr.c: New file.
20585         * lib/unistr/u16-strstr.c: New file.
20586         * lib/unistr/u32-strstr.c: New file.
20587         * lib/unistr/u-strstr.h: New file.
20588
20589         * modules/unistr/u8-strtok: New file.
20590         * modules/unistr/u16-strtok: New file.
20591         * modules/unistr/u32-strtok: New file.
20592         * lib/unistr/u8-strtok.c: New file.
20593         * lib/unistr/u16-strtok.c: New file.
20594         * lib/unistr/u32-strtok.c: New file.
20595         * lib/unistr/u-strtok.h: New file.
20596
20597         * modules/unistr/u8-uctomb: New file.
20598         * modules/unistr/u16-uctomb: New file.
20599         * modules/unistr/u32-uctomb: New file.
20600         * lib/unistr/u8-uctomb.c: New file.
20601         * lib/unistr/u16-uctomb.c: New file.
20602         * lib/unistr/u32-uctomb.c: New file.
20603
20604         * MODULES.html.sh (Unicode string functions): Add the new modules.
20605
20606 2007-01-08  Bruno Haible  <bruno@clisp.org>
20607
20608         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20609         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20610         subdirectories.
20611
20612 2007-01-08  Karl Berry  <karl@gnu.org>
20613
20614         * doc/error.texi: mention that main() fns must set program_name
20615         when progname is used.
20616
20617 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20618
20619         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20620         WCTYPE_H is empty, for the benefit of builds from non-distclean
20621         directories.  Problem reported by Eric Blake in
20622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20623
20624 2007-01-08  Bruno Haible  <bruno@clisp.org>
20625
20626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20627         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20628         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20629         PROVIDE_CANONICALIZE_FILENAME_MODE.
20630         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20631
20632 2007-01-08  Bruno Haible  <bruno@clisp.org>
20633
20634         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20635         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20636         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20637         * lib/fts.c: Likewise.
20638         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20639
20640 2006-12-25  Bruno Haible  <bruno@clisp.org>
20641
20642         * modules/utf8-ucs4-safe: New file.
20643         * lib/utf8-ucs4-safe.h: New file.
20644         * lib/unistr/utf8-ucs4-safe.c: New file.
20645
20646         * modules/utf16-ucs4-safe: New file.
20647         * lib/utf16-ucs4-safe.h: New file.
20648         * lib/unistr/utf16-ucs4-safe.c: New file.
20649
20650         * MODULES.html.sh (Unicode string functions): Add the new modules.
20651
20652 2007-01-08  Bruno Haible  <bruno@clisp.org>
20653
20654         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20655         (Depends-on): Add unitypes.
20656         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20657         (u8_mbtouc_aux): Move out to separate file.
20658         (u8_mbtouc): Use ucs4_t, uint8_t types.
20659         * lib/unistr/utf8-ucs4.c: New file.
20660
20661         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20662         (Depends-on): Add unitypes.
20663         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20664         (u16_mbtouc_aux): Move out to separate file.
20665         (u16_mbtouc): Use ucs4_t, uint16_t types.
20666         * lib/unistr/utf16-ucs4.c: New file.
20667
20668         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20669         (Depends-on): Add unitypes.
20670         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20671         (u8_uctomb_aux): Move out to separate file.
20672         (u8_uctomb): Use ucs4_t, uint8_t types.
20673         * lib/unistr/ucs4-utf8.c: New file.
20674
20675         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20676         (Depends-on): Add unitypes.
20677         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20678         (u16_uctomb_aux): Move out to separate file.
20679         (u16_uctomb): Use ucs4_t, uint16_t types.
20680         * lib/unistr/ucs4-utf16.c: New file.
20681
20682 2006-12-25  Bruno Haible  <bruno@clisp.org>
20683
20684         * modules/unitypes: New file.
20685         * lib/unitypes.h: New file.
20686         * MODULES.html.sh (func_all_modules): New section "Unicode string
20687         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20688         this section. Add unitypes.
20689
20690 2007-01-08  Bruno Haible  <bruno@clisp.org>
20691
20692         Avoid variable names that conflict with those from libtool.
20693         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20694         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20695         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20696         library_names_spec to acl_library_names_spec, hardcode_* to
20697         acl_hardcode_*.
20698         Reported by Ralf Wildenhues.
20699
20700 2007-01-08  Bruno Haible  <bruno@clisp.org>
20701
20702         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20703         definition.
20704         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20705         definition.
20706         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20707         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20708         definition.
20709         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20710         definition.
20711         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20712         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20713         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20714         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20715         definition.
20716         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20717         definition.
20718         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20719         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20720         GC_USE_<algorithm>.
20721         * lib/gc-libgcrypt.c: Likewise.
20722         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20723         * modules/gc-arctwo (configure.ac): Likewise.
20724         * modules/gc-des (configure.ac): Likewise.
20725         * modules/gc-hmac-md5 (configure.ac): Likewise.
20726         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20727         * modules/gc-md2 (configure.ac): Likewise.
20728         * modules/gc-md4 (configure.ac): Likewise.
20729         * modules/gc-md5 (configure.ac): Likewise.
20730         * modules/gc-random (configure.ac): Likewise.
20731         * modules/gc-rijndael (configure.ac): Likewise.
20732         * modules/gc-sha1 (configure.ac): Likewise.
20733
20734 2007-01-08  Bruno Haible  <bruno@clisp.org>
20735
20736         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20737         macro definition.
20738         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20739         definition.
20740         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20741         definition.
20742         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20743         * modules/fcntl-safer (configure.ac): Likewise.
20744         * modules/fopen-safer (configure.ac): Likewise.
20745         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20746         GNULIB_FWRITEERROR macro definition.
20747
20748 2007-01-08  Bruno Haible  <bruno@clisp.org>
20749
20750         * m4/gnulib-common.m4: New file.
20751         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20752         (func_get_filelist): Add m4/gnulib-common.m4.
20753
20754 2007-01-08  Bruno Haible  <bruno@clisp.org>
20755
20756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20757         command.
20758
20759 2007-01-08  Jim Meyering  <jim@meyering.net>
20760
20761         Use a more robust test for a "can't happen" condition.
20762         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20763         narrowed the st_size value.  Presuming the "can't happen" condition
20764         is true, that narrowing could conceivably convert an invalid st_size
20765         value into a valid one.  Instead, use a change based on Matthew
20766         Woehlke's original patch.
20767
20768         Slight readability improvement: use an assert-like macro
20769         in place of literal "abort ()" uses.
20770         * lib/fts.c (fts_assert): Define.
20771         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20772         Use this macro instead of a bare 'abort'.
20773
20774 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20777         simply work around them.
20778         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20779         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20780         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20781         declaring.
20782         Don't bother to define as macros, since the standard doesn't require it.
20783         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20784         longer worry about IRIX 5.3.
20785         (HAVE_WCTYPE_CTMP_BUG): Remove.
20786
20787 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20790         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
20791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20792         Problems reported by Georg Schwarz for IRIX 5.3.
20793
20794         * gnulib-tool (autoconf_minversion): Take the maximum version number
20795         found, not the minimum.  Problem reported by James Youngman.
20796
20797 2007-01-03  Karl Berry  <karl@gnu.org>
20798
20799         * doc/error.texi: new file, explaining interaction with progname.
20800         * doc/gnulib.texi: include it.  Update copyright.
20801
20802 2007-01-03  Simon Josefsson  <simon@josefsson.org>
20803
20804         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20805         AC_CANONICAL_HOST, to improve autobuild outputs.
20806
20807 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
20808             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20809
20810         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20811         sockets, server sockets, and other file descriptors.  Count errors
20812         to compute the return value.  Reorder the code a bit to be easier
20813         to follow.  Don't set event bits that were not requested (except
20814         POLLERR and POLLHUP).
20815
20816 2007-01-01  Bruno Haible  <bruno@clisp.org>
20817
20818         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20819
20820 2007-01-03  Jim Meyering  <jim@meyering.net>
20821
20822         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
20823
20824 2007-01-02  Bruno Haible  <bruno@clisp.org>
20825
20826         * modules/settime (Include): Require timespec.h.
20827         * modules/nanosleep (Include): Likewise.
20828
20829 2007-01-01  Bruno Haible  <bruno@clisp.org>
20830
20831         * gnulib-tool (func_emit_copyright_notice): Bump year.
20832         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20833
20834 2007-01-01  Bruno Haible  <bruno@clisp.org>
20835
20836         Improve support for OpenBSD.
20837         * build-aux/config.rpath (libname_spec): Export.
20838         (library_names_spec): New variable. Export.
20839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20840         library_names_spec from the config.rpath output. Locate shared library
20841         through the name pattern in library_names_spec.
20842
20843 2007-01-01  Eric Blake  <ebb9@byu.net>
20844
20845         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20846
20847 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20850         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
20851         assume the C locale, and avoid an "eval" that could cause trouble.
20852         Problem with SORT reported by Bob Proulx.
20853
20854         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20855         Define.  Trivial patch from Henning Nielsen Lund, originally
20856         sent to bug-grep@gnu.org today.
20857
20858 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20859
20860         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20861         struct stat.  Problem reported by Henning Nielsen Lund.
20862         * lib/acl.c: Include acl.h first, to check interface.  Don't
20863         bother to include sys/types.h and sys/stat.h again.
20864
20865 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         Import the following change from libc; problem reported by
20868         Sven Verdoolaege.
20869
20870         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
20871
20872         [BZ #1373]
20873         * lib/argp.h: Remove __NTH for __argp_usage inline function.
20874
20875 2006-12-28  Jim Meyering  <jim@meyering.net>
20876
20877         * build-aux/announce-gen: Do not assume that the package
20878         builds any of tar.gz, tar.bz2, and .xdelta files.
20879         Suggestion from Simon Josefsson.
20880
20881 2006-12-28  Simon Josefsson  <simon@josefsson.org>
20882
20883         * modules/announce-gen: New file.
20884
20885 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20886
20887         * lib/mbchar.h: Just include <wctype.h>; the wctype module
20888         handles its gotchas now.
20889         * lib/mbswidth.c: Likewise.
20890         * lib/wcwidth.h: Likewise.
20891         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20892         and iswcntrl; the wctype module does this stuff now.
20893         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20895         * modules/mbchar (Depends-on): Add wctype.
20896         * modules/mbswidth (Depends-on): Likewise.
20897         * modules/wcwidth (Depends-on): Likewise.
20898
20899 2006-12-27  Eric Blake  <ebb9@byu.net>
20900
20901         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20902         module uses more than what <wctype.h> is required to provide.
20903
20904 2006-12-26  Eric Blake  <ebb9@byu.net>
20905
20906         * gnulib-tool (sed_extract_prog): Avoid space-tab.
20907
20908 2006-12-26  Eric Blake  <ebb9@byu.net>
20909
20910         * modules/absolute-header: New module.
20911         * modules/fcntl (Depends-on): Depend on it.
20912         * modules/inttypes (Depends-on): Likewise.
20913         * modules/stdint (Depends-on): Likewise.
20914         * modules/sys_stat (Depends-on): Likewise.
20915         * modules/wctype (Depends-on): Likewise.
20916         * MODULES.html.sh (Support for building libraries and
20917         executables): Document it.
20918
20919 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         * gnulib-tool (SED): Remove, undoing previous change.
20922         The problem was that it broke coreutils on Solaris, because
20923         "sed --posix" leaked into a makefile.
20924         (sed): New alias, if 'alias' and GNU sed.
20925
20926 2006-12-24  Jim Meyering  <jim@meyering.net>
20927
20928         Work around an fchownat bug in glibc-2.4:
20929         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20930         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20931         in spite of the -P option.
20932         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20933         New macros.
20934         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20935         * modules/openat (Files): Add lib/fchownat.c.
20936         * lib/openat.c (fchownat): Don't define here.  Move to...
20937         * lib/fchownat.c: ...this new file.
20938
20939 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         Fix bug reported by Bruno Haible in
20942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20943         where quotearg.c didn't compile on Mac OS X 10.2 because it
20944         lacks <wchar.h> and wint_t.
20945         * lib/wctype_.h (__wctype_wint_t): New type.
20946         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20947         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20948         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20949         Arg is now of type __wctype_wint_t, not wint_t.
20950         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20951         substitute HAVE_WINT_T.
20952         * modules/wctype (Files): Add m4/wint_t.m4.
20953         (wctype.h): Substitute HAVE_WINT_T.
20954
20955 2006-12-23  Bruno Haible  <bruno@clisp.org>
20956
20957         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20958
20959 2006-12-23  Bruno Haible  <bruno@clisp.org>
20960
20961         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20962         S_ISLNK.
20963         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20964         mingw.
20965
20966 2006-12-22  Bruno Haible  <bruno@clisp.org>
20967
20968         * lib/copy-file.c: Include acl.h.
20969         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20970         Close the file descriptors only after being done with copy_acl.
20971         * modules/copy-file (Depends-on): Add acl.
20972
20973 2006-12-22  Bruno Haible  <bruno@clisp.org>
20974
20975         * gnulib-tool (SED): New variable.
20976         Use $SED instead of sed everywhere.
20977
20978 2006-12-22  Bruno Haible  <bruno@clisp.org>
20979
20980         * modules/no-c++: New file.
20981         * m4/no-c++.m4: New file.
20982         * MODULES.html.sh (Support for building libraries and executables):
20983         Add no-c++.
20984
20985 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20988         Include <limits.h>, and use its INT_MAX to rewrite the
20989         j loop so that it does not overflow 'int'.  Problem reported by
20990         Ralf Wildenhues in
20991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20992         Play it safe by shifting left by 1 rather than multiplying by 2,
20993         as GCC is less likely to optimize this away when the value
20994         is signed (when it assumes overflow leads to undefined behavior).
20995         Also, don't assume time_t uses two's complement.
20996
20997 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20998
20999         * MODULES.html.sh: New module wctype.
21000         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21001         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21002         <wctype.h>, since the new wctype module should fix this.
21003         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21004         the wctype module should arrange for it.
21005         * lib/regex_internal.h: Likewise.
21006         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21007         since the wctype module should handle this now.
21008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21009         * modules/fnmatch (Depends-on): Add wctype.
21010         * modules/quotearg (Depends-on): Likewise.
21011         * modules/regex (Depends-on): Likewise.
21012
21013 2006-12-19  Bruno Haible  <bruno@clisp.org>
21014
21015         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21016         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21017
21018 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21019
21020         * modules/savewd (Depends-on): Fix dependency on fcntl.
21021
21022 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21023
21024         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21025         conforms to C99, rather than relying on the user's environment
21026         setting of STDINT_H.
21027
21028 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21029         and Eric Blake  <ebb9@byu.net>
21030
21031         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21032         This is more consistent with the other defines here.
21033         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21034         Port to z/OS.  Problem reported by Paul Gilmartin.
21035         Change local vars to use gl_ prefix rather than ac_.
21036         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21037         with other defines.
21038         * modules/double-slash-root: New module.
21039         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21040         (Depends-on): Add double-slash-root.
21041         * MODULES.html.sh (File system functions): Mention new module.
21042
21043 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21044
21045         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21046         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21047         This is for the benefit of gzip, which doesn't do i18n.
21048
21049 2006-12-12  Jim Meyering  <jim@meyering.net>
21050
21051         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21052         Reported by Andreas Schwab <schwab@suse.de>.
21053
21054 2006-12-12  Bruno Haible  <bruno@clisp.org>
21055
21056         Merge these changes.
21057         2006-09-05  Bruno Haible  <bruno@clisp.org>
21058         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21059         iconv_alloc succeeded.
21060         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21061         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21062         test for " && dest " at the end - dest is always != NULL there. Call
21063         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21064         with 2xNULL arguments, also to flush the state storage. Handle the
21065         IRIX iconv behaviour. Realloc the final result, to throw away unused
21066         memory.
21067
21068 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21071         and fchmodat unconditionally, since glibc 2.4 has them.
21072         Problem reported by Arkadiusz Miskiewicz.
21073
21074 2006-12-10  Bruno Haible  <bruno@clisp.org>
21075
21076         * gnulib-tool (func_import): Show the include files only for those
21077         modules that are copied and specified.
21078         Reported by Karl Berry.
21079
21080 2006-12-08  Jim Meyering  <jim@meyering.net>
21081
21082         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21083         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21084
21085         * build-aux/announce-gen: Add two new options, both optional:
21086         --bootstrap-tools=TOOL_LIST
21087               a comma-separated list of tools, e.g.,
21088               autoconf,automake,bison,gnulib
21089         --gnulib-snapshot-date=DATE
21090               if gnulib is in the bootstrap tool list,
21091               then report this as the snapshot date.
21092               If not specified, use the current date/time.
21093               If you specify a date here, be sure it's UTC.
21094
21095 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21096
21097         * tests/test-argp-2.sh: Fix test to match actual output.
21098         (func_compare): Fix sed script to be portable.
21099
21100 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21101
21102         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21103         workaround for this case.  It is not autoconfigured now; offhand
21104         it's hard to see how to autoconfigure it.
21105
21106 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21107
21108         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21109         a directory that is about to be chowned.  Such a directory's
21110         initial file permissions should permit the owner only and this
21111         should not be changed until after the chown, since the group and
21112         other bits would be incorrect if they granted permission before
21113         the chown.
21114
21115         Fix porting problem for iswctype reported by Georg Schwarz in:
21116         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21117         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21118         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21119         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21120         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21121
21122 2006-12-03  Jim Meyering  <jim@meyering.net>
21123
21124         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21125         p->fts_statp may not yet be defined.
21126         (fts_read): Instead, set it in the caller, once p->fts_statp is
21127         sure to be defined, and corresponds to a top-level directory.
21128         This bug made du -x fail.  Here's the coreutils test case:
21129         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21130         Reported by Mike Frysinger.
21131
21132 2006-12-01  Jim Meyering  <jim@meyering.net>
21133
21134         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21135         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21136         Reported by Simon Josefsson.
21137
21138 2006-11-30  Jim Meyering  <jim@meyering.net>
21139
21140         * m4/warning.m4: Use the all-permissive copyright notice
21141         recommended by RMS (rather than LGPL).
21142         * m4/vararrays.m4: Likewise.
21143         * m4/flexmember.m4: Likewise.
21144
21145 2006-11-29  Bruno Haible  <bruno@clisp.org>
21146
21147         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21148         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21149         using +=.
21150         Reported by Simon Josefsson <simon@josefsson.org>.
21151
21152 2006-11-28  James Youngman <jay@gnu.org>
21153
21154         * README: Advise users that they might find the bug-gnulib@gnu.org
21155         and autotools-announce@gnu.org mailing lists useful.
21156
21157 2006-11-28  Bruno Haible  <bruno@clisp.org>
21158
21159         * m4/ptrdiff_max.m4: Remove file.
21160
21161 2006-11-21  Bruno Haible  <bruno@clisp.org>
21162
21163         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21164         _AC_COMPUTE_INT.
21165         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21166         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21167         _AC_COMPUTE_INT.
21168         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21169         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21170         _AC_COMPUTE_INT.
21171         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21172
21173 2006-11-28  Jim Meyering  <jim@meyering.net>
21174
21175         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21176         warning from "gcc -Wshadow" about shadowing the builtin.
21177
21178 2006-11-27  Bruno Haible  <bruno@clisp.org>
21179
21180         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21181         _AC_COMPUTE_INT.
21182         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21183
21184 2006-11-27  Bruno Haible  <bruno@clisp.org>
21185             Paul Eggert  <eggert@cs.ucla.edu>
21186
21187         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21188
21189 2006-11-26  Bruno Haible  <bruno@clisp.org>
21190
21191         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21192         noinst_LTLIBRARIES.
21193
21194 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21195             Bruno Haible  <bruno@clisp.org>
21196
21197         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21198         if compiling with "gcc -ansi".
21199
21200 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21201
21202         Fix some incompatibilities with gcc -ansi -pedantic.
21203         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21204         if compiling pedantically with GCC, unless it's C99 or later.
21205         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21206         it mishandles gcc -ansi -pedantic as well.
21207         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21208         if gcc -pedantic.
21209         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21210         initializers for struct if -pedantic, unless it's C99 or later.
21211
21212 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21213
21214         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21215         Don't close an fd more than once. Identical atimes indicate
21216         success, not failure.
21217
21218 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21219
21220         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21221
21222 2006-11-23  Jim Meyering  <jim@meyering.net>
21223
21224         * build-aux/announce-gen: New file.  From coreutils.
21225
21226 2006-11-22  Jim Meyering  <jim@meyering.net>
21227
21228         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21229         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21230         (fts_read): Use a temporary to narrow the overused st_size member
21231         before using it in a switch statement.  Reported by Matthew Woehlke.
21232
21233         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21235
21236 2006-11-20  Bruno Haible  <bruno@clisp.org>
21237
21238         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21239         changequote instead of pairs of brackets.
21240         Reported by Andreas Schwab <schwab@suse.de>.
21241
21242 2006-11-21  Jim Meyering  <jim@meyering.net>
21243
21244         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21245         so as to remain compatible with older compilers.
21246         Patch from Michael Deutschmann.
21247
21248 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21249
21250         * MODULES.html.sh (File system functions): Add openat.
21251
21252         * lib/openat.h (rpl_fstatat): New macro, if
21253         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21254         (fstatat): Define to rpl_fstatat under the same conditions,
21255         unless COMPILING_FSTATAT.
21256         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21257         seems to have the bug.
21258         * lib/fstatat.c: New file.
21259         * modules/openat (Files): Add it.
21260
21261 2006-11-20  Bruno Haible  <bruno@clisp.org>
21262
21263         * Makefile: New file.
21264
21265 2006-11-20  Jim Meyering  <jim@meyering.net>
21266
21267         The beginnings of syntax-related checks for gnulib.
21268         * lib/Makefile: New file.
21269         * lib/t-idcache: New script.  Ensure that the two halves of
21270         idcache.c stay in sync.
21271
21272         * lib/idcache.c: Adjust comments in user- and group- portions to
21273         be more accurate, and to be consistent with one another.
21274
21275 2006-11-20  Jim Meyering  <jim@meyering.net>
21276
21277         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21278         continue using the flexible array member (thus, this module performs
21279         half as many malloc calls), with the addition that...
21280         (getgroup, getuser): Consistently record a non-match via an empty
21281         "name" string, and map an empty string match to a NULL return value.
21282         * modules/idcache (Depends-on): Re-add flexmember.
21283
21284         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21285         (getuidbyname, getgroup, getgidbyname): Likewise.
21286
21287         Use cleaner syntax: NULL rather than 0.
21288         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21289
21290 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21291
21292         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21293         It mishandled the case where the group was missing.
21294         Problem reported by Greg Schafer.
21295         * modules/idcache: Likewise.
21296
21297 2006-11-18  Jim Meyering  <jim@meyering.net>
21298
21299         * check-module (%exempt_header): Add exception for some
21300         conditionally-included headers.
21301
21302         * modules/i-ring (Depends-on): Add verify.
21303         (License): Change to LGPL.
21304
21305 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21306
21307         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21308         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21309         and inttostr.h.  Use snprintf rather than uinttostr, so that
21310         LGPLed code doesn't depend on GPLed.
21311
21312 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21313
21314         * modules/inline (License): Change from GPL to LGPL.
21315
21316 2006-11-17  Jim Meyering  <jim@meyering.net>
21317
21318         * modules/d-type (License): Switch to LGPL.
21319
21320 2006-11-15  Bruno Haible  <bruno@clisp.org>
21321
21322         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21323
21324 2006-11-15  Eric Blake  <ebb9@byu.net>
21325
21326         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21327         the module dependency.
21328
21329 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21330             Bruno Haible  <bruno@clisp.org>
21331
21332         * gnulib-tool (func_create_testdir): Add license consistency check.
21333
21334 2006-11-15  Eric Blake  <ebb9@byu.net>
21335
21336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21337         random "(cached)" in configure output.
21338
21339 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21340
21341         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21342         test for conforming inttypes.h is both announced and cached.
21343
21344         * MODULES.html.sh (seen_modules, seen_files): New variables.
21345         (func_module): Rewrite to use a few less gnulib-tool and sed
21346         invocations.  Avoid a couple of quadratic algorithms for ...
21347         (missed_modules, missed_files): ... these, with ...
21348         (func_append, func_tmpdir): ... these new functions, from
21349         gnulib-tool.  Analogously, install traps for cleanup.
21350
21351         * tests/test-gc.c (main): Remove unused variables.
21352         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21353
21354 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21355
21356         * modules/inttostr (License): Change to LGPL.
21357
21358 2006-11-14  Eric Blake  <ebb9@byu.net>
21359
21360         * modules/tempname (License): Change to LGPL.
21361
21362 2006-11-14  Eric Blake  <ebb9@byu.net>
21363
21364         * doc/functions.texi (Function Portability): *printf functions on
21365         Cygwin now understand all POSIX size specifiers.
21366
21367 2006-11-14  Bruno Haible  <bruno@clisp.org>
21368
21369         * modules/c-ctype (License): Change to LGPL.
21370
21371 2006-11-12  Bruno Haible  <bruno@clisp.org>
21372
21373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21374         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21375         for GNOME libraries, for which the include files are installed in
21376         subdirectories of $prefix/include.
21377
21378 2006-11-12  Bruno Haible  <bruno@clisp.org>
21379
21380         * m4/lib-link.m4: Require at least autoconf-2.54.
21381         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21382         name to underscores for the --with option.
21383
21384 2006-11-13  Bruno Haible  <bruno@clisp.org>
21385
21386         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21387         the tests directory.
21388         Reported by Ralf Wildenhues.
21389
21390 2006-11-13  Bruno Haible  <bruno@clisp.org>
21391
21392         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21393         (func_emit_initmacro_end): Undo the override here.
21394         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21395         Works around the famous automake error in coreutils.
21396
21397 2006-11-13  Eric Blake  <ebb9@byu.net>
21398
21399         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21400         element, not its node.
21401
21402 2006-11-12  Bruno Haible  <bruno@clisp.org>
21403
21404         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21405         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21406
21407 2006-11-12  Bruno Haible  <bruno@clisp.org>
21408
21409         * gnulib-tool: New option --local-symlink.
21410         (func_usage): Document it.
21411         (lsymbolic): New variable.
21412         (func_import, func_create_testdir): If --symlink was not specified,
21413         test whether --local-symlink was specified and the file comes from
21414         the local_gnulib_dir.
21415
21416 2006-11-12  Bruno Haible  <bruno@clisp.org>
21417
21418         * gnulib-tool (func_ln): New function.
21419         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21420
21421 2006-11-12  Bruno Haible  <bruno@clisp.org>
21422
21423         Finish support for source files in subdirectories.
21424         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21425         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21426         AUTOMAKE_OPTIONS.
21427         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21428
21429 2006-11-12  Bruno Haible  <bruno@clisp.org>
21430
21431         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21432         EXTRA_lib_SOURCES augmentation.
21433         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21434
21435 2006-11-12  Jim Meyering  <jim@meyering.net>
21436
21437         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21438         file descriptors.  This also averts a failure on systems with
21439         native openat support when a traversed directory lacks "x" access.
21440         * lib/fts_.h: Include "i-ring.h"
21441         (struct FTS) [fts_fd_ring]: New member.
21442         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21443         (FCHDIR): Add parentheses.
21444         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21445         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21446         When descending, rather than simply closing the previous
21447         fts_cwd_fd value, push that file descriptor onto the ring.
21448         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21449         (fts_open): Initialize the new fd_ring member.
21450         (fts_close): Clear the ring.
21451         (fts_safe_changedir): When possible, use our new fd_ring to skip
21452         the diropen and fstat and dev/ino comparison that would normally
21453         accompany a virtual `chdir ("..")'.
21454
21455         * modules/fts (Depends-on): Add i-ring.
21456         * modules/i-ring: New module.
21457         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21458         * m4/i-ring.m4: New file.
21459
21460 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21461
21462         * gnulib-tool (func_create_testdir): Fix replacement of
21463         `build-aux' in configure.ac.  Run autotools in gltests
21464         subdirectory.
21465         (func_create_testdir, func_create_megatestdir, test): There is
21466         no need for '--force' in most autotool invocations in a new
21467         tree.  Actually fail the whole test if any of the tools, or the
21468         configure or make stages fail.
21469
21470         Sync from Automake.
21471         * build-aux/gnupload: Revert last change.  Add pointer to upload
21472         instructions of the GNU Maintenance Instructions.
21473         Suggestion by Karl Berry.
21474
21475 2006-11-10  Jim Meyering  <jim@meyering.net>
21476
21477         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21478
21479 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21480
21481         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21482         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21483         (bind_textdomain_codeset) [! ENABLE_NLS]:
21484         Evaluate all the arguments.  That way, callers get compatible behavior
21485         if the arguments have side effects.  Also, it avoids some GCC
21486         diagnostics in some cases; Joel E. Denny reported problems when Bison
21487         was configured with --enable-gcc-warnigs.
21488
21489 2006-11-10  Jim Meyering  <jim@meyering.net>
21490
21491         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21492         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21493         account.
21494
21495 2006-11-10  Jim Meyering  <jim@meyering.net>
21496
21497         * modules/inline: New file/module.
21498         * modules/xalloc (Files): Remove m4/inline.m4.
21499         (Depends-on): Add inline, instead.
21500         * modules/oset: Likewise.
21501         * modules/list: Likewise.
21502
21503 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21504
21505         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21506         Problem reported by Matthew Woehlke.
21507
21508 2006-11-09  Bruno Haible  <bruno@clisp.org>
21509
21510         * lib/tempname.c (gen_tempname): Remove variant that invokes
21511         __gen_tempname.
21512         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21513         __gen_tempname.
21514
21515 2006-11-08  Bruno Haible  <bruno@clisp.org>
21516
21517         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21518         to 'yes' instead of 'cross-compiling'.
21519
21520 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21521
21522         * lib/quotearg.h (quotearg_free): New decl.
21523         * lib/quotearg.c (quotearg_free): New function.
21524         (slot0, nslots, slotvec0, slotvec):
21525         Now file-scope so that quotearg_free can get at them.
21526
21527 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21528
21529         Sync from Automake.
21530         * build-aux/gnupload: Add missing 'gnu' to example URL.
21531         Report by Karl Berry.
21532
21533 2006-11-08  Bruno Haible  <bruno@clisp.org>
21534
21535         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21536         Suggested by Paul Eggert.
21537
21538 2006-11-08  Jim Meyering  <jim@meyering.net>
21539
21540         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21541         It's already included if !_LIBC.
21542         (fts_safe_changedir): Add a comment.
21543
21544 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21545
21546         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21547         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21548         Matthew Woehlke.
21549
21550         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21551         definitions up, to avoid colliding with change below.
21552         (static_inline) [HAVE_INLINE]: New macro.
21553         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21554         Provide extern decls when !HAVE_INLINE.  Do not define unless
21555         static_inline is defined, either by us or by xmalloc.c.  Use
21556         static_inline rather than static inline.
21557         (XCALLOC): Optimize sizeof(T) = 1 case.
21558         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21559
21560 2006-11-07  Bruno Haible  <bruno@clisp.org>
21561
21562         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21563         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21564         AC_C_INLINE.
21565         * modules/xalloc (Files): Add m4/inline.m4.
21566
21567 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21568
21569         * README: Fix typo.
21570         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21571         (Miscellanous Notes): ...from this.
21572
21573 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21574
21575         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21576         Mention that offsetof should be used instead of sizeof.
21577         From Bruno Haible.
21578
21579 2006-11-07  Bruno Haible  <bruno@clisp.org>
21580
21581         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21582
21583 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21586         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21587         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21588         (gl_tree_add_before, gl_tree_add_after):
21589         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21590         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21591         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21592         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21593         (gl_linked_add_after, gl_linked_add_at): Likewise.
21594         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21595         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21596         (gl_tree_add_before, gl_tree_add_after): Likewise.
21597         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21598         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21599         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21600
21601 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21602
21603         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21604
21605 2006-11-06  Bruno Haible  <bruno@clisp.org>
21606
21607         * m4/inline.m4: New file.
21608         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21609         * modules/list (Files): Add m4/inline.m4.
21610         * modules/oset (Files): Likewise.
21611
21612 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         * lib/idcache.c: Include <stddef.h>, for offsetof.
21615         (struct userid.name): Change from char * to a flexible array member.
21616         All uses changed.
21617         * modules/idcache (Depends-on): Add flexmember.
21618
21619         * MODULES.html.sh (Core language properties): New module flexmember.
21620         * modules/flexmember, m4/flexmember.m4: New files.
21621
21622         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21623         inline functions that are identical with the old xnmalloc_inline,
21624         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21625         that we can avoid some unnecessary integer multiplications and
21626         divisions in the common case where the element size is known at
21627         compile time.
21628         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21629         needed.
21630         (xnboundedmalloc): Remove.
21631         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21632         arguments, for consistency with rest of this header.
21633         (xcharalloc): Rewrite using XNMALLOC.
21634         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21635         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21636         versions have been moved to lib/xalloc.h and renamed to be the
21637         non-*_inline versions.
21638         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21639         and xnrealloc functions, since those functions are now inline and
21640         now call us.
21641         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21642         renaming described above.
21643         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21644         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21645         captures the dependency in AC_C_INLINE.
21646
21647         New module canonicalize-lgpl, proposed by Charles Wilson in
21648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21649         with a few small changes afterwards.
21650         * MODULES.html.sh (File system functions): New module
21651         canonicalize-lgpl.
21652         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21653         and canonicalize_file_name.
21654         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21655         * modules/canonicalize-lgpl: New files.
21656
21657 2006-11-05  Bruno Haible  <bruno@clisp.org>
21658
21659         * gnulib-tool (func_import, func_create_testdir): Create directories
21660         also for files in subdirectories of lib/.
21661
21662 2006-11-05  Bruno Haible  <bruno@clisp.org>
21663
21664         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21665         ANSI C compliant.
21666
21667 2006-11-03  Bruno Haible  <bruno@clisp.org>
21668
21669         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21671         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21672         (xnboundedmalloc): New inline function.
21673         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21674         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21675         xmalloc.
21676         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21677         xmalloc.
21678         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21679         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21680         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21681         xmalloc.
21682         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21683         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21684         xmalloc.
21685         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21686         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21687         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21688         xmalloc.
21689         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21690         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21691         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21692         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21693         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21694         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21695         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21696
21697 2006-11-03  Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/c-ctype.h [C++]: Define functions without name mangling.
21700         * lib/fwriteerror.h [C++]: Likewise.
21701         * lib/gcd.h [C++]: Likewise.
21702         * lib/linebreak.h [C++]: Likewise.
21703
21704 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21707         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21708         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21709         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21710         Check for functions and headers just once.
21711         Check for declaration of canonicalize_file_name.
21712         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21713
21714 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21715
21716         * gnulib-tool (func_import): Fix typo in actioncmd.
21717
21718 2006-11-02  Bruno Haible  <bruno@clisp.org>
21719
21720         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21721         newline sequence in the Makefile.am snippet as a space, like "make"
21722         does.
21723         Reported by Roger Persson <perrog@gmail.com>.
21724
21725 2006-11-01  Bruno Haible  <bruno@clisp.org>
21726
21727         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21728         already declared in <string.h>.
21729         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21730
21731 2006-11-01  Bruno Haible  <bruno@clisp.org>
21732
21733         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21734         * lib/strcase.h: Include <string.h>.
21735         (strcasecmp): Define to rpl_strcasecmp here.
21736
21737 2006-11-01  Bruno Haible  <bruno@clisp.org>
21738
21739         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21740
21741 2006-11-01  Eric Blake  <ebb9@byu.net>
21742
21743         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21744
21745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21746
21747 2006-10-29  Bruno Haible  <bruno@clisp.org>
21748
21749         Make it compile in C++ mode.
21750         * lib/full-write.c (full_rw): Add a cast.
21751
21752 2006-11-01  Bruno Haible  <bruno@clisp.org>
21753
21754         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21755         be POSIX compliant.
21756         Reported by Roger Persson <perrog@gmail.com>.
21757
21758 2006-11-01  Eric Blake  <ebb9@byu.net>
21759
21760         * lib/getopt_.h: Fix comments.
21761
21762 2006-10-31  Eric Blake  <ebb9@byu.net>
21763
21764         * modules/tmpdir (Depends-on): Add sys_stat.
21765         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21766         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21767         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21768         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21769         tempname.
21770
21771 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21772
21773         Avoid some C++ diagnostics reported by Bruno Haible.
21774         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21775         xmalloc.
21776         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21777         (struct slotvec): Move to top level.
21778         (quotearg_n_options): Rewrite to avoid xmalloc.
21779         * lib/xalloc.h (xcharalloc): New function.
21780         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21781         [defined __cplusplus]: Add function template that provides result
21782         type propagation.  This part of the change is from Bruno Haible.
21783
21784 2006-10-29  Bruno Haible  <bruno@clisp.org>
21785
21786         Make it compile in C++ mode.
21787         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21788         * lib/strnlen1.c (strnlen1): Cast memchr result.
21789         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21790         * lib/clean-temp.c (string_equals, string_hash): Add casts.
21791         (create_temp_dir): Rename local variable 'template'.
21792         (compile_csharp_using_sscli): Add cast.
21793         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21794         * lib/findprog.c (find_in_path): Likewise.
21795         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21796         * lib/wait-process.c (register_slave_subprocess): Likewise.
21797
21798 2006-10-22  Bruno Haible  <bruno@clisp.org>
21799
21800         * modules/tsearch: New file.
21801         * lib/tsearch.h: New file.
21802         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21803         * m4/tsearch.m4: New file.
21804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21805
21806 2006-10-29  Eric Blake  <ebb9@byu.net>
21807
21808         * lib/arcfour.c: Assume config.h.
21809         * lib/arctwo.c: Likewise.
21810         * lib/base64.c: Likewise.
21811         * lib/check-version.c: Likewise.
21812         * lib/crc.c: Likewise.
21813         * lib/des.c: Likewise.
21814         * lib/gc-gnulib.c: Likewise.
21815         * lib/gc-libgcrypt.c: Likewise.
21816         * lib/gc-pbkdf2-sha1.c: Likewise.
21817         * lib/getaddrinfo.c: Likewise.
21818         * lib/getdelim.c: Likewise.
21819         * lib/getline.c: Likewise.
21820         * lib/hmac-md5.c: Likewise.
21821         * lib/hmac-sha1.c: Likewise.
21822         * lib/iconvme.c: Likewise.
21823         * lib/md2.c: Likewise.
21824         * lib/md4.c: Likewise.
21825         * lib/memxor.c: Likewise.
21826         * lib/read-file.c: Likewise.
21827         * lib/readline.c: Likewise.
21828         * lib/rijndael-alg-fst.c: Likewise.
21829         * lib/rijndael-api-fst.c: Likewise.
21830         * lib/xgetdomainname.c: Likewise.
21831
21832 2006-10-28  Eric Blake  <ebb9@byu.net>
21833
21834         * lib/xstrndup.c: Assume config.h.
21835
21836 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21837
21838         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21839         stat-macros.h is now for our own macros, whereas stat_h is for
21840         macros in the <sys/stat.h> name space.
21841         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21842         (STAT_MACROS_H): Remove.
21843         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21844         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21845         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21846         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21847         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21848         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21849         Move these macros to ...
21850         * lib/stat_.h: here.  Don't include stat-macros.h.
21851         * lib/canonicalize.c: Don't include stat-macros.h.
21852         * lib/chown.c: Likewise.
21853         * lib/euidaccess.c: Likewise.
21854         * lib/file-type.c: Likewise.
21855         * lib/filemode.c: Likewise.
21856         * lib/glob.c: Likewise.
21857         * lib/isapipe.c: Likewise.
21858         * lib/lchown.c: Likewise.
21859         * lib/lstat.c: Likewise.
21860         * lib/mkdir-p.c: Likewise.
21861         * lib/rmdir.c: Likewise.
21862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21864         unless mkdir isn't declared, to speed up 'configure'.
21865         Always create sys/stat.h, since it's unlikely any real sys/stat.h
21866         would define all the S_* symbols.
21867         * modules/canonicalize (Depends-on):
21868         Depend on sys_stat, not stat-macros.
21869         * modules/chown: Likewise.
21870         * modules/euidaccess: Likewise.
21871         * modules/filemode: Likewise.
21872         * modules/file-type: Likewise.
21873         * modules/glob: Likewise.
21874         * modules/isapipe: Likewise.
21875         * modules/lchown: Likewise.
21876         * modules/lstat: Likewise.
21877         * modules/mkancesdirs: Likewise.
21878         * modules/rmdir: Likewise.
21879         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21880         * modules/modechange: Likewise.
21881         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21882         (configure.ac): Remove gl_STAT_MACROS.
21883         * modules/sys_stat (Depends-on): Remove stat-macros.
21884
21885 2006-10-27  Bruno Haible  <bruno@clisp.org>
21886
21887         * m4/signed.m4: Remove file.
21888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21889         invocation.
21890         * modules/vasnprintf (Files): Remove m4/signed.m4.
21891
21892 2006-10-27  Bruno Haible  <bruno@clisp.org>
21893
21894         Update to GNU gettext 0.16.
21895         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21896         m4/inttypes-h.m4, m4/signed.m4.
21897         * m4/gettext.m4: Update to GNU gettext 0.16.
21898         * m4/intl.m4: New file, from GNU gettext.
21899         * m4/intldir.m4: New file, from GNU gettext.
21900         * config/srclist.txt: Update
21901
21902 2006-10-27  Eric Blake  <ebb9@byu.net>
21903
21904         * MODULES.html.sh: Document tempname.
21905         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21906         dependencies.
21907         (Files): Move lib/tempname.c...
21908         * modules/tempname: ...to this new module.
21909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21910         (gl_PREREQ_TEMPNAME): Move...
21911         * m4/tempname.m4: ...to this new file.
21912         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21913         * modules/sys_stat (Depends-on): Add stat-macros.
21914         * lib/stat_.h (includes): Pick up stat macros.
21915         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21916         if stat macros are broken.
21917         * lib/tempname.c (includes): No need to include "stat-macros.h".
21918         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21919         (direxists, __path_search) [!_LIBC]: Don't compile these in
21920         gnulib; the tmpdir module covers that.
21921         * lib/tempname.h: New file.
21922
21923 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21924
21925         * COPYING: Explain how gnulib-tool converts licence headers.
21926         Almost all wording by Eric Blake.
21927
21928 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21929
21930         * lib/mbchar.h (is_basic_table): Make read-only.
21931         * lib/mbchar.c (is_basic_table): Likewise.
21932         Reported by John Darrington.
21933
21934 2006-10-25  Bruno Haible  <bruno@clisp.org>
21935
21936         * lib/progname.h (set_program_name): Undefine before defining.
21937
21938 2006-10-25  Bruno Haible  <bruno@clisp.org>
21939
21940         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21941         false for non-gcc C++ compilers.
21942         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21943
21944 2006-10-24  Bruno Haible  <bruno@clisp.org>
21945
21946         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21947         iconv implementations like Irix iconv.
21948
21949 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21950
21951         * modules/vararrays: New file.
21952         * m4/vararrays.m4: New file, taken from diffutils.
21953         * MODULES.html.sh: New module vararrays.
21954
21955 2006-10-24  Karl Berry  <karl@gnu.org>
21956
21957         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21958         Don't call GNU Unix.
21959
21960 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21961
21962         * users.txt: Add Libtool.
21963
21964         Sync from Libtool:
21965
21966         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21967
21968         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21969         to gnulib's policy of including config.h unconditionally.
21970
21971 2006-10-24  Bruno Haible  <bruno@clisp.org>
21972
21973         * modules/wcwidth (Files): Add m4/wint_t.m4.
21974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21975         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21976
21977 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21978
21979         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21980         to pacify GCC with some -W flags enabled.  Problem reported by
21981         Bruno Haible.
21982
21983 2006-10-24  Jim Meyering  <jim@meyering.net>
21984
21985         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21986         Reported by Karl Berry.
21987
21988 2006-10-23  Bruno Haible  <bruno@clisp.org>
21989
21990         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21991
21992 2006-10-24  Bruno Haible  <bruno@clisp.org>
21993
21994         * lib/gl_list.h: Use C comment style, not C++ comment style.
21995
21996 2006-10-23  Eric Blake  <ebb9@byu.net>
21997
21998         * lib/getaddrinfo.c (includes): Add missing include.
21999
22000 2006-10-23  Bruno Haible  <bruno@clisp.org>
22001             Paul Eggert  <eggert@cs.ucla.edu>
22002
22003         Ability to rename obstack_free.
22004         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22005         obstack_free.
22006         (obstack_free): Invoke the __obstack_free macro.
22007         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22008
22009 2006-10-23  Bruno Haible  <bruno@clisp.org>
22010             Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22013         __argc, __argv from the declaration. (They are defined as macros on
22014         mingw.)
22015
22016 2006-10-22  Bruno Haible  <bruno@clisp.org>
22017
22018         * doc/gnulib-intro.texi: New file.
22019         * doc/gnulib.texi: Include it.
22020
22021 2006-10-21  Bruno Haible  <bruno@clisp.org>
22022
22023         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22024         "Introduction", "Miscellanous Notes", "Particular Modules".
22025
22026 2006-10-21  Bruno Haible  <bruno@clisp.org>
22027
22028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22029         Change mostlyclean-local rule to avoid sh syntax error from bash
22030         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22031
22032 2006-10-23  Jim Meyering  <jim@meyering.net>
22033
22034         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22035         in place of snprintf.
22036
22037         * modules/inttostr (Files): Add lib/uinttostr.c.
22038         * lib/uinttostr.c (inttostr): New file/function.
22039         * lib/inttostr.h (uinttostr): Declare.
22040         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22041         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22042         Add uinttostr.
22043         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22044
22045 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22046
22047         * lib/canonicalize.c (ELOOP): Define if not already defined.
22048         Problem reported by Bruno Haible in
22049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22050
22051 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22052
22053         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22054         Problem reported by Perry Smith and Ville Laurikari.
22055
22056         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22057         uses.
22058
22059 2006-10-19  Bruno Haible  <bruno@clisp.org>
22060
22061         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22062         for mingw.
22063
22064 2006-10-19  Bruno Haible  <bruno@clisp.org>
22065
22066         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22067         Needed for mingw.
22068
22069 2006-10-19  Bruno Haible  <bruno@clisp.org>
22070
22071         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22072
22073 2006-10-19  Bruno Haible  <bruno@clisp.org>
22074
22075         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22076         it.
22077
22078 2006-10-19  Bruno Haible  <bruno@clisp.org>
22079
22080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22081         invocation.
22082
22083 2006-10-19  Bruno Haible  <bruno@clisp.org>
22084
22085         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22086         mountlist by default.
22087
22088 2006-10-16  Bruno Haible  <bruno@clisp.org>
22089
22090         * lib/c-strstr.c: Include c-strstr.h.
22091
22092 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22093
22094         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22095         in a slash.
22096
22097 2006-10-18  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/lock.h [C++]: Wrap definitions in extern "C".
22100
22101 2006-10-18  Bruno Haible  <bruno@clisp.org>
22102
22103         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22104         gl_LIBOBJS list.
22105
22106 2006-10-18  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22109
22110 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22111
22112         * lib/xstrtol.h: Include gettext.h.
22113         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22114         Problem reported by Eric Blake.
22115         * modules/xstrtol (Depends-on): Add gettext-h.
22116
22117 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22118
22119         * lib/strftime.c (advance): New macro.
22120         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22121         incomplete type, so you can't add 0 to it.  Problem and patch
22122         reported by Eelco Dolstra for dietlibc.
22123
22124 2006-10-18  Jim Meyering  <jim@meyering.net>
22125
22126         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22127         type for a local, and rename it: s/up/user_proc/.
22128
22129 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22130
22131         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22132         READ_UTMP_USER_PROCESS.
22133         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22134
22135 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22136
22137         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22138         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22139
22140 2006-10-17  Eric Blake  <ebb9@byu.net>
22141
22142         * lib/sigprocmask.c (sigprocmask): Fix typo.
22143
22144         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22145
22146         * modules/clean-temp (Makefile.am): Don't add to make output...
22147         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22148         config.h.
22149
22150 2006-10-17  Bruno Haible  <bruno@clisp.org>
22151
22152         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22153         differently if DEFAULT_TEXT_DOMAIN is set.
22154
22155 2006-10-16  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/clean-temp.c: Include fwriteerror.h.
22158
22159 2006-10-16  Bruno Haible  <bruno@clisp.org>
22160
22161         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22162
22163 2006-10-16  Bruno Haible  <bruno@clisp.org>
22164
22165         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22166         * lib/sigprocmask.h: Include <sys/types.h>.
22167         (sigset_t): Use the system's definition if present.
22168
22169 2006-10-17  Eric Blake  <ebb9@byu.net>
22170
22171         * lib/xvasprintf.c (includes): Assume config.h.
22172         * lib/xasprintf.c (includes): Likewise.
22173
22174 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22175
22176         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22177         at least as wide as intmax_t.
22178
22179 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22180
22181         (Imported from Automake.)
22182         * build-aux/gnupload: Update to version 1.1 of directive file.
22183
22184 2006-10-16  Eric Blake  <ebb9@byu.net>
22185
22186         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22187         match Automake 1.10a.
22188
22189 2006-10-14  Bruno Haible  <bruno@clisp.org>
22190
22191         * modules/sigprocmask: New file.
22192         * lib/sigprocmask.h: New file.
22193         * lib/sigprocmask.c: New file.
22194         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22195         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22196         request sigprocmask.o.
22197         (gl_PREREQ_SIGPROCMASK): New macro.
22198         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22199         (Depends-on): Add sigprocmask.
22200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22201         gt_SIGNALBLOCKING. Test for 'raise' only once.
22202         * lib/fatal-signal.c: Include sigprocmask.h.
22203         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22204         unblock_fatal_signals): Define always.
22205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22206         sigprocmask.
22207
22208 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22209
22210         Sync from Automake.
22211         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22212         which incorrectly sets the mode of an existing destination
22213         directory.  In some cases the unpatched install-sh could do the
22214         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22215         system.  We hope this is rare in practice, but it's clearly worth
22216         fixing.  Problem reported by Alex Unleashed in
22217         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22218         Also, don't bother to check for -m bugs unless we're using -m;
22219         suggested by Stepan Kasal.
22220
22221 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22222
22223         Sync from Automake.
22224         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22225         `-c' flag, so they appear at the same position as in %FASTDEP%
22226         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22227         which ignores unknown options only after the first non-option.
22228         Bug report against M4 by Nelson H. F. Beebe.
22229
22230 2006-10-13  Jim Meyering  <jim@meyering.net>
22231
22232         Fix a bug in yesterday's change.
22233         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22234         p->fts_statp->st_dev would be used uninitialized.
22235         Ensures that we always call fts_stat on the very first entry.
22236         Miklos Szeredi reported that find -xdev stopped working.
22237
22238 2006-10-12  Bruno Haible  <bruno@clisp.org>
22239
22240         * gnulib-tool (func_get_automake_snippet): Append an automatically
22241         computed EXTRA_DIST augmentation.
22242         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22243         * modules/alloca-opt (Makefile.am): Likewise.
22244         * modules/allocsa (Makefile.am): Likewise.
22245         * modules/arcfour (Makefile.am): Likewise.
22246         * modules/arctwo (Makefile.am): Likewise.
22247         * modules/argmatch (Makefile.am): Likewise.
22248         * modules/argz (Makefile.am): Likewise.
22249         * modules/atexit (Makefile.am): Likewise.
22250         * modules/backupfile (Makefile.am): Likewise.
22251         * modules/byteswap (Makefile.am): Likewise.
22252         * modules/c-strtod (Makefile.am): Likewise.
22253         * modules/c-strtold (Makefile.am): Likewise.
22254         * modules/calloc (Makefile.am): Likewise.
22255         * modules/canon-host (Makefile.am): Likewise.
22256         * modules/canonicalize (Makefile.am): Likewise.
22257         * modules/chdir-long (Makefile.am): Likewise.
22258         * modules/chdir-safer (Makefile.am): Likewise.
22259         * modules/check-version (Makefile.am): Likewise.
22260         * modules/chown (Makefile.am): Likewise.
22261         * modules/cloexec (Makefile.am): Likewise.
22262         * modules/close-stream (Makefile.am): Likewise.
22263         * modules/closeout (Makefile.am): Likewise.
22264         * modules/crc (Makefile.am): Likewise.
22265         * modules/csharpexec (Makefile.am): Likewise.
22266         * modules/cycle-check (Makefile.am): Likewise.
22267         * modules/des (Makefile.am): Likewise.
22268         * modules/dev-ino (Makefile.am): Likewise.
22269         * modules/dirfd (Makefile.am): Likewise.
22270         * modules/dirname (Makefile.am): Likewise.
22271         * modules/dup2 (Makefile.am): Likewise.
22272         * modules/eealloc (Makefile.am): Likewise.
22273         * modules/error (Makefile.am): Likewise.
22274         * modules/euidaccess (Makefile.am): Likewise.
22275         * modules/exclude (Makefile.am): Likewise.
22276         * modules/exitfail (Makefile.am): Likewise.
22277         * modules/fcntl-safer (Makefile.am): Likewise.
22278         * modules/fcntl (Makefile.am): Likewise.
22279         * modules/file-type (Makefile.am): Likewise.
22280         * modules/fileblocks (Makefile.am): Likewise.
22281         * modules/filemode (Makefile.am): Likewise.
22282         * modules/filenamecat (Makefile.am): Likewise.
22283         * modules/fnmatch (Makefile.am): Likewise.
22284         * modules/fopen-safer (Makefile.am): Likewise.
22285         * modules/fpending (Makefile.am): Likewise.
22286         * modules/fprintftime (Makefile.am): Likewise.
22287         * modules/free (Makefile.am): Likewise.
22288         * modules/fsusage (Makefile.am): Likewise.
22289         * modules/ftruncate (Makefile.am): Likewise.
22290         * modules/fts (Makefile.am): Likewise.
22291         * modules/gc-arcfour (Makefile.am): Likewise.
22292         * modules/gc-des (Makefile.am): Likewise.
22293         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22294         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22295         * modules/gc-md4 (Makefile.am): Likewise.
22296         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22297         * modules/gc-sha1 (Makefile.am): Likewise.
22298         * modules/gc (Makefile.am): Likewise.
22299         * modules/getaddrinfo (Makefile.am): Likewise.
22300         * modules/getcwd (Makefile.am): Likewise.
22301         * modules/getdelim (Makefile.am): Likewise.
22302         * modules/getdomainname (Makefile.am): Likewise.
22303         * modules/getgroups (Makefile.am): Likewise.
22304         * modules/gethostname (Makefile.am): Likewise.
22305         * modules/gethrxtime (Makefile.am): Likewise.
22306         * modules/getline (Makefile.am): Likewise.
22307         * modules/getloadavg (Makefile.am): Likewise.
22308         * modules/getlogin_r (Makefile.am): Likewise.
22309         * modules/getndelim2 (Makefile.am): Likewise.
22310         * modules/getopt (Makefile.am): Likewise.
22311         * modules/getpagesize (Makefile.am): Likewise.
22312         * modules/getpass-gnu (Makefile.am): Likewise.
22313         * modules/getpass (Makefile.am): Likewise.
22314         * modules/getsubopt (Makefile.am): Likewise.
22315         * modules/gettime (Makefile.am): Likewise.
22316         * modules/gettimeofday (Makefile.am): Likewise.
22317         * modules/getugroups (Makefile.am): Likewise.
22318         * modules/getusershell (Makefile.am): Likewise.
22319         * modules/glob (Makefile.am): Likewise.
22320         * modules/group-member (Makefile.am): Likewise.
22321         * modules/hard-locale (Makefile.am): Likewise.
22322         * modules/hash (Makefile.am): Likewise.
22323         * modules/hmac-md5 (Makefile.am): Likewise.
22324         * modules/hmac-sha1 (Makefile.am): Likewise.
22325         * modules/human (Makefile.am): Likewise.
22326         * modules/idcache (Makefile.am): Likewise.
22327         * modules/imaxabs (Makefile.am): Likewise.
22328         * modules/imaxdiv (Makefile.am): Likewise.
22329         * modules/inet_ntop (Makefile.am): Likewise.
22330         * modules/inet_pton (Makefile.am): Likewise.
22331         * modules/intprops (Makefile.am): Likewise.
22332         * modules/inttostr (Makefile.am): Likewise.
22333         * modules/inttypes (Makefile.am): Likewise.
22334         * modules/isapipe (Makefile.am): Likewise.
22335         * modules/javaversion (Makefile.am): Likewise.
22336         * modules/lchmod (Makefile.am): Likewise.
22337         * modules/lchown (Makefile.am): Likewise.
22338         * modules/localcharset (Makefile.am): Likewise.
22339         * modules/long-options (Makefile.am): Likewise.
22340         * modules/lstat (Makefile.am): Likewise.
22341         * modules/malloc (Makefile.am): Likewise.
22342         * modules/mathl (Makefile.am): Likewise.
22343         * modules/mbchar (Makefile.am): Likewise.
22344         * modules/md2 (Makefile.am): Likewise.
22345         * modules/md4 (Makefile.am): Likewise.
22346         * modules/md5 (Makefile.am): Likewise.
22347         * modules/memcasecmp (Makefile.am): Likewise.
22348         * modules/memchr (Makefile.am): Likewise.
22349         * modules/memcmp (Makefile.am): Likewise.
22350         * modules/memcoll (Makefile.am): Likewise.
22351         * modules/memcpy (Makefile.am): Likewise.
22352         * modules/memmem (Makefile.am): Likewise.
22353         * modules/memmove (Makefile.am): Likewise.
22354         * modules/mempcpy (Makefile.am): Likewise.
22355         * modules/memrchr (Makefile.am): Likewise.
22356         * modules/memset (Makefile.am): Likewise.
22357         * modules/memxor (Makefile.am): Likewise.
22358         * modules/mkancesdirs (Makefile.am): Likewise.
22359         * modules/mkdir-p (Makefile.am): Likewise.
22360         * modules/mkdir (Makefile.am): Likewise.
22361         * modules/mkdtemp (Makefile.am): Likewise.
22362         * modules/mkstemp (Makefile.am): Likewise.
22363         * modules/mktime (Makefile.am): Likewise.
22364         * modules/modechange (Makefile.am): Likewise.
22365         * modules/mountlist (Makefile.am): Likewise.
22366         * modules/nanosleep (Makefile.am): Likewise.
22367         * modules/obstack (Makefile.am): Likewise.
22368         * modules/openat (Makefile.am): Likewise.
22369         * modules/pagealign_alloc (Makefile.am): Likewise.
22370         * modules/pathmax (Makefile.am): Likewise.
22371         * modules/physmem (Makefile.am): Likewise.
22372         * modules/poll (Makefile.am): Likewise.
22373         * modules/posixtm (Makefile.am): Likewise.
22374         * modules/posixver (Makefile.am): Likewise.
22375         * modules/putenv (Makefile.am): Likewise.
22376         * modules/quote (Makefile.am): Likewise.
22377         * modules/quotearg (Makefile.am): Likewise.
22378         * modules/raise (Makefile.am): Likewise.
22379         * modules/read-file (Makefile.am): Likewise.
22380         * modules/readline (Makefile.am): Likewise.
22381         * modules/readlink (Makefile.am): Likewise.
22382         * modules/readtokens (Makefile.am): Likewise.
22383         * modules/readutmp (Makefile.am): Likewise.
22384         * modules/realloc (Makefile.am): Likewise.
22385         * modules/regex (Makefile.am): Likewise.
22386         * modules/rename-dest-slash (Makefile.am): Likewise.
22387         * modules/rename (Makefile.am): Likewise.
22388         * modules/rijndael (Makefile.am): Likewise.
22389         * modules/rmdir (Makefile.am): Likewise.
22390         * modules/rpmatch (Makefile.am): Likewise.
22391         * modules/safe-read (Makefile.am): Likewise.
22392         * modules/safe-write (Makefile.am): Likewise.
22393         * modules/same-inode (Makefile.am): Likewise.
22394         * modules/same (Makefile.am): Likewise.
22395         * modules/save-cwd (Makefile.am): Likewise.
22396         * modules/savedir (Makefile.am): Likewise.
22397         * modules/setenv (Makefile.am): Likewise.
22398         * modules/settime (Makefile.am): Likewise.
22399         * modules/sha1 (Makefile.am): Likewise.
22400         * modules/sig2str (Makefile.am): Likewise.
22401         * modules/snprintf (Makefile.am): Likewise.
22402         * modules/stat-macros (Makefile.am): Likewise.
22403         * modules/stat-time (Makefile.am): Likewise.
22404         * modules/stdbool (Makefile.am): Likewise.
22405         * modules/stdint (Makefile.am): Likewise.
22406         * modules/stdlib-safer (Makefile.am): Likewise.
22407         * modules/stpcpy (Makefile.am): Likewise.
22408         * modules/stpncpy (Makefile.am): Likewise.
22409         * modules/strcase (Makefile.am): Likewise.
22410         * modules/strcasestr (Makefile.am): Likewise.
22411         * modules/strchrnul (Makefile.am): Likewise.
22412         * modules/strcspn (Makefile.am): Likewise.
22413         * modules/strdup (Makefile.am): Likewise.
22414         * modules/strerror (Makefile.am): Likewise.
22415         * modules/strftime (Makefile.am): Likewise.
22416         * modules/strndup (Makefile.am): Likewise.
22417         * modules/strnlen (Makefile.am): Likewise.
22418         * modules/strpbrk (Makefile.am): Likewise.
22419         * modules/strsep (Makefile.am): Likewise.
22420         * modules/strstr (Makefile.am): Likewise.
22421         * modules/strtod (Makefile.am): Likewise.
22422         * modules/strtoimax (Makefile.am): Likewise.
22423         * modules/strtok_r (Makefile.am): Likewise.
22424         * modules/strtol (Makefile.am): Likewise.
22425         * modules/strtoll (Makefile.am): Likewise.
22426         * modules/strtoul (Makefile.am): Likewise.
22427         * modules/strtoull (Makefile.am): Likewise.
22428         * modules/strtoumax (Makefile.am): Likewise.
22429         * modules/strverscmp (Makefile.am): Likewise.
22430         * modules/sys_socket (Makefile.am): Likewise.
22431         * modules/sys_stat (Makefile.am): Likewise.
22432         * modules/sysexits (Makefile.am): Likewise.
22433         * modules/time_r (Makefile.am): Likewise.
22434         * modules/timegm (Makefile.am): Likewise.
22435         * modules/timespec (Makefile.am): Likewise.
22436         * modules/tmpfile-safer (Makefile.am): Likewise.
22437         * modules/trim (Makefile.am): Likewise.
22438         * modules/unistd-safer (Makefile.am): Likewise.
22439         * modules/unlinkdir (Makefile.am): Likewise.
22440         * modules/unlocked-io (Makefile.am): Likewise.
22441         * modules/userspec (Makefile.am): Likewise.
22442         * modules/utime (Makefile.am): Likewise.
22443         * modules/utimecmp (Makefile.am): Likewise.
22444         * modules/utimens (Makefile.am): Likewise.
22445         * modules/vasnprintf (Makefile.am): Likewise.
22446         * modules/vasprintf (Makefile.am): Likewise.
22447         * modules/vsnprintf (Makefile.am): Likewise.
22448         * modules/xalloc (Makefile.am): Likewise.
22449         * modules/xgetcwd (Makefile.am): Likewise.
22450         * modules/xnanosleep (Makefile.am): Likewise.
22451         * modules/xreadlink (Makefile.am): Likewise.
22452         * modules/xstrtod (Makefile.am): Likewise.
22453         * modules/xstrtol (Makefile.am): Likewise.
22454         * modules/xstrtold (Makefile.am): Likewise.
22455         * modules/yesno (Makefile.am): Likewise.
22456         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22457
22458 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         * modules/error (Makefile.am): Distribute files through
22461         EXTRA_DIST, not lib_SOURCES.
22462
22463 2006-10-12  Eric Blake  <ebb9@byu.net>
22464
22465         * modules/error (Makefile.am): Distribute files in /lib.
22466         * modules/obstack (Makefile.am): Likewise.
22467
22468 2006-10-12  Bruno Haible  <bruno@clisp.org>
22469
22470         * modules/acl (Makefile.am): Distribute all files in lib/ through
22471         EXTRA_DIST.
22472         * modules/arcfour (Makefile.am): Likewise.
22473         * modules/arctwo (Makefile.am): Likewise.
22474         * modules/argmatch (Makefile.am): Likewise.
22475         * modules/argz (Makefile.am): Likewise.
22476         * modules/atexit (Makefile.am): Likewise.
22477         * modules/backupfile (Makefile.am): Likewise.
22478         * modules/c-strtod (Makefile.am): Likewise.
22479         * modules/c-strtold (Makefile.am): Likewise.
22480         * modules/calloc (Makefile.am): Likewise.
22481         * modules/canon-host (Makefile.am): Likewise.
22482         * modules/canonicalize (Makefile.am): Likewise.
22483         * modules/chdir-long (Makefile.am): Likewise.
22484         * modules/chdir-safer (Makefile.am): Likewise.
22485         * modules/check-version (Makefile.am): Likewise.
22486         * modules/chown (Makefile.am): Likewise.
22487         * modules/cloexec (Makefile.am): Likewise.
22488         * modules/close-stream (Makefile.am): Likewise.
22489         * modules/closeout (Makefile.am): Likewise.
22490         * modules/crc (Makefile.am): Likewise.
22491         * modules/cycle-check (Makefile.am): Likewise.
22492         * modules/des (Makefile.am): Likewise.
22493         * modules/dirfd (Makefile.am): Likewise.
22494         * modules/dirname (Makefile.am): Likewise.
22495         * modules/dup2 (Makefile.am): Likewise.
22496         * modules/euidaccess (Makefile.am): Likewise.
22497         * modules/exclude (Makefile.am): Likewise.
22498         * modules/exitfail (Makefile.am): Likewise.
22499         * modules/fcntl-safer (Makefile.am): Likewise.
22500         * modules/file-type (Makefile.am): Likewise.
22501         * modules/fileblocks (Makefile.am): Likewise.
22502         * modules/filemode (Makefile.am): Likewise.
22503         * modules/filenamecat (Makefile.am): Likewise.
22504         * modules/fnmatch (Makefile.am): Likewise.
22505         * modules/fopen-safer (Makefile.am): Likewise.
22506         * modules/fpending (Makefile.am): Likewise.
22507         * modules/fprintftime (Makefile.am): Likewise.
22508         * modules/free (Makefile.am): Likewise.
22509         * modules/fsusage (Makefile.am): Likewise.
22510         * modules/ftruncate (Makefile.am): Likewise.
22511         * modules/fts (Makefile.am): Likewise.
22512         * modules/gc (Makefile.am): Likewise.
22513         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22514         * modules/getaddrinfo (Makefile.am): Likewise.
22515         * modules/getcwd (Makefile.am): Likewise.
22516         * modules/getdelim (Makefile.am): Likewise.
22517         * modules/getdomainname (Makefile.am): Likewise.
22518         * modules/getgroups (Makefile.am): Likewise.
22519         * modules/gethostname (Makefile.am): Likewise.
22520         * modules/gethrxtime (Makefile.am): Likewise.
22521         * modules/getline (Makefile.am): Likewise.
22522         * modules/getloadavg (Makefile.am): Likewise.
22523         * modules/getlogin_r (Makefile.am): Likewise.
22524         * modules/getopt (Makefile.am): Likewise.
22525         * modules/getpass (Makefile.am): Likewise.
22526         * modules/getpass-gnu (Makefile.am): Likewise.
22527         * modules/getsubopt (Makefile.am): Likewise.
22528         * modules/gettime (Makefile.am): Likewise.
22529         * modules/gettimeofday (Makefile.am): Likewise.
22530         * modules/getugroups (Makefile.am): Likewise.
22531         * modules/getusershell (Makefile.am): Likewise.
22532         * modules/glob (Makefile.am): Likewise.
22533         * modules/group-member (Makefile.am): Likewise.
22534         * modules/hard-locale (Makefile.am): Likewise.
22535         * modules/hash (Makefile.am): Likewise.
22536         * modules/hmac-md5 (Makefile.am): Likewise.
22537         * modules/hmac-sha1 (Makefile.am): Likewise.
22538         * modules/human (Makefile.am): Likewise.
22539         * modules/idcache (Makefile.am): Likewise.
22540         * modules/imaxabs (Makefile.am): Likewise.
22541         * modules/imaxdiv (Makefile.am): Likewise.
22542         * modules/inet_ntop (Makefile.am): Likewise.
22543         * modules/inet_pton (Makefile.am): Likewise.
22544         * modules/inttostr (Makefile.am): Likewise.
22545         * modules/isapipe (Makefile.am): Likewise.
22546         * modules/lchown (Makefile.am): Likewise.
22547         * modules/long-options (Makefile.am): Likewise.
22548         * modules/lstat (Makefile.am): Likewise.
22549         * modules/malloc (Makefile.am): Likewise.
22550         * modules/mathl (Makefile.am): Likewise.
22551         * modules/mbchar (Makefile.am): Likewise.
22552         * modules/md2 (Makefile.am): Likewise.
22553         * modules/md4 (Makefile.am): Likewise.
22554         * modules/md5 (Makefile.am): Likewise.
22555         * modules/memcasecmp (Makefile.am): Likewise.
22556         * modules/memchr (Makefile.am): Likewise.
22557         * modules/memcmp (Makefile.am): Likewise.
22558         * modules/memcoll (Makefile.am): Likewise.
22559         * modules/memcpy (Makefile.am): Likewise.
22560         * modules/memmem (Makefile.am): Likewise.
22561         * modules/memmove (Makefile.am): Likewise.
22562         * modules/mempcpy (Makefile.am): Likewise.
22563         * modules/memrchr (Makefile.am): Likewise.
22564         * modules/memset (Makefile.am): Likewise.
22565         * modules/memxor (Makefile.am): Likewise.
22566         * modules/mkancesdirs (Makefile.am): Likewise.
22567         * modules/mkdir (Makefile.am): Likewise.
22568         * modules/mkdir-p (Makefile.am): Likewise.
22569         * modules/mkdtemp (Makefile.am): Likewise.
22570         * modules/mkstemp (Makefile.am): Likewise.
22571         * modules/mktime (Makefile.am): Likewise.
22572         * modules/modechange (Makefile.am): Likewise.
22573         * modules/mountlist (Makefile.am): Likewise.
22574         * modules/nanosleep (Makefile.am): Likewise.
22575         * modules/openat (Makefile.am): Likewise.
22576         * modules/pagealign_alloc (Makefile.am): Likewise.
22577         * modules/physmem (Makefile.am): Likewise.
22578         * modules/poll (Makefile.am): Likewise.
22579         * modules/posixtm (Makefile.am): Likewise.
22580         * modules/posixver (Makefile.am): Likewise.
22581         * modules/putenv (Makefile.am): Likewise.
22582         * modules/quote (Makefile.am): Likewise.
22583         * modules/quotearg (Makefile.am): Likewise.
22584         * modules/raise (Makefile.am): Likewise.
22585         * modules/read-file (Makefile.am): Likewise.
22586         * modules/readline (Makefile.am): Likewise.
22587         * modules/readlink (Makefile.am): Likewise.
22588         * modules/readtokens (Makefile.am): Likewise.
22589         * modules/readutmp (Makefile.am): Likewise.
22590         * modules/realloc (Makefile.am): Likewise.
22591         * modules/regex (Makefile.am): Likewise.
22592         * modules/rename (Makefile.am): Likewise.
22593         * modules/rename-dest-slash (Makefile.am): Likewise.
22594         * modules/rijndael (Makefile.am): Likewise.
22595         * modules/rmdir (Makefile.am): Likewise.
22596         * modules/rpmatch (Makefile.am): Likewise.
22597         * modules/safe-read (Makefile.am): Likewise.
22598         * modules/safe-write (Makefile.am): Likewise.
22599         * modules/same (Makefile.am): Likewise.
22600         * modules/save-cwd (Makefile.am): Likewise.
22601         * modules/savedir (Makefile.am): Likewise.
22602         * modules/setenv (Makefile.am): Likewise.
22603         * modules/settime (Makefile.am): Likewise.
22604         * modules/sha1 (Makefile.am): Likewise.
22605         * modules/sig2str (Makefile.am): Likewise.
22606         * modules/snprintf (Makefile.am): Likewise.
22607         * modules/stdlib-safer (Makefile.am): Likewise.
22608         * modules/stpcpy (Makefile.am): Likewise.
22609         * modules/stpncpy (Makefile.am): Likewise.
22610         * modules/strcase (Makefile.am): Likewise.
22611         * modules/strcasestr (Makefile.am): Likewise.
22612         * modules/strchrnul (Makefile.am): Likewise.
22613         * modules/strcspn (Makefile.am): Likewise.
22614         * modules/strdup (Makefile.am): Likewise.
22615         * modules/strerror (Makefile.am): Likewise.
22616         * modules/strftime (Makefile.am): Likewise.
22617         * modules/strndup (Makefile.am): Likewise.
22618         * modules/strnlen (Makefile.am): Likewise.
22619         * modules/strpbrk (Makefile.am): Likewise.
22620         * modules/strsep (Makefile.am): Likewise.
22621         * modules/strstr (Makefile.am): Likewise.
22622         * modules/strtod (Makefile.am): Likewise.
22623         * modules/strtoimax (Makefile.am): Likewise.
22624         * modules/strtok_r (Makefile.am): Likewise.
22625         * modules/strtol (Makefile.am): Likewise.
22626         * modules/strtoll (Makefile.am): Likewise.
22627         * modules/strtoul (Makefile.am): Likewise.
22628         * modules/strtoull (Makefile.am): Likewise.
22629         * modules/strtoumax (Makefile.am): Likewise.
22630         * modules/strverscmp (Makefile.am): Likewise.
22631         * modules/time_r (Makefile.am): Likewise.
22632         * modules/timegm (Makefile.am): Likewise.
22633         * modules/tmpfile-safer (Makefile.am): Likewise.
22634         * modules/unistd-safer (Makefile.am): Likewise.
22635         * modules/unlinkdir (Makefile.am): Likewise.
22636         * modules/userspec (Makefile.am): Likewise.
22637         * modules/utime (Makefile.am): Likewise.
22638         * modules/utimecmp (Makefile.am): Likewise.
22639         * modules/utimens (Makefile.am): Likewise.
22640         * modules/vasnprintf (Makefile.am): Likewise.
22641         * modules/vasprintf (Makefile.am): Likewise.
22642         * modules/vsnprintf (Makefile.am): Likewise.
22643         * modules/xalloc (Makefile.am): Likewise.
22644         * modules/xgetcwd (Makefile.am): Likewise.
22645         * modules/xnanosleep (Makefile.am): Likewise.
22646         * modules/xreadlink (Makefile.am): Likewise.
22647         * modules/xstrtod (Makefile.am): Likewise.
22648         * modules/xstrtol (Makefile.am): Likewise.
22649         * modules/xstrtold (Makefile.am): Likewise.
22650         * modules/yesno (Makefile.am): Likewise.
22651
22652 2006-10-12  Jim Meyering  <jim@meyering.net>
22653
22654         * m4/getloadavg.m4: Revert the change below.
22655
22656         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22657         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22658         fail with a symlink, which is what coreutils' ./bootstrap now
22659         creates by default.
22660
22661 2006-10-12  Bruno Haible  <bruno@clisp.org>
22662
22663         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22664         mingw.
22665         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22666         MSVC and mingw explicitly.
22667
22668 2006-10-11  Simon Josefsson  <jas@extundo.com>
22669             Bruno Haible  <bruno@clisp.org>
22670
22671         Add support for multiple gnulib-tool invocations in the scope of a
22672         single configure.ac file.
22673         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22674         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22675         with the same contents as the _LIBADD variable.
22676         (func_emit_initmacro_start, func_emit_initmacro_end,
22677         func_emit_initmacro_done): New functions.
22678         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22679         gl_LIBOBJS and gl_LTLIBOBJS.
22680
22681 2006-10-11  Bruno Haible  <bruno@clisp.org>
22682
22683         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22684         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22685         autoreconf. Instead, invoke autopoint explicitly but move back the
22686         *.m4 files from gnulib.
22687
22688 2006-10-11  Bruno Haible  <bruno@clisp.org>
22689
22690         * gnulib-tool (func_usage): Make module names after --create-testdir
22691         optional.
22692         (func_create_testdir): If no module was specified, use nearly all
22693         modules.
22694
22695 2006-10-12  Jim Meyering  <jim@meyering.net>
22696
22697         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22698         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22699         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22700         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22701         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22702         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22703         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22704         (fts_set_stat_required): New function.
22705         (fts_open): Defer the calls to fts_stat, if possible or requested.
22706         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22707         into fts_stat itself.
22708         (fts_read): Perform any required (deferred) fts_stat call.
22709         (fts_build): Likewise, for the directory we're about to open and read.
22710         In the readdir loop, carefully decide whether each entry will require
22711         an eventual call to fts_stat, using dirent.d_type info if available.
22712         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22713         a command line argument into this function.  Update all callers.
22714         Map a return value of FTS_DOT to FTS_D for a command line argument.
22715         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22716         Thanks to Miklos Szeredi for his tenacity and for the initial
22717         bug report about "find" failing on a FUSE-based file system.
22718
22719         * lib/fts.c (fts_open): Use consistent indentation.
22720
22721 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22722
22723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22724         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22725         reported by Jim Meyering.  All uses of cache variables renamed
22726         to match Autoconf's.
22727         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22728         the other one.
22729
22730         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22731         Fix misspelling in diagnostic.
22732
22733 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22734
22735         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22736         defined.  Problem reported by Matthew Woehlke.
22737
22738         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22739         Add support for Tandem NonStop R series.
22740         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22741         Use new macro.
22742
22743         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22744         (has_trailing_slash): Omit size arg; all callers changed.
22745         Omit 'inline', since it doesn't help performance and we'd
22746         need to configure it.
22747         Don't count //, ///, etc. as having a trailing slash.
22748         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22749         (rpl_rename_dest_slash): On failure, use rename's errno rather
22750         than (in some cases) an incorrect or junk errno.
22751         Simplify code by removing need to compute length; this does
22752         cause it to make two passes instead of one over the file name,
22753         but it's worth it.
22754
22755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22756         change, since Autoconf's version may no longer be appropriate now
22757         that we are using CVS Autoconf's version.  Add support for Tandem.
22758
22759 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22760             Bruno Haible  <bruno@clisp.org>
22761
22762         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22763         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22764         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22765         gl_AC_TYPE_LONG_LONG.
22766
22767         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22768         instead of HAVE_LONG_LONG.
22769         * lib/printf-args.c (printf_fetchargs): Likewise.
22770         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22771         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22772         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22773         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22774         gl_AC_TYPE_LONG_LONG.
22775
22776 2006-10-11  Bruno Haible  <bruno@clisp.org>
22777
22778         * m4/longlong.m4: Add comments.
22779         * m4/ulonglong.m4: Likewise.
22780
22781 2006-10-10  Bruno Haible  <bruno@clisp.org>
22782
22783         Make it possible to #define stpcpy, strdup to aliases.
22784         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22785         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22786
22787 2006-10-10  Bruno Haible  <bruno@clisp.org>
22788
22789         Make it possible to #define gcd to an alias.
22790         * lib/gcd.c: Include config.h.
22791
22792 2006-10-10  Bruno Haible  <bruno@clisp.org>
22793
22794         Make it possible to #define c_isascii to an alias.
22795         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22796         defined. Undefine the macros before defining them, to avoid gcc
22797         warnings.
22798         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22799         define NO_C_CTYPE_MACROS early.
22800
22801 2006-10-10  Bruno Haible  <bruno@clisp.org>
22802
22803         Make it possible to #define set_program_name to an alias.
22804         * lib/progname.c: Don't undefine set_program_name; instead, undefine
22805         ENABLE_RELOCATABLE early.
22806
22807 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22808
22809         Port to Tandem NSK OSS, which has 64-bit signed int but at most
22810         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
22811         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22812         More generally, don't assume that 64-bit signed int is available
22813         if unsigned int is, and vice versa.
22814         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22815         unsigned symbols, not on their signed counterparts.
22816         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22817         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22818         (UINT64_C, UINTMAX_C):
22819         Likewise.
22820         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22821         unsigned counterparts.
22822         (Have_long_long, Unsigned): New macros.
22823         (Int): Renamed from INT.
22824         (strtoimax): Use the new macros.
22825         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22826         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22827         * modules/inttypes (inttypes.h): Substitute
22828         HAVE_UNSIGNED_LONG_LONG_INT.
22829         * modules/stdint (stdint.h): Likewise.
22830         (Files): Add m4/ulonglong.m4.
22831
22832 2006-10-10  Bruno Haible  <bruno@clisp.org>
22833
22834         Fix a gcc -Wshadow warning.
22835         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22836         to 'bucket'.
22837         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22838         gl_linked_indexof_from_to): Likewise.
22839         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22840         Likewise.
22841         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22842         Likewise.
22843         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22844         Reported by Eric Blake.
22845
22846 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
22847
22848         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22849         for NetBSD.  Problem reported by Bruno Haible.
22850
22851 2006-10-09  Jim Meyering  <jim@meyering.net>
22852
22853         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22854         Patch from Bruno Haible.
22855
22856 2006-10-09  Jim Meyering  <jim@meyering.net>
22857
22858         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22859         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22860         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22861
22862 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22863
22864         Don't include <config.h> twice; this doesn't work in some cases,
22865         e.g., when config.h has "#define intmax_t long long int" and
22866         we include <config.h>, <inttypes.h>, <config.h> in that order.
22867         Problem reported by Matthew Woehlke in:
22868         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22869         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22870         * lib/fts-cycle.c: Don't include config.h.
22871         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22872         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22873         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
22874         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22875         inttypes.h.
22876         * lib/xstrtoumax.c: Likewise.
22877         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22878         __strtol and the like, so that this module is more like its siblings.
22879         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22880         Remove; no longer needed now that we assume gnulib inttypes.h.
22881
22882 2006-10-08  Bruno Haible  <bruno@clisp.org>
22883
22884         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22885         option.
22886
22887 2006-10-07  Jim Meyering  <jim@meyering.net>
22888
22889         * modules/inttypes (inttypes.h): Revert what seems to have been
22890         an inadvertent part of today's change: use "|", not "/" in the
22891         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22892
22893 2006-10-07  Bruno Haible  <bruno@clisp.org>
22894
22895         * modules/sublist: New file.
22896
22897 2006-10-07  Bruno Haible  <bruno@clisp.org>
22898
22899         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22900         * modules/argz (argz.h): Likewise.
22901         * modules/arpa_inet (arpa/inet.h): Likewise.
22902         * modules/byteswap (byteswap.h): Likewise.
22903         * modules/configmake (configmake.h): Likewise.
22904         * modules/fcntl (fcntl.h): Likewise.
22905         * modules/fnmatch (fnmatch.h): Likewise.
22906         * modules/getopt (getopt.h): Likewise.
22907         * modules/glob (glob.h): Likewise.
22908         * modules/inttypes (inttypes.h): Likewise.
22909         * modules/netinet_in (netinet/in.h): Likewise.
22910         * modules/poll (poll.h): Likewise.
22911         * modules/stdbool (stdbool.h): Likewise.
22912         * modules/stdint (stdint.h): Likewise.
22913         * modules/sys_select (sys/select.h): Likewise.
22914         * modules/sys_socket (sys/socket.h): Likewise.
22915         * modules/sys_stat (sys/stat.h): Likewise.
22916         * modules/sysexits (sysexits.h): Likewise.
22917         * modules/unistd (unistd.h): Likewise.
22918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22919         Add a "DO NOT EDIT" comment to the generated file.
22920         (func_import): Likewise for gnulib-comp.m4.
22921
22922 2006-10-07  Bruno Haible  <bruno@clisp.org>
22923
22924         * lib/gl_sublist.h: New file.
22925         * lib/gl_sublist.c: New file.
22926
22927 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22930         name (relative to the original working directory) and the file
22931         name component (relative to the temporary working directory).  All
22932         callers changed.
22933         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22934         * lib/mkdir-p.c (make_dir_parents): Likewise.
22935         * lib/mkdir-p.h (make_dir_parents): Likewise.
22936
22937 2006-10-06  Eric Blake  <ebb9@byu.net>
22938
22939         Define several macros for use by the clean-temp module.
22940         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22941         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22942         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22943
22944         * lib/clean-temp.h (close_stream_temp): New declaration.
22945         * lib/clean-temp.c (includes): Pull in headers according to what
22946         other modules are in use.
22947         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22948
22949 2006-10-06  Bruno Haible  <bruno@clisp.org>
22950
22951         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22952         instead of fopen, fwriteerror.
22953
22954 2006-10-06  Bruno Haible  <bruno@clisp.org>
22955
22956         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22957         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22958         int.
22959         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22960         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22961         Return an error indicator.
22962         Suggested by Eric Blake.
22963
22964 2006-10-06  Bruno Haible  <bruno@clisp.org>
22965
22966         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22967         Reported by Eric Blake.
22968
22969 2006-10-06  Bruno Haible  <bruno@clisp.org>
22970
22971         * modules/closeout (Description): Mention stderr too.
22972
22973 2006-10-06  Bruno Haible  <bruno@clisp.org>
22974         and Paul Eggert  <eggert@cs.ucla.edu>
22975
22976         * lib/closeout.c (close_stdout): Also close stderr.
22977         * lib/closeout.h: Update comment.
22978
22979 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22980
22981         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22982         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22983         * lib/dirchownmod.c: Include lchown.h.
22984         * lib/lchown.c: Don't include files that lchown.h now includes.
22985         Don't declare chown, since lchown.h now does that.
22986         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22987         (lchown): Define to rpl_chown if lchown is declared but
22988         does not exist.  Declare using a prototype if lchown is not
22989         declared.  Add a copyright notice.
22990         * lib/mkstemp.h: Include <unistd.h>.
22991         * lib/openat.c: Include lchown.h.
22992
22993         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22994         we now test for that separately.
22995         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22996         rather than O_NOFOLLOW, when testing whether it's possible to
22997         avoid a race condition reliably.
22998         * lib/savewd.c (savewd_chdir): Likewise.
22999
23000         Remove macros that are no longer needed now that stdint.h is
23001         reliable.
23002         * lib/fsusage.c (UINTMAX_MAX): Remove.
23003         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23004         * lib/utimecmp.c (SIZE_MAX): Remove.
23005
23006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23007
23008         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23009         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23010         O_NOATIME works.
23011
23012 2006-10-05  Bruno Haible  <bruno@clisp.org>
23013
23014         * lib/gl_list.h (gl_sortedlist_search_from_to,
23015         gl_sortedlist_indexof_from_to): New declarations.
23016         (gl_list_implementation): New fields sortedlist_search_from_to,
23017         sortedlist_indexof_from_to.
23018         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23019         inline functions.
23020         * lib/gl_list.c (gl_sortedlist_search_from_to,
23021         gl_sortedlist_indexof_from_to): New functions.
23022         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23023         function.
23024         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23025         (gl_array_sortedlist_search_from_to): New function.
23026         (gl_array_list_implementation): Update.
23027         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23028         function.
23029         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23030         (gl_carray_sortedlist_search_from_to): New function.
23031         (gl_carray_list_implementation): Update.
23032         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23033         gl_linked_sortedlist_indexof_from_to): New functions.
23034         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23035         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23036         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23037         gl_tree_sortedlist_indexof_from_to): New functions.
23038         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23039         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23040         Update.
23041         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23042         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23043         Update.
23044
23045 2006-10-05  Bruno Haible  <bruno@clisp.org>
23046
23047         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23048         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23049         (struct gl_list_implementation): Add fields search_from_to,
23050         indexof_from_to. Remove fields search, indexof.
23051         (gl_list_search): Use the search_from_to method.
23052         (gl_list_search_from, gl_list_search_from_to): New functions.
23053         (gl_list_indexof): Use the indexof_from_to method.
23054         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23055         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23056         (gl_list_search_from, gl_list_search_from_to): New functions.
23057         (gl_list_indexof): Use the indexof_from_to method.
23058         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23059         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23060         gl_array_indexof. Add start_index, end_index arguments.
23061         (gl_array_search_from_to): Renamed from gl_array_search. Add
23062         start_index, end_index arguments.
23063         (gl_array_remove, gl_array_list_implementation): Update.
23064         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23065         gl_carray_indexof. Add start_index, end_index arguments.
23066         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23067         start_index, end_index arguments.
23068         (gl_carray_remove, gl_carray_list_implementation): Update.
23069         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23070         gl_linked_search. Add start_index, end_index arguments.
23071         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23072         start_index, end_index arguments.
23073         (gl_linked_remove): Update.
23074         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23075         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23076         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23077         field to 'size_t'.
23078         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23079         gl_tree_search. Add start_index, end_index arguments.
23080         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23081         start_index, end_index arguments.
23082         (gl_tree_remove): Update.
23083         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23084         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23085         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23086         function.
23087         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23088         gl_tree_search. Add start_index, end_index arguments.
23089         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23090         start_index, end_index arguments.
23091         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23092         Update.
23093         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23094
23095 2006-10-05  Bruno Haible  <bruno@clisp.org>
23096
23097         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23098
23099         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23100         fwriteerror_temp): New declarations.
23101         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23102         (descriptors): New variable.
23103         (cleanup): First, close the descriptors.
23104         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23105         fclose_temp, fwriteerror_temp): New functions.
23106
23107 2006-10-04  Jim Meyering  <jim@meyering.net>
23108
23109         * lib/fts.c (fts_open): Tiny comment change.
23110
23111 2006-10-04  Bruno Haible  <bruno@clisp.org>
23112
23113         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23114         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23115         gl_LOCK_BODY.
23116         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23117         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23118         gl_LOCK_EARLY_BODY.
23119         (gl_LOCK): Require gl_LOCK_BODY.
23120
23121 2006-10-04  Bruno Haible  <bruno@clisp.org>
23122
23123         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23124         (gl_oset_search_atleast): New declaration.
23125         (struct gl_oset_implementation): Add field 'search_atleast'.
23126         (gl_oset_search_atleast): New inline function.
23127         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23128         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23129         (gl_array_oset_implementation): Update.
23130         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23131         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23132         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23133
23134 2006-10-04  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23137
23138 2006-10-03  Bruno Haible  <bruno@clisp.org>
23139
23140         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23141         from gl_avltreehash_list_implementation.
23142
23143 2006-10-03  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/gl_oset.c (gl_oset_add): Fix return type.
23146
23147 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23148
23149         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23150
23151 2006-10-02  Eric Blake  <ebb9@byu.net>
23152
23153         * modules/strnlen (Depends-on): Add extensions.
23154
23155 2006-10-02  Eric Blake  <ebb9@byu.net>
23156
23157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23158         definition in 2.60+.
23159
23160 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23161
23162         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23163         checks.
23164
23165 2006-10-02  Bruno Haible  <bruno@clisp.org>
23166
23167         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23168         to the AUTOMAKE_OPTIONS.
23169         Reported by Jim Meyering.
23170
23171 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23172
23173         Work around bug in Solaris 10 /proc file system:
23174         /proc/self/fd/NNN/.. isn't the parent directory of
23175         the directory whose file descriptor is NNN.  This needs to
23176         be worked around at run time, not compile time, since a
23177         program might be built on Solaris 8, where things work, and
23178         run on Solaris 10.
23179         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23180         to use the following interface instead:
23181         (OPENAT_BUFFER_SIZE): New macro.
23182         (openat_proc_name): New function.
23183         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23184         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23185         Likewise.
23186         * lib/openat-proc.c: New file.
23187         * modules/openat (Files): Add lib/openat-proc.c.
23188         (Depends-on): Add same-inode, stdbool.
23189         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23190
23191 2006-09-29  Bruno Haible  <bruno@clisp.org>
23192
23193         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23194         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23195         argument. Set stdout_closed before testing for ferror, not after.
23196         (fwriteerror, fwriteerror_no_ebadf): New functions.
23197
23198 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23199
23200         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23201
23202 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23203
23204         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23205         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23206
23207 2006-09-28  Jim Meyering  <jim@meyering.net>
23208
23209         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23210         Include <unistd.h>.
23211
23212 2006-09-28  Bruno Haible  <bruno@clisp.org>
23213
23214         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23215         * modules/linkedhash-list (Depends-on): Likewise.
23216         * modules/rbtreehash-list (Depends-on): Likewise.
23217
23218 2006-09-28  Bruno Haible  <bruno@clisp.org>
23219
23220         * lib/strndup.h: Simplify the redefinition of strndup.
23221         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23223
23224 2006-09-28  Bruno Haible  <bruno@clisp.org>
23225
23226         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23227         * lib/gl_linkedhash_list.c: Likewise.
23228         * lib/gl_rbtreehash_list.c: Likewise.
23229
23230 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23231
23232         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23233         getaddrinfo.
23234
23235         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23236         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23237         it causes <stdio_ext.h> to cause a compile-time error.
23238         Problem reported by Nelson H. F. Beebe.
23239         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23240         of HAVE_DECL___PENDING.
23241
23242         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23243         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23244         declaration.
23245
23246 2006-09-27  Jim Meyering  <jim@meyering.net>
23247
23248         This file could end up with a definition for a function
23249         named __strndup, rather than rpl_strndup on a system with
23250         incomplete weak_alias support.
23251         * lib/strndup.c (strndup): Rename from __strndup.
23252         Remove #defines that used to map __strndup to strndup.
23253         Don't use K&R prototypes.
23254         Remove LIBC-related code, since this file is not sync'd with glibc.
23255         * lib/strndup.h: Revamp, accordingly.
23256         * m4/strndup.m4: Modernize.
23257
23258 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23259
23260         * modules/savewd (Depends-on): Add 'raise'.
23261         * lib/savewd.c: Include <signal.h>, for 'raise'.
23262
23263 2006-09-26  Jim Meyering  <jim@meyering.net>
23264
23265         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23266         when we detect Darwin 8.7.0's acl_get_file bug.
23267         Rearrange to perform the new (below) run-test while $LIBS
23268         contains any acl-related library.  Set USE_ACL at the end.
23269         (gl_ACL_GET_FILE): New function.
23270
23271 2006-09-26  Eric Blake  <ebb9@byu.net>
23272
23273         * lib/verror.c: Include <config.h> unconditionally.
23274
23275 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23276
23277         * modules/clock-time (Maintainer): Add self.
23278         * modules/getlogin_r (Depends-on): Add extensions.
23279
23280 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23281
23282         * modules/clock-time: New module.
23283         * modules/nanosleep (Depends-on): Add clock-time.
23284         * modules/gethrxtime (Depends-on): Likewise.
23285         * modules/gettime (Depends-on): Likewise.
23286         * modules/settime (Depends-on): Likewise.
23287
23288         * modules/fts-lgpl: Depend on openat.
23289         * modules/mkancesdirs: Depend on savewd.
23290         * modules/mkdir-p: Likewise.
23291
23292 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23293
23294         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23295
23296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23297         `gl_have_arbitrary_file_name_length_limit' to
23298         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23299         actually works between configure runs.
23300
23301 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23302             Bruno Haible  <bruno@clisp.org>
23303
23304         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23305
23306 2006-09-25  Jim Meyering  <jim@meyering.net>
23307
23308         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23309         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23310
23311 2006-09-25  Eric Blake  <ebb9@byu.net>
23312
23313         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23314         exec's in 2006-09-18 patch when shuffling fds.
23315
23316 2006-09-25  Bruno Haible  <bruno@clisp.org>
23317
23318         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23319         Reported by Jim Meyering.
23320
23321 2006-09-24  Jim Meyering  <jim@meyering.net>
23322
23323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23324         compare a pointer against a literal "0".  That caused failures with
23325         at least HP-UX's hpcc.
23326
23327 2006-09-22  Simon Josefsson  <jas@extundo.com>
23328
23329         * modules/gc-sha1:
23330         * modules/gc-md4:
23331         * modules/gc-hmac-sha1:
23332         * modules/gc-hmac-md5:
23333         * modules/gc-des:
23334         * modules/gc-arcfour: Distribute more files.
23335
23336 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23337
23338         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23339         (gl_linked_iterator_from_to): Initialize struct completely.
23340         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23341         (gl_tree_iterator_from_to): Likewise
23342         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23343         * lib/gl_array_list.c [lint] (gl_array_iterator)
23344         (gl_array_iterator_from_to): Likewise.
23345         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23346         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23347         (gl_carray_iterator_from_to): Likewise.
23348
23349         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23350         * lib/md4.c (md4_process_block): Remove unused variable.
23351         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23352         parentheses for clarity.
23353
23354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23355
23356         * modules/bison-i18n (Depends-on): Add gettext.
23357
23358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23359
23360         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23361         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23362         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23363         also add missing comma that caused broken test.
23364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23365         stdlib.h, for `abort'.
23366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23367         variables.
23368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23369         include unistd.h if present, for `rmdir'.
23370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23371         variables.
23372         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23373         in the process include standard headers for prototypes.
23374         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23375         gets declared on GNU/Linux.
23376         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23377         unistd.h, for `rmdir'.
23378         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23379
23380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23381         always true.
23382         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23383
23384         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23385
23386 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23387
23388         * gnulib-tool (func_version): Create output all at once.  This
23389         may help avoid triggering unnecessary SIGPIPEs, and at any
23390         rate it doesn't hurt.
23391
23392 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23393             Bruno Haible  <bruno@clisp.org>
23394
23395         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23396         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23397         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23398
23399         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23400         (gl_FUNC_VASPRINTF): Invoke it.
23401
23402 2006-09-22  Bruno Haible  <bruno@clisp.org>
23403
23404         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23405         getloadavg.c as first argument.
23406
23407 2006-09-22  Bruno Haible  <bruno@clisp.org>
23408
23409         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23410         at the beginning of the gl_INIT macro.
23411         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23412         gl_GETLOADAVG.
23413
23414 2006-09-22  Bruno Haible  <bruno@clisp.org>
23415
23416         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23417         module.
23418         Suggested by Ralf Wildenhues.
23419
23420 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23421
23422         Import this patch from libc:
23423
23424         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23425
23426         * lib/regex_internal.c (re_string_reconstruct): Handle
23427         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23428         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23429         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23430         re_string_context_at.
23431
23432         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23433         now requires it.
23434         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23435         gl_REGEX now does it for us.
23436         (gl_REGEX): Add test taken from
23437         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23438
23439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23440         Check that large offsets work.  Modernize Autoconf usages.
23441         Prefer "yes" to mean a good thing rather than a bad.
23442         Don't put "#define mkstemp" in config.h, as this might interfere
23443         with standard system headers that "#define mkstemp mkstemp64".
23444
23445         * modules/mkstemp (Depends-on): Add extensions, so that
23446         mkstemp is visible on some platforms.
23447         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23448         (Include): Change to "mkstemp.h" from <stdlib.h>.
23449         (Files): Add mkstemp.h.
23450
23451         * lib/mkstemp.h: New file, since some standard headers
23452         #define mkstemp.
23453         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23454         Include "mkstemp.h".
23455         Make the _LIBC code resemble glibc original more,
23456         e.g., use K&R style.
23457         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23458         (mkstemp): Remove, since mkstemp.h does this for us.
23459         * lib/stdlib--.h: Include mkstemp.h.
23460
23461         Import this patch from libc:
23462
23463         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23464
23465         * lib/tempname.c (__gen_tempname): Change attempts_min
23466         into a macro.  Use preprocessor to decide how to initialize
23467         attempts [Coverity CID 67].
23468
23469 2006-09-20  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/mkdtemp.c: Import from libc.
23472         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23473                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23474                 attempts_min into a macro.  Use preprocessor to decide how to
23475                 initialize attempts [Coverity CID 67].
23476         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23477                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23478                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23479
23480 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23481
23482         * gnulib-tool (func_exit): New function, to allow to pass the
23483         exit status portably through the trap.  Use everywhere.
23484         (--help, --version): Signal a write error.
23485         (trap): catch SIGPIPE, for write errors.
23486         Exit at the end of the trap, with the correct exit status.
23487
23488 2006-09-19  Karl Berry  <karl@gnu.org>
23489
23490         * doc/gnulib.texi: note about the license texinfo files.
23491
23492 2006-09-19  Eric Blake  <ebb9@byu.net>
23493
23494         * gnulib-tool: Avoid space-tab.
23495
23496 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23497
23498         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23499         that prevented coreutils 6.1 from building.  Problem reported
23500         by Petter Reinholdtsen.
23501
23502 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23503
23504         * gnulib-tool (avoidlist): Fix typo that broke options like
23505         --avoid=lock that are used by coreutils bootstrap.
23506
23507 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23508
23509         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23510         more systematically.
23511
23512 2006-09-18  Jim Meyering  <jim@meyering.net>
23513
23514         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23515
23516 2006-09-18  Bruno Haible  <bruno@clisp.org>
23517
23518         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23519
23520 2006-09-18  Bruno Haible  <bruno@clisp.org>
23521
23522         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23523         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23524         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23525         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23526         * m4/gettext.m4: Require autoconf >= 2.52.
23527         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23528         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23529         of gl_cv_header_inttypes_h.
23530
23531 2006-09-18  Bruno Haible  <bruno@clisp.org>
23532
23533         * lib/javaversion.c: Include configmake.h.
23534
23535 2006-09-18  Bruno Haible  <bruno@clisp.org>
23536
23537         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23538         avoid that the while loops be executed in a subshell.
23539
23540 2006-09-18  Bruno Haible  <bruno@clisp.org>
23541
23542         * MODULES.html.sh (func_module): Break long lines.
23543         Suggested by Bruce Korb <bkorb@gnu.org>.
23544
23545 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23546
23547         Speed up by a factor of 1.12.
23548         * gnulib-tool (nl): New variable.
23549         (func_import): Rewrite include directive extraction to only read each
23550         directive once.
23551
23552 2006-09-17  Bruno Haible  <bruno@clisp.org>
23553
23554         * modules/javaversion (Makefile.am): Remove DEFS setting.
23555         (Depends-on): Add configmake, for PKGDATADIR definition.
23556
23557 2006-09-17  Bruno Haible  <bruno@clisp.org>
23558
23559         * gnulib-tool (func_create_testdir): Rewrite all files at once.
23560
23561 2006-09-17  Bruno Haible  <bruno@clisp.org>
23562
23563         * gnulib-tool (func_append): New function, stolen from libtool.m4.
23564         (func_modules_transitive_closure, func_modules_add_dummy,
23565         func_modules_to_filelist, func_import, func_create_testdir,
23566         func_create_megatestdir, ...): Use it wherever possible.
23567         Suggested by Ralf Wildenhues.
23568
23569 2006-09-16  Karl Berry  <karl@gnu.org>
23570
23571         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23572         to avoid sectioning errors.
23573         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23574         [ifinfo]: blank line after @center-ed titles.
23575         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23576         Spell FSF address consistently with others.
23577         (These changes approved by rms.)
23578
23579 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23580
23581         Speed up by a factor of 1.61.
23582         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23583         already checked module names again.
23584
23585 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23586
23587         Speed up by a factor of 1.13.
23588         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23589         for new_files, and the input to func_add_or_update.
23590
23591 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23592
23593         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23594         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23595
23596 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23597
23598         * modules/mkancesdirs (Depends-on): Add fcntl.
23599         * modules/savewd: New file.
23600         * MODULES.html.sh (File system functions): Add savewd.
23601
23602         * modules/configmake (Makefile.am): Add support for the
23603         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23604
23605 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23606
23607         * m4/savewd.m4: New file.
23608
23609 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23610
23611         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23612         (dirchownmod): New arg FD.  All callers changed.
23613         Use FD rather than opening the directory ourself, as opening is
23614         now the caller's responsibility.
23615         * lib/dirchownmod.h: Likewise.
23616         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23617         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23618         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23619         (test_dir): Remove.
23620         (mkancesdirs): Return length of prefix of FILE that has already
23621         been made, or -2 if there is a child doing the work.  Redo
23622         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23623         ".", and treat ".." specially since it might stray back into
23624         already-created areas.  Use a subprocess if necessary.  New arg
23625         WD; all users changed.  MAKE_DIR function should now return 1
23626         if it creates a directory that is not readable.  Return -2 if
23627         a child process is spun off.
23628         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23629         Adjust signature to match code.
23630         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23631         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23632         all users changed.
23633         * lib/savewd.c, lib/savewd.h: New files.
23634
23635 2006-09-15  Jim Meyering  <jim@meyering.net>
23636
23637         * modules/rename-dest-slash: New module.
23638         * MODULES.html.sh (posix_compat): Add it here.
23639
23640         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23641
23642 2006-09-15  Jim Meyering  <jim@meyering.net>
23643
23644         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23645         file.
23646
23647         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23648
23649 2006-09-15  Jim Meyering  <jim@meyering.net>
23650
23651         * lib/rename-dest-slash.c (has_trailing_slash): Use
23652         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23653         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23654         test before testing whether SRC is a directory.
23655         Suggestions from Bruno Haible.
23656
23657         Avoid a warning about an unused variable.
23658         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23659         into the #ifdef block where it's used.
23660
23661         * lib/rename-dest-slash.c: New file.
23662
23663 2006-09-14  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/allocsa.c: Include <config.h> unconditionally.
23666         * lib/asnprintf.c: Likewise.
23667         * lib/asprintf.c: Likewise.
23668         * lib/c-strcasecmp.c: Likewise.
23669         * lib/c-strcasestr.c: Likewise.
23670         * lib/c-strncasecmp.c: Likewise.
23671         * lib/c-strstr.c: Likewise.
23672         * lib/classpath.c: Likewise.
23673         * lib/clean-temp.c: Likewise.
23674         * lib/concatpath.c: Likewise.
23675         * lib/copy-file.c: Likewise.
23676         * lib/csharpcomp.c: Likewise.
23677         * lib/csharpexec.c: Likewise.
23678         * lib/execute.c: Likewise.
23679         * lib/fatal-signal.c: Likewise.
23680         * lib/findprog.c: Likewise.
23681         * lib/fwriteerror.c: Likewise.
23682         * lib/gl_array_list.c: Likewise.
23683         * lib/gl_array_oset.c: Likewise.
23684         * lib/gl_avltree_list.c: Likewise.
23685         * lib/gl_avltree_oset.c: Likewise.
23686         * lib/gl_avltreehash_list.c: Likewise.
23687         * lib/gl_carray_list.c: Likewise.
23688         * lib/gl_linked_list.c: Likewise.
23689         * lib/gl_linkedhash_list.c: Likewise.
23690         * lib/gl_list.c: Likewise.
23691         * lib/gl_oset.c: Likewise.
23692         * lib/gl_rbtree_list.c: Likewise.
23693         * lib/gl_rbtree_oset.c: Likewise.
23694         * lib/gl_rbtreehash_list.c: Likewise.
23695         * lib/imaxabs.c: Likewise.
23696         * lib/imaxdiv.c: Likewise.
23697         * lib/javacomp.c: Likewise.
23698         * lib/javaexec.c: Likewise.
23699         * lib/javaversion.c: Likewise.
23700         * lib/linebreak.c: Likewise.
23701         * lib/localcharset.c: Likewise.
23702         * lib/lock.c: Likewise.
23703         * lib/mbchar.c: Likewise.
23704         * lib/mbswidth.c: Likewise.
23705         * lib/mkdtemp.c: Likewise.
23706         * lib/pipe.c: Likewise.
23707         * lib/printf-args.c: Likewise.
23708         * lib/printf-parse.c: Likewise.
23709         * lib/progname.c: Likewise.
23710         * lib/progreloc.c: Likewise.
23711         * lib/readlink.c: Likewise.
23712         * lib/sh-quote.c: Likewise.
23713         * lib/stpcpy.c: Likewise.
23714         * lib/stpncpy.c: Likewise.
23715         * lib/strcasecmp.c: Likewise.
23716         * lib/strcasestr.c: Likewise.
23717         * lib/strcspn.c: Likewise.
23718         * lib/striconv.c: Likewise.
23719         * lib/strncasecmp.c: Likewise.
23720         * lib/strnlen1.c: Likewise.
23721         * lib/strstr.c: Likewise.
23722         * lib/strtok_r.c: Likewise.
23723         * lib/tls.c: Likewise.
23724         * lib/tmpdir.c: Likewise.
23725         * lib/unicodeio.c: Likewise.
23726         * lib/unsetenv.c: Likewise.
23727         * lib/vasnprintf.c: Likewise.
23728         * lib/vasprintf.c: Likewise.
23729         * lib/wait-process.c: Likewise.
23730         * lib/xallocsa.c: Likewise.
23731         * lib/xsetenv.c: Likewise.
23732         * lib/xstriconv.c: Likewise.
23733
23734 2006-09-13  Simon Josefsson  <jas@extundo.com>
23735
23736         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23737         that internally, suggested by Ralf Wildenhues
23738         <Ralf.Wildenhues@gmx.de>.
23739
23740 2006-09-13  Simon Josefsson  <jas@extundo.com>
23741
23742         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23743         @LIBOBJS@.
23744         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23745
23746 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23747
23748         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23749         longer worry about uses that don't define HAVE_CONFIG_H.
23750         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23751         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23752         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23753         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23754         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23755         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23756         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23757         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23758         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23759         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23760         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23761         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23762         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23763         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23764         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23765         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23766         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23767         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23768         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23769         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23770         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23771         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23772         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23773         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23774         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23775         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23776         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23777         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23778         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23779         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23780         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23781         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23782         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23783         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23784         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23785         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23786         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23787         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23788         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23789         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23790         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23791         Likewise.
23792
23793 2006-09-13  Eric Blake  <ebb9@byu.net>
23794
23795         * lib/getopt.c: Fix typo in last commit.
23796
23797 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23798
23799         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23800         dgettext.
23801
23802 2006-09-12  Jim Meyering  <jim@meyering.net>
23803
23804         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23805         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23806         Reported by Nelson H. F. Beebe.
23807
23808 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23809
23810         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23811         program_invocation_name and program_invocation_short_name are
23812         initialized.
23813         * lib/argp-namefrob.h: Move declarations of program_invocation_name
23814         and program_invocation_short_name to argp.h, so they are visible
23815         to user programs.
23816         * lib/argp.h: Likewise
23817
23818 2006-09-10  Bruno Haible  <bruno@clisp.org>
23819
23820         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23821         m4/inttypes_h.m4, m4/uintmax_t.m4.
23822
23823 2006-09-10  Bruno Haible  <bruno@clisp.org>
23824
23825         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23826         gl_AC_TYPE_UINTMAX_T.
23827
23828 2006-09-10  Bruno Haible  <bruno@clisp.org>
23829
23830         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23831
23832 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23833
23834         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23835         convention.  Text proposed by Bruno Haible.
23836         (struct argp_option): Document the use of N_() wrappers.
23837
23838         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23839         '\v', and translate the two parts separately, instead of feeding
23840         the whole string to gettext.  This allows to exclude
23841         '\v' from the strings visible to the translator by writing doc
23842         strings as N_("..") "\v" N_("..").
23843
23844 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
23845
23846         * config/srclist.txt: Undo latest change; the bug was fixed.
23847
23848 2006-09-09  Bruno Haible  <bruno@clisp.org>
23849
23850         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23851         assignments if building a library without libtool.
23852         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23853         in func_emit_lib_Makefile_am.
23854         (func_import): When building a static library libfoo.a, arrange to
23855         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23856         (func_create_testdir): Likewise.
23857         * modules/gc (configure.ac, Makefile.am): If building statically,
23858         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23859         * modules/iconvme (configure.ac, Makefile.am): Likewise.
23860         * modules/striconv (configure.ac, Makefile.am): Likewise.
23861         Based on a suggestion by Ralf Wildenhues.
23862
23863 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23866         Check for unistd.h too, since Autoconf doesn't assume POSIX.
23867         Also:
23868
23869         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23870         Add year_2050_test to catch glibc bug 2821
23871         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23872
23873         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23874         Prefer #ifdef to #if.
23875
23876         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
23877         Return from 'main' instead of calling 'exit'.
23878
23879 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23880
23881         * lib/mktime.c (guess_time_tm): Fix bug where mktime
23882         returned the maximum time_t value rather than (time_t) -1.
23883         Problem originally reported by William Bardwell
23884         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23885
23886         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23887         Moved to here ...
23888         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23889         ... from here.
23890
23891 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23894         2821 is fixed.
23895
23896 2006-09-08  Jim Meyering  <jim@meyering.net>
23897
23898         Don't make generated files read-only.  That would bother too many
23899         people.  However, do retain the ability to work when targets are
23900         read-only: remove the destination and temporary files before writing
23901         them (when generated via sed or echo), or by using the -f option for
23902         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
23903         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23904         * modules/byteswap, modules/configmake, modules/fcntl:
23905         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23906         * modules/localcharset, modules/netinet_in, modules/poll:
23907         * modules/stdbool, modules/stdint, modules/sys_select:
23908         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23909
23910 2006-09-08  Jim Meyering  <jim@meyering.net>
23911
23912         Avoid new build failure on FreeBSD 6.0.
23913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23914         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
23915         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23916
23917 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23918
23919         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23920
23921 2006-09-07  Jim Meyering  <jim@meyering.net>
23922
23923         Fix global typo in last change: use chmod u-w, not chmod u-x.
23924         Spotted by Paul Eggert and Bruce Korb.
23925         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23926         * modules/byteswap, modules/configmake, modules/fcntl:
23927         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23928         * modules/localcharset, modules/netinet_in, modules/poll:
23929         * modules/stdbool, modules/stdint, modules/sys_select:
23930         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23931
23932 2006-09-06  Jim Meyering  <jim@meyering.net>
23933
23934         Make generated files be read-only.
23935         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23936         Ensure that each generated file is now read-only.
23937         * modules/argz: Likewise.
23938         * modules/arpa_inet: Likewise.
23939         * modules/byteswap: Likewise.
23940         * modules/configmake: Likewise.
23941         * modules/fcntl: Likewise.
23942         * modules/fnmatch: Likewise.
23943         * modules/getopt: Likewise.
23944         * modules/glob: Likewise.
23945         * modules/inttypes: Likewise.
23946         * modules/netinet_in: Likewise.
23947         * modules/poll: Likewise.
23948         * modules/stdbool: Likewise.
23949         * modules/stdint: Likewise.
23950         * modules/sys_select: Likewise.
23951         * modules/sys_socket: Likewise.
23952         * modules/sys_stat: Likewise.
23953         * modules/sysexits: Likewise.
23954         * modules/localcharset: Same as above, but continue using temporary
23955         file named "t-$@" (why different?) rather than the "$@-t" used
23956         everywhere else.
23957
23958         * modules/sysexits (Makefile.am): Replace literal occurrences
23959         of "sysexit.h" more readable, and more consistent, "$@".
23960
23961 2006-09-06  Bruno Haible  <bruno@clisp.org>
23962
23963         * modules/striconv: New file.
23964         * modules/xstriconv: New file.
23965         * MODULES.html.sh (Internationalization functions): Add striconv,
23966         xstriconv.
23967
23968 2006-09-06  Bruno Haible  <bruno@clisp.org>
23969
23970         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23971         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23972         not using libtool correctly.
23973
23974 2006-09-06  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/striconv.h: New file.
23977         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23978         iconvstring.c.
23979         * lib/xstriconv.h: New file.
23980         * lib/xstriconv.c: New file.
23981
23982 2006-09-06  Bruno Haible  <bruno@clisp.org>
23983
23984         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23985         lib_..._LDFLAGS.
23986
23987 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23988
23989         * lib/argz_.h: Sync from Libtool.
23990
23991         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23992                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23993
23994         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23995
23996 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23997
23998         * modules/trim: New file.
23999
24000 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24001
24002         * lib/trim.h: New file.
24003         * lib/trim.c: New file.
24004
24005 2006-09-05  Bruno Haible  <bruno@clisp.org>
24006
24007         * MODULES.html.sh (String handling): Add trim.
24008
24009 2006-09-04  Karl Berry  <karl@gnu.org>
24010
24011         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24012         until next release.
24013
24014 2006-09-03  Bruno Haible  <bruno@clisp.org>
24015
24016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24017         correctly.
24018
24019 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24020
24021         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24022         not gl_GETLOADAVG.  Omit unneeded semicolons.
24023         Problems reported by Ralf Wildenhues in
24024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24025         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24026         at the end, which is the usual gnulib style.
24027
24028         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24029         of doing all the work ourselves.
24030         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24031         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24032
24033 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24034
24035         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24036         Problem reported by Ralf Wildenhues in
24037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24038
24039         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24040         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24041
24042 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24043
24044         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24045         yesterday's patch by changing test -n to test -z.
24046
24047 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24048
24049         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24050         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24051         the former is now obsolescent.
24052
24053         * modules/chdir-long (Depends-on): Add fcntl.
24054
24055 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24056
24057         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24058         obsolescent, and programs should use gnulib instead.
24059         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24060         but with prefixes changed.
24061
24062 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24065         or stdbool.h, because they might not exist while configuring.
24066
24067         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24068         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24069         does that for us.
24070         (O_DIRECTORY): Remove.
24071
24072 2006-08-31  Eric Blake  <ebb9@byu.net>
24073
24074         * gnulib-tool: Don't let emacs change spaces to TAB.
24075
24076 2006-08-31  Bruno Haible  <bruno@clisp.org>
24077
24078         * gnulib-tool: When calling func_import more than once, do it in a
24079         subshell.
24080         Reported by Eric Blake <ebb9@byu.net>.
24081
24082 2006-08-31  Bruno Haible  <bruno@clisp.org>
24083
24084         * gnulib-tool (nl): Remove variable.
24085         (sed_transform_lib_file): Use more robust test for config-h module.
24086         (func_import): Fix typo in 2006-08-25 patch.
24087
24088 2006-08-31  Bruno Haible  <bruno@clisp.org>
24089
24090         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24091         specified, augment Makefile.am variables instead of assigning them.
24092
24093 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24094
24095         Work around a bug in both the Linux and SunOS 64-bit kernels:
24096         nanosleep mishandles sleeps for longer than 2**31 seconds.
24097         Problem reported by Frank v Waveren in
24098         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24100         Check for nanosleep bug.
24101         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24102
24103 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24104
24105         Work around a bug in both the Linux and SunOS 64-bit kernels:
24106         nanosleep mishandles sleeps for longer than 2**31 seconds.
24107         Problem reported by Frank v Waveren in
24108         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24109         * lib/nanosleep.c (BILLION): New constant.
24110         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24111         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24112         implementation.
24113
24114 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24115
24116         * modules/nanosleep (Depends-on): Add gettime.
24117
24118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24119         and Simon Josefsson  <jas@extundo.com>
24120         and Oskar Liljeblad  <oskar@osk.mine.nu>
24121
24122         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24123         * gnulib-tool (func_import): New license type 'unmodifiable license
24124         text'.
24125         * modules/fdl: Use it.  Longer description.
24126         * module/gpl, module/lgpl: New files.
24127
24128 2006-08-30  Jim Meyering  <jim@meyering.net>
24129
24130         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24131         shadowing the parameter.
24132
24133 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24134
24135         Sync from Libtool:
24136
24137         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24138
24139         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24140         sharing with gnulib.  Report by Eric Blake.
24141
24142 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24143
24144         * modules/isapipe: New file.
24145         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24146
24147 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24148
24149         * modules/configmake (Makefile.am): Add a comment, and omit
24150         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24151         by Bruno Haible.
24152
24153 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24154
24155         * m4/isapipe.m4: New file.
24156
24157 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24158
24159         * lib/isapipe.c, lib/isapipe.h: New files.
24160
24161 2006-08-29  Jim Meyering  <jim@meyering.net>
24162
24163         * modules/configmake (Makefile.am): Make configmake.h depend on
24164         Makefile.  Otherwise, a stale configmake.h could hang around.
24165
24166 2006-08-29  Eric Blake  <ebb9@byu.net>
24167
24168         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24169         resolution of upstream bug 3044.
24170
24171 2006-08-29  Bruno Haible  <bruno@clisp.org>
24172
24173         * modules/localcharset (Depends-on): Add configmake.
24174         (Makefile.am): Remove setting of LIBDIR through DEFS.
24175
24176 2006-08-29  Bruno Haible  <bruno@clisp.org>
24177
24178         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24179         defined.
24180
24181 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24182
24183         * modules/fcntl: New file.
24184         * modules/chdir-safer (Depends-on): Add fcntl.
24185         * modules/fts: Likewise.
24186         * modules/mkdir-p: Likewise.
24187
24188         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24189         This undoes the most recent change, since we're now addressing the
24190         problem in a different way.
24191
24192         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24193         into output, since the output might be called Makefile.am even
24194         if $makefile_name is something different.
24195         (func_import): Use $makefile_am rather than
24196         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24197         empty.
24198
24199         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24200
24201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24202
24203         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24204         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24205         recent change to stdint.m4, since we're now addressing the problem in a
24206         different way.
24207
24208 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         * m4/fcntl_h.m4: New file.
24211
24212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         * lib/fcntl_.h: New file.
24215         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24216         the fcntl module.
24217         * lib/dirchownmod.c: Likewise.
24218         * lib/fts.c: Likewise.
24219
24220         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24221         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24222         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24223         just before including <inttypes.h>, to avoid circular inclusion.
24224
24225 2006-08-28  Jim Meyering  <jim@meyering.net>
24226
24227         * doc/visibility.texi: Actually read and correct the grammar of the
24228         sentence affected by yesterday's change.
24229
24230 2006-08-28  Eric Blake  <ebb9@byu.net>
24231
24232         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24233         needs wrapper.
24234
24235 2006-08-28  Eric Blake  <ebb9@byu.net>
24236
24237         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24238
24239 2006-08-28  Eric Blake  <ebb9@byu.net>
24240
24241         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24242
24243 2006-08-28  Bruno Haible  <bruno@clisp.org>
24244
24245         * modules/c-strstr: New file, from GNU gettext.
24246         * MODULES.html.sh (String handling): Add c-strstr.
24247
24248 2006-08-28  Bruno Haible  <bruno@clisp.org>
24249
24250         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24251         macros.
24252         Reported by Eric Blake.
24253
24254 2006-08-28  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24257         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24258         * lib/vasprintf.c: Include errno.h, limits.h.
24259         (EOVERFLOW): New fallback definition.
24260         (vasprintf): Test here whether the string length is > INT_MAX.
24261         * lib/vsnprintf.c: Include errno.h, limits.h.
24262         (EOVERFLOW): New fallback definition.
24263         (vsnprintf): Fix bug when generated string was too long for the buffer.
24264         Test here whether the string length is > INT_MAX.
24265
24266 2006-08-28  Bruno Haible  <bruno@clisp.org>
24267
24268         * lib/inttypes_.h (SCNX*): Remove definitions.
24269         Reported by Eric Blake.
24270
24271 2006-08-28  Bruno Haible  <bruno@clisp.org>
24272
24273         * lib/c-strstr.h: New file, from GNU gettext.
24274         * lib/c-strstr.c: New file, from GNU gettext.
24275
24276 2006-08-28  Bruno Haible  <bruno@clisp.org>
24277
24278         * gnulib-tool: Reorder some statements.
24279
24280 2006-08-28  Bruno Haible  <bruno@clisp.org>
24281
24282         * gnulib-tool: New option --makefile-name.
24283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24284         $makefile_name.
24285         (func_import): Write $makefile_name to the cache file, and read it from
24286         there unless explicitly specified. Use $makefile_name as file name
24287         instead of Makefile.am. Adjust the recommendations accordingly.
24288
24289 2006-08-28  Bruno Haible  <bruno@clisp.org>
24290
24291         * gnulib-tool (func_verify_module): Check against misapplying patch.
24292
24293 2006-08-28  Bruno Haible  <bruno@clisp.org>
24294
24295         * gnulib-tool (func_relativize, func_relconcat): New functions.
24296         Give an error if --local-dir is given with --update.
24297         Remove trailing slashes from $local_gnulib_dir.
24298         (func_import): Store the relativized $local_gnulib_dir in
24299         gnulib-cache.m4, and read it from there if not specified explicitly.
24300
24301 2006-08-28  Bruno Haible  <bruno@clisp.org>
24302
24303         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24304         is the current directory. Respect also $local_gnulib_dir.
24305
24306 2006-08-28  Bruno Haible  <bruno@clisp.org>
24307             Simon Josefsson  <jas@extundo.com>
24308
24309         BeOS portability.
24310         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24311
24312 2006-08-27  Jim Meyering  <jim@meyering.net>
24313
24314         * doc/visibility.texi: Remove duplicate word: "pointer".
24315
24316 2006-08-26  Bruno Haible  <bruno@clisp.org>
24317
24318         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24319         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24320         (Makefile.am): Create inttypes.h from inttypes_.h.
24321         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24322
24323         * modules/imaxabs: New file.
24324
24325         * modules/imaxdiv: New file.
24326
24327 2006-08-26  Bruno Haible  <bruno@clisp.org>
24328
24329         * m4/inttypes.m4: New file.
24330         * m4/_inttypes_h.m4: Remove file.
24331         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24332         PRI_MACROS_BROKEN.
24333         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24334
24335         * m4/imaxabs.m4: New file.
24336
24337         * m4/imaxdiv.m4: New file.
24338
24339 2006-08-26  Bruno Haible  <bruno@clisp.org>
24340
24341         * lib/inttypes_.h: New file.
24342         * lib/inttypes.h: Remove file.
24343         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24344
24345         * lib/imaxabs.c: New file.
24346
24347         * lib/imaxdiv.c: New file.
24348
24349 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24350
24351         New config-h module, so that "make" output needn't be cluttered
24352         by -DHAVE_CONFIG_H.
24353         * MODULES.html.sh (Support for building libraries and executables):
24354         Add config-h.
24355         * modules/config-h: New file.
24356         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24357         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24358         the config-h module is used.
24359
24360         New configmake module, so that "make" output needn't be cluttered
24361         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24362         * MODULES.html.sh (Support for building libraries and executables):
24363         Add configmake.
24364         * modules/configmake: New file.
24365
24366 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24367
24368         * m4/config-h.m4: New file.
24369
24370 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         * config/srclist.txt: Add elisp-comp.
24373
24374 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         * MODULES.html.sh (Support for building libraries and executables):
24377         Add elisp-comp.
24378         * build-aux/elisp-comp: New file.
24379         * modules/elisp-comp: New file.
24380
24381 2006-08-24  Bruno Haible  <bruno@clisp.org>
24382
24383         * gnulib-tool (func_create_testdir): Use non-default values of
24384         sourcebase and m4base.
24385
24386 2006-08-24  Bruno Haible  <bruno@clisp.org>
24387
24388         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24389         HTML structure.
24390
24391 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24392
24393         * modules/openat (Depends-on): Add lchown.
24394
24395 2006-08-23  Bruno Haible  <bruno@clisp.org>
24396
24397         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24398         of gl_LOCK_EARLY instead of gl_LOCK.
24399
24400 2006-08-23  Bruno Haible  <bruno@clisp.org>
24401
24402         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24403         on OSF/1 to no.
24404         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24405
24406 2006-08-23  Bruno Haible  <bruno@clisp.org>
24407
24408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24409         as unusable.
24410
24411         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24412         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24413         (gl_LOCK): New macro.
24414
24415 2006-08-22  Simon Josefsson  <jas@extundo.com>
24416
24417         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24418         to md5 module.
24419
24420 2006-08-22  Simon Josefsson  <jas@extundo.com>
24421
24422         * MODULES.html.sh: Add "Support for maintaining and release
24423         projects".
24424
24425         * build-aux/gnupload: New file, from coreutils.
24426
24427 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24428
24429         Avoid the need for AC_LIBSOURCES in m4 macros.
24430         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24431         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24432         * modules/check-version (EXTRA_DIST): Add check-version.h.
24433         * modules/crc (EXTRA_DIST): Add crc.h.
24434         * modules/des (EXTRA_DIST): Add des.h.
24435         * modules/gc (EXTRA_DIST): Add gc.h.
24436         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24437         * modules/getline (EXTRA_DIST): Add getline.h.
24438         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24439         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24440         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24441         * modules/md2 (EXTRA_DIST): Add md2.h.
24442         * modules/md4 (EXTRA_DIST): Add md4.h.
24443         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24444         * modules/read-file (EXTRA_DIST): Add read-file.h.
24445         * modules/readline (EXTRA_DIST): Add readline.h.
24446         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24447         rijndael-api-fst.h.
24448
24449 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         * m4/rijndael.m4 (gl_ARCFOUR):
24452         * m4/arctwo.m4 (gl_ARCTWO):
24453         * m4/check-version.m4 (gl_CHECK_VERSION):
24454         * m4/crc.m4 (gl_CRC):
24455         * m4/des.m4 (gl_DES):
24456         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24457         * m4/gc.m4 (gl_GC):
24458         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24459         * m4/getline.m4 (gl_FUNC_GETLINE):
24460         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24461         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24462         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24463         * m4/md2.m4 (gl_MD2):
24464         * m4/md4.m4 (gl_MD4):
24465         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24466         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24467         * m4/readline.m4 (gl_FUNC_READLINE):
24468         * m4/rijndael.m4 (gl_RIJNDAEL):
24469         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24470         to get the necessary .h files and whatnot.
24471
24472 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24475         gnulib rather than the other way around.
24476         * config/srclistvars.sh (COREUTILS): Remove.
24477
24478 2006-08-22  Jim Meyering  <jim@meyering.net>
24479
24480         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24481
24482         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24483
24484 2006-08-22  Eric Blake  <ebb9@byu.net>
24485
24486         * modules/regexprops-generic: New file.
24487         * MODULES.html.sh (Support for building documentation): List it.
24488
24489 2006-08-22  Eric Blake  <ebb9@byu.net>
24490
24491         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24492         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24494         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24495
24496 2006-08-22  Bruno Haible  <bruno@clisp.org>
24497
24498         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24499         and lib_LTLIBRARIES like the other lib_* variables.
24500
24501 2006-08-22  Bruno Haible  <bruno@clisp.org>
24502
24503         * build-aux/x-to-1.in: New file, from GNU gettext.
24504
24505 2006-08-22  Bruno Haible  <bruno@clisp.org>
24506
24507         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24508         <utmpx.h> exists.
24509
24510 2006-08-22  Bruno Haible  <bruno@clisp.org>
24511
24512         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24513         <utmpx.h> exists.
24514
24515 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24516
24517         BeOS portability.
24518         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24519         exist.
24520         Problem reported by Bruno Haible.
24521
24522 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24523
24524         Avoid the need for AC_LIBSOURCES in m4 macros.
24525         * modules/acl (EXTRA_DIST): Add acl.h.
24526         * modules/argmatch (Files): Add m4/argmatch.m4.
24527         (configure.ac): Add gl_ARGMATCH.
24528         (EXTRA_DIST): Renamed from lib_SOURCES, for
24529         consistency with the other modules.  Remove argmatch.c.
24530         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24531         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24532         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24533         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24534         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24535         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24536         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24537         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24538         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24539         * modules/closeout (EXTRA_DIST): Add closeout.h.
24540         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24541         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24542         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24543         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24544         dirname.h; remove basename.c and stripslash.c.
24545         * modules/exclude (EXTRA_DIST): Add exclude.h.
24546         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24547         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24548         * modules/file-type (EXTRA_DIST): Add file-type.h.
24549         * modules/filemode (EXTRA_DIST): Add filemode.h.
24550         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24551         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24552         * modules/fpending (EXTRA_DIST): Add __fpending.h.
24553         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24554         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24555         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24556         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24557         * modules/getdate (EXTRA_DIST): Add getdate.c.
24558         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24559         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24560         * modules/getpass (EXTRA_DIST): Add getpass.h.
24561         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24562         * modules/group-member (EXTRA_DIST): Add group-member.h.
24563         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24564         * modules/hash (EXTRA_DIST): Add hash.h.
24565         * modules/human (EXTRA_DIST): Add human.h.
24566         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24567         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24568         * modules/lchown (EXTRA_DIST): Add lchown.h.
24569         * modules/long-options (EXTRA_DIST): Add long-options.h.
24570         * modules/lstat (EXTRA_DIST): Add lstat.h.
24571         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24572         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24573         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24574         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24575         * modules/memxor (EXTRA_DIST): Add memxor.h.
24576         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24577         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24578         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24579         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24580         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24581         * modules/physmem (EXTRA_DIST): Add physmem.h.
24582         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24583         * modules/posixver (EXTRA_DIST): Add posixver.h.
24584         * modules/quote (EXTRA_DIST): Add quote.h.
24585         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24586         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24587         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24588         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24589         regex_internal.h regexec.c.
24590         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24591         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24592         * modules/same (EXTRA_DIST): Add same.h.
24593         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24594         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24595         * modules/savedir (EXTRA_DIST): Add savedir.h.
24596         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24597         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24598         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24599         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24600         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24601         * modules/strdup (EXTRA_DIST): Add strdup.h.
24602         * modules/strftime (EXTRA_DIST): Add strftime.h.
24603         * modules/strndup (EXTRA_DIST): Add strndup.h.
24604         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24605         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24606         * modules/time_r (EXTRA_DIST): Add time_r.h.
24607         * modules/timespec (EXTRA_DIST): Add timespec.h.
24608         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24609         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24610         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24611         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24612         * modules/userspec (EXTRA_DIST): Add userspec.h.
24613         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24614         * modules/utimens (EXTRA_DIST): Add utimens.h.
24615         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24616         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24617         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24618         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24619         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24620         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24621         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24622         * modules/yesno (EXTRA_DIST): Add yesno.h.
24623
24624 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24627
24628         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24629         * m4/dev-ino.m4, same-inode.m4: Remove.
24630
24631         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24632         * m4/acl.m4 (AC_FUNC_ACL):
24633         * m4/backupfile.m4 (gl_BACKUPFILE):
24634         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24635         * m4/canon-host.m4 (gl_CANON_HOST):
24636         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24637         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24638         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24639         * m4/cloexec.m4 (gl_CLOEXEC):
24640         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24641         * m4/closeout.m4 (gl_CLOSEOUT):
24642         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24643         * m4/dirname.m4 (gl_DIRNAME):
24644         * m4/exclude.m4 (gl_EXCLUDE):
24645         * m4/exitfail.m4 (gl_EXITFAIL):
24646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24647         * m4/file-type.m4 (gl_FILE_TYPE):
24648         * m4/filemode.m4 (gl_FILEMODE):
24649         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24650         * m4/fpending.m4 (gl_FUNC_FPENDING):
24651         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24652         * m4/fts.m4 (gl_FUNC_FTS):
24653         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24654         * m4/getdate.m4 (gl_GETDATE):
24655         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24656         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24657         * m4/getpass.m4 (gl_FUNC_GETPASS):
24658         * m4/gettime.m4 (gl_GETTIME):
24659         * m4/getugroups.m4 (gl_GETUGROUPS):
24660         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24661         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24662         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24663         * m4/hash.m4 (gl_HASH):
24664         * m4/idcache.m4 (gl_IDCACHE):
24665         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24666         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24667         * m4/long-options.m4 (gl_LONG_OPTIONS):
24668         * m4/lstat.m4 (gl_FUNC_LSTAT):
24669         * m4/md5.m4 (gl_MD5):
24670         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24671         * m4/memcoll.m4 (gl_MEMCOLL):
24672         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24674         * m4/memxor.m4 (gl_MEMXOR):
24675         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24677         * m4/modechange.m4 (gl_MODECHANGE):
24678         * m4/mountlist.m4 (gl_MOUNTLIST):
24679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24680         * m4/openat.m4 (gl_FUNC_OPENAT):
24681         * m4/pathmax.m4 (gl_PATHMAX):
24682         * m4/physmem.m4 (gl_PHYSMEM):
24683         * m4/posixtm.m4 (gl_POSIXTM):
24684         * m4/posixver.m4 (gl_POSIXVER):
24685         * m4/quote.m4 (gl_QUOTE):
24686         * m4/quotearg.m4 (gl_QUOTEARG):
24687         * m4/readtokens.m4 (gl_READTOKENS):
24688         * m4/readutmp.m4 (gl_READUTMP):
24689         * m4/regex.m4 (gl_REGEX):
24690         * m4/safe-read.m4 (gl_SAFE_READ):
24691         * m4/safe-write.m4 (gl_SAFE_WRITE):
24692         * m4/same.m4 (gl_SAME):
24693         * m4/save-cwd.m4 (gl_SAVE_CWD):
24694         * m4/savedir.m4 (gl_SAVEDIR):
24695         * m4/settime.m4 (gl_SETTIME):
24696         * m4/sha1.m4 (gl_SHA1):
24697         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24698         * m4/stat-macros.m4 (gl_STAT_MACROS):
24699         * m4/stat-time.m4 (gl_STAT_TIME):
24700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24701         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24702         * m4/strdup.m4 (gl_FUNC_STRDUP):
24703         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24704         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24705         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24706         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24707         * m4/time_r.m4 (gl_TIME_R):
24708         * m4/timespec.m4 (gl_TIMESPEC):
24709         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24710         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24711         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24712         * m4/userspec.m4 (gl_USERSPEC):
24713         * m4/utimecmp.m4 (gl_UTIMECMP):
24714         * m4/utimens.m4 (gl_UTIMENS):
24715         * m4/xalloc.m4 (gl_XALLOC):
24716         * m4/xgetcwd.m4 (gl_XGETCWD):
24717         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24718         * m4/xreadlink.m4 (gl_XREADLINK):
24719         * m4/xstrtod.m4 (gl_XSTRTOD):
24720         * m4/yesno.m4 (gl_YESNO):
24721         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24722         to get the necessary .h files and whatnot.
24723
24724 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24725             Bruno Haible  <bruno@clisp.org>
24726
24727         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24728         /bin/sh understanding of '!' conditional negation.
24729
24730 2006-08-21  Jim Meyering  <jim@meyering.net>
24731
24732         * modules/openat (Depends-on): Really alphabetize.
24733
24734         * modules/acl (Depends-on): Add error and quote.
24735
24736         * check-module (find_included_lib_files): Add at-func.c to the
24737         ok-to-include-more-than-once white list.
24738
24739         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24740
24741 2006-08-21  Bruno Haible  <bruno@clisp.org>
24742
24743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24744         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24745         Reported by Martin Lambers <marlam@marlam.de>.
24746
24747 2006-08-21  Bruno Haible  <bruno@clisp.org>
24748
24749         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24750         specify an installation location, don't emit a noinst_LIBRARIES or
24751         noinst_LTLIBRARIES assignment.
24752
24753 2006-08-21  Bruno Haible  <bruno@clisp.org>
24754
24755         BeOS portability.
24756         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24757         BeOS has mbrtowc() but no <wctype.h>.
24758
24759 2006-08-21  Bruno Haible  <bruno@clisp.org>
24760
24761         BeOS portability.
24762         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24763         exist.
24764
24765 2006-08-21  Bruno Haible  <bruno@clisp.org>
24766
24767         BeOS portability.
24768         * lib/mbchar.h: Include <wctype.h> only if it exists.
24769
24770 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         Remove files that are no longer needed by their respective modules.
24773         * m4/obstack.m4: Remove.
24774         * m4/strerror_r.m4: Remove.
24775         * m4/uint32_t.m4: Remove.
24776         * m4/uintptr_t.m4: Remove.
24777         * m4/ullong_max.m4: Remove.
24778         * m4/xstrtoimax.m4: Remove.
24779         * m4/xstrtoumax.m4: Remove.
24780
24781         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24782         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24783         dependencies now capture this.
24784
24785         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24786         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24787         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24788         * m4/human.m4 (gl_HUMAN): Likewise.
24789         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24790         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24791
24792         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24793
24794         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24795         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24796         stdint.
24797         * m4/human.m4 (gl_HUMAN): Likewise.
24798         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24799         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24800         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24801         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24802         * m4/xstrtol (gl_XSTRTOL): Likewise.
24803
24804         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24805         AC_TYPE_LONG_LONG_INT.
24806         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24807         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24808         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24809         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24810
24811         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24812         on stdbool.
24813
24814         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24815         (gl_PREREQ_XSTRTOUL): Remove.
24816
24817         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24818
24819         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24820         mode.
24821
24822 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24823
24824         Add and change modules to make it easier for coreutils to use
24825         gnulib-tool.
24826         * modules/backupfile (Files): Remove m4/d-ino.m4.
24827         (Depends-on): Add d-ino.
24828         * modules/cycle-check (Depends-on): Add stdint.
24829         (lib_SOURCES): Add cycle-check.h.
24830         * modules/d-ino: New module.
24831         * modules/d-type: New module.
24832         * modules/error (Files): Remove m4/strerror_r.m4.
24833         * modules/filemode (Files): Add m4/st_dm_mode.m4.
24834         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24835         m4/inttypes_h.m4, m4/uintmax_t.m4.
24836         (Depends-on): Add stdint.
24837         (lib_SOURCES): Add fsusage.h.
24838         * modules/getcwd (Files): Remove d-ino.m4.
24839         (Depends-on): Add d-ino.
24840         * modules/getndelim2 (Depends-on): Add stdint.
24841         * modules/glob (Files): Remove m4/d-type.m4.
24842         (Depends-on): Add d-type.
24843         * modules/host-os: New module.
24844         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
24845         m4/inttypes_h.m4, m4/uintmax_t.m4.
24846         * Depends-on: Add stdint.
24847         (lib_SOURCES): Add human.h.
24848         * modules/inttostr (Files): Remove m4/intmax_t.m4,
24849         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24850         m4/uintmax_t.m4, m4/ulonglong.m4.
24851         (Depends-on): Add stdint.
24852         (EXTRA_DIST): Add inttostr.h.
24853         * modules/lchmod: New module.
24854         * modules/link-follow: New module.
24855         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24856         (Depends-on): Add lchmod.
24857         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24858         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24859         (Depends-on): Add stdint.
24860         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24861         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24862         (Depends-on): Add stdint.
24863         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24864         * modules/perl: New module.
24865         * modules/regex (Depends-on): Add stdint.
24866         * modules/rmdir-errno: New module.
24867         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24868         m4/intmax_t.m4.
24869         (Depends-on): Add stdint.
24870         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24871         m4/uintmax_t.m4.
24872         (Depends-on): Add stdint.
24873         * modules/unlink-busy: New module.
24874         * modules/utimecmp (Depends-on): Add stdint.
24875         * modules/uptime: New module.
24876         * modules/winsz-ioctl: New module.
24877         * modules/winsz-termios: New module.
24878         * modules/xnanosleep (Depends-on): Add nanosleep.
24879         * modules/ullong_max: Remove.
24880         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24881         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24882         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24883         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24884         (Depends-on): Add inttypes.
24885         (lib_SOURCES): Add xstrtol.h.
24886         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24887         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24888         * MODULES.html.sh: Move 'assert' into the assert section.
24889         Move 'dummy' into the linking section.
24890         Remove ullong_max.
24891         Add section for compatibility checks for POSIX:2001 functions,
24892         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24893         winsz-ioctl, and winsz-termios into it.
24894         Add lchmod.
24895         Add top-level Misc section and put host-os, perl, and uptime
24896         into it.
24897
24898 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24899
24900         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24901         now assume the stdint module.  Do not include inttypes.h.
24902         * lib/fsusage.h: Likewise.
24903         * lib/getndelim2.c: Likewise.
24904         * lib/human.h: Likewise.
24905         * lib/inttostr.h: Likewise.
24906         * lib/obstack.c: Likewise.
24907         * lib/regex_internal.h: Likewise.
24908         * lib/tempname.c: Likewise.
24909         * lib/utimecmp.c: Likewise.
24910         * lib/xstrtol.h: Likewise.
24911
24912         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24913
24914         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24915         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24916         * lib/xtime.h: Likewise.
24917
24918 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24919
24920         * modules/openat (Files): Add lib/fchmodat.c.
24921         Fixes problem reported by Jay Youngman.
24922
24923 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24924
24925         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24926         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24927
24928 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24929             Bruno Haible  <bruno@clisp.org>
24930
24931         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24932         and is a script that invokes bison. Tighten the code. Add comments.
24933
24934 2006-08-18  Jim Meyering  <jim@meyering.net>
24935
24936         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24937         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24938         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24939         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24940
24941 2006-08-18  Bruno Haible  <bruno@clisp.org>
24942
24943         * modules/bison-i18n: New file.
24944         * MODULES.html.sh (Internationalization functions): Add it.
24945
24946 2006-08-18  Bruno Haible  <bruno@clisp.org>
24947
24948         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24949         sys/statvfs.h. When getmntinfo was found, check its declaration and
24950         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24951
24952 2006-08-18  Bruno Haible  <bruno@clisp.org>
24953
24954         * m4/bison-i18n.m4: New file, from bison.
24955
24956 2006-08-18  Bruno Haible  <bruno@clisp.org>
24957
24958         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24959         (ME_DUMMY): Treat "kernfs" as a dummy.
24960         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24961
24962 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24963
24964         Update from coreutils.
24965
24966         2006-08-15  Jim Meyering  <jim@meyering.net>
24967
24968         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24969
24970         2006-01-17  Jim Meyering  <jim@meyering.net>
24971
24972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24973
24974         2006-01-11  Jim Meyering  <jim@meyering.net>
24975
24976         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24977         Check for the lchmod function.
24978
24979 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24980
24981         Update from coreutils.
24982
24983         * lib/__fpending.h: Add copyright notice.
24984         * lib/fprintftime.h: Likewise.
24985         * lib/savedir.c: Use (C) in copyright notice.
24986         * lib/savedir.h: Likewise.
24987
24988         2006-08-15  Jim Meyering  <jim@meyering.net>
24989
24990         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24991         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24992         in support of the EXPECTED_ERRNO macro.
24993         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24994         definitions.  Instead, define the appropriate symbols and include
24995         "at-func.c".
24996         * lib/mkdirat.c (mkdirat): Likewise.
24997         * lib/fchmodat.c (fchmodat): Likewise.
24998         (ENOSYS): Remove definition.
24999         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25000         it.  Don't include "unistd--.h" -- it wasn't ever used.
25001
25002         2006-01-17  Jim Meyering  <jim@meyering.net>
25003
25004         Rewrite fts.c not to change the current working directory,
25005         by using openat, fstatat, fdopendir, etc..
25006
25007         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25008         (HAVE_OPENAT_SUPPORT): Define.
25009         [_LIBC] (fchdir): Don't undef or define; no longer used.
25010         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25011         Now, this `function' always succeeds, and consumes its file descriptor
25012         parameter -- so callers must not close such FDs.  Update callers.
25013         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25014         (diropen): Add parameter, SP.  Adjust all callers.
25015         Implement using diropen_fd, rather than open.
25016         (fts_open): Initialize new member, fts_cwd_fd.
25017         Remove fts_rft-setting code.
25018         (fts_close): Close fts_cwd_fd, if necessary.
25019         (__opendir2): Define in terms of opendir or opendirat,
25020         depending on whether the FST_NOCHDIR flag is set.
25021         (fts_build): Since fts_safe_changedir consumes its FD, and since
25022         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25023         and close the dup'd file descriptor upon failure.
25024         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25025         (fts_safe_changedir): Tweak semantics to reflect that this function
25026         now calls cwd_advance_fd and hence consumes its FD argument.
25027         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25028         [struct FTS] (fts_rft): Remove now-unused member.
25029         [struct FTS] (fts_cycle.state): Improve comment.
25030
25031         * lib/openat.c (openat_needs_fchdir): New function.
25032         * lib/openat.h (openat_needs_fchdir): Declare it.
25033
25034 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25035
25036         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25037         Problem and fix reported by Pádraig Brady in
25038         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25039
25040 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25043
25044 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25045
25046         * lib/memcoll.c (memcoll): Optimize for the common case where the
25047         arguments are bytewise equal.
25048
25049 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25050
25051         * doc/regexprops-generic.texi: Add a copyright notice.
25052
25053 2006-08-15  Bruno Haible  <bruno@clisp.org>
25054
25055         * modules/tmpdir (License): Change to LGPL.
25056
25057 2006-08-15  Bruno Haible  <bruno@clisp.org>
25058
25059         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25060         module.
25061
25062 2006-08-14  Simon Josefsson  <jas@extundo.com>
25063
25064         * config/srclist.txt: Add gnupload.
25065
25066 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25067
25068         Change copyright notice from LGPL 2 to GPL 2, since that's the
25069         standard form used in the gnulib repository.
25070         * tests/test-lock.c: Likewise.
25071         * tests/test-stdint.c: Likewise.
25072         * tests/test-tls.c: Likewise.
25073
25074         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25075         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25076         Add copyright notice.
25077
25078         * check-module: Add copyright notice.  Output a copyright
25079         notice if "--version" is specified.
25080         * modules/COPYING: New file.
25081         * tests/test-getaddrinfo.c: Add copyright notice.
25082         * tests/test-verify.c: Likewise.
25083
25084 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25085
25086         Change copyright notice from LGPL 2 to GPL 2, since that's the
25087         standard form used in the gnulib repository.
25088         * lib/lock.c: LGPL -> GPL.
25089         * lib/lock.h: Likewise.
25090         * lib/strnlen1.c: Likewise.
25091         * lib/strnlen1.h: Likewise.
25092         * lib/tls.c: Likewise.
25093         * lib/tls.h: Likewise.
25094         * lib/tmpdir.c: Likewise.
25095
25096         * lib/TODO: Remove; this belongs only in coreutils.
25097
25098 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25099
25100         Add copyright notices to long-enough files that lack them, since
25101         otherwise the files aren't clearly free.  Use the same notice that
25102         getdate.texi already uses.
25103         * doc/alloca-opt.texi: Add copyright notice.
25104         * doc/alloca.texi: Likewise.
25105         * doc/ctime.texi: Likewise.
25106         * doc/functions.texi: Likewise.
25107         * doc/gcd.texi: Likewise.
25108         * doc/gnulib-tool.texi: Likewise.
25109         * doc/inet_ntoa.texi: Likewise.
25110         * doc/visibility.texi: Likewise.
25111
25112         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25113         * doc/quote.texi: Add copyright notice.
25114
25115         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25116         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25117         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25118         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25119         is now obsolete, and give a pointer to the Sun list.
25120         Add copyright notice.
25121
25122 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25123
25124         * config/srclistvars.sh: Add copyright notice.
25125
25126 2006-08-14  Eric Blake  <ebb9@byu.net>
25127
25128         Import the following change from libc:
25129
25130         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25131
25132         Upstream bug 2997.
25133         * lib/misc/error.c: Add space between program name and message if file
25134         name is missing.
25135
25136 2006-08-12  Karl Berry  <karl@gnu.org>
25137
25138         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25139         remove, these originate in gnulib now.
25140
25141 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25142
25143         * doc/Makefile (standards.info standards.html standards.dvi):
25144         Also depend on make-stds.texi.
25145
25146 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25147
25148         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25149         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25150
25151         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25152         in wchar_t.  Problem reported by Eric Blake.
25153
25154         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25155         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25156         Also, help the compiler to keep LEN in a register.
25157
25158 2006-08-11  Eric Blake  <ebb9@byu.net>
25159
25160         * users.txt: Sort.  Add tar.
25161
25162 2006-08-11  Bruno Haible  <bruno@clisp.org>
25163
25164         * users.txt: New file.
25165
25166 2006-08-11  Bruno Haible  <bruno@clisp.org>
25167
25168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25169         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25170
25171 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * modules/snprintf (Depends-on): Remove minmax.
25174         (Maintainer): Add self and Bruno.
25175
25176 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25177
25178         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25179         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25180         (EOVERFLOW): Define if the system does not.
25181         Do not include "minmax.h"; it wasn't used.
25182         (snprintf): Don't assume size_t promotes to an unsigned type.
25183         Fix bug when generated string was too long for the buffer: the
25184         buffer's contents are supposed to be the initial prefix of the
25185         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25186         exceeds INT_MAX; do the check ourselves.
25187
25188         Import the following changes from libc:
25189
25190         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25191
25192         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25193         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25194         set wc to the byte which couldn't be converted.
25195         (re_string_reconstruct): Don't clear valid_raw_len before calling
25196         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25197         tip_context using re_string_context_at.
25198
25199         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25200
25201         * lib/posix/regex.h: g++ still cannot handled [restrict].
25202
25203         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25204
25205         * lib/posix/regex.h: Remove special handling for VMS.
25206
25207 2006-08-10  Jim Meyering  <jim@meyering.net>
25208
25209         * modules/same-inode: New module.
25210         * modules/dev-ino: New module.
25211         * modules/cycle-check: Depend on these modules, rather than simply
25212         including their .h files.
25213         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25214         required via m4/cycle-check.m4.
25215         * modules/same: Depend on new same-inode module, rather than
25216         including same-inode.h.
25217         * modules/chdir-safer: New file.
25218
25219         * modules/chown (Depends-on): Add stat-macros.
25220
25221 2006-08-10  Jim Meyering  <jim@meyering.net>
25222
25223         * m4/cycle-check.m4: New file.
25224         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25225         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25226
25227 2006-08-10  Eric Blake  <ebb9@byu.net>
25228
25229         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25230         in from original proposal.
25231
25232 2006-08-10  Eric Blake  <ebb9@byu.net>
25233         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25234
25235         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25236         namespace.
25237
25238 2006-08-10  Bruno Haible  <bruno@clisp.org>
25239
25240         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25241         as well.
25242
25243 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25244
25245         Sync from coreutils.
25246
25247         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25248
25249         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25250         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25251
25252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25253
25254         * modules/restrict: Remove; no longer needed now that we assume
25255         Autoconf 2.59 or later.
25256         * MODULES.html.sh: Remove 'restrict'.
25257         * modules/argp (Depends-on): Remove 'restrict'.
25258         * modules/base64 (Depends-on): Likewise.
25259         * modules/gc (Depends-on): Likewise.
25260         * modules/getaddrinfo (Depends-on): Likewise.
25261         * modules/glob (Depends-on): Likewise.
25262         * modules/inet_ntop (Depends-on): Likewise.
25263         * modules/inet_pton (Depends-on): Likewise.
25264         * modules/memxor (Depends-on): Likewise.
25265         * modules/regex (Depends-on): Likewise.
25266         * modules/strtok_r (Depends-on): Likewise.
25267         * modules/time_r (Depends-on): Likewise.
25268
25269 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25270
25271         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25272         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25273         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25274         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25275         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25276         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25277         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25278         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25279
25280         Merge from coreutils.
25281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25282         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25283         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25284         * m4/time_r.m4 (gl_TIME_R): Likewise.
25285
25286 2006-08-09  Karl Berry  <karl@gnu.org>
25287
25288         * config/srclist.txt: no more gettext-tools, per Bruno.
25289
25290 2006-08-08  Eric Blake  <ebb9@byu.net>
25291
25292         * modules/verror: New module.
25293         * MODULES.html.sh: Document it.
25294
25295 2006-08-08  Eric Blake  <ebb9@byu.net>
25296
25297         * lib/verror.h, lib/verror.c: New files.
25298
25299 2006-08-08  Eric Blake  <ebb9@byu.net>
25300
25301         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25302         verror_at_line output complies with GNU Coding Standards even when
25303         file is NULL.
25304
25305 2006-08-07  Bruno Haible  <bruno@clisp.org>
25306
25307         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25308         versions of AIX.
25309         Reported by Ralf Wildenhues.
25310
25311 2006-08-07  Bruno Haible  <bruno@clisp.org>
25312
25313         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25314         in an AC_DEFUN. Needed so that the autoconf snippets can use
25315         AC_REQUIRE.
25316
25317 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25318
25319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25320         Initialize pkgdata_DATA.
25321         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25322         overriding it.
25323
25324 2006-08-06  Eric Blake  <ebb9@byu.net>
25325
25326         * lib/error.h: Fold in some upstream changes from glibc.
25327         * lib/error.c: Likewise.
25328
25329 2006-08-04  Bruno Haible  <bruno@clisp.org>
25330
25331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25332         Make the mostlyclean-local rule depend on mostlyclean-generic.
25333         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25334
25335 2006-07-31  Bruno Haible  <bruno@clisp.org>
25336
25337         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25338         <stdlib.h>, <string.h>.
25339
25340 2006-07-30  Bruno Haible  <bruno@clisp.org>
25341
25342         * modules/readlink (License): Change to LGPL.
25343
25344 2006-07-30  Bruno Haible  <bruno@clisp.org>
25345
25346         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25347         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25348         set PKGDATADIR to point to it.
25349
25350 2006-07-30  Bruno Haible  <bruno@clisp.org>
25351
25352         * modules/csharpexec (configure.ac): Comment out macro invocation.
25353         * modules/javaexec (configure.ac): Likewise.
25354         * modules/javacomp-script (configure.ac): Likewise.
25355
25356         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25357
25358 2006-07-30  Bruno Haible  <bruno@clisp.org>
25359
25360         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25361         linked-list.
25362
25363 2006-07-30  Bruno Haible  <bruno@clisp.org>
25364
25365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25366
25367 2006-07-30  Bruno Haible  <bruno@clisp.org>
25368
25369         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25370         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25371         get removed.
25372
25373 2006-07-29  Bruno Haible  <bruno@clisp.org>
25374
25375         Make it possible for gnulib-tool to work with locally modified or
25376         augmented gnulib repositories.
25377         * gnulib-tool (func_usage): Document --local-dir option.
25378         (local_gnulib_dir): New variable.
25379         Handle --local-dir option.
25380         (func_lookup_file): New function.
25381         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25382         (func_get_description, func_get_filelist, func_get_description,
25383         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25384         func_get_automake_snippet, func_get_include_directive,
25385         func_get_license, func_get_maintainer): Use func_lookup_file.
25386         (func_import, func_create_testdir): Use func_lookup_file.
25387
25388 2006-07-29  Bruno Haible  <bruno@clisp.org>
25389
25390         * modules/setenv (Depends-on): Add unistd.
25391
25392 2006-07-29  Bruno Haible  <bruno@clisp.org>
25393
25394         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25395
25396 2006-07-29  Bruno Haible  <bruno@clisp.org>
25397
25398         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25399
25400 2006-07-29  Bruno Haible  <bruno@clisp.org>
25401
25402         * gnulib-tool (import, update): If there is no Makefile.am, look at
25403         aclocal.m4, instead of bailing out.
25404
25405 2006-07-29  Bruno Haible  <bruno@clisp.org>
25406
25407         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25408         Categorize the options by when they are useful.
25409
25410 2006-07-29  Bruno Haible  <bruno@clisp.org>
25411
25412         * gnulib-tool (func_usage): Document option --no-libtool.
25413         Handle option --no-libtool.
25414         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25415         for changed semantics of $libtool variable.
25416         (func_import): Likewise. If libtool is not used, show this through
25417         an option --no-libtool.
25418         (func_create_testdir): Update.
25419
25420 2006-07-29  Bruno Haible  <bruno@clisp.org>
25421
25422         * gnulib-tool (func_import): Extend error message about missing
25423         --doc-base.
25424
25425 2006-07-29  Bruno Haible  <bruno@clisp.org>
25426
25427         * gnulib-tool (func_import): Don't create the $docbase directory if
25428         there is no file to store there.
25429
25430 2006-07-29  Bruno Haible  <bruno@clisp.org>
25431
25432         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25433         relevant, look for configure.ac there, not in the current directory.
25434         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25435
25436 2006-07-29  Bruno Haible  <bruno@clisp.org>
25437
25438         * gnulib-tool (SORT): New variable.
25439         (func_usage): Undocument --assume-autoconf option.
25440         Remove --assume-autoconf option handling.
25441         (autoconf_minversion): Determine from the contents of configure.ac.
25442         (func_import): Remove autoconf_minversion handling.
25443         Suggested by Eric Blake.
25444
25445 2006-07-29  Bruno Haible  <bruno@clisp.org>
25446
25447         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25448
25449 2006-07-29  Bruno Haible  <bruno@clisp.org>
25450
25451         * config/srclist.txt (*setenv.[ch]): Remove rules.
25452
25453 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25454
25455         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25456
25457 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25458
25459         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25460         arpa/inet.h.
25461
25462 2006-07-28  Simon Josefsson  <jas@extundo.com>
25463
25464         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25465         * modules/inet_pton (Depends-on): Likewise.
25466
25467 2006-07-28  Simon Josefsson  <jas@extundo.com>
25468
25469         * m4/netinet_in_h.m4: New file.
25470
25471 2006-07-28  Simon Josefsson  <jas@extundo.com>
25472
25473         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25474         #include's.
25475
25476 2006-07-28  Simon Josefsson  <jas@extundo.com>
25477
25478         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25479         #include's.
25480
25481 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25482
25483         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25484         setgid on directories only if they set these bits.
25485         * lib/modechange.h: Remove obsolete comment about masks.
25486
25487 2006-07-28  Eric Blake  <ebb9@byu.net>
25488
25489         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25490         macro expansion.
25491
25492 2006-07-28  Bruno Haible  <bruno@clisp.org>
25493
25494         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25495
25496 2006-07-28  Bruno Haible  <bruno@clisp.org>
25497
25498         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25499
25500 2006-07-28  Bruno Haible  <bruno@clisp.org>
25501
25502         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25503         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25504         Define fallbacks.
25505         Avoids link error on FreeBSD 4.x.
25506         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25507
25508         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25509         encoding.
25510         * lib/mbswidth.c (iswcntrl): Likewise.
25511
25512 2006-07-27  Bruno Haible  <bruno@clisp.org>
25513
25514         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25515         test.
25516
25517 2006-07-27  Bruno Haible  <bruno@clisp.org>
25518
25519         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25520         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25521         defined.
25522
25523 2006-07-26  Eric Blake  <ebb9@byu.net>
25524
25525         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25526
25527 2006-07-26  Eric Blake  <ebb9@byu.net>
25528
25529         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25530         like mingw that lack mkstemp.
25531         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25532         avoid compilation warning on mingw.
25533
25534 2006-07-26  Bruno Haible  <bruno@clisp.org>
25535
25536         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25537         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25538         INT_FAST*_MIN, INTPTR_MIN.
25539
25540 2006-07-25  Bruno Haible  <bruno@clisp.org>
25541
25542         * modules/version-etc (Depends-on): Add stdarg.
25543
25544 2006-07-25  Bruno Haible  <bruno@clisp.org>
25545
25546         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25547         complex commands.
25548
25549 2006-07-25  Bruno Haible  <bruno@clisp.org>
25550
25551         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25552         defined in <stdarg.h> or config.h.
25553
25554 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25555
25556         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25557         (gl_STDIO_SAFER): Remove.
25558
25559 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25560
25561         * MODULES.html.sh (File stream based Input/Output):
25562         Add fopen-safer, tmpfile-safer; remove stdio-safer.
25563         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25564         * modules/fopen-safer, modules/tmpfile-safer: New files.
25565         * modules/stdio-safer: Remove.
25566
25567 2006-07-24  Bruno Haible  <bruno@clisp.org>
25568
25569         * modules/tmpdir: New file.
25570         * MODULES.html.sh (File system functions): Add it.
25571
25572 2006-07-24  Bruno Haible  <bruno@clisp.org>
25573
25574         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25575         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25576
25577 2006-07-24  Bruno Haible  <bruno@clisp.org>
25578
25579         * modules/clean-temp: New file.
25580
25581 2006-07-24  Bruno Haible  <bruno@clisp.org>
25582
25583         * m4/tmpdir.m4: New file, from GNU gettext.
25584
25585 2006-07-24  Bruno Haible  <bruno@clisp.org>
25586
25587         * lib/tmpdir.h: New file, from GNU gettext.
25588         * lib/tmpdir.c: New file, from GNU gettext.
25589
25590 2006-07-24  Bruno Haible  <bruno@clisp.org>
25591
25592         * lib/clean-temp.h: New file, from GNU gettext.
25593         * lib/clean-temp.c: New file, from GNU gettext.
25594
25595 2006-07-23  Eric Blake  <ebb9@byu.net>
25596
25597         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25598         (Depends-on): Add binary-io.
25599
25600 2006-07-23  Eric Blake  <ebb9@byu.net>
25601
25602         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25603
25604 2006-07-23  Eric Blake  <ebb9@byu.net>
25605
25606         * lib/tmpfile-safer.c: New file.
25607         * lib/stdio-safer.h (fopen_safer): Add prototype.
25608         * lib/stdio--.h (tmpfile): Make safer.
25609
25610 2006-07-23  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25613         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25614         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25615         gl_linked_remove_at): Use it.
25616
25617 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25618         and Simon Josefsson <jas@extundo.com>
25619
25620         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25621
25622         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25623
25624 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * modules/close-stream: New file.
25627         * modules/closeout (Description): Make it clear that it exits
25628         with a diagnostic on error.
25629         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25630         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25631
25632 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25633
25634         * m4/close-stream.m4: New file.
25635
25636 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25637
25638         * lib/close-stream.c, lib/close-stream.h: New files.
25639
25640 2006-07-22  Bruno Haible  <bruno@clisp.org>
25641
25642         Merge from GNU gettext 0.15.
25643
25644         2006-05-01  Bruno Haible  <bruno@clisp.org>
25645
25646                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25647
25648         2006-07-22  Bruno Haible  <bruno@clisp.org>
25649
25650                 * modules/javaversion: New file.
25651                 * MODULES.html.sh (Java): Add javaversion.
25652
25653         2006-03-12  Bruno Haible  <bruno@clisp.org>
25654
25655                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25656
25657         2005-12-04  Bruno Haible  <bruno@clisp.org>
25658
25659                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25660                 (untested).
25661
25662         2006-06-21  Bruno Haible  <bruno@clisp.org>
25663
25664                 Avoid warnings from recent versions of mcs.
25665                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25666                 -o, -L, -r any more. Use options documented since mcs-1.0
25667                 instead. Similarly for -g.
25668
25669         2005-12-04  Bruno Haible  <bruno@clisp.org>
25670
25671                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25672                 .resources, not .resource.
25673
25674         2005-07-09  Bruno Haible  <bruno@clisp.org>
25675
25676                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25677                 add a .dll suffix.
25678                 Reported by Mark Junker <mjscod@gmx.de>.
25679
25680         2006-07-22  Bruno Haible  <bruno@clisp.org>
25681
25682                 * modules/gettext: Upgrade to gettext-0.15.
25683                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25684                 m4/visibility.m4.
25685                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25686
25687 2006-07-22  Bruno Haible  <bruno@clisp.org>
25688
25689         Merge from GNU gettext 0.15.
25690
25691         2006-03-25  Bruno Haible  <bruno@clisp.org>
25692
25693                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25694
25695         2006-07-21  Bruno Haible  <bruno@clisp.org>
25696
25697                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25698                 "1.1".
25699
25700         2006-05-09  Bruno Haible  <bruno@clisp.org>
25701
25702                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25703                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25704                 for the conftestver execution.
25705
25706         2006-05-01  Bruno Haible  <bruno@clisp.org>
25707
25708                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25709                 optional target-version argument. Verify that the compiler
25710                 groks source of the specified source-version, or add -source
25711                 option as necessary. Verify that the compiler produces
25712                 bytecode in the specified target-version, or add -target and
25713                 -source options as necessary. Make the result of the test
25714                 available as variable CONF_JAVAC. Also log error output in
25715                 config.log.
25716
25717         2006-03-11  Bruno Haible  <bruno@clisp.org>
25718
25719                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25720
25721         2006-05-09  Bruno Haible  <bruno@clisp.org>
25722
25723                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25724                 CLASSPATH_SEPARATOR to a semicolon.
25725
25726         2006-03-12  Bruno Haible  <bruno@clisp.org>
25727
25728                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25729                 available as variable CONF_JAVA, for subsequent autoconf
25730                 tests. Also log error output in config.log.
25731
25732         2006-07-19  Bruno Haible  <bruno@clisp.org>
25733
25734                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25735                 that getline works on glibc2 systems. Needed to avoid trouble
25736                 in relocatable.c.
25737                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25738
25739         2005-12-04  Bruno Haible  <bruno@clisp.org>
25740
25741                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25742                 launcher (untested).
25743
25744         2005-12-04  Bruno Haible  <bruno@clisp.org>
25745
25746                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25747
25748         2006-07-22  Bruno Haible  <bruno@clisp.org>
25749
25750                 * gettext.m4: Update from GNU gettext-0.15.
25751                 * nls.m4: Likewise.
25752                 * po.m4: Likewise.
25753                 * inttypes-pri.m4: Likewise.
25754                 * inttypes-h.m4: Renamed from inttypes.m4.
25755                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25756
25757 2006-07-22  Bruno Haible  <bruno@clisp.org>
25758
25759         Merge from GNU gettext 0.15.
25760
25761         2005-07-05  Bruno Haible  <bruno@clisp.org>
25762
25763                 * printf-args.c (printf_fetchargs): Work around broken
25764                 definition of wint_t on mingw.
25765
25766         2005-02-12  Bruno Haible  <bruno@clisp.org>
25767
25768                 * xallocsa.h: Add extern "C" for C++.
25769
25770         2006-05-17  Bruno Haible  <bruno@clisp.org>
25771
25772                 Cygwin portability.
25773                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25774
25775         2006-04-30  Bruno Haible  <bruno@clisp.org>
25776
25777                 * progreloc.c: Include <mach-o/dyld.h> if available.
25778                 (find_executable): Use _NSGetExecutablePath when possible.
25779
25780         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25781
25782                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25783                 function.
25784
25785         2005-12-29  Bruno Haible  <bruno@clisp.org>
25786
25787                 * progreloc.c (set_program_name_and_installdir): Fix
25788                 compilation error.
25789
25790         2005-12-04  Bruno Haible  <bruno@clisp.org>
25791
25792                 Cygwin portability.
25793                 * progreloc.c: Include <windows.h> also on Cygwin.
25794                 (find_executable): Add support for Cygwin.
25795                 (set_program_name_and_installdir): Handle also platforms with
25796                 nonempty EXEEXT.
25797
25798         2006-07-11  Bruno Haible  <bruno@clisp.org>
25799
25800                 * javacomp.c: Fix a comment.
25801                 Reported by Jim Meyering.
25802
25803         2006-04-30  Bruno Haible  <bruno@clisp.org>
25804
25805                 * javacomp.h (compile_java_class): Add source_version,
25806                 target_version arguments.
25807                 * javacomp.c: Rewritten to choose only a compiler that
25808                 respects the specified source_version and target_version.
25809
25810         2006-06-27  Bruno Haible  <bruno@clisp.org>
25811
25812                 Assume correct S_ISDIR macro.
25813                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25814
25815         2006-07-22  Bruno Haible  <bruno@clisp.org>
25816
25817                 * javaversion.h: New file, from GNU gettext.
25818                 * javaversion.c: New file, from GNU gettext.
25819                 * javaversion.java: New file, from GNU gettext.
25820                 * javaversion.class: New file, from GNU gettext.
25821
25822         2006-05-17  Bruno Haible  <bruno@clisp.org>
25823
25824                 Cygwin portability.
25825                 * javaexec.c (execute_java_class): Test for jview program
25826                 also on Cygwin.
25827
25828         2006-04-09  Bruno Haible  <bruno@clisp.org>
25829
25830                 * fatal-signal.c: Don't include string.h.
25831                 (at_fatal_signal): Use a copying loop instead of memcpy.
25832
25833         2005-12-04  Bruno Haible  <bruno@clisp.org>
25834
25835                 * csharpexec.c: Add support for 'clix' launcher (untested).
25836                 (execute_csharp_using_sscli): New function.
25837                 (execute_csharp_program): Call it.
25838
25839         2006-06-21  Bruno Haible  <bruno@clisp.org>
25840
25841                 Avoid warnings from recent versions of mcs.
25842                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25843                 -o, -L, -r any more. Use options documented since mcs-1.0
25844                 instead. Similarly for -g.
25845
25846         2005-07-09  Bruno Haible  <bruno@clisp.org>
25847
25848                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25849                 add a .dll suffix.
25850                 Reported by Mark Junker <mjscod@gmx.de>.
25851
25852         2006-06-17  Bruno Haible  <bruno@clisp.org>
25853
25854                 * config.charset: Update for NetBSD 3.0.
25855
25856         2006-05-17  Bruno Haible  <bruno@clisp.org>
25857
25858                 Cygwin portability.
25859                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25860
25861         2006-05-16  Bruno Haible  <bruno@clisp.org>
25862
25863                 * localcharset.c [CYGWIN]: Include <windows.h>.
25864                 (get_charset_aliases): For Cygwin, return the same CPxxx
25865                 aliases list as under WIN32.
25866                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25867                 the environment variables. Fall back to GetACP().
25868
25869         2006-04-05  Bruno Haible  <bruno@clisp.org>
25870
25871                 * config.charset: Update Juan Manuel Guerrero's address.
25872
25873         2005-02-12  Bruno Haible  <bruno@clisp.org>
25874
25875                 * allocsa.h: Add extern "C" for C++.
25876
25877         2005-02-10  Bruno Haible  <bruno@clisp.org>
25878
25879                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25880                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25881
25882         2006-07-22  Bruno Haible  <bruno@clisp.org>
25883
25884                 * gettext.h: Update to GNU gettext-0.15.
25885
25886 2006-07-22  Bruno Haible  <bruno@clisp.org>
25887
25888         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25889         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25890         lib-prefix.m4, longdouble.m4, ssize_t.m4.
25891
25892 2006-07-21  Eric Blake  <ebb9@byu.net>
25893
25894         * modules/stdlib-safer: New file.
25895         * MODULES.html.sh (File stream based Input/Output): Add
25896         stdlib-safer.
25897
25898 2006-07-21  Eric Blake  <ebb9@byu.net>
25899
25900         * lib/stdlib-safer.h: New file from coreutils, required by
25901         stdlib--.h.
25902
25903 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
25904
25905         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25906
25907 2006-07-20  Bruno Haible  <bruno@clisp.org>
25908
25909         * gnulib-tool: Recognize new option --assume-autoconf.
25910         (autoconf_minversion): New variable.
25911         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25912
25913 2006-07-20  Bruno Haible  <bruno@clisp.org>
25914
25915         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25916
25917 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25918
25919         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25920         Reindent and repaginate.
25921
25922 2006-07-19  Derek Price  <derek@ximbiot.com>
25923
25924         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25925         Correct grammar.
25926
25927 2006-07-17  Bruno Haible  <bruno@clisp.org>
25928
25929         * modules/list: New file.
25930         * modules/array-list: New file.
25931         * modules/carray-list, modules/carray-list-tests: New files.
25932         * modules/linked-list, modules/linked-list-tests: New files.
25933         * modules/avltree-list, modules/avltree-list-tests: New files.
25934         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25935         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25936         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25937         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25938         * modules/oset: New file.
25939         * modules/array-oset: New file.
25940         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25941         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25942         * tests/test-carray_list.c: New file.
25943         * tests/test-linked_list.c: New file.
25944         * tests/test-avltree_list.c: New file.
25945         * tests/test-rbtree_list.c: New file.
25946         * tests/test-linkedhash_list.c: New file.
25947         * tests/test-avltreehash_list.c: New file.
25948         * tests/test-rbtreehash_list.c: New file.
25949         * tests/test-avltree_oset.c: New file.
25950         * tests/test-rbtree_oset.c: New file.
25951         * MODULES.html.sh (Container data structures): New section.
25952
25953 2006-07-17  Bruno Haible  <bruno@clisp.org>
25954
25955         * m4/gl_list.m4: New file.
25956
25957 2006-07-17  Bruno Haible  <bruno@clisp.org>
25958
25959         * lib/gl_list.h: New file.
25960         * lib/gl_list.c: New file.
25961         * lib/gl_array_list.h: New file.
25962         * lib/gl_array_list.c: New file.
25963         * lib/gl_carray_list.h: New file.
25964         * lib/gl_carray_list.c: New file.
25965         * lib/gl_linked_list.h: New file.
25966         * lib/gl_linked_list.c: New file.
25967         * lib/gl_anylinked_list1.h: New file.
25968         * lib/gl_anylinked_list2.h: New file.
25969         * lib/gl_avltree_list.h: New file.
25970         * lib/gl_avltree_list.c: New file.
25971         * lib/gl_anyavltree_list1.h: New file.
25972         * lib/gl_anyavltree_list2.h: New file.
25973         * lib/gl_rbtree_list.h: New file.
25974         * lib/gl_rbtree_list.c: New file.
25975         * lib/gl_anyrbtree_list1.h: New file.
25976         * lib/gl_anyrbtree_list2.h: New file.
25977         * lib/gl_anytree_list1.h: New file.
25978         * lib/gl_anytree_list2.h: New file.
25979         * lib/gl_linkedhash_list.h: New file.
25980         * lib/gl_linkedhash_list.c: New file.
25981         * lib/gl_anyhash_list1.h: New file.
25982         * lib/gl_anyhash_list2.h: New file.
25983         * lib/gl_avltreehash_list.h: New file.
25984         * lib/gl_avltreehash_list.c: New file.
25985         * lib/gl_rbtreehash_list.h: New file.
25986         * lib/gl_rbtreehash_list.c: New file.
25987         * lib/gl_anytreehash_list1.h: New file.
25988         * lib/gl_anytreehash_list2.h: New file.
25989
25990         * lib/gl_oset.h: New file.
25991         * lib/gl_oset.c: New file.
25992         * lib/gl_array_oset.h: New file.
25993         * lib/gl_array_oset.c: New file.
25994         * lib/gl_avltree_oset.h: New file.
25995         * lib/gl_avltree_oset.c: New file.
25996         * lib/gl_rbtree_oset.h: New file.
25997         * lib/gl_rbtree_oset.c: New file.
25998         * lib/gl_anytree_oset.h: New file.
25999
26000 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26001
26002         * m4/mkancesdirs.m4: New file.
26003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26004         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26005         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26006         it.
26007
26008 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26009
26010         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26011         * lib/mkancesdirs.h: New files.
26012         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26013         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26014         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26015         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26016         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26017         callers changed.  Revamp internals significantly, by not
26018         attempting to create directories that are temporarily more
26019         permissive than the final results.  Do not attempt to use
26020         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26021         This removes some race conditions, fixes some bugs, and simplifies
26022         things.  Use new dirchownmod function to do owner and mode changes.
26023         * lib/mkdir-p.h: Likewise.
26024         * lib/modechange.c (octal_to_mode): New function.
26025         (struct mode_change): New member mentioned.
26026         (make_node_op_equals): New arg mentioned.  All callers changed.
26027         (mode_compile): Keep track of which mode bits the user has explicitly
26028         mentioned.
26029         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26030         New arg PMODE_BITS, to keep track of which mode bits the user
26031         mentioned; it treats S_ISUID and S_ISGID speciall.
26032         All callers changed.
26033         * lib/modechange.h: Likewise.
26034
26035 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26036
26037         * MODULES.html.sh: Add mkancestors.
26038         * modules/mkancesdirs: New module.
26039         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26040         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26041         The chdir-safer and afs files are now orphans; I'll remove them
26042         unless someone speaks up.
26043         Add lib/dirchownmod.c, lib/dirchownmod.h.
26044         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26045         Add lchown, mkancesdirs.
26046         (Maintainer): Add self.
26047
26048 2006-07-15  Karl Berry  <karl@gnu.org>
26049
26050         * gnulib-tool: help message wording/arrangement.
26051
26052 2006-07-14  Simon Josefsson  <jas@extundo.com>
26053
26054         * doc/gnulib.texi (Libtool and Windows): New section.
26055
26056 2006-07-12  Simon Josefsson  <jas@extundo.com>
26057
26058         * modules/gendocs (License): Fix license, approved by Karl.
26059
26060 2006-07-12  Eric Blake  <ebb9@byu.net>
26061
26062         * MODULES.html.sh: Add gendocs.
26063
26064 2006-07-11  Eric Blake  <ebb9@byu.net>
26065
26066         * modules/fdl: New module, to install doc/fdl.texi.
26067         * MODULES.html.sh: Add new section for documentation modules.
26068         * gnulib-tool: Avoid space-tab.
26069         (--doc-base): New option, to manage files from doc.
26070
26071 2006-07-11  Eric Blake  <ebb9@byu.net>
26072
26073         * m4/absolute-header.m4: Fix comments to match recent change.
26074
26075 2006-07-11  Eric Blake  <ebb9@byu.net>
26076
26077         * gnulib-tool: List --doc-base before --tests-base.
26078
26079 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26080
26081         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26082
26083 2006-07-11  Bruno Haible  <bruno@clisp.org>
26084
26085         * README: Mention where to put documentation.
26086
26087 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26088
26089         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26090
26091 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26092
26093         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26094         to stdint.m4.
26095
26096 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26097
26098         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26099         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26100         "no/such/file/stdint.h" when there is no such file, so that
26101         the resulting C code can be parsed by dodgy compilers.
26102         Problems reported by Bob Proulx.
26103
26104 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26105
26106         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26107         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26108         macros into the GNU _D_EXACT_NAMLEN.
26109         * lib/savedir.c:  Likewise.
26110         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26111
26112 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26113         and Paul Eggert  <eggert@cs.ucla.edu>
26114
26115         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26116         * m4/savedir.m4:
26117         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26118         macros into the GNU _D_EXACT_NAMLEN.
26119
26120 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26121
26122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26123         around the absolute name, to work around a problem with the HP-UX
26124         11.23 native C compiler, reported by Bob Proulx.
26125
26126 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26127
26128         * doc/maintain.texi, make-stds.texi: Sync from
26129         <http://savannah.gnu.org/projects/gnustandards>.
26130
26131 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26132
26133         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26134
26135 2006-07-09  Jim Meyering  <jim@meyering.net>
26136
26137         * m4/glob.m4: Remove a doubled word in a comment.
26138
26139 2006-07-09  Jim Meyering  <jim@meyering.net>
26140
26141         * lib/argp-pv.c: Remove a doubled word in a comment.
26142         * lib/check-version.c (check_version): Likewise.
26143         * lib/javacomp.c (compile_java_class): Likewise.
26144
26145 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26146
26147         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26148         for the benefit of people using Autoconf 2.60.  If you want to
26149         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26150         (or m4/onceonly.m4, if pre-2.57) manually.
26151
26152 2006-07-08  Jim Meyering  <jim@meyering.net>
26153
26154         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26155         comment.
26156         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26157         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26158         comment.
26159
26160 2006-07-08  Jim Meyering  <jim@meyering.net>
26161
26162         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26163
26164 2006-07-07  Simon Josefsson  <jas@extundo.com>
26165
26166         * tests/test-crc.c: Change expected crc value, the test vector
26167         were probably computed using the old broken crc.c?
26168
26169 2006-07-06  Simon Josefsson  <jas@extundo.com>
26170
26171         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26172         now the canonical place for the M4 file).
26173
26174         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26175         from the sys_socket dependency now.
26176
26177         * modules/inet_pton (Files): Ditto.
26178
26179         * modules/inet_ntop (Files): Ditto.
26180
26181 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26182
26183         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26184         not gl_PREREQ_GETUSERSHELL.
26185
26186 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26187
26188         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26189         with only one argument, for Autoconf 2.60.
26190         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26191         expand to nothing, so add a shell command to avoid syntax error.
26192         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26193
26194 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26195
26196         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26197
26198 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26199
26200         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26201         no longer needed.  Check for isblank decl.
26202         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26203         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26204         of existence.
26205
26206 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26207
26208         * lib/getloadavg.c: Use __VMS, not VMS.
26209         * lib/getopt.c: Likewise.
26210         * lib/getpagesize.h: Likewise.
26211         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26212         and probably does not work.
26213
26214 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         * lib/.cppi-disable: Add wcwidth.
26217         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26218         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26219         (ISGRAPH): Remove.  All uses changed to isgraph.
26220         (FOLD) [!defined _LIBC]: Remove special case.
26221         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26222         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26223         HAVE_ISBLANK.
26224         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26225         case.
26226
26227 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26228
26229         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26230         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26231         brackets.  Other minor changes to suppress some compiler
26232         warnings.
26233
26234 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26235         and Paul Eggert  <eggert@cs.ucla.edu>
26236
26237         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26238         of invoking obsolescent AC_HEADER_DIRENT macro.
26239         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26240         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26243         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26244         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26245         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26246         * m4/readdir.m4: Remove; no longer needed.
26247
26248 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26249         and Paul Eggert  <eggert@cs.ucla.edu>
26250
26251         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26252         Don't worry about this obsolete case any more.
26253         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26254         directories.
26255         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26256         worry about this obsolete case any more.
26257         * lib/fts.c: Likewise.
26258         * lib/getcwd.c: Likewise.
26259         * lib/glob.h: Likewise.
26260         * lib/savedir.c: Likewise.
26261
26262 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26263
26264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26265         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26266         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26267         needed.
26268         All uses removed.
26269         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26270         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26271         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26272         needed.
26273         * m4/getdate.m4 (gl_GETDATE): Likewise.
26274         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26275         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26276         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26277         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26278         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26280         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26281         needed.
26282
26283 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26284
26285         * lib/memcasecmp.c: Include <limits.h>.
26286         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26287         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26288         Don't assume isdigit succeeds only on '0' through '9'.
26289
26290 2006-07-05  Eric Blake  <ebb9@byu.net>
26291
26292         * modules/getaddrinfo (Depends-on): Add snprintf.
26293
26294 2006-07-05  Eric Blake  <ebb9@byu.net>
26295
26296         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26297         to avoid 'header present but could not be compiled' on cygwin.
26298
26299 2006-07-05  Eric Blake  <ebb9@byu.net>
26300
26301         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26302         missing from netdb.h.
26303         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26304
26305 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26306
26307         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26308         no longer needed.
26309         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26310         * m4/getdate.m4 (gl_GETDATE): Likewise.
26311         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26312         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26313         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26314         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26316
26317 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26318
26319         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26320         All uses of is_space replaced by isspace.
26321         * lib/exit.h: Don't talk about STDC_HEADERS.
26322         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26323         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26324         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26325         replaced by isprint etc.
26326         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26327         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26328         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26329         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26330         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26331         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26332
26333 2006-07-05  Bruno Haible  <bruno@clisp.org>
26334
26335         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26336         the function exists, before testing against AIX.
26337         Reported by Martin Lambers <marlam@marlam.de>.
26338
26339 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26340
26341         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26342         From Mark D. Baushke.
26343
26344 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26345
26346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26347         to the absolute name, not just one, to bypass Sun C 5.8's
26348         "warning: #include of /usr/include/... may be non-portable".
26349
26350 2006-07-04  Eric Blake  <ebb9@byu.net>
26351
26352         * modules/dirname-tests: New test module.
26353         * tests/test-dirname.c: New file, replacing dirname.c
26354         TEST_DIRNAME section that was recently deleted.
26355
26356 2006-07-04  Bruno Haible  <bruno@clisp.org>
26357
26358         Assume ANSI C header files and <ctype.h> functions.
26359         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26360         (mbsnwidth): Use isprint, iscntrl instead.
26361
26362 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26363
26364         Merge from coreutils.
26365         * MODULES.html.sh: Add xstrtold.
26366         * modules/xstrtold: New file.
26367         * modules/cycle-check (Files): Add lib/same-inode.h.
26368         * modules/dirname (Files): Add m4/double-slash-root.m4.
26369         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26370         * modules/mkdir-p (Files): Add lib/same-inode.h.
26371         * modules/same (Files): Add lib/same-inode.h.
26372
26373 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26374
26375         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26376         This is to keep the terminology clean; POSIX talks about
26377         "absolute pathnames", not "full pathnames", but the GNU
26378         Coding Standards say to use "path" for something else;
26379         so use "absolute" to keep both sides happy.
26380         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26381         Set gl_absolute_header, not gl_full_header_path.
26382         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26383         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26384         All uses changed.
26385
26386         Merge from coreutils.
26387
26388         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26389
26390         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26391         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26392         want to require the building of c-strtod.o.
26393         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26394         needs -lm directly.
26395         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26396
26397         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26398
26399         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26400         --as-needed option if available.  Problem reported by Albert Chin in
26401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26402         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26403         cc merely issues a bunch of annoying warnings for --as-needed
26404         (this problem was reported by Bob Proulx).  Also, try linking with
26405         -lm to detect a bug in binutils 2.16 (this problem was reported
26406         by Ralf Wildenhues).
26407
26408         2006-06-18  Jim Meyering  <jim@meyering.net>
26409
26410         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26411         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26412         macro.
26413         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26414         also check for glibc-2.4's abort-inducing bug.
26415
26416         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26417         Low-probability clean-up should be to use rmdir to get rid of
26418         the just-created directory, not unlink.
26419
26420         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26421         configure fail, and request a bug report to inform us about it.
26422         Add a comment that, barring reports to the contrary, in 2007 we'll
26423         assume ftruncate is universally available.
26424
26425         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26428
26429         2006-03-12  Jim Meyering  <jim@meyering.net>
26430
26431         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26432         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26433         * m4/same.m4 (gl_SAME): Likewise.
26434         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26435
26436         2006-03-11  Eric Blake  <ebb9@byu.net>
26437
26438         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26439         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26440         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26441         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26442
26443 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26446         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26447         reported by Mark D. Baushke, one in
26448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26449
26450         Merge from coreutils.
26451
26452         * lib/.cppi-disable: Add stdint_.h.
26453         * lib/.cvsignore: Add stdint.h.
26454
26455         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26456
26457         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26458         both double and long double versions.
26459         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26460         * lib/xstrtold.c: New file.
26461         * lib/xstrtod.h (xstrtold): New decl.
26462
26463         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26464
26465         * lib/filemode.c (setst): Remove.
26466         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26467         (arguably) clearer, and the generated code is a bit smaller on my
26468         Debian GNU/Linux stable x86 host.
26469
26470         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26471
26472         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26473         Assume that filemode.h includes sys/types.h and sys/stat.h.
26474         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26475         (ftypelet): Reorder to put common cases first, for efficiency.
26476         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26477         to do 'M'.
26478         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26479         of 10, for compatibility with FreeBSD.  All callers changed.
26480         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26481         types that can't be deduced solely from st_mode.  First arg is now a
26482         const pointer.
26483         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26484         (strmode): Renamed from mode_string.
26485         (filemodestring): New decl.
26486         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26487         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26488         needed.
26489         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26490
26491         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26492
26493         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26494         fsusage.h now does that.  Include fsusage.h first, to test interface.
26495         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26496         at most one method (the old code could have generated decls that
26497         didn't conform to C89, not that this was ever exercised).
26498         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26499
26500         2006-03-19  Jim Meyering  <jim@meyering.net>
26501
26502         Work even in a chroot where d_ino values for entries in "/"
26503         don't match the stat.st_ino values for the same names.
26504         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26505         number, iterate through all entries again, using lstat instead.
26506         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26507         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26508
26509         * lib/getcwd.c (__getcwd): Clarify a comment.
26510         Use memcpy in place of a call to strcpy.
26511
26512         2006-03-12  Jim Meyering  <jim@meyering.net>
26513
26514         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26515         matches that of the current directory (which we're about to chdir ".."
26516         out of), then save the dev-ino of the parent, instead.
26517
26518         * lib/same-inode.h (SAME_INODE): New file/macro.
26519         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26520         Include "same-inode.h", instead.
26521         * lib/same.c: Likewise.
26522         * lib/cycle-check.h: Include "same-inode.h".
26523         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26524         * lib/cycle-check.c (SAME_INODE): Remove definition.
26525         * lib/root-dev-ino.h: Include "same-inode.h".
26526
26527         2006-03-11  Eric Blake  <ebb9@byu.net>
26528
26529         * lib/same.c (same_name): s/base_name/last_component/
26530         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26531         * lib/filenamecat.c (file_name_concat): Likewise.
26532
26533         2006-03-11  Eric Blake  <ebb9@byu.net>,
26534                     Paul Eggert  <eggert@cs.ucla.edu>
26535
26536         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26537         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26538         drive prefix.
26539         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26540         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26541         (last_component): New method.
26542         * lib/dirname.c (dir_len): Determine when drive letters need a
26543         subsequent slash.  Preserve // when it is special.
26544         (dir_name): Don't append dot when drive letter is absolute.
26545         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26546         * lib/basename.c (base_name): New semantics - malloc the result.
26547         Preserve // when it is special.  Preserve relative files that look
26548         like drive letters.
26549         (base_len): Preserve // when it is special.
26550         (last_component): New method, similar to old base_name semantics.
26551         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26552         base_name.  Strip redundant slashes from ///.
26553
26554 2006-07-03  Jim Meyering  <jim@meyering.net>
26555
26556         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26557         macro is used before the first cycle_check call.
26558
26559 2006-07-03  Eric Blake  <ebb9@byu.net>
26560
26561         * modules/dirname (Depends-on): Add xstrndup.
26562
26563 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26564
26565         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26566         test cases, so that config.log is a bit easier to follow.
26567
26568 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26569
26570         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26571         both are 64 bits, since this seems to be the tradition, and this
26572         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
26573         we ever run into a host that prefers long long to long in this
26574         case, we'll need another configure-time test.  Problem reported by
26575         Jim Meyering.
26576
26577 2006-07-02  Eric Blake  <ebb9@byu.net>
26578
26579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26580
26581 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26582
26583         * modules/inttypes (Depends-on): No longer depends on stdint.
26584         * modules/stdint (Description): Say more about assumptions.
26585         Say that the fast types might differ.  Say macros are used.
26586         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26587         (Makefile.am): Revise list of substituted symbols to match
26588         new stdint.m4.
26589         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26590         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26591         * tests/test-stdint.c (verify_same_types)
26592         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26593         the code conforms to C99/C89.
26594         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26595         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26596
26597 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26598
26599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26600         but fix a bug, by requiring at least 64 bits.
26601         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26602         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26603         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26604         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26605
26606         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26607         changes.  Make 2.59 a prerequisite.  Check and substitute for
26608         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26609         inttypes.h.  Do not use special include files; just use the
26610         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26611         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26612         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26613         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26614         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26615         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26616         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26617         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26618         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26619         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26620         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26621         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26622         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26623         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26624         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26625         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26626         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26627         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26628         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26629         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26630         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26631         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26632         not check for things that C99 does not require, e.g., int8_t.  If
26633         a test isn't needed unless <stdint.h> isn't working, and is
26634         unlikely to be needed for any other reason, then don't do it
26635         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26636         size_t, since we assume C89 freestanding at least.  Do not check
26637         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26638         the right thing even if the types are not defined.  Instead use:
26639         (gl_STDINT_TYPE_PROPERTIES): New macro.
26640         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26641         testing whether <sys/types.h> clashes, as Autoconf does this for
26642         us now.  All uses removed.
26643         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26644         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26645         (gl_CHECK_TYPE_SAME):
26646         Remove; no longer needed.
26647         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26648         exists, since we'll return 0 anyway in that case.
26649         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26650
26651 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26652
26653         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26654         possible collision with system files.
26655         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26656         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26657         WCHAR_MIN and WCHAR_MAX in this case.
26658         (<stddef.h>): Do not include; no longer needed.
26659         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26660         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26661         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26662         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26663         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26664         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26665         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26666         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26667         !defined(__c99))]: Include in this case too, since it's harmless
26668         now.
26669         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26670         dangerous to do so.
26671         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26672         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26673         (_STDINT_MIN, _STDINT_MAX): New macros.
26674         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26675         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26676         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26677         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26678         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26679         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26680         macros, not typedefs; this simplifies things quite a bit.
26681         Use long int for all types narrower than int64_t.
26682         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26683         Define in terms of long long int or int64_t or long int,
26684         not int64_t or int32_t.  This saves some compile-time testing.
26685         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26686         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26687         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26688         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26689         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26690         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26691         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26692         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26693         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26694         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26695         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26696         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26697         undef any previous version and define our own version, for
26698         simplicity and consistency with the new macros for types.
26699         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26700         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26701         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26702         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26703         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26704         @WINT_T_SUFFIX@ to keep things simple here.
26705         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26706         Simplify by assuming typical 8/16/32/64 host, since we're
26707         already doing that elsewhere anyway.
26708         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26709         and assume long long int is 64 bits if available.  This
26710         speeds up 'configure'.
26711
26712 2006-07-01  Eric Blake  <ebb9@byu.net>
26713
26714         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26715         Reported by Andreas Buening.
26716
26717 2006-07-01  Eric Blake  <ebb9@byu.net>
26718
26719         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26720
26721 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26722
26723         * lib/getaddrinfo.c: fixed typo
26724
26725 2006-06-29  Jim Meyering  <jim@meyering.net>
26726
26727         * modules/strftime (Maintainer): Add my name, since with the
26728         FPRINTFTIME changes strftime.c has forked from glibc.
26729
26730 2006-06-29  Eric Blake  <ebb9@byu.net>
26731
26732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26733
26734 2006-06-29  Eric Blake  <ebb9@byu.net>
26735
26736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26737
26738 2006-06-29  Eric Blake  <ebb9@byu.net>
26739
26740         * lib/stat_.h: New file.
26741
26742 2006-06-29  Eric Blake  <ebb9@byu.net>
26743
26744         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26745         unused static function.
26746
26747 2006-06-29  Eric Blake  <ebb9@byu.net>
26748
26749         * doc/functions.texi (Function Portability): Document missing lstat
26750         on mingw.
26751
26752 2006-06-29  Eric Blake  <ebb9@byu.net>
26753
26754         * MODULES.html.sh: Add sys_stat.
26755         * modules/sys_stat: New module.
26756         * modules/mkstemp (Depends-on): Add sys_stat.
26757
26758 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26759
26760         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26761
26762 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26763
26764         * m4/c-bs-a.m4: Removed.
26765
26766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26767
26768         * lib/strftime.c: Assume strftime() exists.
26769
26770 2006-06-29  Derek Price  <derek@ximbiot.com>
26771
26772         * modules/c-bs-a: Removed - \a is C89.
26773         * MODULES.html.sh: Remove c-bs-a.
26774
26775 2006-06-29  Bruno Haible  <bruno@clisp.org>
26776
26777         * modules/wcwidth (License): Change to LGPL.
26778
26779 2006-06-28  Simon Josefsson  <jas@extundo.com>
26780
26781         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26782         on _WIN32.
26783
26784         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26785         getnameinfo.
26786
26787 2006-06-28  Simon Josefsson  <jas@extundo.com>
26788
26789         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26790
26791 2006-06-28  Simon Josefsson  <jas@extundo.com>
26792
26793         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26794         functions there.  It will succeed on Windows XP, but on Windows
26795         2000 and (presumably) earlier, it will fail, and use the internal
26796         re-implementation.
26797         (use_win32_p): New function.
26798         (getaddrinfo): Use strtoul on servname, to support numeric ports.
26799         Support AI_NUMERICSERV to disable getservbyname.
26800         (getnameinfo): New function, only supports
26801         NI_NUMERICHOST|NI_NUMERICSERV for now.
26802
26803         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26804         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
26805         getnameinfo.
26806
26807 2006-06-28  Eric Blake  <ebb9@byu.net>
26808
26809         * modules/wcwidth: New file.
26810         * modules/mbchar (Depends-on): Add wcwidth.
26811         * modules/mbswidth (Depends-on): Add wcwidth.
26812         * MODULES.html.sh: Add wcwidth.
26813
26814 2006-06-28  Eric Blake  <ebb9@byu.net>
26815
26816         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26818
26819 2006-06-28  Eric Blake  <ebb9@byu.net>
26820
26821         * lib/xvasprintf.h: Fix comments.
26822
26823 2006-06-28  Eric Blake  <ebb9@byu.net>
26824
26825         * lib/mbchar.h (wcwidth): Include wcwidth.h.
26826         * lib/mbswidth.c (wcwidth): Move from here...
26827         * lib/wcwidth.h: ...to this new file.
26828
26829 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26830
26831         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26832
26833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26834         it's obsolete.
26835         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26836
26837 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26838
26839         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
26840         Autoconf 2.60 says this stuff was obsolete.
26841
26842 2006-06-28  Bruno Haible  <bruno@clisp.org>
26843
26844         * modules/wcwidth (Files): Add m4/wchar_t.m4.
26845
26846 2006-06-28  Bruno Haible  <bruno@clisp.org>
26847
26848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26849         gt_TYPE_WCHAR_T.
26850
26851 2006-06-28  Bruno Haible  <bruno@clisp.org>
26852
26853         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26854         declaration for wcwidth.
26855         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26856
26857 2006-06-28  Bruno Haible  <bruno@clisp.org>
26858
26859         * lib/mkdtemp.c [MINGW]: Include <io.h>.
26860         (mkdir): Define using _mkdir.
26861
26862 2006-06-28  Bruno Haible  <bruno@clisp.org>
26863
26864         * lib/getaddrinfo.h: Fix POSIX URL.
26865         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26866         _WIN32.
26867         (use_win32_p): Make static.
26868         (getaddrinfo): Reject service name if it is empty or does not consist
26869         solely of decimal digits, or if its value is > 65535.
26870         (getnameinfo): Remove useless casts.
26871
26872 2006-06-27  Simon Josefsson  <jas@extundo.com>
26873
26874         * modules/sys_select: New file, suggested by Bruno Haible, Paul
26875         Eggert and Martin Lambers.
26876
26877 2006-06-27  Simon Josefsson  <jas@extundo.com>
26878
26879         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26880         Eggert and Martin Lambers.
26881
26882 2006-06-27  Bruno Haible  <bruno@clisp.org>
26883
26884         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26885         result to 0, not to empty.
26886         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26887
26888 2006-06-27  Bruno Haible  <bruno@clisp.org>
26889
26890         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26891
26892 2006-06-26  Simon Josefsson  <jas@extundo.com>
26893
26894         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26895         present.
26896
26897 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26900         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
26901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26902
26903 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
26904
26905         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26906
26907 2006-06-26  Bruno Haible  <bruno@clisp.org>
26908
26909         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26910
26911 2006-06-26  Bruno Haible  <bruno@clisp.org>
26912
26913         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26914
26915 2006-06-26  Bruno Haible  <bruno@clisp.org>
26916
26917         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26918         SGI C compiler in pre-C99 mode.
26919         Suggested by Mark D. Baushke and Larry Jones.
26920
26921 2006-06-26  Bruno Haible  <bruno@clisp.org>
26922
26923         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26924         WCHAR_MAX.
26925         Reported by Mark D. Baushke and Larry Jones.
26926
26927 2006-06-26  Bruno Haible  <bruno@clisp.org>
26928
26929         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26930         in pre-C99 mode.
26931         Suggested by Mark D. Baushke and Larry Jones.
26932
26933 2006-06-23  Simon Josefsson  <jas@extundo.com>
26934             Bruno Haible  <bruno@clisp.org>
26935
26936         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26937         Emit mostlyclean-local rule.
26938         (func_emit_tests_Makefile_am): Likewise.
26939         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26940
26941 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26942
26943         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26944
26945 2006-06-23  Bruno Haible  <bruno@clisp.org>
26946
26947         * tests/test-stdint.c: Update to match ISO C 99 Technical
26948         Corrigendum 1.
26949
26950 2006-06-23  Bruno Haible  <bruno@clisp.org>
26951
26952         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26953
26954 2006-06-23  Bruno Haible  <bruno@clisp.org>
26955
26956         * lib/stdint_.h: Treat IRIX like OpenBSD.
26957
26958 2006-06-23  Bruno Haible  <bruno@clisp.org>
26959
26960         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26961         ISO C 99 Technical Corrigendum 1.
26962
26963 2006-06-22  Simon Josefsson  <jas@extundo.com>
26964
26965         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26966         MinGW.
26967
26968 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26969
26970         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26971         needed.  Some compiler complained about some of them.  Problem reported
26972         by Larry Jones in
26973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26974
26975 2006-06-21  Simon Josefsson  <jas@extundo.com>
26976
26977         * tests/test-getaddrinfo.c: New file.
26978
26979         * modules/getaddrinfo-tests: New file.
26980
26981         * MODULES.html.sh: Add inet_pton.
26982
26983         * modules/inet_pton: New file.
26984
26985 2006-06-21  Simon Josefsson  <jas@extundo.com>
26986
26987         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26988         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26989         of using the (limited) gnulib implementation on Windows XP.
26990
26991         * m4/inet_pton.m4: New file.
26992
26993 2006-06-21  Simon Josefsson  <jas@extundo.com>
26994
26995         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26996         variable.
26997
26998         * lib/socket_.h: Don't define WINVER.
26999
27000         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27001         slightly modified to work in gnulib.
27002
27003 2006-06-21  Simon Josefsson  <jas@extundo.com>
27004
27005         * doc/gnulib.texi (Windows sockets): Add.
27006
27007 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27008
27009         * lib/read-file.c (fread_file): Start with buffer allocation of
27010         0 bytes rather than 1 byte; this simplifies the code.
27011         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27012         code to free buffer and save/restore errno.
27013         (internal_read_file): Remove unused local.
27014
27015 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27016
27017         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27018         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27019         Problem reported by Denis Excoffier in
27020         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27021
27022 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27023
27024         * modules/sys_socket, modules/socklen: Include sys/types since
27025         FreeBSD 4.x's sys/socket.h needs it.
27026
27027 2006-06-19  Simon Josefsson  <jas@extundo.com>
27028
27029         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27030
27031 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27032
27033         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27034
27035 2006-06-19  Bruno Haible  <bruno@clisp.org>
27036
27037         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27038         and FULL_PATH_INTTYPES_H in angle brackets.
27039         Reported by Mark D. Baushke <mdb@gnu.org>.
27040
27041 2006-06-17  Eric Blake  <ebb9@byu.net>
27042
27043         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27044         errno.
27045
27046 2006-06-17  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27049         <sys/inttypes.h>.
27050
27051 2006-06-17  Bruno Haible  <bruno@clisp.org>
27052
27053         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27054         whether errno is declared. Assume <errno.h> declares errno.
27055
27056 2006-06-17  Bruno Haible  <bruno@clisp.org>
27057
27058         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27059
27060 2006-06-17  Bruno Haible  <bruno@clisp.org>
27061
27062         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27063         problem on Solaris 2.5.1.
27064
27065 2006-06-16  Eric Blake  <ebb9@byu.net>
27066
27067         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27068         * lib/unicodeio.c [!defined errno]: Likewise.
27069         * lib/strtol.c [!defined errno]: Likewise.
27070         * lib/strtod.c [!defined errno]: Likewise.
27071
27072 2006-06-15  Eric Blake  <ebb9@byu.net>
27073
27074         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27075
27076 2006-06-15  Eric Blake  <ebb9@byu.net>
27077
27078         * config/srclist.txt (ssize_t.m4): Lose sync.
27079
27080 2006-06-15  Bruno Haible  <bruno@clisp.org>
27081
27082         * modules/stdint (Files): Include m4/full-header-path.m4,
27083         m4/size_max.m4, m4/wchar_t.m4.
27084         (Makefile.am): Many more substitutions.
27085         * modules/stdint-tests: New file.
27086         * tests/test-stdint.c: New file.
27087
27088 2006-06-15  Bruno Haible  <bruno@clisp.org>
27089
27090         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27091         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27092         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27093         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27094         gl_CHECK_TYPE_SAME): New macros.
27095
27096 2006-06-15  Bruno Haible  <bruno@clisp.org>
27097
27098         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27099
27100 2006-06-15  Bruno Haible  <bruno@clisp.org>
27101
27102         * lib/stdint_.h: Rewritten to be fully auto-configured.
27103         Fixes bug on HP-UX/IA64.
27104
27105 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27106
27107         * lib/getdate.y (__attribute__): Don't define if already defined.
27108         Problem reported by Larry Jones.
27109         * lib/utimens.c (__attribute__): Likewise.
27110
27111 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27112
27113         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27114         reported by Andreas Schwab.
27115
27116 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27117             Bruno Haible  <bruno@clisp.org>
27118
27119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27120         check for the declaration of strnlen and a run test that exposes the
27121         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27122         rpl_strndup.
27123
27124 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27125             Bruno Haible  <bruno@clisp.org>
27126
27127         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27128
27129 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27130
27131         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27132         compile test, for Tru64 4.0D.
27133
27134 2006-05-28  Karl Berry  <karl@gnu.org>
27135
27136         * config/srclist.txt (printf-args.c): lose sync.
27137
27138 2006-05-26  Martin Lambers  <marlam@marlam.de>
27139
27140         * lib/getpass.c: Updates the test for the native W32 API, and adds
27141         missing includes, thus fixing compilation warnings.
27142
27143 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27144
27145         * lib/exclude.c (exclude_fnmatch): New function.
27146         (excluded_file_name): Call exclude_fnmatch.
27147         * lib/exclude.h (excluded_file_name): New prototype
27148
27149 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27150
27151         * lib/tempname.c (small_open, large_open): New macros.
27152         (__open, __open64) [!_LIBC]: Remove.
27153         (__gen_tempname): Use small_open and large_open instead of __open
27154         and __open64.  This fixes a portability bug on HP-UX 11.11i
27155         reported by Simon Wing-Tang in
27156         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27157
27158 2006-05-24  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27161         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27162         Reported by Thorsten Maerz <torte@netztorte.de> via
27163         Aaron Stone <aaron@serendipity.cx>.
27164
27165 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27166
27167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27168         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27169         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27170         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27171         not really conditional on the cache.
27172         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27173
27174 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27177         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27178         (my_usleep): Don't mishandle maximum value.
27179
27180 2006-05-19  Jim Meyering  <jim@meyering.net>
27181
27182         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27183
27184 2006-05-17  Bruno Haible  <bruno@clisp.org>
27185
27186         Cygwin portability.
27187         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27188
27189 2006-05-17  Bruno Haible  <bruno@clisp.org>
27190
27191         * lib/stdint_.h: Fix recognition of Cygwin.
27192
27193 2006-05-15  Bruno Haible  <bruno@clisp.org>
27194
27195         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27196         on libtool patch by Ralf Wildenhues.
27197
27198 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27199
27200         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27201         test for C99 conformance; (bool) 0.5 is an integer constant
27202         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27203         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27204
27205 2006-05-11  Simon Josefsson  <jas@extundo.com>
27206
27207         * m4/xvasprintf.m4: Fix obvious typo.
27208
27209 2006-05-11  Jim Meyering  <jim@meyering.net>
27210
27211         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27212         James Lemley.
27213
27214 2006-05-10  Simon Josefsson  <jas@extundo.com>
27215
27216         * lib/md4.c: Typo fix, update copyright years.
27217         (K1, K2): Don't use L because it turn computations into 64-bit on
27218         64-bit platforms.
27219
27220 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27223         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27224         unwanted sign propagation, e.g., on hosts with 64-bit int.
27225         There still are some problems with reeelly weird theoretical hosts
27226         (e.g., 33-bit int) but it's not worth worrying about now.
27227         * lib/sha1.c (rol): Likewise.
27228         (K1, K2, K3, K4): Remove unnecessary L suffix.
27229
27230 2006-05-10  Bruno Haible  <bruno@clisp.org>
27231
27232         * lib/des.c: Cast to avoid warnings.
27233
27234 2006-05-09  Bruno Haible  <bruno@clisp.org>
27235
27236         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27237         (Depends-on): Depend also on xsize, stdarg.
27238         (configure.ac): Add gl_XVASPRINTF.
27239
27240 2006-05-09  Bruno Haible  <bruno@clisp.org>
27241
27242         * m4/xvasprintf.m4: New file.
27243
27244 2006-05-09  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27247         (EOVERFLOW): Define fallback value.
27248         (xstrcat): New function.
27249         (xvasprintf): Recognize the special case of a string concatenation.
27250
27251 2006-05-08  Eric Blake  <ebb9@byu.net>
27252
27253         * gnulib-tool (func_version): Base copyright year on CVS date.
27254         (func_emit_copyright_notice): New function.
27255         (func_emit_lib_Makefile_am): Use it.
27256         (func_emit_tests_Makefile_am): Likewise.
27257         (func_import): Likewise.
27258
27259 2006-05-08  Bruno Haible  <bruno@clisp.org>
27260
27261         * modules/stdarg: New file.
27262         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27263
27264 2006-05-08  Bruno Haible  <bruno@clisp.org>
27265
27266         * m4/stdarg.m4: New file, from GNU gettext.
27267
27268 2006-05-08  Bruno Haible  <bruno@clisp.org>
27269
27270         * config/srclist.txt (build-aux/config.rpath): different from latest
27271         release.
27272
27273 2006-05-08  Bruno Haible  <bruno@clisp.org>
27274
27275         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27276
27277 2006-05-05  Jim Meyering  <jim@meyering.net>
27278
27279         * m4/warning.m4: New file, derived from bison's file by the same name.
27280
27281 2006-05-03  Bruno Haible  <bruno@clisp.org>
27282
27283         * lib/stdint_.h: Shorter URL.
27284         * lib/inttypes.h: Likewise.
27285
27286 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27287
27288         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27289
27290 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27291
27292         * lib/verify.h: Document the internals better.  Most of this change
27293         was written by Bruno Haible.
27294
27295 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27296
27297         * doc/verify.texi: New file, partly based on a proposal by
27298         Bruno Haible.
27299
27300 2006-05-02  Bruno Haible  <bruno@clisp.org>
27301
27302         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27303         test from here...
27304         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27305
27306 2006-04-29  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27309         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27310
27311 2006-04-29  Bruno Haible  <bruno@clisp.org>
27312
27313         * gnulib-tool: Make --update option actually work.
27314
27315 2006-04-29  Bruno Haible  <bruno@clisp.org>
27316
27317         * doc/gcd.texi: New file.
27318         * doc/gnulib.texi: Include it.
27319
27320 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27321
27322         * lib/getdate.y (get_date): When adding relative date, start with the
27323         initial time, not with the result of the first mktime call.
27324
27325 2006-04-25  Bruno Haible  <bruno@clisp.org>
27326
27327         * gnulib-tool (func_import): Output the include directives in three
27328         blocks, sorted separately.
27329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27330
27331 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27332
27333         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27334         to define main with arguments, for C++.  Reported by Eric Blake.
27335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27336         Prefer 'int main ()' to 'int main (void)', for C++.
27337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27339         for 'main', for C99 and C++.
27340
27341 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27342
27343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27344         Don't assume that exit status -1 is valid.
27345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27346         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27347         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27348         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27349         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27350         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27351         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27352         functions can be used without declaring them, or that you can
27353         exit with status -1.
27354         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27355
27356 2006-04-24  Karl Berry  <karl@gnu.org>
27357
27358         * config/srclist.txt (longdouble.m4): sync lost.
27359
27360 2006-04-24  Eric Blake  <ebb9@byu.net>
27361
27362         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27363
27364 2006-04-24  Bruno Haible  <bruno@clisp.org>
27365
27366         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27367         poll() implementation in AIX.
27368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27369
27370 2006-04-24  Bruno Haible  <bruno@clisp.org>
27371
27372         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27373         assigned exactly once.
27374
27375 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27376             Bruno Haible  <bruno@clisp.org>
27377
27378         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27379         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27380         for AM_CPPFLAGS.
27381
27382 2006-04-23  Bruno Haible  <bruno@clisp.org>
27383
27384         * modules/copy-file: Depend on unistd.
27385         * modules/execute: Likewise.
27386         * modules/fatal-signal: Likewise.
27387         * modules/findprog: Likewise.
27388         * modules/mkdtemp : Likewise.
27389         * modules/pipe: Likewise.
27390         * modules/wait-process: Likewise.
27391
27392 2006-04-23  Bruno Haible  <bruno@clisp.org>
27393
27394         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27395         condition was already detected.
27396         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27397
27398 2006-04-23  Bruno Haible  <bruno@clisp.org>
27399
27400         * lib/copy-file.c: Include <unistd.h> unconditionally.
27401         * lib/execute.c: Likewise.
27402         * lib/fatal-signal.c: Likewise.
27403         * lib/findprog.c: Likewise.
27404         * lib/mkdtemp.c: Likewise.
27405         * lib/pipe.h: Likewise.
27406         * lib/pipe.c: Likewise.
27407         * lib/wait-process.h: Likewise.
27408
27409 2006-04-23  Bruno Haible  <bruno@clisp.org>
27410
27411         * gnulib-tool (func_usage): Fix --import description. Document
27412         --update.
27413         (func_import): Create temporary file in a temporary directory, if
27414         --dry-run is specified. Silence errors from 'grep' when there are no
27415         m4 files in $m4dir.
27416         (func_create_testdir): Silence errors from 'grep' when there are no
27417         m4 files in $m4dir.
27418         Reported by Karl Berry <karl@freefriends.org>.
27419
27420 2006-04-20  Bruno Haible  <bruno@clisp.org>
27421
27422         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27423         one argument, so that the code will be portable to Autoconf 2.60.
27424         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27426         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27427
27428 2006-04-19  Derek Price  <derek@ximbiot.com>
27429             Eric Blake  <ebb9@byu.net>
27430
27431         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27432         rather than "/full/path.h".  Update comment to match.  Shorten &
27433         generalize m4_translit call via AS_TR_CPP.
27434
27435 2006-04-19  Derek Price  <derek@ximbiot.com>
27436             Eric Blake  <ebb9@byu.net>
27437
27438         * lib/inttypes.h: Correct grammar in comment.
27439
27440 2006-04-18  Derek Price  <derek@ximbiot.com>
27441             Paul Eggert  <eggert@cs.ucla.edu>
27442
27443         * modules/inttypes: New file.
27444         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27445
27446 2006-04-18  Derek Price  <derek@ximbiot.com>
27447             Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27450         New files.
27451
27452 2006-04-18  Derek Price  <derek@ximbiot.com>
27453             Paul Eggert  <eggert@cs.ucla.edu>
27454
27455         * lib/inttypes.h: New file.
27456         * lib/strtoimax.c: Assume <inttypes.h>.
27457
27458 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27461         isn't mounted.  Problem reported by Kir Kolyshkin.
27462
27463 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27464
27465         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27466         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27467         Derek R. Price.
27468         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27469         implementation.
27470
27471 2006-04-12  Eric Blake  <ebb9@byu.net>
27472
27473         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27474         is now done automatically by the corresponding Autoconf macro.
27475
27476 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27477
27478         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27479         time_r.h.
27480
27481 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27482
27483         Merge regex changes from libc, removing some of our
27484         POSIX-conformance changes that were rejected and redoing them in a
27485         less-intrusive way.
27486
27487         * lib/regcomp.c (re_compile_internal, init_dfa):
27488         Length arg is now size_t, not Idx.  All uses changed.
27489         (peek_token): Forward decl now says internal_function.
27490         (__re_error_msgid, __re_error_msgid_idx):
27491         Now static rather than extern with attribute_hidden.
27492         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27493         For some reason libc prefers K&R style defns for external functions.
27494         (regerror) [!defined _LIBC]: Likewise.
27495         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27496         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27497         (build_range_exp, build_collating_symbol):
27498         Use K&R-style defn.
27499         (re_compile_fastmap): Use '\0' to memset, not 0.
27500         (utf8_sb_map): Make the calculations more obvious.
27501         (init_dfa, parse_bracket_exp, build_charclass_op):
27502         Call calloc and cast result, as glibc does.
27503         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27504         (build_range_exp, build_collating_symbol):
27505         Now internal functions.
27506
27507         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27508
27509         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27510         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27511         Don't depend on VMS; depend on __VMS instead, for POSIX
27512         namespace cleanness.
27513         (regoff_t): Define to ssize_t, not long int.
27514
27515         Remove the REG_ macros named below.  Instead, make the old names
27516         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27517         __USE_GNU_REGEX.
27518         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27519         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27520         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27521         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27522         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27523         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27524         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27525         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27526         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27527         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27528         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27529         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27530         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27531         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27532         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27533         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27534         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27535         (REG_NREGS):
27536         Remove.  All uses replaced by the old RE_* names.
27537         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27538         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27539         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27540         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27541         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27542         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27543         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27544         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27545         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27546         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27547         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27548         Don't bother having these macros be independent of each others'
27549         values, since they no longer exist in the POSIX name space.
27550
27551         Rename the following member names back to their old names,
27552         unless !__USE_GNU_REGEX.  All uses changed back.
27553         (buffer): Renamed from re_buffer.
27554         (allocated): Renamed from re_allocated.
27555         (used): Renamed from re_used.
27556         (syntax): Renamed from re_syntax.
27557         (fastmap): Renamed from re_fastmap.
27558         (translate): Renamed from re_translate.
27559         (can_be_null): Renamed from re_can_be_null.
27560         (regs_allocated): Renamed from re_regs_allocated.
27561         (fastmap_accurate): Renamed from re_fastmap_accurate.
27562         (no_sub): Renamed from re_no_sub.
27563         (not_bol): Renamed from re_not_bol.
27564         (not_eol): Renamed from re_not_eol.
27565         (newline_anchor): Renamed from re_newline_anchor.
27566         (num_regs): Renamed from rm_num_regs.
27567         (start): Renamed from rm_start.
27568         (end): Renamed from rm_end.
27569
27570         (free_state): Move up a bit.
27571
27572         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27573         #define to be empty.
27574         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27575         when that is what is intended.
27576         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27577         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27578         (MAX): New macro.
27579         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27580         All uses changed back to re_malloc, etc.  It's now the caller's
27581         responsibility to check for overflow; all callers changed.
27582         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27583         (re_x2nrealloc): Remove.
27584         (free_state): Remove decl.
27585
27586         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27587         (re_set_registers, re_exec):
27588         Use K&R-style defn.
27589
27590         2006-01-31  Roland McGrath  <roland@redhat.com>
27591
27592         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27593         Reported by Mike Frysinger <vapier@gentoo.org>.
27594
27595         2006-01-15  Andreas Jaeger  <aj@suse.de>
27596
27597         [BZ #1950]
27598         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27599         build_wcs_upper_buffer change.
27600         (build_wcs_upper_buffer): Change return type.
27601
27602         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27603
27604         * lib/regex_internal.h: Include <stdint.h> if available.
27605
27606         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27607
27608         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27609
27610         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27611
27612         * lib/regcomp.c: Adjust for changed secondary hash function.
27613
27614         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27615
27616         * lib/regex.h: Pretty printing.
27617         Clean up namespace a bit.
27618
27619         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27620
27621         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27622         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27623
27624         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27625                     Ulrich Drepper  <drepper@redhat.com>
27626
27627         [BZ #1302]
27628         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27629         changed.
27630         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27631
27632         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27633
27634         [BZ #281]
27635         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27636         * lib/regcomp.c: Remove unnecessary uses of
27637         unsigned RE_TRANSLATE_TYPE.
27638         * lib/regex_internal.h: Likewise.
27639         * lib/regex_internal.c: Likewise.
27640         * lib/regexec.c: Likewise.
27641         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27642
27643         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27644
27645         * lib/regexec.c (find_recover_state): Remove unnecessary
27646         initialization.
27647         (transit_state_bkref): Make DFA a const pointer.
27648         (get_subexp): Likewise.
27649         (check_arrival): Likewise.
27650         (update_cur_sifted_state): Likewise.
27651         (re_search_internal): Likewise.
27652         (prune_impossible_nodes): Likewise.
27653         (acquire_init_state_context): Likewise.
27654         (proceed_next_node): Likewise.
27655         (set_regs): Likewise.
27656         (free_fail_stack_return): Likewise.
27657         (check_arrival_expand_ecl): Mark DFA parameter as const.
27658         (check_arrival_expand_ecl_sub): Likewise.
27659         (check_subexp_limits): Likewise.
27660         (sub_epsilon_src_nodes):  Likewise.
27661         (add_epsilon_src_nodes):  Likewise.
27662         (merge_state_array): Likewise.
27663         (update_regs): Likewise.
27664         (build_trtable): Likewise.
27665         (sift_states_backward): Mark MCTX parameter as const.
27666         (build_sifted_states): Likewise.
27667         (update_cur_sifted_state): Likewise.
27668         (sift_states_mkref): Likewise.
27669         (check_arrival_expand_ecl): Mark eclosure as const.
27670         (check_dst_limits_calc_pos_1): Likewise.
27671         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27672         pointer.
27673
27674         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27675
27676         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27677         (transit_state_sb): Likewise.
27678         (transit_state_mb): Likewise.
27679         (sift_states_iter_mb): Likewise.
27680         (check_arrival_add_next_nodes): Likewise.
27681         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27682         [_LIBC] (re_search_2_stub): Use mempcpy.
27683
27684         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27685         mbrtowc for very simple UTF-8 case.
27686
27687         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27688         a pointer-to-const.
27689         (re_acquire_state_context): Likewise.
27690         * lib/regex_internal.h: Adjust prototypes.
27691
27692         * lib/regex.c: Prevent using C++ compilers.
27693
27694         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27695         (re_acquire_state_context): Likewise.
27696
27697 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27698
27699         * modules/regex (Depends-on): Add ssize_t.
27700
27701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27704         translation table.
27705
27706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27707
27708         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27709
27710 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27711             Bruno Haible  <bruno@clisp.org>
27712
27713         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27714         <sys/types.h> and <inttypes.h>.
27715
27716 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27717
27718         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27719         `__error_t_defined', so argp.h will not typedef the former.
27720
27721 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27722
27723         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27724         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27725         glibc names.  Even if glibc is changed to conform to POSIX, the
27726         traditional names will be available anyway, since regex depends on
27727         the extensions module.  Also, fix a longstanding typo in the
27728         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27729         reported by Emanuele Giaquinta.  Also, change sense of cached
27730         variable, so that the message makes sense.
27731
27732 2006-03-24  Simon Josefsson  <jas@extundo.com>
27733
27734         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27735         including some doc fixes.
27736         (base64_encode_alloc): Fix +1 bug on allocation failures.
27737
27738 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27739
27740         * lib/base64.c (base64_encode): Do not read past end of array with
27741         unsanitized input on systems with CHAR_BIT > 8.
27742
27743 2006-03-24  Eric Blake  <ebb9@byu.net>
27744
27745         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27746
27747 2006-03-22  Karl Berry  <karl@gnu.org>
27748
27749         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27750         * config/srclistvars.sh (COREUTILS): new var.
27751
27752 2006-03-17  Jim Meyering  <jim@meyering.net>
27753
27754         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27755         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27756
27757 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27758
27759         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27760         no longer needs it.  Instead, check that regoff_t is as least
27761         as wide as ptrdiff_t.
27762
27763         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27764         so that our regex.h stays compatible with the installed regex.
27765         This is helpful for installers who configure --without-included-regex.
27766         Problem reported by Emanuele Giaquinta.
27767
27768 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27769
27770         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27771         Typedef to long int, not to off_, as POSIX will likely change
27772         in that direction.
27773
27774 2006-03-15  Eric Blake  <ebb9@byu.net>
27775
27776         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27777
27778 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27779
27780         * lib/argp-help.c (validate_uparams): Fix typo
27781         * lib/argp-parse.c (argp_default_options): Consistently begin help
27782         messages with a lowercase letter.
27783
27784 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27785
27786         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27787         overrun buffers and shouldn't be used (much as gets shouldn't be
27788         used).
27789         * lib/time_r.c (asctime_r, ctime_r): Likewise.
27790
27791 2006-03-08  Simon Josefsson  <jas@extundo.com>
27792
27793         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27794         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27795
27796 2006-03-08  Simon Josefsson  <jas@extundo.com>
27797
27798         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27799         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27800
27801 2006-03-08  Simon Josefsson  <jas@extundo.com>
27802
27803         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27804         signal that configure disabled the device.
27805
27806 2006-03-08  Simon Josefsson  <jas@extundo.com>
27807
27808         * build-aux/maint.mk: Fix refresh-po, to handle no translated
27809         languages.
27810
27811 2006-03-07  Simon Josefsson  <jas@extundo.com>
27812
27813         * modules/getopt (Depends-on): Add unistd.
27814
27815         * modules/unistd: New file.
27816
27817 2006-03-07  Simon Josefsson  <jas@extundo.com>
27818
27819         * modules/gc-random: New file.
27820
27821 2006-03-07  Simon Josefsson  <jas@extundo.com>
27822
27823         * m4/unistd_h.m4: New file.
27824
27825 2006-03-07  Simon Josefsson  <jas@extundo.com>
27826
27827         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27828         test to be side-effect free by storing the result in the cache
27829         variable gl_cv_lib_readline, and moving the assignment of
27830         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27831         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27832
27833 2006-03-07  Simon Josefsson  <jas@extundo.com>
27834
27835         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
27836         error on missing devices (the functions will return an error).
27837
27838         * m4/gc.m4: Move random stuff to gc-random.m4
27839
27840 2006-03-07  Simon Josefsson  <jas@extundo.com>
27841
27842         * lib/unistd_.h: New file.
27843
27844 2006-03-07  Simon Josefsson  <jas@extundo.com>
27845
27846         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27847
27848 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27849
27850         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27851         Problem reported by Juan Manuel Guerrero.
27852
27853 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27854
27855         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27856         the unistd module.
27857         * lib/getlogin_r.c: Likewise.
27858         * lib/getlogin_r.h: Likewise.
27859         * lib/glob.c: Likewise.
27860         * lib/pagealign_alloc.c: Likewise.
27861         * lib/unistd_.h: Remove; no longer needed.
27862
27863 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27864
27865         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27866         Add unistd.
27867         * modules/c-stack (Depends-on): Add unistd.
27868         * modules/getlogin_r: Likewise.
27869         * modules/glob: Likewise.
27870         * modules/pagealign_alloc: Likewise.
27871         * modules/unistd (Files): Remove lib/unistd_.h.
27872         (EXTRA_DIST): Remove.
27873         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27874         need unistd_.h.
27875         (MOSTLYCLEANFILES): Remove unistd.h-t.
27876
27877 2006-03-03  Simon Josefsson  <jas@extundo.com>
27878
27879         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27880
27881 2006-03-03  Simon Josefsson  <jas@extundo.com>
27882
27883         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27884         libidn and bison.
27885
27886 2006-03-03  Simon Josefsson  <jas@extundo.com>
27887
27888         * build-aux/maint.mk: Add indent target.
27889
27890 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
27891
27892         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27893         our replacement poll.h in any case, to avoid a differing
27894         declaration from a system header.  Seen on AIX.
27895
27896 2006-03-01  Simon Josefsson  <jas@extundo.com>
27897
27898         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27899         <kasal@ucw.cz>.
27900
27901 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         * modules/gettime (Depends-on): Add extensions module.
27904         * modules/nanosleep (Depends-on): Likewise.
27905         * modules/settime (Depends-on): Likewise.
27906
27907 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27908
27909         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27910         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27911         pedantically.
27912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27913         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27914
27915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27916         not "==".  Reported by Ralf Wildenhues.
27917
27918 2006-03-01  Karl Berry  <karl@gnu.org>
27919
27920         * doc/Copyright/request-*: new files, synced from gnuorg.
27921
27922 2006-03-01  Karl Berry  <karl@gnu.org>
27923
27924         * config/srclist.txt (Copyright/*): new entries.
27925
27926 2006-02-28  Simon Josefsson  <jas@extundo.com>
27927
27928         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27929
27930 2006-02-27  Simon Josefsson  <jas@extundo.com>
27931
27932         * lib/base64.h: Indent #define's.  From Jim Meyering
27933         <jim@meyering.net>.
27934
27935 2006-02-27  Jim Meyering  <jim@meyering.net>
27936
27937         Revert the change of 2006-02-24, so these files can continue
27938         to be sync'd from gettext.
27939         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27940         of `config.h'.
27941
27942 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27943
27944         * modules/intprops: New file.
27945         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27946         Add intprops.
27947         * modules/getloadavg (Files): Remove lib/intprops.h.
27948         (Depends-on): Add intprops.
27949         * modules/human: Likewise.
27950         * modules/inttostr: Likewise.
27951         * modules/openat: Likewise.
27952         * modules/sig2str: Likewise.
27953         * modules/userspec: Likewise.
27954         * modules/utimecmp: Likewise.
27955         * modules/xnanosleep: Likewise.
27956         * modules/xstrtol: Likewise.
27957
27958 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27959
27960         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27961         * modules/lock-tests (TESTS): Use $(EXEEXT).
27962         * modules/tls-tests: Likewise.
27963         * modules/argp-tests: Likewise.
27964         (check_PROGRAMS): New var, replacing...
27965         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27966
27967 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27968
27969         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27970         `config.h'.
27971
27972 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27973
27974         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27975
27976 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27977
27978         Sync from coreutils.
27979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27980         gl_CHDIR_SAFER.
27981
27982 2006-02-22  Jim Meyering  <jim@meyering.net>
27983
27984         Sync from coreutils.
27985         * m4/chdir-safer.m4: New file.
27986
27987 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27988
27989         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27990         AT_FDCWD exceeds INT_MAX.
27991         * lib/openat.h (AT_FDCWD): Likewise.
27992
27993 2006-02-17  Eric Blake  <address@hidden>
27994
27995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27996
27997 2006-02-16  Simon Josefsson  <jas@extundo.com>
27998
27999         * modules/getaddrinfo (Depends-on): Add sys_socket.
28000
28001 2006-02-15  Simon Josefsson  <jas@extundo.com>
28002
28003         * build-aux/maint.mk: Add dsyntax-check rule.
28004
28005 2006-02-15  Eric Blake  <ebb9@byu.net>
28006
28007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28008         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28009         'present but cannot compile' warnings on cygwin.
28010         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28011         use ws2tcpip.h if sys/socket.h works.
28012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28013         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28014
28015 2006-02-14  Simon Josefsson  <jas@extundo.com>
28016
28017         * modules/maintainer-makefile (Files): Rename.
28018
28019         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28020         and (the local) Makefile.cfg to maint-cfg.mk.
28021
28022         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28023         to the latter.
28024
28025         * modules/maintainer-makefile: New module.
28026
28027         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28028         severaly stripped to make it possible to build it up from scratch
28029         with reliable tests.
28030
28031         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28032         fixes to permit overriding the default actions when configure and
28033         makefile are not available.
28034
28035 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28036
28037         Sync from coreutils.
28038         * modules/lstat (Depends-on): Don't depend on xalloc.
28039         (License): Change from GPL to LGPL, since this is now simply a
28040         replacement for a libc function.
28041
28042 2006-02-14  Jim Meyering  <jim@meyering.net>
28043
28044         Sync from coreutils.
28045
28046         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28047         failure on deficient systems, and simplify gnulib lgpl dependencies.
28048         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28049         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28050
28051         * lib/xalloc-die.c: Remove unused definition of N_.
28052
28053 2006-02-14  Jim Meyering  <jim@meyering.net>
28054
28055         Sync from coreutils.
28056         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28057         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28058         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28059         double-quote uses of that variable, to accommodate the rare case in
28060         which getmntent is available in none of the libraries checked.  This
28061         happens at least on FreeBSD 5.0.
28062
28063 2006-02-13  Simon Josefsson  <jas@extundo.com>
28064
28065         * gnulib-tool (Usage): Fix --import, from
28066         karl@freefriends.org (Karl Berry).
28067
28068 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28069
28070         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28071
28072 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28073
28074         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28075         "autoupdate" on 2005-12-12.
28076
28077 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28078
28079         * modules/closeout (Depends-on): Remove atexit.
28080
28081 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28082
28083         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28084         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28085
28086 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28087
28088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28089         __EXTENSIONS__ if this causes compilation to fail.  Problem
28090         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28091         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28092
28093 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28096         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28098         All uses changed.
28099
28100 2006-01-26  Simon Josefsson  <jas@extundo.com>
28101
28102         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28103         prototype is visible on mingw32.
28104
28105         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28106         for mingw32.
28107
28108         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28109         mingw32).
28110
28111 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28112
28113         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28114         attempt to open for write; this always fails, at least on POSIX
28115         hosts.  This reinstates the 2006-01-09 change, which was
28116         inadvertently removed.
28117
28118 2006-01-26  Bruno Haible  <bruno@clisp.org>
28119
28120         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28121         Reported by Paul Eggert.
28122
28123 2006-01-26  Bruno Haible  <bruno@clisp.org>
28124             Paul Eggert  <eggert@cs.ucla.edu>
28125
28126         * lib/stdbool_.h (_Bool)
28127         [(! (defined __cplusplus || defined __BEOS__)
28128           && !defined __GNUC__
28129           && !(defined __HP_cc || defined __xlc__
28130                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28131                || defined __sgi))]:
28132         #define to signed char in these cases too; this simplifies
28133         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28134         etc., separately) and makes it more conservative.
28135
28136 2006-01-25  Simon Josefsson  <jas@extundo.com>
28137
28138         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28139         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28140         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28141
28142 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28143
28144         * lib/argp-namefrob.h: Bugfix. Remove stray #
28145
28146 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28147
28148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28149         so that we test the test.
28150         Check for yet another HP-UX cc bug involving *bool |= bool.
28151
28152 2006-01-25  Karl Berry  <karl@gnu.org>
28153
28154         * config/srclist.txt (vasnprintf.c): sync lost.
28155
28156 2006-01-25  Jim Meyering  <jim@meyering.net>
28157
28158         Sync from the stable (b5) branch of coreutils:
28159
28160         * lib/fts.c (fts_children): Don't let close() clobber errno from
28161         failed fchdir().
28162
28163         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28164         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28165         a dangling symlink.  That can also happen at least for ELOOP.
28166         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28167         FYI, this bug predates the inclusion of fts.c in coreutils.
28168
28169         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28170         in their own block, so pre-c99 compilers don't object.
28171
28172         Avoid the double-free (first in fts_read, second in fts_close) that
28173         would occur when an `active' directory is made inaccessible (e.g.,
28174         via chmod a-x) during a traversal.
28175         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28176         before returning.  Reproduce this failure by
28177         mkdir -p a/b; cd a; chmod a-x . b
28178         Reported by Stavros Passas.
28179
28180 2006-01-25  Jim Meyering  <jim@meyering.net>
28181
28182         * lib/fileblocks.c: Remove more useless parentheses.
28183         * lib/readutmp.h: Likewise.
28184
28185 2006-01-25  Bruno Haible  <bruno@clisp.org>
28186
28187         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28188         warnings.
28189         Reported by Paul Eggert.
28190
28191 2006-01-25  Bruno Haible  <bruno@clisp.org>
28192
28193         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28194         rid of a trap command. For Solaris sh.
28195         Reported by Mark D. Baushke <mdb@gnu.org>.
28196
28197 2006-01-24  Simon Josefsson  <jas@extundo.com>
28198
28199         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28200         Bruno.
28201
28202 2006-01-24  Karl Berry  <karl@gnu.org>
28203
28204         * config/srclist.txt (argp-namefrob.h): sync lost.
28205
28206 2006-01-24  Jim Meyering  <jim@meyering.net>
28207
28208         * modules/openat (Files): Add lib/intprops.h.
28209         From Mark D. Baushke.
28210
28211 2006-01-24  Jim Meyering  <jim@meyering.net>
28212
28213         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28214         Reported by Mark D. Baushke.
28215
28216 2006-01-24  Jim Meyering  <jim@meyering.net>
28217
28218         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28219
28220 2006-01-24  Bruno Haible  <bruno@clisp.org>
28221
28222         * modules/strnlen (Maintainer): Change from glibc to all.
28223
28224 2006-01-24  Bruno Haible  <bruno@clisp.org>
28225
28226         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28227         Patch by Paul Eggert.
28228
28229 2006-01-24  Bruno Haible  <bruno@clisp.org>
28230
28231         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28232         already has it.
28233         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28234         2005-11-26.
28235
28236         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28237         'signed char' to avoid problems with the built-in _Bool type.
28238         Reported by Paul Eggert on 2005-11-26.
28239
28240 2006-01-24  Bruno Haible  <bruno@clisp.org>
28241
28242         * gnulib-tool (func_import): Avoid constructing complicated sed
28243         expressions inside backquote.
28244         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28245
28246 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28247
28248         These changes imported from libc.
28249         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28250         test and two separate function calls.
28251         * lib/strndup.c (__strndup): Add libc_hidden_def.
28252
28253 2006-01-23  Simon Josefsson  <jas@extundo.com>
28254
28255         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28256         Remove the test_*_SOURCES variable: automake infers it by default.
28257         * modules/tls-tests: Likewise.
28258
28259 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28260
28261         Work around porting bugs reported by Dieter in
28262         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28263         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28264         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28265         Include "getopt.h" first, to check interface.
28266         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28267         !HAVE_DECL_GETENV.
28268         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28269         (__strndup): Revert to K&R-style function dfns, the glibc style.
28270         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28271         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28272         Include strnlen.h first, to get prototype properly.
28273         (strnlen): Renamed from __strnlen.
28274         Remove weak alias.
28275
28276 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28277
28278         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28279
28280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28281
28282         * config/srclist.txt: Adjust to reflect glibc reorganization.
28283         This affects only comments.
28284
28285 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28286
28287          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28288          Reported by Bruce Korb <bkorb@gnu.org>.
28289
28290 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28291
28292         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28293         to pacify gcc -Wswitch-default.
28294
28295 2006-01-22  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28298         temporary buffer for sprintf, take into account the precision also
28299         for 'd', 'i', 'u', 'o', 'x', 'X'.
28300
28301 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28302
28303         * modules/argp-tests: New module
28304         * tests/test-argp.c: New file
28305         * tests/test-argp-2.sh: New file
28306
28307 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28308
28309         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28310         (__argp_base_name): Removed
28311         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28312         typo.
28313         (__argp_base_name): Provide macro definition or extern declaration
28314         depending on the configuration
28315
28316 2006-01-20  Simon Josefsson  <jas@extundo.com>
28317
28318         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28319
28320 2006-01-20  Simon Josefsson  <jas@extundo.com>
28321
28322         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28323
28324 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28325
28326         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28327         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28328         Suggested by Bruno Haible.
28329
28330 2006-01-20  Karl Berry  <karl@gnu.org>
28331
28332         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28333         until changes propagate, I guess.
28334
28335 2006-01-19  Simon Josefsson  <jas@extundo.com>
28336
28337         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28338
28339 2006-01-19  Simon Josefsson  <jas@extundo.com>
28340
28341         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28342
28343 2006-01-19  Simon Josefsson  <jas@extundo.com>
28344
28345         * gnulib-tool: Set check_PROGRAMS.
28346
28347         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28348         modules/des-tests, modules/gc-arcfour-tests,
28349         modules/gc-arctwo-tests, modules/gc-des-tests,
28350         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28351         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28352         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28353         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28354         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28355         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28356         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28357         test_*_SOURCES.
28358
28359 2006-01-18  Simon Josefsson  <jas@extundo.com>
28360
28361         * modules/socklen (Depends-on): Depend on sys_socket.
28362
28363 2006-01-18  Simon Josefsson  <jas@extundo.com>
28364
28365         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28366         modules/des-tests, modules/gc-arcfour-tests,
28367         modules/gc-arctwo-tests, modules/gc-des-tests,
28368         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28369         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28370         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28371         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28372         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28373         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28374         $(EXEEXT) to automake TESTS variable, for mingw32.
28375
28376 2006-01-17  Simon Josefsson  <jas@extundo.com>
28377
28378         * modules/socklen (Include): Need sys/socket.h.
28379
28380 2006-01-17  Bruno Haible  <bruno@clisp.org>
28381
28382         * modules/ssize_t (Include): Add <sys/types.h>.
28383
28384 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28385
28386         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28387         it's not portable and it doesn't work with cross-compiles.
28388         Problem reported by Bruno Haible.  Fix missing-$ typo in
28389         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28390         -zignore from being used with Sun's C compiler.
28391
28392 2006-01-12  Simon Josefsson  <jas@extundo.com>
28393
28394         * lib/base64.c: Fix warning, reported by Bruno Haible
28395         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28396
28397 2006-01-12  Bruno Haible  <bruno@clisp.org>
28398
28399         * modules/ldd: New file.
28400         * build-aux/ldd.sh.in: New file.
28401         * MODULES.html.sh (Support for building libraries and executables): Add
28402         ldd.
28403
28404 2006-01-12  Bruno Haible  <bruno@clisp.org>
28405
28406         * m4/ldd.m4: New file.
28407
28408 2006-01-12  Bruno Haible  <bruno@clisp.org>
28409
28410         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28411         endless loop while replacing $auxdir with build-aux.
28412
28413 2006-01-11  Simon Josefsson  <jas@extundo.com>
28414
28415         * lib/stdint_.h (SIZE_MAX): Add missing (.
28416
28417 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28418
28419         Sync from coreutils.
28420         * lib/md5.c: Fix commentary typos.
28421         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28422         * lib/md5.h (__attribute__): Remove; unused.
28423         * lib/sha1.c: Fix commentary to match md5 better.
28424         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28425         so that we don't need to worry about alignment.  All uses changed.
28426         This merges the 2005-10-28 md5 change into sha1.
28427
28428 2006-01-11  Jim Meyering  <jim@meyering.net>
28429
28430         Sync from coreutils.
28431         * lib/md5.c (OP): Fix spacing.
28432
28433 2006-01-11  Bruno Haible  <bruno@clisp.org>
28434
28435         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28436         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28437         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28438
28439 2006-01-11  Bruno Haible  <bruno@clisp.org>
28440
28441         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28442         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28443         the "early" section as well.
28444
28445 2006-01-11  Bruno Haible  <bruno@clisp.org>
28446
28447         Avoid "ar: no archive members specified" error on MacOS X.
28448         * gnulib-tool (func_modules_add_dummy): New function.
28449         (func_import, func_create_testdir): Invoke it.
28450
28451 2006-01-11  Bruno Haible  <bruno@clisp.org>
28452
28453         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28454         with $auxdir in AC_CONFIG_FILES statements.
28455
28456 2006-01-11  Bruno Haible  <bruno@clisp.org>
28457
28458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28459         Initialize also noinst_HEADERS to empty.
28460
28461 2006-01-11  Bruno Haible  <bruno@clisp.org>
28462
28463         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28464         variables.
28465         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28466         autoreconf.
28467
28468 2006-01-11  Bruno Haible  <bruno@clisp.org>
28469
28470         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28471         overridable by the user.
28472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28473
28474 2006-01-10  Simon Josefsson  <jas@extundo.com>
28475
28476         * modules/sys_socket: New file.
28477
28478 2006-01-10  Simon Josefsson  <jas@extundo.com>
28479
28480         * m4/sys_socket_h.m4: New file.
28481
28482 2006-01-10  Simon Josefsson  <jas@extundo.com>
28483
28484         * lib/socket_.h: New file.
28485
28486 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28487
28488         * modules/readutmp (Maintainer): Add myself.
28489
28490 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28491
28492         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28493         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28494         People who are still concerned with buggy memcmp implementations
28495         can invoke gl_FUNC_MEMCMP themselves.
28496
28497 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28498
28499         * lib/regex_internal.h (BITSET_WORD_BITS):
28500         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28501         preprocessor mishandles large unsigned values as if they were signed.
28502         Problem reported by Claudio Fontana in
28503         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28504
28505 2006-01-10  Jim Meyering  <jim@meyering.net>
28506
28507         Avoid the double-free (first in fts_read, second in fts_close) that
28508         would occur when an `active' directory is made inaccessible (e.g.,
28509         via chmod a-x) during a traversal.
28510         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28511         before returning.  Reproduce this failure by
28512         mkdir -p a/b; cd a; chmod a-x . b
28513         Reported by Stavros Passas.
28514
28515         Sync from coreutils.
28516         * lib/sha1.c: Tweak grammar in a comment.
28517
28518 2006-01-10  Jim Meyering  <jim@meyering.net>
28519
28520         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28521         Patch by Joerg Sonnenberger.
28522
28523 2006-01-10  Bruno Haible  <bruno@clisp.org>
28524
28525         * modules/readutmp: Depend on module free.
28526         * modules/strtok_r: Depend on module restrict.
28527
28528 2006-01-10  Bruno Haible  <bruno@clisp.org>
28529
28530         * modules/gettext (configure.ac): Add an invocation of
28531         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28532
28533 2006-01-10  Bruno Haible  <bruno@clisp.org>
28534
28535         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28536         Reported by Werner Lemberg <wl@gnu.org>.
28537
28538 2006-01-10  Bruno Haible  <bruno@clisp.org>
28539
28540         * lib/localcharset.c: Update from GNU gettext.
28541
28542 2006-01-10  Bruno Haible  <bruno@clisp.org>
28543
28544         * lib/argp.h (__const): Remove macro. Use const instead.
28545         * lib/argp-fmtstream.h (__const): Likewise.
28546         * lib/glob_.h (__const): Remove macro.
28547         * lib/glob-libc.h: Use const instead of __const.
28548
28549 2006-01-10  Bruno Haible  <bruno@clisp.org>
28550
28551         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28552         variable.
28553         Needed to avoid an automake error regarding the 'gettext' module.
28554
28555 2006-01-09  Simon Josefsson  <jas@extundo.com>
28556
28557         * modules/inet_ntop (Depends-on): Add restrict.
28558
28559 2006-01-09  Simon Josefsson  <jas@extundo.com>
28560
28561         * modules/gc-rijndael-tests (License): Put under LGPL.
28562
28563         * modules/gc-des-tests (License): Likewise.
28564
28565         * modules/gc-arcfour-tests (License): Likewise.
28566
28567         * modules/gc-arctwo-tests (License): Likewise.
28568
28569         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28570
28571         * modules/gc-hmac-sha1-tests (Files): Likewise.
28572
28573         * modules/gc-hmac-md5-tests (License): Likewise.
28574
28575         * modules/gc-sha1-tests (License): Likewise.
28576
28577         * modules/gc-md5-tests (License): Likewise.
28578
28579         * modules/gc-md4-tests (License): Likewise.
28580
28581         * modules/gc-md2-tests (License): Likewise.
28582
28583         * modules/gc-tests (License): Likewise.
28584
28585         * modules/des-tests (License): Likewise.
28586
28587         * modules/md4-tests (License): Likewise.
28588
28589         * modules/md2-tests (License): Likewise.
28590
28591 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28592
28593         Sync from coreutils:
28594
28595         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28596         * modules/lib-ignore: New file.
28597         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28598         chdir-safer.m4, lchmod.m4.
28599         * modules/openat: Add mkdirat.c, openat-priv.h.
28600
28601 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         Sync from coreutils.
28604         * m4/lib-ignore.m4: New file.
28605         * m4/lchmod.m4: New file.
28606
28607 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28608
28609         Sync from coreutils.
28610         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28611         for write access: POSIX says that must fail.
28612         * lib/fts.c (diropen): Likewise.
28613         * lib/save-cwd.c (save_cwd): Likewise.
28614         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28615         well, for minor improvements on hosts that lack O_DIRECTORY.
28616         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28617         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28618         Fall back on chown if open failed with EACCES.
28619
28620         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28621         Report an error at compile-time if only a 1-second nominal clock
28622         resolution is found.
28623
28624         * lib/lchmod.h: New file.
28625         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28626         (make_dir_parents): Use lchown rather than chown, and
28627         lchmod rather than chmod.
28628
28629         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28630         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
28631         "proc" reported by n0dalus.
28632
28633         * lib/mountlist.c: Include <limits.h>.
28634         (dev_from_mount_options)
28635         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28636         New function.  It no longer assumes "dev=" has the System V meaning
28637         on Linux (since it doesn't).  It also parses "dev=" more carefully.
28638         (read_file_system_list)
28639         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28640         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28641         dev= in that case.
28642
28643         * lib/posixtm.h (PDS_PRE_2000): New macro.
28644         * lib/posixtm.c (year): Arg is now syntax_bits rather than
28645         allow_century.  All usages changed.  Reject dates outside the range
28646         1969-1999 if PDS_PRE_2000 is used.
28647
28648 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28649
28650         Sync from coreutils.
28651         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28652         (Time of day items): Mention the possibility of leap seconds.
28653         Problem reported by Dr. David Alan Gilbert.
28654
28655 2006-01-09  Jim Meyering  <jim@meyering.net>
28656
28657         Sync from coreutils.
28658
28659         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28660
28661         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28662
28663         * lib/modechange.c (mode_compile): Reject an invalid mode string
28664         that starts with an octal digit.  From Andreas Gruenbacher.
28665
28666         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28667         and dup to open_safer and dup_safer, respectively.
28668         (openat_permissive): Fix typo in comment.
28669
28670         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28671         "gettext.h"; either no longer needed or are guaranteed by openat.h.
28672         (_): Remove; no longer needed.
28673         (openat): Renamed from rpl_openat; no need for rpl_openat
28674         since openat.h renames openat for us.
28675         Replace most of the body with a call to openat_permissive,
28676         to avoid duplicate code.
28677         Port to (probably hypothetical) environments were mode_t is
28678         wider than int.
28679         (openat_permissive): Require mode arg, so that we can check
28680         types better.  Put it just after flags.  Change cwd failure
28681         indicator from pointer-to-bool to pointer-to-errno-value.
28682         All callers changed.
28683         Invoke openat_save_fail and/or openat_restore_fail if
28684         cwd_errno is null, so that openat can call us.
28685         (openat_permissive, fdopendir, fstatat, unlinkat):
28686         Simplify errno handling to avoid some duplicate code,
28687         as it's OK to set errno on success.
28688         * lib/openat.h: Revamp code so that function macros depend on
28689         __OPENAT_PREFIX only, not also on AT_FDCWD.
28690         (openat_ro): Remove.  Caller changed to use openat_permissive.
28691         (openat_permissive): Now a macro, if not a function.
28692         (openat_restore_fail, openat_save_fail): Now always functions,
28693         since mkdirat needs them even if __OPENAT_PREFIX is defined.
28694
28695         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
28696         and openat.c.
28697         * lib/mkdirat.c: Include openat-priv.h.
28698         Remove definitions of macros defined therein.
28699         * lib/openat.c: Likewise.
28700
28701         * lib/mkdirat.c (mkdirat): New file and function.
28702         * lib/openat.h (mkdirat): Declare.
28703
28704         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
28705
28706         * lib/openat.h (openat_permissive): Declare.
28707         (openat_ro): Define.
28708
28709         * lib/openat.c (EXPECTED_ERRNO): New macro.
28710         (openat_permissive): New function -- used in remove.c rewrite.
28711         (all functions): Set errno just before returning, only if there
28712         was an actual failure.
28713         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
28714
28715         Emulate openat-family functions using Linux's procfs, if possible.
28716         Idea and some code based on Ulrich Drepper's glibc changes.
28717
28718         * lib/openat.c: (BUILD_PROC_NAME): New macro.
28719         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
28720         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
28721         before falling back on save_cwd and restore_cwd.
28722         (fdopendir, fstatat, unlinkat): Likewise.
28723
28724         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
28725         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
28726
28727         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
28728         as second argument to va_arg.  Otherwise, some versions of gcc
28729         warn that `if this code is reached, the program will abort'.
28730
28731 2006-01-09  Jim Meyering  <jim@meyering.net>
28732
28733         Sync from coreutils.
28734         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
28735         Require openat-priv.h.
28736
28737 2006-01-09  Bruno Haible  <bruno@clisp.org>
28738
28739         * modules/strnlen (Include): Use strnlen.h.
28740
28741 2006-01-09  Bruno Haible  <bruno@clisp.org>
28742
28743         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
28744
28745 2006-01-09  Bruno Haible  <bruno@clisp.org>
28746
28747         * lib/sysexit_.h (EX_OK): New macro.
28748         Suggested by Martin Lambers <marlam@marlam.de>.
28749
28750 2006-01-09  Bruno Haible  <bruno@clisp.org>
28751
28752         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
28753         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
28754
28755 2006-01-09  Bruno Haible  <bruno@clisp.org>
28756
28757         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
28758         numbers.
28759
28760 2006-01-09  Bruno Haible  <bruno@clisp.org>
28761
28762         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
28763         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
28764         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
28765         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
28766
28767 2006-01-09  Bruno Haible  <bruno@clisp.org>
28768
28769         * build-aux/javacomp.sh.in: New file, moved from lib/.
28770         * modules/javacomp-script (Files): Update.
28771         (configure.ac): Add AC_CONFIG_FILES invocation.
28772         (EXTRA_DIST): Remove variable.
28773
28774         * build-aux/javaexec.sh.in: New file, moved from lib/.
28775         * modules/javaexec (Files): Update.
28776         (configure.ac): Add AC_CONFIG_FILES invocation.
28777         (EXTRA_DIST): Remove javaexec.sh.in.
28778
28779         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
28780         * modules/csharpcomp-script (Files): Update.
28781         (configure.ac): Add AC_CONFIG_FILES invocation.
28782         (EXTRA_DIST): Remove variable.
28783
28784         * build-aux/csharpexec.sh.in: New file, moved from lib/.
28785         * modules/csharpexec (Files): Update.
28786         (configure.ac): Add AC_CONFIG_FILES invocation.
28787         (EXTRA_DIST): Remove csharpexec.sh.in.
28788
28789 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
28790
28791         Sync from coreutils.
28792
28793         Add POSIX ACL support
28794         * lib/acl.h (copy_acl, set_acl): Add declarations.
28795         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
28796         systems other than Linux.
28797         (chmod_or_fchmod): New function: use fchmod when possible,
28798         and chmod otherwise.
28799         (file_has_acl): Add a POSIX ACL implementation, with a
28800         Linux-specific subcase.
28801         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
28802         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
28803         acls are unsupported.
28804         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
28805         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
28806         are unsupported.
28807
28808 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
28809
28810         Sync from coreutils.
28811         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
28812
28813 2006-01-07  Bruno Haible  <bruno@clisp.org>
28814
28815         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
28816         gl_EARLY.
28817
28818 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         * lib/strftime.c (tzname): Don't declare if it is already #defined.
28821         Problem reported for Mingw by Mark Junker.
28822
28823 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28824
28825         * README: Gnulib normally doesn't generate a tarball.
28826
28827 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
28828
28829         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
28830         long int, not int, for nanosecond counts, so that people who are
28831         used to POSIX struct timespec won't be surprised.  Reported by Jim
28832         Meyering.
28833
28834 2005-12-28  Bruno Haible  <bruno@clisp.org>
28835
28836         * build-aux/config.rpath: Update from GNU gettext.
28837
28838 2005-12-16  Jim Meyering  <jim@meyering.net>
28839
28840         * modules/fprintftime: New module.
28841         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
28842
28843 2005-12-16  Jim Meyering  <jim@meyering.net>
28844
28845         * m4/fprintftime.m4: New file.
28846
28847 2005-12-16  Jim Meyering  <jim@meyering.net>
28848
28849         * lib/fprintftime.c, lib/fprintftime.h: New files.
28850
28851 2005-12-15  Simon Josefsson  <jas@extundo.com>
28852
28853         * modules/socklen (configure.ac): Fix M4 macro name, to align with
28854         new m4/socklen.m4.
28855
28856 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28857
28858         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
28859         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
28860
28861 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28862
28863         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
28864         * lib/argp-help.c (fill_in_uparams): Check if the constructed
28865         struct uparams is valid. Fall back to the default values if it is
28866         not.
28867
28868 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28869
28870         * modules/argp (Files): Add argp-pin.c
28871         (Depends-on): dirname
28872         (lib_SOURCES): Add argp-pin.c
28873
28874 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28875
28876         * m4/argp.m4:  Check if program_invocation_name and
28877         program_invocation_short_name are declared and define appropriate
28878         macros if they are not.
28879
28880 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28881
28882         * lib/argp-help.c (__argp_base_name): New function
28883         (__argp_short_program_name): Rewrite using __argp_base_name
28884         * lib/argp-namefrob.h: Define program_invocation_name and
28885         program_invocation_short_name if requested
28886         (__argp_base_name): Add prototype
28887         * lib/argp-parse.c (argp_def): Use gettext wrappers
28888         (argp_default_parser): Use __argp_base_name
28889         * lib/argp-pin.c: New file. Defines program_invocation_name and
28890         program_invocation_short_name on systems that lack them.
28891
28892 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28893
28894         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
28895         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28896         porting problem reported by Georg Schwarz in
28897         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28898
28899 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28900
28901         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
28902         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28903         porting problem reported by Georg Schwarz in
28904         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28905
28906 2005-12-05  Bruno Haible  <bruno@clisp.org>
28907
28908         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
28909         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
28910         Reported by Mark Junker <mjscod@gmx.de>.
28911
28912 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28913
28914         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
28915         Use implementation from Albert Chin, with some
28916         comments/corrections by Stepan Kasal and myself.
28917
28918 2005-12-02  Bruno Haible  <bruno@clisp.org>
28919
28920         * gnulib-tool (func_import): Accept GPLed build tool modules when
28921         --lgpl is given.
28922         * modules/csharpcomp-script: New file.
28923         * modules/csharpcomp: Depend on it.
28924         * modules/javacomp-script: New file.
28925         * modules/javacomp: Depend on it.
28926         Suggested by Simon Josefsson.
28927
28928 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28929
28930         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
28931         statement, to work around an HP-UX 10.20 compiler bug reported by
28932         Peter O'Gorman.
28933
28934 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28935
28936         * modules/savedir (Depends-on): Add openat.
28937
28938 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28939
28940         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28941         (uintmax_t) [defined uintmax_t]: Do not declare.
28942         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28943         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28944         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
28945         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28946         sake of portability to weird hosts that C allows (though we don't
28947         know of any practical examples).
28948
28949         * lib/savedir.h (fdsavedir): New decl.
28950         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28951         contains most of the former guts of savedir.
28952         (savedir): Use savedirstream.
28953         Include "openat.h".
28954
28955 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28956
28957         * modules/obstack (Files): Add m4/ulonglong.m4.
28958         Problem reported by Davide Angelocola.
28959
28960 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28961
28962         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28963         coreutils no longer futzes with rounding modes.
28964
28965 2005-11-14  Jim Meyering  <jim@meyering.net>
28966
28967         * lib/mkstemp-safer.c: Include <config.h>, required for possible
28968         replacement of mkstemp.
28969
28970 2005-11-10  Simon Josefsson  <jas@extundo.com>
28971
28972         * lib/readline.c: Remove EOL.
28973
28974 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28975
28976         * modules/gethrxtime (Depends-on): Add gettime.
28977
28978 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28979
28980         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28981         or gettimeofday; no longer needed.
28982
28983 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28984
28985         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28986         time business.
28987         (gethrxtime) [! (HAVE_NANOUPTIME
28988         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28989         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28990         our own approximation.
28991
28992 2005-11-08  Eric Blake  <ebb9@byu.net>
28993
28994         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28995
28996 2005-11-08  Eric Blake  <ebb9@byu.net>
28997
28998         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28999
29000 2005-11-04  Bruno Haible  <bruno@clisp.org>
29001
29002         * gnulib-tool: Implement --update mode.
29003
29004 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         Fix porting problem reported by Theodoros V. Kalamatianos.
29007         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29008         Don't assume that futimes failing means we must fail.
29009
29010 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29011
29012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29013         variables to suggest the intended function of the PATH_MAX check.
29014
29015 2005-10-30  Kean Johnston  <jkj@sco.com>
29016
29017         Trivial changes to support SCO systems.
29018         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29019         as PATH_MAX.
29020         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29021         where __ptr is null when no I/O is pending.
29022
29023 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29024
29025         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29026         leave errno alone.  Problem reported by Dmitry V. Levin.
29027
29028 2005-10-28  Simon Josefsson  <jas@extundo.com>
29029
29030         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29031         Test more.
29032
29033         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29034
29035         * modules/md2, modules/md2-tests: New files.
29036
29037 2005-10-28  Simon Josefsson  <jas@extundo.com>
29038
29039         * m4/inet_ntop.m4: More tests.
29040
29041         * m4/gc-md2.m4, md2.m4: New file.
29042
29043 2005-10-28  Simon Josefsson  <jas@extundo.com>
29044
29045         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29046         "restrict" keywords, as per POSIX.  Protect the function
29047         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29048         Don't use K&R prototypes.  Check the sprintf return values.
29049         Re-define EAFNOSUPPORT if not present.  Indent.
29050
29051         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29052         suggested by Bruno Haible <bruno@clisp.org>.
29053
29054         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29055
29056         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29057
29058         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29059         libgcrypt).
29060
29061         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29062
29063         * lib/md2.h, lib/md2.c: New files.
29064
29065 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29066
29067         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29068         errno alone.  Problem reported by Frederic Jolliton.
29069
29070 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29071
29072         * modules/verify (License): Change from GPL to LGPL.  This is a
29073         tiny module and there are apparently near-equivalents that are
29074         under the BSD license.
29075
29076 2005-10-24  Simon Josefsson  <jas@extundo.com>
29077
29078         * modules/sha1: Relicense to LGPL.
29079
29080 2005-10-24  Simon Josefsson  <jas@extundo.com>
29081
29082         * lib/md4.h: Shrink buffer size, now that we changed the type.
29083
29084 2005-10-23  Simon Josefsson  <jas@extundo.com>
29085
29086         * gnulib-tool (func_import): Fix --tests-base.
29087
29088 2005-10-22  Simon Josefsson  <jas@extundo.com>
29089
29090         * modules/arcfour (Depends-on): Need stdint.
29091
29092 2005-10-22  Simon Josefsson  <jas@extundo.com>
29093
29094         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29095         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29096
29097 2005-10-22  Simon Josefsson  <jas@extundo.com>
29098
29099         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29100         suggested by Bruno Haible <bruno@clisp.org>.
29101
29102 2005-10-22  Simon Josefsson  <jas@extundo.com>
29103
29104         * lib/crc.h: Include stddef.h, for size_t.
29105
29106 2005-10-22  Simon Josefsson  <jas@extundo.com>
29107
29108         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29109         arcfour_context struct (simplify test vector testing in GNU
29110         Shishi).
29111
29112 2005-10-21  Simon Josefsson  <jas@extundo.com>
29113
29114         * modules/des, modules/des-tests: New files.
29115
29116         * modules/gc-des, modules/gc-des-tests: New files.
29117
29118         * tests/test-des.c, tests/test-gc-des.c: New file.
29119
29120 2005-10-21  Simon Josefsson  <jas@extundo.com>
29121
29122         * modules/arctwo, modules/arctwo-tests: New files.
29123
29124         * tests/test-arctwo.c: New file.
29125
29126         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29127
29128         * tests/test-gc-arctwo.c: New file.
29129
29130 2005-10-21  Simon Josefsson  <jas@extundo.com>
29131
29132         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29133         Bruno Haible <bruno@clisp.org>.
29134
29135         * m4/gc-des.m4: New file.
29136
29137 2005-10-21  Simon Josefsson  <jas@extundo.com>
29138
29139         * m4/arctwo.m4: New file.
29140
29141         * m4/gc-arctwo.m4: New file.
29142
29143 2005-10-21  Simon Josefsson  <jas@extundo.com>
29144
29145         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29146         block.
29147
29148 2005-10-21  Simon Josefsson  <jas@extundo.com>
29149
29150         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29151         <bruno@clisp.org>.
29152
29153         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29154
29155         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29156         Bruno Haible <bruno@clisp.org>.
29157
29158         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29159         <bruno@clisp.org>.
29160
29161 2005-10-21  Simon Josefsson  <jas@extundo.com>
29162
29163         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29164
29165 2005-10-21  Simon Josefsson  <jas@extundo.com>
29166
29167         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29168
29169 2005-10-21  Simon Josefsson  <jas@extundo.com>
29170
29171         * lib/des.h, lib/des.c: New files.
29172
29173         * lib/gc-gnulib.c: Support DES.c
29174
29175 2005-10-21  Simon Josefsson  <jas@extundo.com>
29176
29177         * lib/arctwo.h, lib/arctwo.c: New files.
29178
29179         * lib/gc-gnulib.c: Support ARCTWO.
29180
29181 2005-10-21  Simon Josefsson  <jas@extundo.com>
29182
29183         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29184         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29185
29186 2005-10-21  Simon Josefsson  <jas@extundo.com>
29187
29188         * gnulib-tool (func_import, func_create_testdir): Define automake
29189         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29190         Makefile.am snippet),
29191         suggested by Bruno Haible <bruno@clisp.org>.
29192
29193         * modules/gc (Makefile.am): Use it.
29194
29195 2005-10-21  Bruno Haible  <bruno@clisp.org>
29196
29197         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29198         patch.
29199
29200 2005-10-19  Simon Josefsson  <jas@extundo.com>
29201
29202         * tests/test-gc-rijndael.c: New file.
29203
29204         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29205
29206 2005-10-19  Simon Josefsson  <jas@extundo.com>
29207
29208         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29209         interface too.
29210
29211 2005-10-19  Simon Josefsson  <jas@extundo.com>
29212
29213         * tests/test-gc-arcfour.c: New file.
29214
29215         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29216
29217 2005-10-19  Simon Josefsson  <jas@extundo.com>
29218
29219         * modules/gc-md4, modules/gc-md4-tests: New file.
29220
29221         * tests/test-gc-md4.c: New file.
29222
29223 2005-10-19  Simon Josefsson  <jas@extundo.com>
29224
29225         * m4/gc-md4.m4: New file.
29226
29227 2005-10-19  Simon Josefsson  <jas@extundo.com>
29228
29229         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29230         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29231         <kasal@ucw.cz>.
29232
29233 2005-10-19  Simon Josefsson  <jas@extundo.com>
29234
29235         * m4/gc-arcfour.m4: New file.
29236
29237         * m4/gc-rijndael.m4: New file.
29238
29239 2005-10-19  Simon Josefsson  <jas@extundo.com>
29240
29241         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29242
29243 2005-10-19  Simon Josefsson  <jas@extundo.com>
29244
29245         * lib/gc-gnulib.c: Support ARCFOUR.
29246
29247 2005-10-19  Simon Josefsson  <jas@extundo.com>
29248
29249         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29250         support.
29251
29252         * lib/gc.h: Add ECB enum type.
29253
29254         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29255
29256 2005-10-18  Simon Josefsson  <jas@extundo.com>
29257
29258         * tests/test-md5.c: New file.
29259
29260         * modules/md5-tests: New file.
29261
29262 2005-10-18  Simon Josefsson  <jas@extundo.com>
29263
29264         * tests/test-md4.c: New file.
29265
29266         * modules/md4, modules/md4-tests: New files.
29267
29268 2005-10-18  Simon Josefsson  <jas@extundo.com>
29269
29270         * m4/md4.m4: New file.
29271
29272 2005-10-18  Simon Josefsson  <jas@extundo.com>
29273
29274         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29275
29276 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29277
29278         * gnulib-tool (func_create_testdir): Omit the second check whether
29279         BUILT_SOURCES in nonempty.
29280
29281 2005-10-17  Simon Josefsson  <jas@extundo.com>
29282
29283         * tests/test-rijndael.c: New file.
29284
29285 2005-10-17  Simon Josefsson  <jas@extundo.com>
29286
29287         * modules/sha1: Depend on stdint instead of md5.
29288
29289         * modules/md5: Depend on stdint, remove uint32_t.
29290
29291 2005-10-17  Simon Josefsson  <jas@extundo.com>
29292
29293         * modules/gc-sha1-tests: New file.
29294
29295         * tests/test-gc-sha1.c: New file.
29296
29297 2005-10-17  Simon Josefsson  <jas@extundo.com>
29298
29299         * m4/md5.m4: Remove call to uint32_t.m4.
29300
29301 2005-10-17  Simon Josefsson  <jas@extundo.com>
29302
29303         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29304
29305         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29306         md5.h.
29307
29308         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29309
29310         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29311
29312 2005-10-17  Simon Josefsson  <jas@extundo.com>
29313
29314         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29315
29316 2005-10-17  Simon Josefsson  <jas@extundo.com>
29317
29318         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29319
29320 2005-10-17  Simon Josefsson  <jas@extundo.com>
29321
29322         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29323
29324         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29325
29326 2005-10-17  Bruno Haible  <bruno@clisp.org>
29327
29328         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29329         that it can also be used in a test.
29330
29331 2005-10-16  Bruno Haible  <bruno@clisp.org>
29332
29333         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29334         TESTS_ENVIRONMENT, so that individual tests can augment it.
29335
29336         * gnulib-tool (func_create_testdir): Use an intermediate target for
29337         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29338         macros, like $(ALLOCA_H), which cannot be passed through the command
29339         line.
29340
29341 2005-10-15  Simon Josefsson  <jas@extundo.com>
29342
29343         * modules/rijndael-tests: New file.
29344
29345         * modules/rijndael: New file.
29346
29347 2005-10-15  Simon Josefsson  <jas@extundo.com>
29348
29349         * m4/rijndael.m4: New file.
29350
29351 2005-10-15  Simon Josefsson  <jas@extundo.com>
29352
29353         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29354
29355         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29356
29357 2005-10-14  Simon Josefsson  <jas@extundo.com>
29358
29359         * tests/test-arcfour.c: New file.
29360
29361         * modules/arcfour, modules/arcfour-tests: New files.
29362
29363 2005-10-14  Simon Josefsson  <jas@extundo.com>
29364
29365         * m4/arcfour.m4: New file.
29366
29367 2005-10-14  Simon Josefsson  <jas@extundo.com>
29368
29369         * lib/arcfour.h, lib/arcfour.c: New files.
29370
29371 2005-10-14  Roland McGrath  <roland@redhat.com>
29372
29373         Import from libc.  [BZ #1331]
29374         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29375         macro argument.
29376         Reported by Matej Vela <vela@debian.org>.
29377
29378 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29379
29380         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29381         include <wchar.h>; no longer needed.
29382
29383 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29384
29385         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29386
29387 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29388         and  Ulrich Drepper  <drepper@redhat.com>
29389
29390         Import from libc.
29391         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29392         instead of inline stream orientation test and two separate
29393         function calls.  Pay no attention to USE_IN_LIBIO.
29394
29395 2005-10-13  Simon Josefsson  <jas@extundo.com>
29396
29397         * modules/gc-hmac-md5-tests: New file.
29398
29399         * tests/test-gc-hmac-sha1.c: New file.
29400
29401         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29402
29403         * modules/gc-hmac-md5-tests: New file.
29404
29405         * tests/test-gc-md5.c: New file.
29406
29407         * modules/gc-md5-tests: New file.
29408
29409 2005-10-13  Simon Josefsson  <jas@extundo.com>
29410
29411         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29412         Move memory allocation outside of loop.
29413
29414 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29415
29416         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29417         intermediate directory is in a read-only file system.  Problem
29418         reported by Eric Blake.
29419
29420 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29421
29422         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29423
29424 2005-10-12  Simon Josefsson  <jas@extundo.com>
29425
29426         * tests/test-hmac-sha1.c: New file.
29427
29428         * modules/hmac-sha1-tests: New file.
29429
29430         * modules/hmac-sha1: New file.
29431
29432 2005-10-12  Simon Josefsson  <jas@extundo.com>
29433
29434         * modules/gc-sha1: New file.
29435
29436 2005-10-12  Simon Josefsson  <jas@extundo.com>
29437
29438         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29439
29440         * tests/test-gc-pbkdf2-sha1.c: New file.
29441
29442 2005-10-12  Simon Josefsson  <jas@extundo.com>
29443
29444         * modules/gc-md5, modules/gc-hmac-md5: New files.
29445
29446         * modules/gc (Files): Remove md5, memxor and hmac files.
29447
29448 2005-10-12  Simon Josefsson  <jas@extundo.com>
29449
29450         * m4/gc-pbkdf2-sha1.m4: New file.
29451
29452         * m4/gc-hmac-sha1.m4: New file.
29453
29454         * m4/gc-sha1: New file.
29455
29456         * m4/hmac-sha1.m4: New file.
29457
29458 2005-10-12  Simon Josefsson  <jas@extundo.com>
29459
29460         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29461
29462         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29463
29464 2005-10-12  Simon Josefsson  <jas@extundo.com>
29465
29466         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29467         suggested by Bruno Haible <bruno@clisp.org>.
29468
29469 2005-10-12  Simon Josefsson  <jas@extundo.com>
29470
29471         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29472
29473 2005-10-12  Simon Josefsson  <jas@extundo.com>
29474
29475         * lib/gc-pbkdf2-sha1.c: New file.
29476
29477         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29478
29479 2005-10-12  Simon Josefsson  <jas@extundo.com>
29480
29481         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29482
29483         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29484
29485 2005-10-12  Simon Josefsson  <jas@extundo.com>
29486
29487         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29488         GC_USE_HMAC_MD5, respectively.
29489
29490         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29491         (gc_md5): Fix typo.
29492
29493         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29494
29495         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29496
29497         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29498
29499 2005-10-12  Bruno Haible  <bruno@clisp.org>
29500
29501         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29502         Reported by Stepan Kasal <kasal@ucw.cz>.
29503
29504 2005-10-11  Simon Josefsson  <jas@extundo.com>
29505
29506         * tests/test-crc.c: New file.
29507
29508         * modules/crc, modules/crc-tests: New files.
29509
29510 2005-10-11  Simon Josefsson  <jas@extundo.com>
29511
29512         * m4/crc.m4: New file.
29513
29514 2005-10-11  Simon Josefsson  <jas@extundo.com>
29515
29516         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29517
29518         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29519
29520         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29521
29522 2005-10-11  Simon Josefsson  <jas@extundo.com>
29523
29524         * lib/crc.h, lib/crc.c: New files.
29525
29526         * lib/gc.h (gc_hash_buffer): Add doc.
29527
29528 2005-10-11  Bruno Haible  <bruno@clisp.org>
29529
29530         * modules/c-strcasestr: New file.
29531         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29532
29533 2005-10-11  Bruno Haible  <bruno@clisp.org>
29534
29535         * modules/c-strcase: New file.
29536         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29537
29538 2005-10-11  Bruno Haible  <bruno@clisp.org>
29539
29540         * lib/strcasecmp.c: Include limits.h.
29541         (strcasecmp): Avoid integer overflow on exotic platforms.
29542         * lib/strncasecmp.c: Include limits.h.
29543         (strncasecmp): Avoid integer overflow on exotic platforms.
29544         Reported by Paul Eggert.
29545
29546 2005-10-11  Bruno Haible  <bruno@clisp.org>
29547
29548         * lib/c-strcasestr.h: New file, from GNU gettext.
29549         * lib/c-strcasestr.c: New file, from GNU gettext.
29550
29551 2005-10-11  Bruno Haible  <bruno@clisp.org>
29552
29553         * lib/c-strcase.h: New file, from GNU gettext.
29554         * lib/c-strcasecmp.c: New file, from GNU gettext.
29555         * lib/c-strncasecmp.c: New file, from GNU gettext.
29556
29557 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29558
29559         * modules/mempcpy (License): GPL -> LGPL.
29560         * modules/strchrnul (License): Likewise.
29561         * modules/sysexits (License): Likewise.
29562
29563 2005-10-08  Simon Josefsson  <jas@extundo.com>
29564
29565         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29566
29567 2005-10-07  Simon Josefsson  <jas@extundo.com>
29568
29569         * m4/memxor.m4: Remove gl_C_RESTRICT call.
29570
29571 2005-10-06  Simon Josefsson  <jas@extundo.com>
29572
29573         * tests/test-hmac-md5.c: New file.
29574
29575         * modules/hmac-md5-tests: New file.
29576
29577         * modules/hmac-md5: New file.
29578
29579 2005-10-06  Simon Josefsson  <jas@extundo.com>
29580
29581         * m4/hmac-md5.m4: New file.
29582
29583         * m4/memxor.m4: Require gl_C_RESTRICT.
29584
29585 2005-10-06  Simon Josefsson  <jas@extundo.com>
29586
29587         * lib/memxor.c (memxor): Avoid casts and warnings.
29588
29589 2005-10-06  Simon Josefsson  <jas@extundo.com>
29590
29591         * lib/hmac-md5.c: New file.
29592
29593         * lib/hmac.h: New file.
29594
29595 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29596
29597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29598         promotes to int, not unsigned int, to catch the AIX 5.3
29599         compiler bug.
29600
29601 2005-10-05  Simon Josefsson  <jas@extundo.com>
29602
29603         * modules/memxor: New file.
29604
29605         * modules/iconv (Files): Move config.rpath to havelib, it is used
29606         there.
29607
29608         * modules/havelib (Files): Add config.rpath.
29609
29610 2005-10-05  Simon Josefsson  <jas@extundo.com>
29611
29612         * m4/memxor.m4: New file.
29613
29614 2005-10-05  Simon Josefsson  <jas@extundo.com>
29615
29616         * lib/memxor.c (memxor): Fix compiler error.
29617
29618         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29619         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29620
29621         * lib/memxor.h, lib/memxor.c: New files.
29622
29623         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29624         we assume all systems have it, suggested by Jim Meyering
29625         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
29626         any systems lack sys/socket.h; mingw32 is known to lack it, but we
29627         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
29628         same reasons.
29629
29630 2005-10-05  Simon Josefsson  <jas@extundo.com>
29631
29632         * config/srclist.txt: Add glibc bug 1423 for md5.h.
29633
29634 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29635
29636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29637         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29638         needed, since the source code now assumes these .h files.
29639
29640 2005-10-05  Derek Price  <derek@ximbiot.com>
29641
29642         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29643
29644 2005-10-05  Bruno Haible  <bruno@clisp.org>
29645
29646         * modules/stdint (License): Change to LGPL.
29647
29648 2005-10-04  Simon Josefsson  <jas@extundo.com>
29649
29650         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29651         D. Baushke" <mdb@gnu.org>.
29652
29653 2005-10-04  Bruno Haible  <bruno@clisp.org>
29654
29655         * lib/verify.h (verify_true): Provide alternative definition for C++.
29656
29657 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29658
29659         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
29660         (SSIZE_MAX): New macro, if not already defined.
29661         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29662         than 2 GiB.
29663
29664 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29665
29666         Sync from coreutils.
29667         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29668         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29669         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
29670         ULLONG_MAX doesn't work with 2.7.2.1.
29671
29672 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29673
29674         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29675         From Ben Pfaff.
29676
29677         * modules/exclude (Depends-on): Depend on verify.
29678         * modules/strtoimax (Depends-on): Likewise.
29679         * modules/utimecmp (Depends-on): Likewise.
29680
29681 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29682
29683         * lib/exclude.c: Include verify.h.
29684         (verify): Remove.  All callers changed to use verify.h's version.
29685         * lib/strtoimax.c: Likewise.
29686         * lib/utimecmp.c: Likewis.e
29687
29688         Sync from coreutils.
29689         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
29690         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
29691         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
29692         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
29693         bother returning ENOSYS if settimeofday or stime fails; just let
29694         them return whatever errno they want to return.
29695         * lib/utimens.c: Include unistd.h, for dup2.
29696         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
29697         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
29698
29699 2005-10-02  Jim Meyering  <jim@meyering.net>
29700
29701         Sync from coreutils.
29702         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
29703         from glibc-2.2.5 that fails for read-only files.
29704
29705 2005-10-02  Jim Meyering  <jim@meyering.net>
29706
29707         Sync from coreutils.
29708         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
29709         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
29710         `#if HAVE_CONFIG_H'.
29711         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
29712         Remove AT_FDCWD test.
29713         Do not consume the fd unless successful.
29714         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
29715         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
29716         block, so that we don't even try to compile it if settimeofday is
29717         available.  This works around a compilation failure on OSF1 V5.1,
29718         due to stime requiring a `long int*' while tv_sec is `int'.
29719
29720 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
29721
29722         Sync from coreutils.
29723         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
29724         against `yes', rather than just testing for nonempty.
29725
29726 2005-10-01  Simon Josefsson  <jas@extundo.com>
29727
29728         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
29729         and Darwin.
29730
29731         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
29732         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
29733         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
29734         freeaddrinfo and gai_strerror are declared by the POSIX headers.
29735         Check if struct addrinfo is declared.
29736
29737 2005-10-01  Simon Josefsson  <jas@extundo.com>
29738
29739         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
29740         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
29741         AI_* and EAI_* definitions.  Protect function declarations.
29742
29743 2005-10-01  Jim Meyering  <jim@meyering.net>
29744
29745         Sync from coreutils.
29746
29747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
29748         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
29749         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
29750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29751         in the inet and nsl libraries.  Required on Solaris 5.7.
29752
29753 2005-10-01  Jim Meyering  <jim@meyering.net>
29754
29755         Sync from coreutils.
29756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29757         in the inet and nsl libraries.  Required on Solaris 5.7.
29758
29759 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
29760
29761         * lib/getdelim.c (getdelim): Remove unused variables.
29762
29763 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
29764
29765         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
29766         so that the code works even with ancient cpp.  Portability problem
29767         with GCC 2.7.2.1 reported by Thomas M.Ott.
29768
29769 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
29770
29771         * modules/regex (Depends-on): Add strcase.
29772
29773         * modules/gethostname (Licence): Change from GPL to LGPL, since
29774         gethostname.c is a trivial implementation of a standard library
29775         function.
29776         * modules/poll (License): Change from GPL to LGPL, since it's
29777         derived from LGPL code.
29778
29779 2005-09-27  Jim Meyering  <jim@meyering.net>
29780
29781         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
29782         HAVE_CONFIG_H.
29783
29784         * lib/intprops.h (signed_type_or_expr__): Define.
29785         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
29786         for unsigned types.
29787
29788 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29789
29790         * lib/verify.h (verify_expr): Remove, replacing with:
29791         (verify_true): New macro that returns true instead of void.
29792         (verify_type__): Remove.
29793         (verify): Use verify_true rather than verify_type__.
29794
29795 2005-09-26  Bruno Haible  <bruno@clisp.org>
29796
29797         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
29798         is necessary.
29799         (lib_SOURCES): Remove mbchar.c.
29800         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
29801         (Files): Add m4/mbrtowc.m4.
29802         * modules/mbiter: Likewise.
29803         * modules/mbuiter: Likewise.
29804
29805 2005-09-26  Bruno Haible  <bruno@clisp.org>
29806
29807         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
29808         compile mbchar.c if they are not both present.
29809         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
29810         * m4/mbiter.m4 (gl_MBITER): Likewise.
29811         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
29812         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
29813         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
29814
29815 2005-09-25  Jim Meyering  <jim@meyering.net>
29816
29817         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
29818         also uses socklen_t.
29819
29820 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29821
29822         * lib/utimens.c (ENOSYS): Define if not already defined.
29823         (futimens): Support having a null PATH if the file descriptor
29824         is nonnegative.
29825
29826         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
29827         Remove.
29828         (__attribute): Define to empty unless GCC 3.1 or later.
29829         This works around a core dump on OpenBSD 3.4, which has GCC
29830         2.95.3, which dumps core when given __attribute__(()).  It also
29831         simplifies other tests, since we really don't want to bother with
29832         worrying about which ancient version of GCC supported what.
29833         Original problem reported by Yoann Vandoorselaere, with part of
29834         the fix suggested by Derek Price.
29835
29836 2005-09-24  Jim Meyering  <jim@meyering.net>
29837
29838         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
29839         so we can once again use a positive bitfield width of 1 -- now we
29840         don't have to explain why we were using a bitfield width of 2.
29841
29842 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
29845         and similarly for the other external symbols.  Problem reported
29846         by James Gallager.
29847
29848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
29849         bug reported by Jim Meyering.
29850
29851         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
29852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
29853         not needed, since socklen is a prerequisite module.
29854
29855 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29856
29857         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
29858         Problem reported by Eric Blake.
29859         (getaddrinfo): Initialize se so that it's not garbage.
29860         Redo internal storage allocation so that it doesn't make unportable
29861         assumptions about alignment.
29862         Fix a memory leak.
29863
29864         * lib/utimens.c (futimens): Use futimesat if available.
29865         Prefer it to futimes since it doesn't have the futimes bug.
29866
29867         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
29868         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
29869         Instead, declare a function that returns a pointer to an array,
29870         and use verify_type__ to declare the size of the array.
29871         Problem and germ of a solution reported by Bruno Haible.
29872         (verify_type__): Use 2, not 1, for bitfield size, to avoid
29873         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
29874
29875 2005-09-23  Jim Meyering  <jim@meyering.net>
29876
29877         Sync from coreutils.
29878         Correct build failure (socklen_t not defined) on at least
29879         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
29880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
29881
29882 2005-09-23  Jim Meyering  <jim@meyering.net>
29883
29884         * modules/getaddrinfo (Depends-on): Add socklen.
29885
29886 2005-09-23  Bruno Haible  <bruno@clisp.org>
29887
29888         * tests/test-verify.c: New file.
29889
29890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29891
29892         Sync from coreutils.
29893
29894         * modules/argmatch (Depends-on): Add verify.
29895         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
29896         unistd-safer.
29897         * modules/save-cwd (Depends-on): Likewise.
29898
29899         * modules/openat (Files): Add lib/openat-die.c.
29900         (Depends-on): Remove error, exitfail.
29901         Add dirname.
29902
29903         * modules/verify: New file.
29904         * MODULES.html.sh (Diagnostics <assert.h>): New section,
29905         with "verify" module.
29906
29907 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29908
29909         Sync from coreutils.
29910
29911         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
29912         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
29913         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
29914         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
29915         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
29916         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29917         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29918         Don't bother checking for string.h, stdlib.h, unistd.h.
29919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29920         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29921         module's job.
29922         * m4/jm-macros.m4 (gl_MACROS): Likewise.
29923         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29924
29925         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
29926         (gl_GETDATE): Use it.
29927
29928         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
29929
29930 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29931
29932         Sync from coreutils.
29933
29934         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
29935         stat-time.h.
29936         * lib/argmatch.h: Include verify.h
29937         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
29938         (ARGMATCH_ASSERT): Remove; unused.
29939         * lib/canonicalize.c: Assume STDC_HEADERS.
29940         * lib/exclude.c: Include "strcase.h".
29941         * lib/regex_internal.h [!defined _LIBC]: Likewise.
29942         * lib/getusershell.c: Include stdio--.h rather than stdio.h
29943         and stdio-safer.h.
29944         (getusershell): Call fopen, not fopen_safer.
29945         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29946         Do not include unistd-safer.h.
29947         (save_cwd): Don't call fd_safer; no longer needed
29948         now that we include fcntl--.h.
29949
29950         * lib/getdate.y (relative_time): New type.
29951         (RELATIVE_TIME_0): New constant.
29952         (parser_control): Use relative_time instead of doing it ourselves.
29953         (%union): Add new relative_time rel member.
29954         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29955         Now typeless.
29956         (relunit, relunit_snumber): Now of type rel.
29957         (zone, rel, relunit, get_date): Adjust to above changes.
29958
29959         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29960         Do not include unistd-safer.h.
29961         (getloadavg): Don't call fd_safer; no longer needed
29962         now that we include fcntl--.h.
29963
29964         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29965         (make_dir_parents): Treat ENOSYS like EEXIST.
29966
29967         Improve quality of diagnostics on restore_cwd failure.
29968         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
29969         (make_dir_parents): Last arg is now int * (for errno), not bool *.
29970         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29971         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29972         each time through the loop.  Do not diagnose restore_cwd failure;
29973         that is the caller's job (and perhaps the caller does not care).
29974
29975         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29976         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29977         If the file already exists but is not a directory, don't bother
29978         to try to make its parents.
29979         Close potential file descriptor leak if we can't chdir("/") (!).
29980         Don't always return true if chdir($PWD) fails; return true only
29981         if the requested action was done successfully (except for the
29982         chdir($PWD)).
29983         Don't log final directory unless we actually made it.
29984         Refactor to avoid duplicate code to fix up permissions.
29985         Don't attempt to fix up parent permissions if chdir($PWD) fails.
29986
29987         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29988         to make it a bit faster and (I hope) clearer.
29989         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29990         Fix bug in formats like %2N.
29991
29992         * lib/verify.h: New file.
29993
29994 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         Sync from coreutils.
29997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29998
29999 2005-09-22  Jim Meyering  <jim@meyering.net>
30000
30001         Sync from coreutils.
30002
30003         * m4/lstat.m4 (gl_FUNC_LSTAT):
30004         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30005         Remove obsolete comment.
30006         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30007         * m4/xstrtod.m4: Likewise.
30008
30009         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30010
30011 2005-09-22  Jim Meyering  <jim@meyering.net>
30012
30013         Sync from coreutils.
30014
30015         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30016
30017         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30018         the .tm_year member, since otherwise gcc-4.0 would now warn about
30019         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30020
30021         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30022         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30023
30024         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30025         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30026         when run in a time zone for which daylight savings time is in effect
30027         for the starting date.
30028
30029         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30030         stop us from restricting permissions of just-created absolute-named
30031         directories.
30032         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30033         to restore initial working directory.
30034         * lib/mkdir-p.c (make_dir_parents): New parameter:
30035         different_working_dir, to tell caller if/when we change the working
30036         directory and are unable to return to the initial one.
30037         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30038         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30039         `return false'.  This fixes a bug introduced on 2004-07-30.
30040
30041         * lib/openat.c (fdopendir): Be sure to close the supplied
30042         file descriptor before returning.  This makes our replacement
30043         implementation a little closer to Solaris's, where fdopendir
30044         ties the file descriptor to the returned DIR* pointer.
30045         * lib/openat.c (unlinkat): New function.
30046         * lib/openat.h (unlinkat): Add prototype.
30047         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30048         (openat_restore_fail): Rename from openat_restore_die.
30049         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30050
30051         Provide an alternative to exiting immediately upon save_cwd or
30052         restore_cwd failure.  Now, an application can arrange e.g.,
30053         to perform a longjump in that case.
30054         * lib/openat.c: Include dirname.h.
30055         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30056         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30057         and openat_restore_die rather than calling error directly.
30058         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30059
30060         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30061         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30062         define.
30063
30064         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30065         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30066                             int utc, int nanoseconds);
30067         Background:
30068         date should not have to allocate a megabyte of virtual memory to
30069         handle a format argument like +%1048575T.  When implemented with
30070         strftime, it must allocate such a buffer, use strftime to fill it
30071         in, print it, then free it.
30072         With fprintftime, it simply prints everything and exits.
30073         With no need for memory allocation, that's one fewer way to fail.
30074         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30075         optional field width, not before, so we accept %9:z, not %:9z.
30076         (my_strftime): Be sure to use L_('x') for literals.
30077
30078         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30079         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30080         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30081         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30082         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30083         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30084         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30085         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30086         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30087         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30088         * lib/xgethostname.c, lib/xreadlink.c:
30089         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30090
30091         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30092         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30093         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30094         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30095         and don't include <sys/file.h>).
30096
30097 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30098
30099         Sync from coreutils.
30100
30101         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30102         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30103         [!LDAV_DONE]: Avoid unused variable warning.
30104
30105 2005-09-21  Bruno Haible  <bruno@clisp.org>
30106
30107         * lib/unicodeio.h (unicode_to_mb): New declaration.
30108
30109 2005-09-20  Derek Price  <derek@ximbiot.com>
30110
30111         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30112         getaddrinfo.h.
30113
30114 2005-09-20  Bruno Haible  <bruno@clisp.org>
30115
30116         * gnulib-tool: Remove trailing slashes from the values specified for
30117         --source-base, --m4-base, --tests-base, --aux-dir.
30118         Suggested by Simon Josefsson <jas@extundo.com>.
30119
30120 2005-09-20  Bruno Haible  <bruno@clisp.org>
30121
30122         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30123         func_modules_to_filelist, func_import, func_create_testdir): Make all
30124         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30125         change when gnulib-tool is invoked in a different locale.
30126
30127 2005-09-19  Simon Josefsson  <jas@extundo.com>
30128
30129         * m4/socklen.m4: Fix typo.
30130
30131 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30132
30133         Use a consistent style for including <config.h>.
30134         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30135         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30136         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30137         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30138         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30139         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30140         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30141         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30142         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30143         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30144         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30145         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30146         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30147         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30148         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30149         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30150         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30151         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30152         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30153         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30154         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30155         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30156         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30157         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30158         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30159         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30160         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30161         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30162         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30163         lib/xstrtoumax.c, lib/yesno.c:
30164         Standardize inclusion of config.h.
30165         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30166         lib/inttostr.h:  Removed inclusion of config.h from header files.
30167         * lib/inttostr.c:  Adjusted in-tree users.
30168         * lib/timespec.h: Remove superfluous warning to include config.h.
30169         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30170         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30171         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30172         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30173         config.h with HAVE_CONFIG_H.
30174
30175 2005-09-19  Jim Meyering  <jim@meyering.net>
30176
30177         * modules/pathmax (License): Change to LGPL.
30178
30179 2005-09-19  Derek Price  <derek@ximbiot.com>
30180
30181         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30182
30183 2005-09-19  Bruno Haible  <bruno@clisp.org>
30184
30185         * gnulib-tool (import): Provide default for --tests-base.
30186
30187 2005-09-19  Bruno Haible  <bruno@clisp.org>
30188
30189         * doc/quote.texi: New file, extracted from gnulib.texi.
30190         * doc/ctime.texi: New file, extracted from gnulib.texi.
30191         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30192         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30193         * doc/gnulib.texi: Include them.
30194
30195 2005-09-18  Bruno Haible  <bruno@clisp.org>
30196
30197         Portability fix.
30198         * gnulib-tool (func_readlink): New function.
30199         (func_ln_if_changed): Use it.
30200
30201 2005-09-18  Bruno Haible  <bruno@clisp.org>
30202
30203         * gnulib-tool: Support --with-tests also with --import.
30204         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30205         (func_import): Use variables $testsbase and $inctests. Emit a
30206         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30207         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30208         SUBDIRS += $testsdir.
30209         (func_create_testdir): Update.
30210
30211 2005-09-18  Bruno Haible  <bruno@clisp.org>
30212
30213         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30214         instead of $dry_run.
30215         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30216         (func_ln_if_changed): Don't handle dry-run here.
30217         (func_import): In dry-run mode, detect more precisely which actions
30218         would be performed, and don't use "...ing" verbs.
30219
30220 2005-09-18  Bruno Haible  <bruno@clisp.org>
30221
30222         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30223         (func_import): Use join on two temporary files instead of three nested
30224         loops, in order to determine which files are new or old.
30225
30226 2005-09-18  Bruno Haible  <bruno@clisp.org>
30227
30228         * gnulib-tool (func_import): Comment out code that spits out the
30229         new files with --dry-run.
30230
30231 2005-09-18  Bruno Haible  <bruno@clisp.org>
30232
30233         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30234
30235 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30236
30237         * lib/stat-time.h: New file.
30238         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30239         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30240         in a different way.
30241         (timespec_cmp): New function.
30242         * lib/utimecmp.c: Include stat-time.h.
30243         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30244         members exist, not on the obsolescent ST_MTIM_NSEC.
30245         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30246
30247 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30248
30249         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30250
30251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30252
30253         * MODULES.html.sh (File system functions): Add stat-time.
30254         * modules/stat-time: New file.
30255         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30256         is now done in a different way, by the stat-time module.
30257         * modules/utimecmp (Depends-on): Add stat-time.
30258
30259 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30260
30261         * m4/st_mtim.m4: Remove.  Superseded by...
30262         * m4/stat-time.m4: New file.
30263         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30264         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30265
30266 2005-09-15  Derek Price  <derek@ximbiot.com>
30267
30268         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30269
30270 2005-09-15  Derek Price  <derek@ximbiot.com>
30271
30272         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30273         * lib/regex_internal.c: Ditto, using this...
30274         (__GNUC_PREREQ): ...new macro.
30275         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30276         using...
30277         (__GNUC_PREREQ): ...this new macro.
30278
30279         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30280
30281 2005-09-15  Derek Price  <derek@ximbiot.com>
30282             Paul Eggert  <eggert@cs.ucla.edu>
30283
30284         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30285         changes, consolidating in...
30286         * lib/regex_internal.h: ...this file.
30287
30288 2005-09-13  Jim Meyering  <jim@meyering.net>
30289
30290         * lib/canon-host.c: Filter through gnu indent and reword comments
30291         slightly.
30292         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30293
30294 2005-09-13  Derek Price  <derek@ximbiot.com>
30295
30296         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30297         failure.
30298         Reported by Jim Meyering  <jim@meyering.net>.
30299
30300 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30301
30302         * lib/base64.c: Typo.
30303         (base64_encode): Put b64str in initialized data section.
30304
30305 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30306
30307         Merge glibc and coreutils changes into gnulib, plus a few
30308         extra fixes.
30309         * lib/md5.c: Use #error rather than a string.
30310         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30311         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30312         (__attribute__): Define to empty for non recent-GCC.
30313         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30314         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30315         Renamed from their non-__ counterparts, with new macros replacing
30316         them if not _LIBC.  Add __THROW attribute.
30317         (rol): Remove.
30318         (struct md5_ctx): Align buffer if using GCC.
30319         * lib/sha1.h (struct sha1_ctx): Likewise.
30320         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30321         The old name was backwards.
30322         (NOTSWAP): Remove; not used.
30323         (rol): New macro, moved here from md5.h.
30324         (sha1_process_block): Remove a FIXME that doesn't make sense.
30325
30326 2005-09-12  Derek Price  <derek@ximbiot.com>
30327
30328         Return usable errors from canon-host.
30329         * lib/canon-host.h: New file.
30330         * lib/canon-host.c (canon_host): Wrap...
30331         (canon_host_r): ...this new function, which now relies exclusively on
30332         getaddrinfo.
30333         (ch_strerror): New function.
30334         (last_cherror): New global.
30335         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30336         interface.
30337         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30338         void *.
30339         (freeaddrinfo): Free ai->ai_canonname when set.
30340
30341 2005-09-12  Derek Price  <derek@ximbiot.com>
30342
30343         Make canon-host require getaddrinfo.
30344         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30345         AC_LIBSOURCE canon-host.h.  Call...
30346         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30347         gl_GETADDRINFO.
30348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30349
30350 2005-09-12  Derek Price  <derek@ximbiot.com>
30351
30352         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30353         LGPL.
30354         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30355
30356 2005-09-12  Derek Price  <derek@ximbiot.com>
30357
30358         * lib/gai_strerror.c: Include config.h when available.  Include
30359         getaddrinfo.h before other headers to test interface.
30360         Reported by Larry Jones <lawrence.jones@ugs.com>.
30361
30362 2005-09-12  Derek Price  <derek@ximbiot.com>
30363             Paul Eggert  <eggert@cs.ucla.edu>
30364
30365         * modules/glob (Files): Add glob-libc.h.
30366
30367 2005-09-12  Derek Price  <derek@ximbiot.com>
30368             Paul Eggert  <eggert@cs.ucla.edu>
30369
30370         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30371         glob_.h, glob-libc.h.
30372         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30373
30374 2005-09-12  Derek Price  <derek@ximbiot.com>
30375             Paul Eggert  <eggert@cs.ucla.edu>
30376
30377         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30378         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30379         protecting things that should be done only in gnulib contexts.
30380         * lib/glob_.h: New file, containing only the glob things needed for
30381         gnulib.
30382         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30383         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30384         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30385         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30386         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30387         and to respect the namespace rules better.
30388
30389 2005-09-08  Simon Josefsson  <jas@extundo.com>
30390
30391         * modules/socklen: New file.
30392
30393 2005-09-08  Simon Josefsson  <jas@extundo.com>
30394
30395         * m4/socklen.m4: New file.
30396
30397 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30398
30399         * modules/utimens (Files): Add m4/utimbuf.m4, since
30400         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30401         Reported by Sergey Poznyakoff.
30402
30403 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30404
30405         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30406         definitions, since that's the preferred style in glibc.
30407         Fix a minor spacing issue, and update copyright notice to match
30408         glibc's.
30409
30410 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30411
30412         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30413
30414 2005-09-06  Simon Josefsson  <jas@extundo.com>
30415
30416         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30417         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30418
30419 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30420
30421         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30422         warning.
30423
30424 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30425
30426         * config/srclist.txt: Add glibc bug 1302.
30427
30428 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30429
30430         Change bitset word type from unsigned int to unsigned long int,
30431         as this has better performance on typical 64-bit hosts.
30432         Port bitset code to hosts with unusual word sizes.
30433         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30434         (build_collating_symbol):
30435         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30436         argument is a bitset.  This is merely a style issue, but it makes
30437         it clearer that an entire array is expected.
30438         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30439         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30440         Port to the case where bitset_word is not the same as unsigned int.
30441         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30442         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30443         Likewise.
30444         * lib/regexec.c (check_dst_limits_calc_pos_1,
30445         check_subexp_matching_top):
30446         (build_trtable, group_nodes_into_DFAstates):
30447         Likewise.
30448         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30449         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30450         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30451         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30452         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30453         * lib/regcomp.c (optimize_subexps, lower_subexp):
30454         Work even if bitset_word has holes in its bitwise representation.
30455         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30456         * lib/regexec.c (check_dst_limits_calc_pos_1,
30457         check_subexp_matching_top):
30458         Likewise.
30459         * lib/regex_internal.c (re_string_reconstruct):
30460         Don't assume UCHAR_MAX == 255.
30461         * lib/regex_internal.h (bitset_set_all): Likewise.
30462         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30463         All uses changed.
30464         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30465         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30466         All uses changed.
30467         (BITSET_WORD_MAX): New macro.
30468         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30469         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30470         (bitset_empty, bitset_copy):
30471         Prefer sizeof (bitset) to multiplying it out ourselves.
30472         (bitset_not_merge): Remove; unused.
30473         (bitset_contain): Return bool, not unsigned int with one bit on.
30474         All callers changed.
30475         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30476         alignment than re_node_set; do this by defining a new internal
30477         type struct dests_alloc and using it to allocate memory.
30478
30479 2005-09-05  Bruno Haible  <bruno@clisp.org>
30480
30481         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30482         links.
30483
30484 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30485
30486         * modules/size_max (Makefile.am): Add size_max.h
30487
30488 2005-09-04  Derek Price  <derek@ximbiot.com>
30489
30490         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30491
30492 2005-09-03  Simon Josefsson  <jas@extundo.com>
30493
30494         * gnulib-tool: Fix typo.
30495
30496 2005-09-03  Simon Josefsson  <jas@extundo.com>
30497
30498         * config/srclist.txt: Add glibc bug 1293.
30499
30500 2005-09-03  Derek Price  <derek@ximbiot.com>
30501
30502         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30503         From Larry Jones <lawrence.jones@ugs.com>.
30504
30505 2005-09-02  Simon Josefsson  <jas@extundo.com>
30506
30507         * modules/socklen: New file.
30508
30509 2005-09-02  Simon Josefsson  <jas@extundo.com>
30510
30511         * modules/havelib: New module.
30512
30513         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30514         Use havelib.
30515
30516 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         Check for arithmetic overflow when calculating sizes, to prevent
30519         some buffer-overflow issues.  These patches are conservative, in the
30520         sense that when I couldn't determine whether an overflow was possible,
30521         I inserted a run-time check.
30522         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30523         macros.
30524         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30525         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30526         (re_xnrealloc, re_x2nrealloc): New inline functions.
30527         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30528         parse_bracket_exp):
30529         (build_equiv_class, build_charclass): Check for arithmetic overflow
30530         in size expression calculations.
30531         * lib/regex_internal.c (re_string_realloc_buffers):
30532         (build_wcs_upper_buffer, re_node_set_add_intersect):
30533         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30534         (re_dfa_add_node, register_state): Likewise.
30535         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30536         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30537         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30538         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30539
30540 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30541
30542         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30543         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30544
30545 2005-09-02  Bruno Haible  <bruno@clisp.org>
30546
30547         Support for lib vs. lib64 distinction on biarch platforms.
30548         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30549         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30551
30552 2005-09-02  Bruno Haible  <bruno@clisp.org>
30553
30554         * gnulib-tool (import): In the other first-use case, provide defaults
30555         as well.
30556
30557 2005-09-02  Bruno Haible  <bruno@clisp.org>
30558
30559         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30560         patches not yet found in the latest gettext release.
30561
30562 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30563
30564         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30565         to avoid a collision with bits/local_lim.h in glibc.
30566         All uses changed.  Problem reported by Dmitry V. Levin in
30567         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30568
30569         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30570         bugs in int versus size_t comparisons.
30571         (re_string_context_at): Fix bug where the code assumed that
30572         Idx is signed.
30573
30574         Use bool where appropriate.
30575         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30576         All callers changed.
30577         (calc_eclosure_iter): Likewise, for ROOT arg.
30578         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30579         (build_charclass_op): Likewise, for NON_MATCH arg.
30580         * lib/regex_internal.c (re_string_allocate, re_string_construct):
30581         (re_string_construct_common): Likewise, for ICASE arg.
30582         * lib/regexec.c (re_search_2_stub, re_search_stub):
30583         Likewise, for RET_LEN arg.
30584         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30585         (set_regs): Likewise, for FL_BACKTRACK arg.
30586         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30587         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30588         (calc_eclosure_iter, parse_bracket_exp):
30589         Use bool for internal variables that are booleans.
30590         * lib/regexec.c (re_search_internal, check_matching,
30591         proceed_next_node):
30592         (set_regs, build_sifted_states, sift_states_bkref):
30593         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30594         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30595         (find_collation_sequence_value):
30596         Likewise.
30597         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30598         (re_node_set_compare):
30599         Return bool, not int. All callers changed.
30600         * lib/regexec.c (check_halt_node_context, check_dst_limits):
30601         (build_trtable, check_node_accept): Likewise.
30602         * lib/regex_internal.h: Include stdbool.h.
30603
30604         Fix bugs uncovered when converting to bool.
30605         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30606         failure instead of charging ahead blindly.
30607         * lib/regex_internal.c (register_state): Likewise.
30608         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30609         for freeing internal storage.
30610         (group_nodes_into_DFA_states): Use unsigned int, not int, for
30611         bitset pieces used as boolean, to avoid undefined behavior
30612         on hosts that do int overflow checking.
30613
30614 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30615
30616         * config/srclist.txt: Add glibc bugs 1285-1287.
30617
30618 2005-09-01  Jim Meyering  <jim@meyering.net>
30619
30620         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30621         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30622         Require gl_STAT_MACROS, too.
30623
30624 2005-09-01  Bruno Haible  <bruno@clisp.org>
30625
30626         * gnulib-tool (import): In the first-use case, provide defaults.
30627
30628 2005-09-01  Bruno Haible  <bruno@clisp.org>
30629
30630         * gnulib-tool (func_import): Remove the .tmp files.
30631
30632 2005-09-01  Bruno Haible  <bruno@clisp.org>
30633
30634         * gnulib-tool (func_import): Fix handling of symbolic links.
30635
30636 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30637
30638         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30639         old glibc regex code mishandles strings longer than 2**31 bytes.
30640         This patch fixes this when the regex code is used in gnulib
30641         (i.e., outside glibc).
30642
30643         This patch should not affect the use of the regex code inside
30644         glibc.  No doubt this problem also needs to be handled for glibc
30645         as well, but the result will be an incompatible change to the
30646         glibc ABI, and the old ABI will have to be supported too.  That
30647         can be the the subject for another patch.
30648
30649         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30650         governing whether the rest of this patch is active.  By default,
30651         the macro is disabled and the patch has no effect.
30652         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30653         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30654         (struct re_pattern_buffer, re_search, re_search_2, re_match):
30655         (re_match_2, re_set_registers): Use the new types.
30656         * lib/regex_internal.h (Idx, re_hashval_t): New types.
30657         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30658         New macros.
30659         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30660         (re_string_context_at, bin_tree_t, re_dfastate_t):
30661         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30662         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30663         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30664         (re_string_char_size_at, re_string_wchar_at):
30665         (re_string_elem_size_at):
30666         Use the new types and macros to port to 64-bit hosts.
30667         Use unsigned types for internal values, so that the code
30668         mostly works even for arrays larger than SSIZE_MAX.
30669         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30670         (search_duplicated_node, calc_eclosure_iter, fetch_number):
30671         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30672         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30673         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30674         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30675         (calc_inveclosure, parse_dup_op, build_range_exp):
30676         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
30677         (fetch_number, create_token_tree, mark_opt_subexp):
30678         Likewise.
30679         * lib/regex_internal.c (re_string_construct_common,
30680         create_ci_newstate):
30681         (create_cd_newstate, re_string_allocate, re_string_construct):
30682         (re_string_realloc_buffers, build_wcs_upper_buffer):
30683         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30684         (re_string_reconstruct, re_string_peek_byte_case):
30685         (re_string_fetch_byte_case, re_string_context_at):
30686         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30687         (re_node_set_init_copy, re_node_set_add_intersect):
30688         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30689         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30690         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30691         (re_acquire_state, re_acquire_state_context, register_state):
30692         Likewise.
30693         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
30694         search_cur_bkref_entry):
30695         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
30696         (re_search_internal, re_search_2_stub, re_search_stub)
30697         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
30698         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
30699         (update_cur_sifted_state, check_dst_limits):
30700         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30701         (check_subexp_limits, sift_states_bkref, merge_state_array):
30702         (check_subexp_matching_top, get_subexp, get_subexp_sub):
30703         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
30704         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30705         (expand_bkref_cache, check_node_accept_bytes):
30706         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
30707         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
30708         (acquire_init_state_context, check_halt_node_context):
30709         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
30710         (sift_states_backward, clean_state_log_if_needed):
30711         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
30712         (find_recover_state, transit_state_sb, transit_state_mb):
30713         (transit_state_bkref, build_trtable, match_ctx_clean):
30714         Likewise.
30715         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
30716         to work around an assumption that REG_MISSING is negative.
30717
30718         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
30719         (seek_collating_symbol_entry) [defined _LIBC]:
30720         (lookup_collation_sequence_value) [defined _LIBC]:
30721         (build_range_exp, build_collating_symbol) [defined _LIBC]:
30722         Use prototypes rather than old-style function definitions.
30723         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
30724         (transit_state_sb) [0]:
30725         (find_collation_sequence_value) [defined _LIBC]: Likewise.
30726
30727         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
30728         rm_eo.
30729
30730         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
30731         (optimize_subexps, lower_subexp):
30732         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
30733         since the signed shift might overflow.  Use 1u<<31 instead.
30734         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30735         Likewise.
30736         * lib/regexec.c (check_dst_limits_calc_pos_1,
30737         check_subexp_matching_top): Likewise.
30738
30739         * lib/regcomp.c (optimize_subexps, lower_subexp):
30740         Use CHAR_BIT rather than 8, for clarity.
30741         * lib/regexec.c (check_dst_limits_calc_pos_1):
30742         (check_subexp_matching_top): Likewise.
30743         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
30744         have to worry about portability issues when shifting it left.
30745         Remove no-longer-needed test for table_size > 0.
30746         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
30747         in a word, as the resulting behavior is undefined.
30748         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
30749         in one case, a <= should have been an <, and in another case the
30750         whole test was missing.
30751         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
30752         the standard name CHAR_BIT.
30753         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
30754         this is not true on one's complement and signed-magnitude hosts.
30755
30756         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
30757         next_last_offset.
30758         (struct re_dfa_t): Remove unused member states_alloc.
30759         * lib/regcomp.c (init_dfa): Don't initialize unused members.
30760
30761 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30762
30763         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
30764         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
30765         and large-file glibc and in 32-bit large-file Solaris.
30766
30767 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30768
30769         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
30770         lengths fit in regoff_t; this isn't true if regoff_t is the same
30771         width as size_t.
30772         * lib/regex.c (re_search_internal): 5th arg is LAST_START
30773         (= START + RANGE) instead of RANGE.  This avoids overflow
30774         problems when regoff_t is the same width as size_t.
30775         All callers changed.
30776         (re_search_2_stub): Check for overflow when adding the
30777         sizes of the two strings.
30778         (re_search_stub): Check for overflow when adding START
30779         to RANGE; if it occurs, substitute the extreme value.
30780
30781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30782
30783         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
30784
30785 2005-08-31  Jim Meyering  <jim@meyering.net>
30786
30787         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
30788         a pointer-to-const.
30789         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
30790         (register_state): Likewise.
30791         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
30792         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30793         (group_nodes_into_DFAstates): Likewise.
30794
30795 2005-08-31  Jim Meyering  <jim@meyering.net>
30796
30797         * check-module: Add a FIXME comment.
30798
30799 2005-08-31  Eric Blake  <ebb9@byu.net>
30800
30801         * modules/unistd-safer (Files): Add unistd--.h.
30802         * modules/stdio-safer (Files): Add stdio--.h.
30803
30804 2005-08-31  Derek Price  <derek@ximbiot.com>
30805
30806         * lib/getdelim.c (getdelim): Return EOF on EOF.
30807         Reported by Larry Jones <lawrence.jones@ugs.com>.
30808
30809 2005-08-31  Bruno Haible  <bruno@clisp.org>
30810
30811         Avoid unnecessary diffs in the generated lib/Makefile.am.
30812         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
30813         the generated files.
30814         (func_import): Don't set cmd.
30815
30816 2005-08-31  Bruno Haible  <bruno@clisp.org>
30817
30818         * lib/strstr.c: Include <stddef.h>, for NULL.
30819         * lib/strcasestr.c: Likewise.
30820         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30821
30822 2005-08-31  Bruno Haible  <bruno@clisp.org>
30823
30824         * gnulib-tool: New option --macro-prefix.
30825         (func_import): Use macro_prefix.
30826         (import): Handle option --macro-prefix.
30827
30828 2005-08-31  Bruno Haible  <bruno@clisp.org>
30829
30830         * gnulib-tool (import): Rename most ac_* variables to cached_*.
30831         Also use new variables cached_lgpl, cached_libtool.
30832
30833 2005-08-31  Bruno Haible  <bruno@clisp.org>
30834
30835         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
30836         always instantiating them.
30837
30838 2005-08-31  Bruno Haible  <bruno@clisp.org>
30839
30840         * gnulib-tool (func_import): Read the previous cached settings
30841         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
30842         earlier added by gnulib but are now dropped. Warn when a gnulib file
30843         overwrites a non-gnulib file.
30844
30845 2005-08-31  Bruno Haible  <bruno@clisp.org>
30846
30847         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
30848         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
30849         projects that don't keep autogenerated files in CVS. Put into
30850         actioncmd only the specified modules, not the transitive closure.
30851
30852 2005-08-31  Bruno Haible  <bruno@clisp.org>
30853
30854         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
30855         Create directories that shall be filled.
30856         (import): Don't look for gl_* macros in configure.ac. Recurse across
30857         all directories containing a gnulib-cache.m4 files, if meaningful.
30858
30859 2005-08-31  Bruno Haible  <bruno@clisp.org>
30860
30861         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
30862         (import): Set seen_libtool when we see gl_LIBTOOL.
30863
30864 2005-08-31  Bruno Haible  <bruno@clisp.org>
30865
30866         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
30867         declaration macro definitions from generated gnulib.m4.
30868
30869 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
30870
30871         * lib/iconvme.h: Add prototype for iconv_alloc.
30872
30873 2005-08-29  Simon Josefsson  <jas@extundo.com>
30874
30875         * lib/iconvme.c: Fix errno.
30876
30877 2005-08-29  Bruno Haible  <bruno@clisp.org>
30878
30879         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
30880         that it works when the directory contains spaces.
30881
30882 2005-08-29  Bruno Haible  <bruno@clisp.org>
30883
30884         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
30885
30886 2005-08-29  Bruno Haible  <bruno@clisp.org>
30887
30888         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
30889         Emit more advice.
30890
30891 2005-08-29  Bruno Haible  <bruno@clisp.org>
30892         and Stepan Kasal  <kasal@ucw.cz>
30893
30894         * check-module: If more parameters are given, check each of them
30895         separately; add more exceptions, as noted by Jim Meyering.
30896         (check_module): New procedure.
30897         (%exempt_header): Now contains all exceptions.
30898
30899 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
30900
30901         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
30902
30903 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30904
30905         * lib/iconvme.c: Split iconv_string into iconv_alloc.
30906
30907 2005-08-28  Bruno Haible  <bruno@clisp.org>
30908
30909         * m4/gnulib-tool.m4: New file.
30910
30911 2005-08-27  Jim Meyering  <jim@meyering.net>
30912
30913         * modules/unistd-safer (Files): Add pipe-safer.c.
30914         * modules/fcntl-safer (Files): Add creat-safer.c.
30915
30916 2005-08-27  Jim Meyering  <jim@meyering.net>
30917
30918         * m4/stdlib-safer.m4: New file.  From coreutils.
30919         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30920         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30921         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30922         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30923         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30924
30925 2005-08-27  Jim Meyering  <jim@meyering.net>
30926
30927         * lib/fopen-safer.c: Merge minor changes from coreutils.
30928         * lib/dup-safer.c: Likewise.
30929         * lib/fd-safer.c: Likewise.
30930
30931         Merge from coreutils.
30932         * lib/stdio--.h: New file.
30933         * lib/stdlib--.h: New file.
30934         * lib/mkstemp-safer.c: New file.
30935
30936         GNU tar needs these.
30937         * lib/pipe-safer.c: New file.
30938         * lib/creat-safer.c: New file.
30939         * lib/fcntl--.h (creat): Define to creat_safer.
30940         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30941         * lib/unistd--.h (pipe): Define to pipe_safer.
30942         * lib/unistd-safer.h: Declare pipe_safer.
30943
30944 2005-08-26  Simon Josefsson  <jas@extundo.com>
30945
30946         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30947         Haible <bruno@clisp.org>.
30948
30949 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
30950
30951         * lib/regex_internal.h: Remove all references to
30952         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30953         or better.
30954         (bitset_not, bitset_merge, bitset_not_merge):
30955         (bitset_mask, re_string_allocate, re_string_construct):
30956         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30957         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30958         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30959         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30960         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30961         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30962         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30963         (re_acquire_state_context):
30964         Remove unnecessary forward decls.
30965         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30966         Put __attribute at function definition,
30967         now that the function decl has been removed.
30968         * lib/regex_internal.c (re_string_peek_byte_case):
30969         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30970         Likewise.
30971
30972 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
30973
30974         * m4/regex.m4: Add AC_PREREQ(2.50).
30975         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30976
30977 2005-08-25  Simon Josefsson  <jas@extundo.com>
30978
30979         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30980         __fsetlocking.
30981
30982 2005-08-25  Simon Josefsson  <jas@extundo.com>
30983
30984         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
30985         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
30986         GLIBC specific code.
30987
30988 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30989
30990         Make regex safe for g++.  This fixes one real bug (an "err"
30991         that should have been "*err").  g++ problem reported by
30992         Sam Steingold.
30993         * lib/regex_internal.h (re_calloc): New macro, consistent with
30994         re_malloc etc.  All callers of calloc changed to use re_calloc.
30995         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30996         not int.  All callers changed.
30997         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30998         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30999         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31000         (find_recover_state): Change "err" to "*err"; this fixes what
31001         appears to be a real bug.
31002         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31003         versus int.
31004
31005 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31006
31007         * modules/regex (Depends-on): Add malloc, since the code
31008         assumes that !malloc(0) means failure.
31009
31010 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31013
31014         alloca modernization/simplification for regex.
31015         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31016         needs to be at the start of the file, and can be moved into
31017         regex_internal.h and simplified.
31018         * lib/regex_internal.h: Include <alloca.h>.
31019         (__libc_use_alloca) [!defined _LIBC]: New macro.
31020         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31021         now works outside glibc.
31022
31023 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * config/srclist.txt: Add glibc bugs 1241, 1245.
31026
31027 2005-08-25  Jim Meyering  <jim@meyering.net>
31028
31029         * lib/open-safer.c: Include <config.h>.
31030         Otherwise, we'd lose LARGEFILE support in any file using
31031         e.g. "fcntl--.h"
31032
31033 2005-08-25  Bruno Haible  <bruno@clisp.org>
31034
31035         * m4/minmax.m4: Require autoconf 2.52.
31036         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31037         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31038         alternatives of translit over the alphabet.
31039         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31040
31041 2005-08-24  Simon Josefsson  <jas@extundo.com>
31042
31043         * tests/test-getpass.c: New file.
31044
31045 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31046
31047         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31048         for GNU regex features.
31049
31050 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31053         * lib/regex.h (regerror): Likewise.
31054
31055         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31056         requires this.  (The code never needed it.)
31057
31058         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31059         All uses of recently-renamed identifiers changed to use the new,
31060         POSIX-compliant names.  The code will build and run just fine
31061         without these changes, but it's better to eat our own dog food
31062         and use the standard-conforming names.
31063
31064         * lib/regex.h: Fix a multitude of POSIX name space violations.
31065         These changes have an effect only for programs that define
31066         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31067         do not change anything for programs compiled in the normal way.
31068         Also, there is no effect on the ABI.
31069
31070         (_REGEX_SOURCE): New macro.
31071         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31072         defined and _GNU_SOURCE is not; this fixes a name space violation.
31073
31074         Rename the following macros to obey POSIX requirements.
31075         The old names are still visible as macros if _REGEX_SOURCE is defined.
31076         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31077         RE_BACKSLASH_ESCAPE_IN_LISTS.
31078         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31079         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31080         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31081         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31082         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31083         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31084         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31085         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31086         (REG_INTERVALS): renamed from RE_INTERVALS.
31087         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31088         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31089         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31090         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31091         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31092         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31093         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31094         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31095         RE_UNMATCHED_RIGHT_PAREN_ORD.
31096         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31097         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31098         (REG_DEBUG): renamed from RE_DEBUG.
31099         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31100         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31101         unusual, since we can't clash with the POSIX REG_ICASE.
31102         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31103         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31104         (REG_NO_SUB): renamed from RE_NO_SUB.
31105         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31106         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31107         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31108         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31109         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31110         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31111         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31112         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31113         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31114         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31115         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31116         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31117         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31118         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31119         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31120         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31121         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31122         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31123         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31124         (REG_FIXED): Renamed from REGS_FIXED.
31125         (REG_NREGS): Renamed from RE_NREGS.
31126
31127         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31128         of other REG_* macros, since POSIX says the user is allowed to
31129         #undef these macros selectively.
31130
31131         (reg_errcode_t): Update comment stating what other tables need
31132         to be consistent.
31133
31134         Rename the following enum values to obey POSIX requirements.
31135         The old names are still visible as macros.
31136         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31137         is not defined, since GNU is supposed to be a superset of POSIX as
31138         much as possible, and since we want reg_errcode_t to be a signed
31139         type for implementation consistency.
31140         (_REG_NOERROR): Renamed from REG_NOERROR.
31141         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31142         (_REG_BADPAT): Renamed from REG_BADPAT.
31143         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31144         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31145         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31146         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31147         (_REG_EBRACK): Renamed from REG_EBRACK.
31148         (_REG_EPAREN): Renamed from REG_EPAREN.
31149         (_REG_EBRACE): Renamed from REG_EBRACE.
31150         (_REG_BADBR): Renamed from REG_BADBR.
31151         (_REG_ERANGE): Renamed from REG_ERANGE.
31152         (_REG_ESPACE): Renamed from REG_ESPACE.
31153         (_REG_BADRPT): Renamed from REG_BADRPT.
31154         (_REG_EEND): Renamed from REG_EEND.
31155         (_REG_ESIZE): Renamed from REG_ESIZE.
31156         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31157         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31158         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31159         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31160         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31161
31162         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31163         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31164         changed.  But support the old name if the new one is not defined
31165         and if _REGEX_SOURCE.
31166
31167         Change the following member names in struct re_pattern_buffer.
31168         The old names are still supported if !_REGEX_SOURCE.
31169         The new names are always supported, regardless of _REGEX_SOURCE.
31170         (re_buffer): Renamed from buffer.
31171         (re_allocated): Renamed from allocated.
31172         (re_used): Renamed from used.
31173         (re_syntax): Renamed from syntax.
31174         (re_fastmap): Renamed from fastmap.
31175         (re_translate): Renamed from translate.
31176         (re_can_be_null): Renamed from can_be_null.
31177         (re_regs_allocated): Renamed from regs_allocated.
31178         (re_fastmap_accurate): Renamed from fastmap_accurate.
31179         (re_no_sub): Renamed from no_sub.
31180         (re_not_bol): Renamed from not_bol.
31181         (re_not_eol): Renamed from not_eol.
31182         (re_newline_anchor): Renamed from newline_anchor.
31183
31184         Change the following member names in struct re_registers.
31185         The old names are still supported if !_REGEX_SOURCE.
31186         The new names are always supported, regardless of _REGEX_SOURCE.
31187         (rm_num_regs): Renamed from num_regs.
31188         (rm_start): Renamed from start.
31189         (rm_end): Renamed from end.
31190
31191         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31192         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31193         Prepend __ to parameter names.
31194
31195         Undo yesterday's changes.
31196
31197 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31200         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31201         lib/regex.c.
31202
31203 2005-08-24  Jim Meyering  <jim@meyering.net>
31204
31205         Sync from coreutils.
31206         * m4/fcntl-safer.m4: New file.
31207
31208         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31209         and object files for this module.
31210
31211 2005-08-24  Jim Meyering  <jim@meyering.net>
31212
31213         Sync from coreutils.
31214         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31215
31216 2005-08-24  Jim Meyering  <jim@meyering.net>
31217
31218         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31219         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31220
31221 2005-08-24  Jim Meyering  <jim@meyering.net>
31222
31223         * modules/fcntl-safer: New module.
31224         * modules/fts (Depends-on): Add fcntl-safer.
31225         * MODULES.html.sh (File descriptor based Input/Output):
31226         Add fcntl-safer.
31227
31228 2005-08-24  Bruno Haible  <bruno@clisp.org>
31229
31230         Support for unit test modules.
31231         * modules/README: Mention tests modules.
31232         * modules/TEMPLATE-TESTS: New file.
31233         * gnulib-tool: New options --extract-tests-module, --with-tests and
31234         --tests-base (unused for the moment).
31235         (testsbase, inctests): New variables.
31236         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31237         (func_verify_module): Exclude TEMPLATE-TESTS.
31238         (func_verify_nontests_module, func_verify_tests_module): New functions.
31239         (func_get_dependencies): Add implicit dependency for tests modules.
31240         (func_get_tests_module): New function.
31241         (func_modules_transitive_closure): When --with-tests was specified,
31242         include the unit tests as well, unless explicitly avoided.
31243         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31244         (func_emit_tests_Makefile_am): New function.
31245         (func_create_testdir): When --with-tests was specified, emit a
31246         tests/ directory.
31247         * MODULES.html.sh (Future developments): Update.
31248
31249 2005-08-24  Bruno Haible  <bruno@clisp.org>
31250
31251         * modules/tls-tests: New file.
31252         * tests/test-tls.c: New file, from GNU gettext.
31253
31254 2005-08-24  Bruno Haible  <bruno@clisp.org>
31255
31256         * modules/lock-tests: New file.
31257         * tests/test-lock.c: New file, from GNU gettext.
31258
31259 2005-08-24  Bruno Haible  <bruno@clisp.org>
31260
31261         * lib/lock.h: Add multiple inclusion guard.
31262         * lib/tls.h: Add multiple inclusion guard.
31263
31264 2005-08-24  Bruno Haible  <bruno@clisp.org>
31265
31266         * gnulib-tool: Add support for the --aux-dir option to
31267         --create-testdir, --create-megatestdir, --test, --megatest.
31268         (func_create_testdir, func_create_megatestdir): Optionally emit a
31269         AC_CONFIG_AUX_DIR directive.
31270         (create-testdir, create-megatestdir, test, megatest): Provide a
31271         default value for $auxdir.
31272
31273 2005-08-24  Bruno Haible  <bruno@clisp.org>
31274
31275         * gnulib-tool (import): Use compound statement instead of subshell
31276         where possible.
31277
31278 2005-08-24  Bruno Haible  <bruno@clisp.org>
31279
31280         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31281
31282 2005-08-24  Bruno Haible  <bruno@clisp.org>
31283
31284         * gnulib-tool (func_version): Update.
31285
31286 2005-08-24  Bruno Haible  <bruno@clisp.org>
31287
31288         * gnulib-tool (func_import, func_create_testdir,
31289         func_create_megatestdir): Quote all autoconf macro arguments.
31290
31291 2005-08-24  Bruno Haible  <bruno@clisp.org>
31292
31293         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31294         option --force, because --force causes the aclocal.m4 of each
31295         subdirectory to be newer than the corresponding config.h.in.
31296
31297 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31298
31299         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31300         All contents moved to gl_REGEX.
31301         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31302         assume that it does.
31303
31304 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31305
31306         * lib/regex.h (REG_NOSYS)
31307         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31308         Define, since POSIX requires it as of 2001.
31309         (_REG_ENOSYS)
31310         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31311         New private symbol, used to keep the enum signed in all cases.
31312         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31313         Youngman in
31314         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31315
31316         * lib/regex_internal.c (re_string_skip_chars, register_state):
31317         (calc_state_hash):
31318         Remove forward decls; no longer needed now that we use prototypes.
31319         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31320         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31321         (clean_state_log_if_needed): Likewise.
31322
31323 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31324
31325         * config/srclist.txt: Add glibc bugs 1231-1233.
31326
31327 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31328
31329         Fix problems reported by Sam Steingold in
31330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31331         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31332         assumed that reg_errcode_t is a signed type, which is not
31333         necessarily true if _XOPEN_SOURCE is not defined.
31334         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31335         since some compilers warn about it otherwise.
31336
31337 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31340         (init_word_char, create_initial_state, duplicate_node_closure):
31341         (fetch_token, peek_token_bracket, build_range_exp):
31342         (build_collating_symbol): Remove forward decls; no longer needed
31343         now that we use prototypes.
31344
31345         * lib/regcomp.c:
31346         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31347         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31348         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31349         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31350         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31351         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31352         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31353         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31354         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31355         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31356         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31357         (build_charclass, build_charclass_op, fetch_number, create_tree):
31358         (create_token_tree, mark_opt_subexp, duplicate_tree):
31359         Use prototypes rather than old-style definitions.
31360
31361         * lib/regex_internal.c:
31362         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31363         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31364         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31365         (re_string_reconstruct, re_string_peek_byte_case):
31366         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31367         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31368         (re_node_set_init_copy, re_node_set_add_intersect):
31369         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31370         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31371         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31372         (re_acquire_state, re_acquire_state_context, register_state):
31373         (create_ci_newstate, create_cd_newstate, free_state):
31374         Likewise.
31375         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31376         re_search_2):
31377         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31378         (re_search_internal, prune_impossible_nodes):
31379         (acquire_init_state_context, check_matching, static):
31380         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31381         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31382         (update_regs, sift_states_backward, build_sifted_states):
31383         (clean_state_log_if_needed, merge_state_array):
31384         (update_cur_sifted_state, add_epsilon_src_nodes):
31385         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31386         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31387         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31388         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31389         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31390         (check_arrival, check_arrival_add_next_nodes):
31391         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31392         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31393         (check_node_accept_bytes, check_node_accept, extend_buffers):
31394         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31395         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31396         (sift_ctx_init):
31397         Likewise.
31398
31399         * lib/regex_internal.h:
31400         (re_string_allocate, re_string_construct, re_string_reconstruct):
31401         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31402         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31403         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31404         (re_string_context_at, re_string_peek_byte_case):
31405         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31406         is defined, since we now use prototypes always.
31407
31408         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31409         C89 or better.  All uses removed.
31410
31411 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31412
31413         * config/srclist.txt: Add glibc bugs 1220-1227.
31414
31415 2005-08-20  Jim Meyering  <jim@meyering.net>
31416
31417         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31418         of unused local, dfa.
31419
31420 2005-08-20  Bruno Haible  <bruno@clisp.org>
31421
31422         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31423
31424 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31425
31426         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31427         (re_node_set_insert_last, re_dfa_add_node):
31428         Rename local variables to avoid GCC shadowing warnings.
31429
31430 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31431
31432         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31433         [defined lint]: Suppress bogus uninitialized-variable warnings.
31434
31435         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31436         and let the caller return REG_ESPACE if out of space.  This
31437         removes an uninitialied-variable warning with GCC 4.0.1, and also
31438         avoids taking the address of a local variable.  All callers
31439         changed.
31440
31441 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31442
31443         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31444         $LIBCSRC/posix/regexec.c.
31445         Add glibc bug 1217 for regcomp.c.
31446
31447 2005-08-19  Jim Meyering  <jim@meyering.net>
31448
31449         * lib/regexec.c (proceed_next_node): Redo local variables to
31450         avoid GCC shadowing warnings.
31451
31452 2005-08-18  Bruno Haible  <bruno@clisp.org>
31453
31454         * lib/strstr.c (strstr): Fix return value in multibyte case.
31455         * lib/strcasestr.c (strcasestr): Likewise.
31456
31457 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31458
31459         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31460
31461 2005-08-17  Jim Meyering  <jim@meyering.net>
31462
31463         Make the %s format (seconds since the epoch) work for a negative
31464         number and when used with a zero-padded field width, e.g. %015s.
31465
31466         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31467         label so that it precedes the code to set `digits'.  Otherwise,
31468         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31469         print `00-22'.  Now, it prints `-0022', as it should.
31470
31471 2005-08-17  Bruno Haible  <bruno@clisp.org>
31472
31473         * modules/strstr (Files): Add m4/mbrtowc.m4.
31474         (Depends-on): Add mbuiter.
31475
31476 2005-08-17  Bruno Haible  <bruno@clisp.org>
31477
31478         * modules/strcasestr: New file.
31479         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31480         strcasestr.
31481
31482 2005-08-17  Bruno Haible  <bruno@clisp.org>
31483
31484         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31485
31486 2005-08-17  Bruno Haible  <bruno@clisp.org>
31487
31488         * modules/mbuiter: New file.
31489         * MODULES.html.sh (Extended multibyte and wide character utilities):
31490         Add mbuiter.
31491
31492 2005-08-17  Bruno Haible  <bruno@clisp.org>
31493
31494         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31495         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31496
31497 2005-08-17  Bruno Haible  <bruno@clisp.org>
31498
31499         * m4/strcasestr.m4: New file.
31500
31501 2005-08-17  Bruno Haible  <bruno@clisp.org>
31502
31503         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31504         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31505
31506 2005-08-17  Bruno Haible  <bruno@clisp.org>
31507
31508         * lib/strcasestr.h: New file.
31509         * lib/strcasestr.c: New file.
31510
31511 2005-08-17  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/strcasecmp.c: Use mbuiter.h.
31514
31515 2005-08-17  Bruno Haible  <bruno@clisp.org>
31516
31517         * lib/mbuiter.h: New file.
31518
31519 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31522         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31523         and gl_GETOPT are both invoked via different paths (as happens
31524         with GNU tar CVS because it uses both argp and getopt), the former
31525         wins.
31526
31527 2005-08-16  Bruno Haible  <bruno@clisp.org>
31528
31529         * modules/tls: New file.
31530         * MODULES.html.sh (Multithreading): Add tls.
31531
31532 2005-08-16  Bruno Haible  <bruno@clisp.org>
31533
31534         * modules/strnlen1: New file.
31535         * MODULES.html.sh (String handling): Add strnlen1.
31536
31537 2005-08-16  Bruno Haible  <bruno@clisp.org>
31538
31539         * modules/strcase (Files): Add m4/mbrtowc.m4.
31540         (Depends-on): Add strnlen1, mbchar.
31541
31542 2005-08-16  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/mbiter: New file.
31545         * MODULES.html.sh (Extended multibyte and wide character utilities):
31546         Add mbiter.
31547
31548 2005-08-16  Bruno Haible  <bruno@clisp.org>
31549
31550         * modules/mbfile: New file.
31551         * MODULES.html.sh (Extended multibyte and wide character utilities):
31552         Add mbfile.
31553
31554 2005-08-16  Bruno Haible  <bruno@clisp.org>
31555
31556         * modules/mbchar: New file.
31557         * MODULES.html.sh (Extended multibyte and wide character utilities):
31558         New section.
31559
31560 2005-08-16  Bruno Haible  <bruno@clisp.org>
31561
31562         * m4/tls.m4: New file, from GNU gettext.
31563
31564 2005-08-16  Bruno Haible  <bruno@clisp.org>
31565
31566         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31567         always.
31568         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31569
31570 2005-08-16  Bruno Haible  <bruno@clisp.org>
31571
31572         * m4/mbiter.m4: New file.
31573
31574 2005-08-16  Bruno Haible  <bruno@clisp.org>
31575
31576         * m4/mbfile.m4: New file.
31577
31578 2005-08-16  Bruno Haible  <bruno@clisp.org>
31579
31580         * m4/mbchar.m4: New file.
31581
31582 2005-08-16  Bruno Haible  <bruno@clisp.org>
31583
31584         * lib/tls.h: New file, from GNU gettext.
31585         * lib/tls.c: New file, from GNU gettext.
31586
31587 2005-08-16  Bruno Haible  <bruno@clisp.org>
31588
31589         * lib/strnlen1.h: New file.
31590         * lib/strnlen1.c: New file.
31591
31592 2005-08-16  Bruno Haible  <bruno@clisp.org>
31593
31594         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31595         (mbi_init): Update.
31596         (mbi_avail, mbi_advance): Let the iteration end before the terminating
31597         NUL byte, not after it.
31598
31599 2005-08-16  Bruno Haible  <bruno@clisp.org>
31600
31601         * lib/strcase.h (strcasecmp): Add note in comments.
31602         * lib/strncasecmp.c: Use code from strcasecmp.c.
31603         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31604         (strcasecmp): Work correctly in multibyte locales.
31605
31606 2005-08-16  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/mbiter.h: New file.
31609
31610 2005-08-16  Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/mbfile.h: New file.
31613
31614 2005-08-16  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/mbchar.h: New file.
31617         * lib/mbchar.c: New file.
31618
31619 2005-08-16  Bruno Haible  <bruno@clisp.org>
31620
31621         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31622         the valid ones. Makes the comparison operations transitive:
31623         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31624         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31625
31626 2005-08-15  Simon Josefsson  <jas@extundo.com>
31627
31628         * modules/ssize_t (License): Change to 'unlimited'.
31629
31630         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31631
31632 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31633
31634         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31635         Add comments for each pending glibc patch.
31636
31637 2005-08-15  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/regex.h (__restrict_arr): Don't define to __restrict if
31640         __cplusplus is defined.
31641
31642 2005-08-14  Jim Meyering  <jim@meyering.net>
31643
31644         Sync from coreutils.
31645
31646         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31647         Use the hash-table-based cycle-detection code not just when
31648         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31649         Reported by James Youngman in
31650         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31651         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31652         FTS_TIGHT_CYCLE_CHECK.
31653         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31654         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31655         once again.
31656         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31657         * lib/fts.c (fd_safer): Remove decl.
31658         Include fcntl--.h rather than unistd-safer.h
31659         (fts_safe_changedir): Don't call fd_safer; no longer needed
31660         now that we include fcntl--.h.
31661
31662 2005-08-12  Simon Josefsson  <jas@extundo.com>
31663
31664         * modules/getndelim2: Use ssize_t module.
31665         * modules/getnline: Likewise.
31666         * modules/safe-read: Likewise.
31667         * modules/xreadlink: Likewise.
31668
31669         * modules/ssize_t: New file.
31670
31671 2005-08-12  Simon Josefsson  <jas@extundo.com>
31672
31673         * m4/readline.m4: Look for termcap, curses or ncurses if required.
31674
31675 2005-08-12  Simon Josefsson  <jas@extundo.com>
31676
31677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31678         ssize_t.
31679
31680 2005-08-12  Simon Josefsson  <jas@extundo.com>
31681
31682         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
31683         readline, getdelim and check_version.
31684         (Support for systems lacking ISO C 99: Sizes of integer types):
31685         Add size_max.
31686
31687 2005-08-12  Bruno Haible  <bruno@clisp.org>
31688
31689         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
31690
31691 2005-08-11  Simon Josefsson  <jas@extundo.com>
31692
31693         * modules/readline: New file.
31694
31695         * modules/strnlen (Files): Add strnlen.h.
31696
31697 2005-08-11  Simon Josefsson  <jas@extundo.com>
31698
31699         * m4/readline.m4: New file.
31700
31701 2005-08-11  Simon Josefsson  <jas@extundo.com>
31702
31703         * lib/readline.h, readline.c: New file.
31704
31705 2005-08-11  Simon Josefsson  <jas@extundo.com>
31706
31707         * doc/gnulib.texi (Initial import, Finishing touches): Mention
31708         gl_AVOID.
31709
31710 2005-08-11  Bruno Haible  <bruno@clisp.org>
31711
31712         * lib/strnlen.h (strnlen): Change parameter name to match comment.
31713
31714 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
31715
31716         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
31717
31718 2005-08-10  Simon Josefsson  <jas@extundo.com>
31719
31720         * tests/test-iconvme.c: New file.
31721
31722 2005-08-10  Simon Josefsson  <jas@extundo.com>
31723
31724         * m4/strnlen.m4: New file.
31725
31726         * m4/strndup.m4: Don't check for strnlen declaration, done in
31727         strnlen.m4.
31728
31729 2005-08-10  Simon Josefsson  <jas@extundo.com>
31730
31731         * lib/strndup.c: Use strnlen.h.
31732
31733         * lib/strnlen.h: New file.
31734
31735 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31736
31737         * README: Typos.
31738
31739 2005-08-02  Simon Josefsson  <jas@extundo.com>
31740
31741         * modules/readline: New file.
31742
31743 2005-08-02  Simon Josefsson  <jas@extundo.com>
31744
31745         * modules/getdelim: New file.
31746
31747         * modules/getline: Rewrite, don't use getndelim2.
31748
31749 2005-08-02  Simon Josefsson  <jas@extundo.com>
31750
31751         * m4/getline.m4: Separate out getdelim stuff into separate module.
31752
31753         * m4/getdelim.m4: New file.
31754
31755 2005-08-02  Simon Josefsson  <jas@extundo.com>
31756
31757         * lib/getline.h, getline.c: Rewrite.
31758
31759         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
31760
31761 2005-07-31  Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/lock.h (gl_lock_initializer): New macro.
31764         (gl_lock_define_initialized): Use it.
31765         (gl_rwlock_initializer): New macro.
31766         (gl_rwlock_define_initialized): Use it.
31767         (gl_recursive_lock_initializer): New macro.
31768         (gl_recursive_lock_define_initialized): Use it.
31769
31770 2005-07-30  Karl Berry  <karl@gnu.org>
31771
31772         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
31773         Report from Ben Pfaff, regarding getopt.
31774
31775 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
31776
31777         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
31778         normal way.
31779         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
31780         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
31781         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
31782         (gl_GETOPT): Use the new macros.  Most of the implementation
31783         is moved to the new macros.  This is for programs like Emacs
31784         that don't want all the functionality of gl_GETOPT.
31785
31786 2005-07-26  Bruno Haible  <bruno@clisp.org>
31787
31788         * m4/lock.m4: Update from GNU gettext.
31789
31790 2005-07-26  Bruno Haible  <bruno@clisp.org>
31791
31792         * lib/lock.h: Update from GNU gettext.
31793         * lib/lock.c: Update from GNU gettext.
31794
31795 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31796
31797         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
31798         obsolescent AC_TRY_RUN.  Include the default includes files, for
31799         'exit'.
31800
31801 2005-07-24  Bruno Haible  <bruno@clisp.org>
31802
31803         * modules/visibility: New file.
31804         * MODULES.html.sh (Misc): Add visibility.
31805
31806 2005-07-24  Bruno Haible  <bruno@clisp.org>
31807
31808         * m4/visibility.m4: New file.
31809
31810 2005-07-24  Bruno Haible  <bruno@clisp.org>
31811
31812         * doc/visibility.texi: New file.
31813
31814 2005-07-22  Bruno Haible  <bruno@clisp.org>
31815
31816         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
31817         $(ALLOCA_H), redundant through BUILT_SOURCES.
31818         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
31819         redundant through BUILT_SOURCES.
31820         * modules/byteswap (Makefile.am): Remove explicit dependency on
31821         $(BYTESWAP_H), redundant through BUILT_SOURCES.
31822         * modules/fnmatch (Makefile.am): Remove explicit dependency on
31823         $(FNMATCH_H), redundant through BUILT_SOURCES.
31824         * modules/getopt (Makefile.am): Remove explicit dependency on
31825         $(GETOPT_H), redundant through BUILT_SOURCES.
31826         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
31827         redundant through BUILT_SOURCES.
31828         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
31829         redundant through BUILT_SOURCES.
31830         * modules/stdbool (Makefile.am): Remove explicit dependency on
31831         $(STDBOOL_H), redundant through BUILT_SOURCES.
31832         * modules/stdint (Makefile.am): Remove explicit dependency on
31833         $(STDINT_H), redundant through BUILT_SOURCES.
31834         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
31835         Remove explicit dependency on $(SYSEXITS_H).
31836         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
31837
31838 2005-07-18  Simon Josefsson  <jas@extundo.com>
31839
31840         * lib/check-version.c (check_version): Accept identical versions too.
31841
31842 2005-07-18  Bruno Haible  <bruno@clisp.org>
31843
31844         * modules/lock: New file.
31845         * MODULES.html.sh (Multithreading): New section.
31846
31847 2005-07-18  Bruno Haible  <bruno@clisp.org>
31848
31849         * m4/lock.m4: New file, from GNU gettext.
31850
31851 2005-07-18  Bruno Haible  <bruno@clisp.org>
31852
31853         * lib/lock.h: New file, from GNU gettext.
31854         * lib/lock.c: New file, from GNU gettext.
31855
31856 2005-07-18  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/lock.h (gl_once_t): New type.
31859         (gl_once_define, gl_once): New macros.
31860         * lib/lock.c (fresh_once): New variable.
31861         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
31862         functions.
31863
31864 2005-07-16  Simon Josefsson  <jas@extundo.com>
31865
31866         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
31867         workaround, suggested by Bruno.
31868
31869 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31870
31871         * modules/xalloc (Depends-on): Add xalloc-die.
31872         * modules/xvasprintf (Depends-on): Add xalloc-die.
31873
31874 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31875
31876         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
31877         with a minor change.
31878
31879 2005-07-15  Bruno Haible  <bruno@clisp.org>
31880
31881         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
31882         When using lib/poll.c, define poll as rpl_poll.
31883
31884 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
31885
31886         * modules/argp (Depends-on): Remove unlocked-io.
31887
31888 2005-07-14  Derek Price  <derek@ximbiot.com>
31889
31890         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
31891         for glob symlink bug.
31892
31893 2005-07-14  Bruno Haible  <bruno@clisp.org>
31894
31895         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
31896         Instead, test for *_unlocked function declarations directly.
31897
31898 2005-07-11  Simon Josefsson  <jas@extundo.com>
31899
31900         * modules/size_max: New file.
31901
31902         * modules/xsize: Depend on size_max module for size_max.m4.
31903
31904 2005-07-11  Simon Josefsson  <jas@extundo.com>
31905
31906         * lib/size_max.h: New file.
31907
31908 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31909
31910         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
31911         copyright symbol and the year.
31912         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
31913         (version_etc_va): Use parameterized copyright notice.
31914         Reword to conform to the current GNU coding standards.
31915
31916 2005-07-11  Karl Berry  <karl@gnu.org>
31917
31918         * doc/gnulib.texi (Quoting): new node.
31919         (Initial import): more info, from Patrice.
31920
31921 2005-07-11  Bruno Haible  <bruno@clisp.org>
31922
31923         * gnulib-tool (func_usage): Document option --avoid.
31924         (Command line options): Handle --avoid.
31925         (func_acceptable): New function.
31926         (func_modules_transitive_closure): Use it.
31927
31928 2005-07-11  Bruno Haible  <bruno@clisp.org>
31929
31930         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
31931         Reported by Jim Meyering.
31932
31933 2005-07-10  Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
31936         Needed when size_t is smaller than 'unsigned int'.
31937         Reported by Paul Eggert.
31938
31939 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31940
31941         * modules/argp (Depends-on): Add unlocked-io
31942
31943 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31944
31945         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31946         block of defines.
31947
31948 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31949
31950         * config/srclist.txt: Comment out regcomp.c, since we have a porting
31951         fix now.
31952
31953 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
31954         and Paul Eggert  <eggert@cs.ucla.edu>
31955
31956         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31957         in wint_t, not wchar_t.  Remove now-unnecessary cast.
31958
31959 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31960
31961         * modules/regex (Files): Add lib/regex_internal.c,
31962         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31963         (Depends-on): Add extensions.
31964         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31965
31966 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31967
31968         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31969         pathconf.
31970         * m4/same.m4 (gl_SAME): Likewise.
31971         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31972
31973         * m4/regex.m4: Adjust to new libc regex implementation.
31974         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31975         all the .c and .h parts of (the new) regex.
31976         Quote the m4 stuff better.
31977         Check for RE_ICASE bug of old gnulib.
31978         Check for REG_STARTEND of recent libc.
31979         Rename local variables from jm_* to gl_*.
31980         Quote operand of "test -f".
31981         Say "recent enough" version of libc, not "version 2".
31982         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31983         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
31984         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31985         Remove check for btowc, isascii.
31986         Require AM_LANGINFO_CODESET.
31987
31988 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31989
31990         * lib/regex.c, regex.h: Sync from libc.
31991         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31992         * lib/regexec.c:
31993         New files, synced from libc, except that regex_internal.h
31994         currently has a small porting fix.
31995
31996 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31997
31998         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31999         regex_internal.c, regexec.c.
32000         Add regex_internal.h too, but as a comment, since the libc version
32001         is currently broken in gnulib mode.
32002
32003 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32004
32005         Support programs like Emacs that use gnulib but not gettext.
32006         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32007         * modules/gettext-h: New file.
32008         * modules/gettext (Files): Remove lib/gettext.h.
32009         (Depends-on): Add gettext-h.
32010         (Makefile.am): Remove lib_SOURCES.
32011         * modules/argmatch, modules/c-stack, modules/closeout:
32012         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32013         * modules/execute, modules/file-type, modules/getaddrinfo:
32014         * modules/getopt, modules/human, modules/javacomp:
32015         * modules/javaexec, modules/mkdir-p, modules/obstack:
32016         * modules/openat, modules/pagealign_alloc, modules/pipe:
32017         * modules/quotearg, modules/regex, modules/rpmatch:
32018         * modules/unicodeio, modules/userspec, modules/version-etc:
32019         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32020         * modules/xsetenv:
32021         Depend on gettext-h, not gettext.
32022
32023 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32024
32025         * gnulib-tool (func_import): Add support for 'public domain' license.
32026         * modules/alloca, modules/atexit, modules/memmove:
32027         Now public domain, not GPL.
32028         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32029         * modules/realloc, modules/strerror, modules/strtod:
32030         Now LGPL, not GPL.
32031
32032 2005-07-05  Bruno Haible  <bruno@clisp.org>
32033
32034         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32035         autoconf CVS. Needed for mingw.
32036
32037 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32038
32039         Remove the dependency of the strftime module on the tzset module.
32040         * modules/strftime (Depends-on): Remove dependency on tzset.
32041
32042 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32043
32044         Remove the dependency of the strftime module on the tzset module.
32045         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32046         gl_FUNC_TZSET_CLOBBER.
32047
32048 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         Remove the dependency of the strftime module on the tzset module.
32051         * lib/strftime.c (my_strftime)
32052         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32053         Copy the input structure, to work around some of the bug with
32054         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32055         Solaris releases, you should also use the tzset module, but we won't
32056         require it as a dependency any more since we don't want LGPLed code
32057         to depend on GPLed code.
32058
32059 2005-07-02  Jim Meyering  <jim@meyering.net>
32060
32061         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32062         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32063         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32064         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32065
32066 2005-07-02  Jim Meyering  <jim@meyering.net>
32067
32068         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32069
32070 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32071
32072         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32073         declares only 'struct timespec;' (!).
32074
32075 2005-07-01  Jim Meyering  <jim@meyering.net>
32076
32077         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32078         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32079         * lib/save-cwd.c, tempname.c:
32080         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32081         and don't include <sys/file.h>).
32082
32083 2005-06-29  Jim Meyering  <jim@meyering.net>
32084
32085         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32086         type name.  Use the variable name instead.
32087         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32088         Likewise.
32089
32090 2005-06-28  Simon Josefsson  <jas@extundo.com>
32091
32092         * modules/check-version (Files): Add check-version.m4.
32093
32094 2005-06-28  Simon Josefsson  <jas@extundo.com>
32095
32096         * m4/check-version.m4: New file, suggested by Jim Meyering
32097         <jim@meyering.net>.
32098
32099 2005-06-28  Simon Josefsson  <jas@extundo.com>
32100
32101         * lib/check-version.h, lib/check-version.c: New files.
32102
32103 2005-06-28  Simon Josefsson  <jas@extundo.com>
32104
32105         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32106         collision with global variable.  Better indentation.  Don't
32107         increment buffer pointer beyond buffer end.  Based on comments
32108         from Paul Eggert <eggert@cs.ucla.edu>.
32109
32110         * lib/base64.h: Indent.
32111
32112 2005-06-28  Simon Josefsson  <jas@extundo.com>
32113
32114         * doc/gnulib.texi (Library version handling): New section.
32115
32116 2005-06-28  Jim Meyering  <jim@meyering.net>
32117
32118         * check-module (find_included_lib_files): Hard-code another
32119         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32120         but modules/fts-lgpl (correctly) does not list those files.
32121
32122         * modules/canonicalize (Files): Add lib/pathmax.h.
32123
32124 2005-06-25  Simon Josefsson  <jas@extundo.com>
32125
32126         * modules/check-version: New file.
32127
32128 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32129
32130         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32131         initializer of struct addrinfo, as an indication that we don't
32132         care how many members the structure has.
32133
32134 2005-06-24  Derek Price  <derek@ximbiot.com>
32135         and Bruno Haible  <bruno@clisp.org>
32136
32137         Remove stat module & update lstat.
32138         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32140         * m4/stat.m4: Remove this file.
32141
32142 2005-06-24  Derek Price  <derek@ximbiot.com>
32143         and Bruno Haible  <bruno@clisp.org>
32144
32145         Remove stat module & update lstat.
32146         * lib/stat.c: Remove this file...
32147         (slash_aware_lstat): ...moving this content and its support...
32148         * lib/lstat.c (rpl_lstat): ...into here.
32149         * lib/lstat.h: New file.
32150
32151 2005-06-24  Derek Price  <derek@ximbiot.com>
32152         and Bruno Haible  <bruno@clisp.org>
32153
32154         Remove stat module & update lstat.
32155         * config/srclist.txt (libc sources): Remove stat.
32156
32157 2005-06-24  Derek Price  <derek@ximbiot.com>
32158         and Bruno Haible  <bruno@clisp.org>
32159
32160         Remove stat module & update lstat.
32161         * MODULES.html.sh (stat): Remove.
32162         * MODULES.html: Regenerated.
32163         * modules/lstat (Description): Correct function name.
32164         (Files): Add "lstat.h".
32165         (Depends-on): Remove stat, add xalloc, stat-macros.
32166         * modules/stat: Remove this file.
32167         (Include): Add "lstat.h", remove <sys/stat.h>.
32168
32169 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32170
32171         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32172         (ranged_convert): Don't save conversion in a temporary struct.
32173         This causes a warning with GCC 4.0.0, and anyway in the typical
32174         case it's not worth the extra 100 bytes or so of code.
32175         (ranged_convert, __mktime_internal): When calling a function via a
32176         pointer P, use P () rather than (*P) (), as we now assume C89 or
32177         better.
32178
32179 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32180
32181         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32182         "who -r" failed to give output.  Problem reported by Tim Waugh.
32183
32184         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32185         (xcalloc): Use it to avoid needless tests.
32186         Problem reported by Jim Meyering.
32187
32188 2005-06-20  Derek Price  <derek@ximbiot.com>
32189
32190         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32191         unnecessary for Autoconfs > 2.59c.
32192
32193 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32194
32195         * lib/argp.h (__option_is_short): Check upper limit of
32196         __key. Isprint() requires its argument to have the value
32197         of an unsigned char or EOF.
32198
32199 2005-06-16  Jim Meyering  <jim@meyering.net>
32200
32201         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32202         when either N or S is zero.
32203
32204 2005-06-16  Derek Price  <derek@ximbiot.com>
32205
32206         * m4/bison.m4: Declare YACC & YFLAGS precious.
32207
32208 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32209
32210         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32211         multibyte string or pattern, fall back on unibyte matching.
32212         Problem reported by James Youngman.
32213
32214 2005-06-08  Bruno Haible  <bruno@clisp.org>
32215
32216         * modules/csharpcomp: New file.
32217         * MODULES.html.sh (C#): Add csharpcomp.
32218
32219 2005-06-08  Bruno Haible  <bruno@clisp.org>
32220
32221         * m4/csharpcomp.m4: New file, from GNU gettext.
32222
32223 2005-06-08  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/csharpcomp.h: New file, from GNU gettext.
32226         * lib/csharpcomp.c: New file, from GNU gettext.
32227         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32228
32229 2005-06-08  Bruno Haible  <bruno@clisp.org>
32230
32231         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32232         warning on mingw.
32233
32234 2005-06-07  Derek Price  <derek@ximbiot.com>
32235
32236         Sync from CVS.
32237         * lib/glob_.h: Indent nested #ifdef.
32238
32239 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32240
32241         Sync from coreutils.
32242         Use "file name" when talking about file names, instead of "filename"
32243         or "path", as per the GNU coding standards.
32244         * lib/mkdir-p.c: Renamed from makepath.c.
32245         (make_dir_parents): Renamed from make_path.  All callers changed.
32246         * lib/mkdir-p.h: Likewise.  All includers changed.
32247         * lib/filenamecat.c: Renamed from path-concat.c.
32248         (file_name_concat): Renamed from path_concat.  All callers changed.
32249         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32250         * lib/filenamecat.h: Likewise.  All includers changed.
32251         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32252         in comments or local variable names.
32253         * lib/basename.c: Likewise.
32254         * lib/canonicalize.c, canonicalize.h: Likewise.
32255         * lib/dirname.c, dirname.h: Likewise.
32256         * lib/euidaccess.c: Likewise.
32257         * lib/exclude.c: Likewise
32258         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32259         * lib/fsusage.c, fsuage.h: Likewise.
32260         * lib/fts.c, fts_.h: Likewise.
32261         * lib/getcwd.c: Likewise.
32262         * lib/getloadavg.c: Likewise.
32263         * lib/mkstemp.c: Likewise.
32264         * lib/mountlist.c, mountlist.h: Likewise.
32265         * lib/openat.c, openat.h: Likewise.
32266         * lib/readlink-stub.c: Likewise.
32267         * lib/readutmp.c, readutmp.h: Likewise.
32268         * lib/rename.c: Likewise.
32269         * lib/rmdir.c: Likewise.
32270         * lib/same.c: Likewise.
32271         * lib/savedir.c: Likewise.
32272         * lib/stripslash.c: Likewise.
32273         * lib/tempname.c: Likewise.
32274         * lib/xreadlink.c: Likewise.
32275         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32276         All uses changed.
32277         * lib/exclude.h: Likewise.
32278
32279         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32280         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32281         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32282         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32283         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32284         files have been getting away with it for years (MORE/BSD 4.3
32285         is extinct now).
32286         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32287         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32288
32289         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32290         Define to 256, not 255, as per modern POSIX.
32291
32292 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32293
32294         Sync from coreutils.
32295         Use "file name" when talking about file names, instead of "filename"
32296         or "path", as per the GNU coding standards.
32297         * MODULES.html.sh: mkdir-p renamed from makepath.
32298         filenamecat renamed from path-concat.
32299         * modules/filenamecat: Renamed from modules/path-concat.
32300         (Files): filenamecat.h and filenamecat.c renamed from
32301         path-concat.h and path-concat.c.
32302         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32303         (Include): filenamecat.h, not path-concat.h.
32304         * modules/mkdir-p: Renamed from modules/makepath.
32305         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32306         makepath.c.
32307         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32308         (Include): mkdir-p.h, not makepath.h.
32309
32310 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32311
32312         Sync from coreutils.
32313         * m4/mkdir-p.m4: Renamed from makepath.m4.
32314         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32315         Rename files from makepath.c to mkdir-p.c, and from
32316         makepath.h to mkdir-p.h.
32317         * m4/filenamecat.m4: Renamed from path-concat.m4.
32318         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32319         Rename files from path-concat.c to filenamecat.c,
32320         and from path-concat.h to filenamecat.h.
32321         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32322         "file name" in local variables or comments.
32323         * m4/rename.m4: Likewise.
32324
32325 2005-06-01  Bruno Haible  <bruno@clisp.org>
32326
32327         * modules/csharpexec: New file.
32328         * MODULES.html.sh (C#): New section.
32329
32330 2005-06-01  Bruno Haible  <bruno@clisp.org>
32331
32332         * m4/csharp.m4: New file, from GNU gettext.
32333         * m4/csharpexec.m4: New file, from GNU gettext.
32334
32335 2005-06-01  Bruno Haible  <bruno@clisp.org>
32336
32337         * lib/csharpexec.h: New file, from GNU gettext.
32338         * lib/csharpexec.c: New file, from GNU gettext.
32339         * lib/csharpexec.sh.in: New file, from GNU gettext.
32340
32341 2005-05-31  Derek Price  <derek@ximbiot.com>
32342             Paul Eggert  <eggert@cs.ucla.edu>
32343
32344         Sync from cvs.
32345         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32346
32347 2005-05-31  Derek Price  <derek@ximbiot.com>
32348             Paul Eggert  <eggert@cs.ucla.edu>
32349
32350         Sync from cvs.
32351         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32352
32353 2005-05-29  Derek Price  <derek@ximbiot.com>
32354
32355         * config/srclist.txt (glob_.h, glob.c): Add these files.
32356
32357 2005-05-29  Derek Price  <derek@ximbiot.com>
32358
32359         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32360         * modules/glob: New file.
32361         * modules/getlogin_r: Add link to POSIX spec in description.
32362
32363 2005-05-29  Derek Price  <derek@ximbiot.com>
32364             Paul Eggert  <eggert@cs.ucla.edu>
32365
32366         * m4/glob.m4: New file.
32367
32368 2005-05-29  Derek Price  <derek@ximbiot.com>
32369             Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         * lib/glob_.h, lib/glob.c: New files.
32372
32373 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32374
32375         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32376         * modules/fts-lgpl (Depends-on): Remove gettext.
32377
32378 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32379
32380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32381         and don't require gt_INTTYPES_PRI.
32382
32383 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32384
32385         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32386
32387         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32388         the configuration hassle isn't worth it.
32389         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32390         (LONGEST_MODIFIER, PRIuMAX): Remove.
32391
32392 2005-05-27  Bruno Haible  <bruno@clisp.org>
32393
32394         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32395
32396 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32397
32398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32399         _POSIX_PTHREAD_SEMANTICS for Solaris.
32400
32401 2005-05-25  Derek Price  <derek@ximbiot.com>
32402
32403         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32404
32405 2005-05-25  Derek Price  <derek@ximbiot.com>
32406             Paul Eggert  <eggert@cs.ucla.edu>
32407
32408         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32409         * lib/getlogin_r.c, getlogin_r.h: New files.
32410
32411 2005-05-25  Bruno Haible  <bruno@clisp.org>
32412             Derek Price  <derek@ximbiot.com>
32413
32414         * lib/getlogin_r.h: Simplify API documentation.
32415
32416 2005-05-23  Derek Price  <derek@ximbiot.com>
32417
32418         * modules/minmax (Files): Add m4/minmax.m4.
32419         (configure.ac): Add gl_MINMAX.
32420
32421 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32422
32423         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32424         so that unistd-safer.h (GPL'ed code) need not be included.
32425
32426 2005-05-22  Bruno Haible  <bruno@clisp.org>
32427
32428         * m4/minmax.m4: New file.
32429         Based on a patch by Derek Price <derek@ximbiot.com>.
32430
32431 2005-05-22  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32434         (INT64_MIN): Fix definition.
32435         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32436
32437         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32438         NEED_SIGNED_INT_TYPES.
32439
32440         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32441         HAVE_SYSTEM_INTTYPES.
32442
32443 2005-05-22  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32446         Also include <sys/param.h> if it defines MIN, MAX.
32447         Based on a patch by Derek Price <derek@ximbiot.com>.
32448
32449 2005-05-21  Jim Meyering  <jim@meyering.net>
32450
32451         * modules/fts (Files): Add m4/inttypes-pri.m4.
32452         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32453
32454 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32455
32456         New fts module.
32457         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32458         (setup_dir, free_dir): New functions.
32459         (enter_dir, leave_dir): Define trivial
32460         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32461         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32462         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32463         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32464         Move to fts-cycle.c.
32465         (fts_open): Use setup_dir.
32466         (fts_close): Use free_dir.
32467         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32468         This adds a label and some gotos, but the alternatives were messier.
32469         Check for memory allocation failure when entering a dir.
32470         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32471         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32472         (FTS): New member fts_cycle, that is a union that contains the
32473         old active_dir_ht and cycle_state.  All uses changed to mention
32474         fts_cycle.ht and fts_cycle.state.
32475         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32476         fts.c, with the following changes:
32477         (setup_dir, free_dir): New functions.
32478         (enter_dir): Now returns bool.  Return true if successful, false
32479         if memory exhausted.  All callers changed.
32480         Do not bother partly cleaning up on
32481         memory allocation failure; that is free_dir's job.
32482         However, free ad if hash_insert fails, to avoid memory leak.
32483         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32484         fts->fts_options to see which union member to use.
32485
32486 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32487
32488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32489         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32490
32491 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32492
32493         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32494
32495 2005-05-20  Jim Meyering  <jim@meyering.net>
32496
32497         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32498         Now a macro, to pacify GCC.
32499
32500 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32501
32502         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32503         of -1.
32504
32505 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32506
32507         * lib/chown.c (rpl_chown): Return -1 on failure.
32508
32509 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32510
32511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32512         Don't check for stddef.h.
32513         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32514         don't use its results.
32515         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32516         since we include them unconditionally.  Don't require
32517         AM_STDBOOL_H, since stdbool is a prerequisite.
32518         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32519         since we assume C89 or better.
32520         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32521         as we don't use their results.
32522         Don't check for fchdir, memmove, memset, strrchr, as we use
32523         them unconditionally.
32524         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32525         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32526
32527 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32528
32529         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32530         Include <stddef.h> unconditionally, since we assume C89 now.
32531         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32532         * lib/fts.c: Include fts_.h first, to check interface.
32533         Do not include intprops.h; no longer needed.
32534         Include cycle-check.h and hash.h, since fts_.h no longer does.
32535         Remove unnecessary casts of closedir to void.
32536         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32537         decide whether to decrement nlinks.
32538         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32539         (FTS): Use struct hash_table * instead of Hash_table, so that
32540         we no longer need to include hash.h here.
32541
32542 2005-05-18  Jim Meyering  <jim@meyering.net>
32543
32544         * modules/dirfd (License): Change to LGPL.  Most of the code
32545         is already in the public domain.
32546
32547 2005-05-18  Jim Meyering  <jim@meyering.net>
32548
32549         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32550         Reported by Yoann Vandoorselaere.
32551
32552 2005-05-17  Jim Meyering  <jim@meyering.net>
32553
32554         * m4/fts.m4: New file, from coreutils.
32555
32556 2005-05-17  Jim Meyering  <jim@meyering.net>
32557
32558         * lib/fts.c, lib/fts_.h: New files, from coreutils.
32559
32560 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32561
32562         Sync from coreutils.
32563         * m4/unlinkdir.m4: New file.
32564
32565 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32566
32567         Sync from coreutils.
32568         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32569         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32570         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32571         White space changes only.
32572         * lib/makepath.c (make_path): Port to hosts where leading "//" is
32573         special.
32574         * lib/yesno.c: Include getline.h, not ctype.h.
32575         (yesno): Don't remove leading white space; POSIX doesn't allow it.
32576         Use getline to remove arbitrary restriction on response length.
32577
32578 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32579
32580         * config/srclist-update: Spell out "Street" in FSF postal
32581         mail address; this is the style the FSF seems to prefer.
32582
32583         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32584         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32585         this updates FSF postal mail address.
32586
32587         Sync from coreutils.
32588         * modules/unlinkdir: New file.
32589         * modules/yesno (Depends-on): Add getline.
32590         * MODULES.html.sh (File system functions): Add unlinkdir.
32591
32592 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32593
32594         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32595         lib/strsep.h:
32596         Change the initial comment to refer to GPL, not LGPL.
32597         gnulib-tool will change it to LGPL as needed.
32598
32599         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32600         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32601         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32602         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32603         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32604         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32605         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32606         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32607         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32608         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32609         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32610         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32611         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32612         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32613         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32614         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32615         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32616         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32617         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32618         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32619         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32620         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32621         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32622         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32623         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32624         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32625         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32626         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32627         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32628         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32629         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32630         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32631         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32632         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32633         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32634         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32635         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32636         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32637         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32638         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32639         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32640         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32641         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32642         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32643         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32644         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32645         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32646         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32647         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32648         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32649         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32650         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32651         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32652         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32653         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32654         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32655         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32656         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32657         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32658         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32659         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32660         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32661         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32662         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32663         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32664         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32665         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32666         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32667         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32668         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32669         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32670         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32671         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32672         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32673         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32674         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32675         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32676         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
32677         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
32678         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
32679         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
32680         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
32681         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
32682         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
32683         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
32684         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
32685         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
32686         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
32687         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
32688         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
32689         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
32690         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
32691         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
32692         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
32693         lib/yesno.c, lib/yesno.h:
32694         Update FSF postal mail address.
32695
32696 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32697
32698         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
32699         tests/test-memmem.c, tests/test-stpncpy.c:
32700         Update FSF postal mail address.
32701
32702 2005-05-13  Bruno Haible  <bruno@clisp.org>
32703
32704         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
32705         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
32706         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
32707         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
32708         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
32709         Add support for 64-bit integers in the MSVC compiler.
32710
32711 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32712
32713         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
32714
32715 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
32716
32717         * gnulib-tool (func_import): Sort and uniquify recommended includes.
32718
32719 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32720
32721         * doc/getdate.texi (General date syntax): Don't say that date
32722         date --iso-8601=ns generates acceptable dates; it doesn't yet.
32723         Problem reported by Nic Ferrier.
32724
32725 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32726
32727         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
32728         specified in ai_socktype. Fix invalid ai_protocol
32729         check. ai_protocol is usually set to 0 or depending on
32730         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
32731         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
32732         ai_socktype / ai_protocol in the returned addrinfo structure.
32733
32734 2005-05-10  Simon Josefsson  <jas@extundo.com>
32735
32736         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
32737         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32738
32739 2005-05-10  Karl Berry  <karl@gnu.org>
32740
32741         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
32742         (from http://www.gnu.org/licenses).
32743         * doc/COPYING.LIB: also rename to COPYING.LESSER.
32744         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
32745         fdl.texi suffices.
32746
32747 2005-05-10  Karl Berry  <karl@gnu.org>
32748
32749         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
32750         (COPYING.DOC): remove.
32751
32752         * config/srclist-update: new FSF address.
32753
32754 2005-05-10  Derek Price  <derek@ximbiot.com>
32755
32756         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
32757         possible.
32758
32759 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/inet_ntop: New file.
32763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32764         inet_ntop.
32765
32766 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32767             Bruno Haible  <bruno@clisp.org>
32768
32769         * m4/inet_ntop.m4: New file.
32770
32771 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32772             Bruno Haible  <bruno@clisp.org>
32773
32774         * lib/inet_ntop.h: New file.
32775         * lib/inet_ntop.c: New file, from glibc with modifications.
32776
32777 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
32778
32779         * modules/time_r (License): Change to LGPL.
32780         * modules/extensions (License): Change to LGPL.  Actually,
32781         the license is more permissive than that, but currently gnulib-tool
32782         doesn't know how to handle more-permissive licenses.
32783
32784         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
32785         Problem reported by Dave Love.
32786
32787 2005-05-08  Jim Meyering  <jim@meyering.net>
32788
32789         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
32790         blank.
32791
32792 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
32793
32794         * modules/argmatch (Depends-on): Add stdbool.
32795         * modules/backupfile (Depends-on): Likewise.
32796         * modules/chdir-long (Depends-on): Likewise.
32797         * modules/closeout (Depends-on): Likewise.
32798         * modules/cycle-check (Depends-on): Likewise.
32799         * modules/dirname (Depends-on): Likewise.
32800         * modules/fnmatch (Depends-on): Likewise.
32801         * modules/fsusage (Depends-on): Likewise.
32802         * modules/fwriteerror (Depends-on): Likewise.
32803         * modules/getcwd (Depends-on): Likewise.
32804         * modules/getloadavg (Depends-on): Likewise.
32805         * modules/hard-locale (Depends-on): Likewise.
32806         * modules/makepath (Depends-on): Likewise.
32807         * modules/mountlist (Depends-on): Likewise.
32808         * modules/nanosleep (Depends-on): Likewise.
32809         * modules/posixtm (Depends-on): Likewise.
32810         * modules/quotearg (Depends-on): Likewise.
32811         * modules/readtokens (Depends-on): Likewise.
32812         * modules/readtokens0 (Depends-on): Likewise.
32813         * modules/readutmp (Depends-on): Likewise.
32814         * modules/save-cwd (Depends-on): Likewise.
32815         * modules/strftime (Depends-on): Likewise.
32816         * modules/userspec (Depends-on): Likewise.
32817         * modules/utimecmp (Depends-on): Likewise.
32818         * modules/xgetcwd (Depends-on): Likewise.
32819         * modules/xnanosleep (Depends-on): Likewise.
32820         * modules/xstrtod (Depends-on): Likewise.
32821         * modules/yesno (Depends-on): Likewise.
32822
32823 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32824
32825         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
32826         needless checks.
32827
32828 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32829
32830         Merge from coreutils.  Among other things,
32831         add bulletproofing for cases where stdin, stdout, or stderr are closed.
32832         * lib/fd-safer.c: New file.
32833         * lib/fcntl-safer.h, open-safer.c: Remove.
32834         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
32835         * lib/dup-safer.c: Include unistd-safer.h first.
32836         Don't include errno.h.
32837         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
32838         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
32839         * lib/file-type.c: Rely on file-type.h change.
32840         * lib/getloadavg.c: Include unistd-safer.h.
32841         (getloadavg): Use safer open.
32842         * lib/getusershell.c: Include "stdio-safer.h".
32843         (getusershell): Use safer fopen.
32844         * lib/long-options.c (long_options): Use NULL rather than 0.
32845         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
32846         'free'.
32847         * lib/modechange.c: Likewise.
32848         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
32849         (MODE_DONE): New constant.
32850         (struct mode_change): Remove 'next' member.
32851         (make_node_op_equals): New function; like the old one of the
32852         same name, except it allocates an array.
32853         (mode_compile, mode_create_from_ref): Use it.
32854         (mode_compile): Allocate result as an array, not a linked list.
32855         Parse octal string ourself, so that we catch mistakes like "+0".
32856         (mode_adjust): Arg is an array, not a linked list.
32857         * lib/modechange.c: Include stat-macros.h, xalloc.h.
32858         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
32859         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
32860         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
32861         Remove.  This is now stat-macros.h's job.
32862         (talloc): Remove.  All callers replaced by xalloc, so that
32863         our invokers don't have to worry about reporting memory failures.
32864         (make_node_op_equals): Remove.
32865         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32866         New constants.
32867         (struct mode_change): Moved here from modechange.h.
32868         (mode_append_entry): Remove.
32869         (mode_compile): Remove MASKED_OPS arg, since it encouraged
32870         apps to have incorrect behavior.  Use simpler algorithm for head
32871         and tail.  Don't futz with umask; that's now the job of mode_adjust.
32872         Detect more invalid usages rather than having somewhat-random behavior.
32873         Don't insert an "a=" action, as that leads to incorrect behavior.
32874         (mode_compile, mode_create_from_ref): Return NULL on error instead
32875         of an enum, since now there's only one way to have an error.  All
32876         callers changed.
32877         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
32878         at the correct time.  Simplify calculation of "+u" and its ilk.
32879         Don't mishandle "+X".
32880         (mode_free): Remove "register" and localize decls.
32881         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32882         (struct mode_change): Move to modechange.c; callers don't
32883         need to see this stuff.
32884         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
32885         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
32886         (mode_change, mode_adjust): Reflect the new signatures noted above.
32887         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
32888         that might redefine system include files.
32889         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
32890         (my_usleep): Use NULL rather than (void *) 0.
32891         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
32892         Use siginterrupt to specify that system calls should be interrupted.
32893         (rpl_nanosleep): Move initialization of suspended closer to call of
32894         my_usleep.
32895         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
32896         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
32897         (desirable_utmp_entry): New function.
32898         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
32899         using x2nrealloc, to simplify logic.
32900         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
32901         size calculation.  Do not assume utmp file is a regular file.
32902         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
32903         (READ_UTMP_CHECK_PIDS): New constant.
32904         * lib/save-cwd.c: Include unistd-safer.h.
32905         (save_cwd): Use fd_safer.
32906         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
32907         [!_LIBC] Include "stat-macros.h" instead.
32908         * lib/unistd-safer.h (fd_safer): New decl.
32909
32910 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32911
32912         * modules/getloadavg (Depends-on): Add unistd-safer.
32913         * modules/getusershell (Depends-on): Add stdio-safer.
32914         * modules/lstat (Depends-on): Remove xalloc.
32915         * modules/mkstemp (Depends-on): Add stat-macros.
32916         * modules/modechange (Depends-on): Remove xstrtol.
32917         Add stat-macros, xalloc.
32918         * modules/save-cwd (Depends-on): Add unistd-safer.
32919         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32920         * modules/unistd-safer (Files): Add lib/fd-safer.c
32921         (Makefile.am): Remove lib_SOURCES.
32922
32923         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32924         Remove fcntl-safer; unistd-safer supersedes it.
32925
32926 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32927
32928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
32929         AC_HEADER_STAT.
32930         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
32931         (gl_PREREQ_CHOWN): Remove.
32932         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
32933         it.  Don't require AC_HEADER_STAT.
32934         (gl_PREREQ_LSTAT): Remove.
32935         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
32936         Don't require AC_HEADER_STAT.
32937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
32938         (gl_PREREQ_RMDIR): Remove.
32939         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32940         mention stat-macros.h or AC_HEADER_STAT, since we'll make
32941         the stat-macros module a prerequisite.
32942         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32943         * m4/filemode.m4 (gl_FILEMODE): Likewise.
32944         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32945         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32946         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32947         variable names.
32948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32949         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
32950         variable prefixes.
32951         * m4/fcntl-safer.m4: Remove.
32952         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32954         Invoke gl_PREREQ_FD_SAFER.
32955         (gl_PREREQ_FD_SAFER): New macro.
32956         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32957         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32958         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32959         Remove duplicate call to AC_LIBOBJ(readutmp).
32960         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
32961
32962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32963         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
32964
32965 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32966
32967         * MODULES.html.sh (Misc): Add byteswap.
32968
32969 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32970
32971         * modules/getcwd (Depends-on): Add extensions.
32972         * modules/openat (Depends-on): Likewise.
32973
32974 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32975
32976         * modules/byteswap: New file.
32977
32978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32979
32980         * m4/byteswap.m4: New file.
32981
32982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32983
32984         * lib/byteswap_.h: New file.
32985
32986 2005-04-25  Karl Berry  <karl@gnu.org>
32987
32988         * m4/gettext.m4: Update from GNU gettext 0.14.4.
32989
32990 2005-04-25  Albert Chin  <china@thewrittenword.com>
32991
32992         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32993         Toolkit C bug.
32994
32995 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
32996
32997         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32998         (func_ln_if_changed) Remove forcibly for no error message
32999         in case file does not exist.
33000
33001 2005-04-19  Simon Josefsson  <jas@extundo.com>
33002
33003         * gnulib-tool (Options): Make --symlink mean --symbolic.
33004
33005 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33006
33007         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33008
33009 2005-04-16  Simon Josefsson  <jas@extundo.com>
33010
33011         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33012
33013 2005-04-15  Simon Josefsson  <jas@extundo.com>
33014
33015         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33016
33017 2005-04-15  Simon Josefsson  <jas@extundo.com>
33018
33019         * gnulib-tool: Rename --symlink to --symbolic.
33020
33021 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33022
33023         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33024         symbolic links to files instead of copying/moving.  Add --aux-dir,
33025         specifying directory relative --dir where auxiliary build tools
33026         are placed.
33027
33028 2005-04-14  Bruno Haible  <bruno@clisp.org>
33029
33030         * modules/allocsa (License): Change to LGPL.
33031         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33032
33033 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33034
33035         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33036         that "UTC +1 second" continues to work.  Problem reported
33037         by Dmitry V. Levin.
33038         (relunit_snumber): New rule.
33039         (relunit): Use it.
33040
33041 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33042
33043         * lib/getdate.y (universal_time_zone_table): New constant.
33044         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33045         universal_time_zone_table.
33046         (lookup_zone): Prefer universal_time_zone_table to
33047         local_time_zone_table, so that "GMT" time stamps are allowed in
33048         London during the summer.  Problem reported by Ian Abbott.
33049
33050 2005-04-12  Jim Meyering  <jim@meyering.net>
33051
33052         * lib/human.c (humblock): Set *options even when returning due to
33053         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33054         warning from gcc-4.
33055
33056 2005-04-09  Jim Meyering  <jim@meyering.net>
33057
33058         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33059         -Wuninitialized: initialize tm0.tm_year.
33060
33061 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33062
33063         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33064         count, since there's no maximum.  All uses changed.
33065         Add member dsts_seen.
33066         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33067         not being INT_MAX.
33068         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33069         Use pc_rels_seen to decide whther a date is absolute.
33070
33071         * lib/getdate.y (number): Don't overwrite year.
33072         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33073         check.
33074
33075 2005-04-02  Simon Josefsson  <jas@extundo.com>
33076
33077         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33078         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33079
33080 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33081
33082         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33083         where no absolute path name can be longer than PATH_MAX.
33084
33085 2005-03-27  Jim Meyering  <jim@meyering.net>
33086
33087         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33088
33089 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33090
33091         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33092         "one's complement" -> "ones' complement" in comment, as per Knuth.
33093         "value of type" -> "type or expression" in comment.
33094         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33095
33096 2005-03-26  Jim Meyering  <jim@meyering.net>
33097
33098         Comment nits.
33099         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33100         Correct typos: s/or/of/.
33101
33102 2005-03-26  Jim Meyering  <jim@meyering.net>
33103
33104         * modules/check-include-files: Move to ../ and rename to...
33105         * check-module: ...this.
33106
33107 2005-03-25  Jim Meyering  <jim@meyering.net>
33108
33109         * modules/xvasprintf (Files): Add xalloc.h.
33110
33111 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33112
33113         * modules/gettext (Files): config/config.rpath ->
33114         build-aux/config.rpath
33115         * modules/iconv (Files): Likewise.
33116         Problem reported by Oskar Liljeblad.
33117
33118 2005-03-23  Jim Meyering  <jim@meyering.net>
33119
33120         * modules/check-include-files: New script to check for
33121         missing dependencies, multiple includes, etc.
33122
33123         * modules/c-strtold (Depends-on): Add xalloc.
33124         * modules/c-strtod (Depends-on): Add xalloc.
33125         * modules/hash (Depends-on): Add xalloc.
33126         (Files): Remove lib/xalloc.h.
33127
33128         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33129         * modules/userspec (Files): Add lib/inttostr.h.
33130
33131 2005-03-23  Jim Meyering  <jim@meyering.net>
33132
33133         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33134
33135 2005-03-22  Jim Meyering  <jim@meyering.net>
33136
33137         * modules/stat-macros: New module.
33138         * modules/canonicalize, modules/euidaccess, modules/file-type,
33139         * modules/filemode, modules/lchown, modules/makepath,
33140         * modules/rmdir, modules/stat: Depend on new stat-macros module
33141         rather than listing lib/stat-macros.h manually.
33142         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33143
33144 2005-03-22  Jim Meyering  <jim@meyering.net>
33145
33146         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33147
33148 2005-03-22  Bruno Haible  <bruno@clisp.org>
33149
33150         * config/srclist.txt: Replace target directory 'config' with
33151         'build-aux'.
33152         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33153         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33154         ../build-aux/.
33155
33156 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33157
33158         * modules/chdir-long (Depends-on): Add mempcpy.
33159
33160         * modules/acl, modules/backupfile, modules/c-strtod,
33161         modules/c-strtold, modules/canon-host, modules/canonicalize,
33162         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33163         modules/exclude, modules/exitfail, modules/file-type,
33164         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33165         modules/getdate, modules/getline, modules/getpagesize,
33166         modules/getpass, modules/getugroups, modules/group-member,
33167         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33168         modules/inttostr, modules/long-options, modules/makepath,
33169         modules/md5, modules/memcasecmp, modules/memcoll,
33170         modules/modechange, modules/mountlist, modules/path-concat,
33171         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33172         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33173         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33174         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33175         modules/strftime, modules/strndup, modules/strverscmp,
33176         modules/timespec, modules/unlocked-io, modules/userspec,
33177         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33178         modules/yesno:
33179         Remove lib_SOURCES line from Makefile.am section, as this is now
33180         done automatically by the corresponding Autoconf macro.
33181
33182 2005-03-21  Jim Meyering  <jim@meyering.net>
33183
33184         Changes imported from coreutils.
33185
33186         * lib/cycle-check.c: Don't include xalloc.h.
33187
33188         * lib/path-concat.c: Don't include assert.h.
33189         (path_concat): Remove assertion that would have triggered
33190         for ABASE starting with more than one slash.
33191         Reported by Andreas Schwab.
33192
33193         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33194         properly when ABASE is an absolute file name.
33195         Correct the description of this function.
33196         Include <assert.h>.
33197         Add an assertion and a test driver.
33198         This fixes a bug introduced on 2004-07-02.
33199         Andreas Schwab reported the resulting failure of cp --parents:
33200         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33201
33202 2005-03-21  Jim Meyering  <jim@meyering.net>
33203
33204         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33205         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33206
33207 2005-03-21  Jim Meyering  <jim@meyering.net>
33208         and  Paul Eggert  <eggert@cs.ucla.edu>
33209
33210         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33211         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33212         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33213         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33214         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33215         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33216         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33217         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33218         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33219         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33220         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33221         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33222         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33223         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33224         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33225         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33226         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33227         for these modules.
33228
33229 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33230
33231         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33232         (which shouldn't happen), generate nothing instead of returning 0
33233         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33234
33235 2005-03-16  Bruno Haible  <bruno@clisp.org>
33236
33237         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33238         HAVE_LONGLONG_64BIT.
33239
33240 2005-03-16  Bruno Haible  <bruno@clisp.org>
33241
33242         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33243         HAVE_LONGLONG_64BIT.
33244
33245 2005-03-16  Bruno Haible  <bruno@clisp.org>
33246
33247         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33248         HAVE_LONGLONG_64BIT.
33249
33250 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33251
33252         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33253         reliably distinguish strftime failure from empty output on POSIX
33254         hosts.
33255
33256 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33257
33258         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33259         (iconv_string): Don't guess a size-zero buffer, as that might cause
33260         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33261         result would be 'too large', where 'too large' is (heuristically)
33262         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33263         overflow concerns.  This will prevent some unwanted malloc failures
33264         when the inputs are very large.
33265
33266 2005-03-15  Karl Berry  <karl@gnu.org>
33267
33268         * config/srclist.txt (config.rpath): from gettext.
33269         * config/config.rpath: update.
33270
33271 2005-03-15  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33274         to 'negate'.
33275
33276         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33277         variable.
33278
33279         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33280         results.
33281
33282 2005-03-14  Simon Josefsson  <jas@extundo.com>
33283
33284         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33285         <fx@gnu.org>.
33286
33287 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33288
33289         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33290         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33291         intprops.h.
33292         * lib/strtol.c: Likewise.
33293
33294 2005-03-14  Jim Meyering  <jim@meyering.net>
33295
33296         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33297         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33298         to be nonzero so that we (and caller) can detect the difference
33299         between a valid zero-length expansion and an error return, even
33300         when the underlying strftime fails before writing anything into
33301         that location.
33302
33303 2005-03-14  Bruno Haible  <bruno@clisp.org>
33304
33305         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33306         Update from GNU gettext 0.14.3.
33307
33308 2005-03-10  Jim Meyering  <jim@meyering.net>
33309
33310         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33311
33312 2005-03-10  Jim Meyering  <jim@meyering.net>
33313
33314         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33315         so that this module works on systems without fchdir.
33316
33317 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33318
33319         Factor int-properties macros into a single file, except for
33320         glibc-related files.
33321         * lib/intprops.h: New file.
33322         * lib/getloadavg.c: Include it instead of limits.h.
33323         (INT_STRLEN_BOUND): Remove.
33324         * lib/human.c: Include intprops.h.
33325         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33326         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33327         302/1000.
33328         * lib/inttostr.h: Include intprops.h instead of limits.h.
33329         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33330         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33331         for consistency with intprops.h.
33332         (time_t_is_integer, twos_complement_arithmetic): Use them.
33333         * lib/sig2str.h: Include <signal.h>, intprops.h.
33334         (INT_STRLEN_BOUND): Remove.
33335         * lib/strftime.c (TYPE_SIGNED): Remove.
33336         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33337         * lib/strtol.c: Adjust comments to match intprops.h.
33338         * lib/userspec.c: Include intprops.h.
33339         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33340         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33341         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33342         instead of rolling our own expressions.
33343         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33344
33345         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33346         instead of int.
33347         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33348         the right thing even if adding 1900 would overflow.  Similarly
33349         for tm_mon + 1 and tm_yday + 1.
33350         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33351         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33352         (DO_SIGNED_NUMBER): New macro.
33353         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33354
33355 2005-03-07  Bruno Haible  <bruno@clisp.org>
33356
33357         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33358
33359 2005-03-07  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33362
33363 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33364
33365         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33366         (func_import): Only replace files via --import when they have actually
33367         changed.
33368
33369 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33370
33371         * m4/mmap-anon.m4: New file.
33372         * m4/pagealign_alloc.m4: New file.
33373
33374 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33375             Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/pagealign_alloc: New file.
33378         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33379
33380 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33381             Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/pagealign_alloc.h: New file.
33384         * lib/pagealign_alloc.c: New file.
33385
33386 2005-03-03  Bruno Haible  <bruno@clisp.org>
33387
33388         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33389         Use an all-permissive copyright notice, recommended by RMS.
33390
33391 2005-03-02  Bruno Haible  <bruno@clisp.org>
33392
33393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33394         of AIX, the replacement has to be done only after <string.h> is
33395         included, therefore not in config.h. stpncpy.h does the replacement,
33396         and stpncpy.c uses it.
33397
33398 2005-03-02  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33401         stpncpy.c uses it.
33402
33403 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33404
33405         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33406         The workaround isn't strictly needed for POSIX conformance, and
33407         it's too much of a pain to configure and maintain.  We'll ask
33408         people to fix their kernels instead.
33409         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33410         (NANOSLEEP_BUG_WORKAROUND): Remove.
33411         (xnanosleep): Remove the workaround.
33412
33413 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33414
33415         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33416         Reported by Derek Price.
33417         (Include): Add "timespec.h".
33418
33419         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33420
33421 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33422
33423         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33424         to detect nanosleep bug.
33425
33426 2005-03-01  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33429
33430 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33431
33432         * modules/gethrxtime: New file.
33433         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33434         (Depends-on): Add gethrxtime.
33435         (configure.ac): Add gl_XNANOSLEEP.
33436         (Makefile.am): Remove lib_SOURCES line.
33437
33438 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33439
33440         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33441         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33442
33443 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33444
33445         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33446         * lib/timespec.h (gettime): Return void, since it always
33447         succeeds now.  All uses changed.
33448         * lib/gettime.c (gettime) Likewise.
33449         [HAVE_NANOTIME]: Prefer nanotime.
33450         Assume gettimeofday succeeds, as POSIX requires.
33451         Assime time () succeeds, since other code already does.
33452         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33453         (timespec_subtract): Remove.
33454         (NANOSLEEP_BUG_WORKAROUND): New constant.
33455         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33456         things considerably.  Use it only on GNU/Linux hosts, since the
33457         workaround shouldn't be needed elsewhere.
33458
33459 2005-02-24  Bruno Haible  <bruno@clisp.org>
33460
33461         * modules/gettext (Files): Add m4/glibc2.m4.
33462
33463 2005-02-24  Bruno Haible  <bruno@clisp.org>
33464
33465         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33466         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33467         * m4/progtest.m4:
33468         Update from GNU gettext 0.14.2.
33469         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33470
33471 2005-02-24  Bruno Haible  <bruno@clisp.org>
33472
33473         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33474         * lib/config.charset: Update from GNU gettext 0.14.2.
33475
33476 2005-02-24  Bruno Haible  <bruno@clisp.org>
33477
33478         * lib/gettext.h: Update from GNU gettext 0.14.2.
33479
33480 2005-02-23  Simon Josefsson  <jas@extundo.com>
33481
33482         * m4/iconvme.m4: New file.
33483
33484 2005-02-23  Jim Meyering  <jim@meyering.net>
33485
33486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33487         change.
33488         Thanks to Bruno Haible for catching it.
33489
33490 2005-02-22  Simon Josefsson  <jas@extundo.com>
33491
33492         * modules/iconvme: New file.
33493
33494         * MODULES.html.sh: Add iconvme.
33495
33496 2005-02-22  Simon Josefsson  <jas@extundo.com>
33497
33498         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33499
33500 2005-02-22  Simon Josefsson  <jas@extundo.com>
33501
33502         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33503
33504 2005-02-22  Jim Meyering  <jim@meyering.net>
33505
33506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33507         s/ifndef/ifdef/.
33508
33509 2005-02-20  Neil Conway  <neilc@samurai.com>
33510
33511         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33512         returned by OSX/Darwin if the specified buffer is not large
33513         enough for the hostname.
33514
33515 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33516
33517         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33518         pass it to _help, otherwise the latter coredumps trying to
33519         dereference state.root_argp.
33520
33521 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33522
33523         * modules/chdir-long (Depends-on): Add memrchr.
33524         * modules/memrchr (Files): Add lib/memrchr.h.
33525         (Include): "memrchr.h".
33526
33527 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33530
33531 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33532
33533         * lib/memrchr.h: New file.
33534         * lib/chdir-long.c: Include it.
33535         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33536         Don't bother including stddef.h.
33537
33538 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33539
33540         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33541         inclusion.
33542         Include <sys/types.h>, for dev_t.
33543         (ME_DUMMY, ME_REMOTE): Move from here....
33544         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33545         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33546         Dmitry V. Levin.
33547         Include mountlist.h first, to test the interface.
33548
33549 2005-01-29  Bruno Haible  <bruno@clisp.org>
33550
33551         * lib/progname.c (program_name): Initialize.
33552         Needed when linking statically on MacOS X.
33553
33554 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33555
33556         Sync from coreutils.
33557         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33558         (Depends-on): Add c-strtod.
33559         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33560
33561 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33562
33563         Sync from coreutils.
33564         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33565
33566         Remove files that are specific to coreutils.
33567         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33568
33569 2005-01-28  Bruno Haible  <bruno@clisp.org>
33570
33571         * modules/javacomp: New file.
33572         * MODULES.html.sh (Java): Add javacomp.
33573
33574 2005-01-28  Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/javacomp.m4: New file, from GNU gettext.
33577
33578 2005-01-28  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/javacomp.sh.in: New file, from GNU gettext.
33581         * lib/javacomp.h: New file, from GNU gettext.
33582         * lib/javacomp.c: New file, from GNU gettext.
33583
33584 2005-01-26  Simon Josefsson  <jas@extundo.com>
33585
33586         * lib/gai_strerror.c: Use GPL in header.
33587
33588 2005-01-26  Bruno Haible  <bruno@clisp.org>
33589
33590         * modules/javaexec: New file.
33591         * MODULES.html.sh (Java): Add javaexec.
33592
33593 2005-01-26  Bruno Haible  <bruno@clisp.org>
33594
33595         * m4/javaexec.m4: New file, from GNU gettext.
33596
33597 2005-01-26  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/javaexec.sh.in: New file, from GNU gettext.
33600         * lib/javaexec.h: New file, from GNU gettext.
33601         * lib/javaexec.c: New file, from GNU gettext.
33602
33603 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33604
33605         * modules/lchown (Depends-on): Remove lchown.h
33606
33607 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33608
33609         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33610         must be defined if the header file was not found, in order
33611         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33612
33613 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33614
33615         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33616         initializers for struct pentry_state.
33617         (__argp_error): Check return value of __asprintf
33618         (__argp_failure): Translate error message
33619
33620         * lib/argp-parse.c: Removed braces around the expansion of N_()
33621
33622 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33623
33624         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33625         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33626         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33627         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33628         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33629         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33630         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33631         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33632         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33633         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33634         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33635         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33636         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33637         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33638         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33639         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33640         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33641         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33642         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33643         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33644         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33645         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33646         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33647         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33648         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33649         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33650         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33651         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33652         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33653         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33654         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33655         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33656         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33657         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33658         xstrtol.m4, xstrtoumax.m4, yesno.m4:
33659         Use an all-permissive copyright notice, recommended by RMS.
33660
33661 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33662
33663         * modules/chdir-long (Depends-on): Remove mempcpy.
33664
33665 2005-01-21  Jim Meyering  <jim@meyering.net>
33666
33667         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33668         same value as for Solaris 9.
33669
33670         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33671         component length.  This included changing the parameter to be
33672         of type `char *' rather than `char const *'.
33673         * lib/chdir-long.h (chdir_long): Update prototype.
33674
33675         * lib/openat.c (fdopendir, fstatat): New functions.
33676         * lib/openat.h: Include headers required for use of DIR and struct
33677         stat.
33678         [AT_SYMLINK_NOFOLLOW]: Define.
33679         (fdopendir, fstatat): Add prototypes.
33680
33681 2005-01-21  Bruno Haible  <bruno@clisp.org>
33682
33683         * modules/classpath: New file.
33684         * MODULES.html.sh (Java): Add classpath.
33685
33686 2005-01-21  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/classpath.h: New file, from GNU gettext.
33689         * lib/classpath.c: New file, from GNU gettext.
33690
33691 2005-01-20  Simon Josefsson  <jas@extundo.com>
33692
33693         * modules/version-etc-fsf: New file.
33694
33695 2005-01-20  Simon Josefsson  <jas@extundo.com>
33696
33697         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
33698         * lib/version-etc.c: Remove version_etc_copyright.
33699         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
33700         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
33701
33702 2005-01-20  Simon Josefsson  <jas@extundo.com>
33703
33704         * lib/base64.h (isbase64): Add.
33705
33706         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
33707         using a unsigned prototype, don't inline.
33708         (base64_decode): Use it.
33709
33710 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33711
33712         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
33713         it.
33714
33715 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33716
33717         * lib/save-cwd.c (save_cwd): Remove code to support the case
33718         where fchdir is missing or flaky.
33719
33720 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
33723
33724 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
33725
33726         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
33727         AC_LIBSOURCES now does this.
33728         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
33729         with new ullong_max module.
33730
33731 2005-01-19  Bruno Haible  <bruno@clisp.org>
33732
33733         * modules/sh-quote: New file.
33734         * MODULES.html.sh (Executing programs): Add sh-quote.
33735
33736 2005-01-19  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/sh-quote.h: New file, from GNU gettext.
33739         * lib/sh-quote.c: New file, from GNU gettext.
33740
33741 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33742
33743         Merge from coreutils.
33744         * m4/ullong_max.m4: New file.
33745         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
33746         (gl_MACROS): Assume localeconv exists.
33747
33748 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33749
33750         Merge changes from coreutils, as described below in several
33751         changelogs dated today.
33752
33753         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
33754         (O_DIRECTORY): Remove; not needed here, since "." must be
33755         a directory.  All uses removed.
33756         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
33757         universal on Suns, and we also need to test for IRIX.
33758         Revamp code to use 'if' rather than '#if'.
33759         Avoid unnecessary comparison of cwd->desc to 0.
33760
33761         * lib/utimens.c (futimens): Robustify the previous patch, by checking
33762         for known valid error numbers rather than observed invalid ones.
33763
33764 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33765
33766         * modules/ullong_max: New file.
33767
33768         * modules/chdir-long, modules/openat: New files.
33769         * modules/save-cwd (Depends-on): Depend on chdir-long.
33770         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
33771
33772 2005-01-18  Jim Meyering  <jim@meyering.net>
33773
33774         Merge from coreutils.
33775         * m4/chdir-long.m4, m4/openat.m4: New files.
33776         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
33777         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
33778         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
33779         is sane and DOES follow symlinks.  Besides, testing 20 different
33780         systems found no broken chown implementations.
33781         Prompted by a change in rsync's copy of this macro.
33782         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
33783
33784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
33785
33786         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
33787         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
33788         NULL-means-set-to-current-time semantics.
33789         Remove temporary file immediately, rather than waiting
33790         for configure's at-exit trap code to do it.
33791
33792 2005-01-18  Jim Meyering  <jim@meyering.net>
33793
33794         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33795
33796         * lib/utimens.c (futimens): Account for the fact that futimes
33797         can also fail with errno == ENOSYS or errno == ENOENT.
33798         Patch from Dmitry V. Levin.
33799
33800         Change the name of the robust chdir function from chdir to chdir_long.
33801         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
33802         (restore_cwd): Use chdir_long, not chdir.
33803         * lib/chdir-long.c: Renamed from chdir.c.
33804         * lib/chdir-long.h: Renamed from chdir.h.
33805         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
33806         Hurd.
33807
33808 2005-01-18  Bruno Haible  <bruno@clisp.org>
33809
33810         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
33811         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
33812         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
33813         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
33814         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
33815         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
33816         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
33817         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
33818         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
33819         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
33820         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
33821         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
33822         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
33823         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
33824         Use an all-permissive copyright notice, recommended by RMS.
33825
33826 2005-01-18  Bob Proulx  <bob@proulx.com>
33827
33828         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
33829         simplify offsetof() macro construct to avoid compile failure with
33830         native HP-UX 11.0 ANSI C compiler.
33831
33832 2005-01-17  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
33835         redundant because stpncpy.m4 takes care of it.
33836
33837 2005-01-17  Bruno Haible  <bruno@clisp.org>
33838
33839         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
33840
33841 2005-01-17  Bruno Haible  <bruno@clisp.org>
33842
33843         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
33844         used.
33845
33846 2005-01-17  Bruno Haible  <bruno@clisp.org>
33847
33848         * lib/fwriteerror.h (fwriteerror): Change specification to include
33849         fclose.
33850         * lib/fwriteerror.c: Include <stdbool.h>.
33851         (fwriteerror): At the end, close the file stream. Record whether
33852         stdout was already closed.
33853
33854 2005-01-17  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/execute.c (environ): Declare if needed.
33857         * lib/pipe.c (environ): Likewise.
33858         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
33859
33860 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33861
33862         * modules/argp: Depend on vsnprintf
33863
33864 2005-01-10  Jim Meyering  <jim@meyering.net>
33865
33866         * modules/closeout (Depends-on): Add atexit.
33867
33868 2005-01-06  Bruno Haible  <bruno@clisp.org>
33869
33870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
33871
33872 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33873
33874         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
33875         definitions to be after all include files, to avoid collisions.
33876         Problem reported by Bob Proulx.
33877
33878 2005-01-04  Jim Meyering  <jim@meyering.net>
33879
33880         Changes imported from coreutils.
33881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
33882         as the mkstemp template, use a temporary directory and an
33883         8.3-friendly template to avoid trouble on systems like DJGPP.
33884         Reported by Juan M. Guerrero via Stepan Kasal.
33885         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
33886         close. Remove the temporary directory right away, rather than waiting
33887         for configure's at-exit trap code to do it.
33888         Suggestion from Stepan Kasal.
33889
33890 2005-01-01  Simon Josefsson  <jas@extundo.com>
33891
33892         * gnulib-tool: Print #include directives when --import'ing.
33893
33894 2004-12-28  Simon Josefsson  <jas@extundo.com>
33895
33896         * tests/test-base64.c: Include required header files.  Remove
33897         unused variables.
33898
33899 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
33900
33901         * modules/error (Depends-on): Remove gettext.
33902
33903 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
33904
33905         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
33906         not needed.  This removes a dependency on the gettext module.
33907         [defined _LIBC]: Do not include <libintl.h>; not needed.
33908
33909 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
33910
33911         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
33912         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
33913
33914 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
33915
33916         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33917         HAVE_DECL_STRTOLD.
33918
33919 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33920
33921         * modules/getdate (Depends-on): Remove alloca-opt.
33922
33923 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33924
33925         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
33926
33927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33928
33929         * lib/argp-parse.c: Include <stddef.h>.
33930         (alignof, alignto): New macros.
33931         (parser_init): Don't assume that void * is aligned sufficiently
33932         for struct option.
33933
33934         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
33935         need to extend the stack.
33936         (YYINITDEPTH): New macro, so that the initial stack isn't overly
33937         large.
33938
33939 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33940
33941         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33942
33943 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33944
33945         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33946         (2004-10-24) change.  Apparently this was a false alarm.
33947
33948         * modules/getdate: Depend on alloca-opt, not alloca.
33949
33950 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33951
33952         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33953         Remove now-obsolete comment about AIX.
33954         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33955         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33956         (YYMAXDEPTH): New macro.
33957
33958 2004-12-18  Simon Josefsson  <jas@extundo.com>
33959
33960         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33961
33962 2004-12-18  Bruno Haible  <bruno@clisp.org>
33963
33964         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33965
33966 2004-12-18  Bruno Haible  <bruno@clisp.org>
33967
33968         * lib/fatal-signal.c (fatal_signals): Make non-const.
33969         (init_fatal_signals): New function.
33970         (uninstall_handlers, install_handlers): Ignore signals that were set to
33971         SIG_IGN.
33972         (at_fatal_signal): Call init_fatal_signals.
33973         (init_fatal_signal_set): Likewise. Ignore signals that were set to
33974         SIG_IGN.
33975         Reported by Paul Eggert.
33976
33977 2004-12-18  Bruno Haible  <bruno@clisp.org>
33978
33979         * doc/alloca.texi: New file.
33980         * doc/alloca-opt.texi: New file.
33981
33982 2004-12-17  Jim Meyering  <jim@meyering.net>
33983
33984         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33985         Otherwise, install-sh could exit with improper exit status when
33986         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
33987
33988 2004-12-16  Simon Josefsson  <jas@extundo.com>
33989
33990         * tests/test-base64.c: Add license.
33991
33992 2004-12-15  Stepan Kasal  <address@hidden>
33993
33994         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33995
33996 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
33997
33998         * modules/getcwd (Files): Add m4/d-ino.m4.
33999         Suggested by Mark D. Baushke.
34000
34001 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34002
34003         * lib/getdate.y (textint): New member "negative".
34004         (time_zone_hhmm): New function.
34005         Expect 14 shift-reduce conflicts, not 13.
34006         (o_colon_minutes): New rule.
34007         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34008         (yylex): Set the "negative" member of signed numbers.
34009
34010 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34011
34012         * doc/getdate.texi (Time of day items, Time zone items):
34013         Describe new formats +00:00, UTC+00:00.
34014
34015 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34016
34017         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34018         spurious "-l"s.  Problem reported by Stepan Kasal.
34019
34020 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34023         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34024
34025 2004-12-04  Simon Josefsson  <jas@extundo.com>
34026
34027         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34028         Vandoorselaere <yoann@prelude-ids.org>.
34029
34030 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34031
34032         Changes imported from coreutils.
34033         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34034         exist.
34035         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34036
34037 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34038
34039         Changes imported from coreutils.
34040         * lib/hard-locale.c: Assume <locale.h> exists.
34041         Include "strdup.h".
34042         (GLIBC_VERSION): New macro.
34043         (hard_locale): Assume setlocale exists.
34044         Rewrite to avoid #ifdef.
34045         Use strdup rather than malloc + strcpy.
34046         * lib/human.c: Assume <locale.h> exists.
34047         (human_readable): Assume localeconv exists.
34048
34049 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         * modules/hard-locale (Depends-on): Add strdup.
34052
34053 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34054
34055         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34056         convert T2, not T.  (Imported from libc.)
34057
34058 2004-11-30  Simon Josefsson  <jas@extundo.com>
34059
34060         * modules/restrict (License): Change to LGPL.
34061
34062 2004-11-30  Simon Josefsson  <jas@extundo.com>
34063
34064         * m4/restrict.m4: Add copyright and copying conditions.
34065
34066 2004-11-30  Simon Josefsson  <jas@extundo.com>
34067
34068         * m4/base64.m4: New file.
34069
34070 2004-11-30  Simon Josefsson  <jas@extundo.com>
34071
34072         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34073         base64.
34074
34075         * tests/test-base64.c: New file.
34076
34077         * modules/base64: New file.
34078
34079 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34080
34081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34082         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34083
34084         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34085
34086 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34087
34088         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34089         (__getcwd.c): Don't restore errno; glibc doesn't.
34090         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34091         first, falling back to our code only if its results look suspicious.
34092         Ensure that the resulting buffer is only as large as necessary.
34093
34094         * lib/readutmp.c: Include readutmp.h first.
34095         Include <errno.h>, since readutmp.h no longer does that.
34096         * lib/readutmp.h: Don't include <errno.h>,
34097         <sys/param.h>, <time.h>; not needed to establish interface.
34098         (errno): Remove decl.
34099         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34100         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34101         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34102
34103 2004-11-28  Simon Josefsson  <jas@extundo.com>
34104
34105         * lib/base64.h, base64.c: New file.
34106
34107 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34108
34109         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34110
34111 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34112
34113         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34114         (Depends-on): Remove pathmax, same.  Add mempcpy.
34115         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34116         (Makefile.am): Append getcwd.h to lib_SOURCES.
34117         (Include): Add getcwd.h.
34118         (Maintainer): Change from Jim Meyering to "all, glibc",
34119         since getdate now uses intended-for-glibc code.
34120         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34121         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34122
34123 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34124
34125         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34126         HP's ANSI C compiler.
34127         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34128         Declaring int functions causes warnings on some modern systems and
34129         shouldn't be needed to compile on ancient ones.
34130         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34131         defined.
34132
34133         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34134         with the following changes.
34135         (__set_errno): Parenthesize properly.
34136         Include <stdbool.h>.
34137         (MIN, MAX, MATCHING_INO): New macros.
34138         (__getcwd): Define with prototype, not K&R form.
34139         Use heuristics to allocate default buffer on stack if possible.
34140         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34141         behavior, and to avoid the PATH_MAX limit when computing
34142         ../../../../...
34143         Use MATCHING_INO to compare inode number to file.
34144         Check for arithmetic overflow in size calculations.
34145         Fix bug in reallocation of dot array that caused getcwd to fail
34146         on directories nested deeper than 75.
34147         Be more careful about saving errno on error.
34148         Do not use realloc; use only free+malloc, as this is a bit
34149         more flexible and avoids a needless copy operation.
34150         Do not inspect st_dev and st_ino for symbolic links; POSIX
34151         doesn't specify the latter.
34152         Check for closedir errors.
34153         Avoid needless casts.
34154         Use "#ifdef weak_alias" around weak_alias, to be like other
34155         glibc code.
34156         The following changes to getcwd.c have effect only when used in
34157         gnulib; they have no effect inside glibc proper.
34158         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34159         as alloca isn't used.
34160         (alloca, __alloca): Likewise.
34161         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34162         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34163         unconditionally, as gnulib assumes C89 or better.
34164         Do not include <sys/param.h>.
34165         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34166         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34167         better.
34168         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34169         Include <dirent.h> in a way that is compatible with modern Autoconf.
34170         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34171         New macros, if not already defined.
34172         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34173         Use "_LIBC", not "defined _LIBC", for consistency.
34174         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34175         a mempcpy module.
34176         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34177         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34178         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34179         credit only to Jim Meyering and adjust the copyright dates.
34180         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34181         <stdlib.h>, <unistd.h>, "pathmax.h".
34182         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34183         (INITIAL_BUFFER_SIZE): Remove.
34184         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34185
34186 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34187
34188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34189         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34190         Use the _ONCE methods, for efficiency.
34191         Check for fcntl.h.  In test program, include <errno.h>
34192         and <fcntl.h> if available.  Remove old K&R cruft from
34193         test program.  Check for common errors in GNU/Linux,
34194         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34195         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34197         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34198         name accordingly.
34199         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34200         accommodate new getcwd.c.
34201         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34202         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34203         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34204         that's all we need now.
34205
34206 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34207
34208         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34209         argp-parse.c depends on getopt internals, that means we should
34210         always use our getopt, to be on the safe side.
34211         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34212         order not to spoil the result of an eventual previous invocation
34213         of gl_GETOPT_SUBSTITUTE.
34214
34215 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34216
34217         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34218         redefinition warnings. To avoid them, include the defines
34219         in `#if !defined __need_getopt ... #endif'. The only place
34220         where __getopt_argv_const is used is in definitions
34221         of getopt_long and getopt_long_only below, which are as well
34222         protected by `#ifndef __need_getopt'.
34223         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34224         __need_getopt after including <stdio.h> and <unistd.h> These
34225         headers might have defined it.
34226
34227 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34228
34229         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34230
34231 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34232
34233         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34234         (futimens): New function, which uses futimes if available.
34235         (futimens, utimens): Support timespec==NULL, with same semantics
34236         as utime and utimens.
34237         * lib/utimens.h (futimens): New decl.
34238
34239 2004-11-23  Jim Meyering  <jim@meyering.net>
34240
34241         * lib/getopt_.h: Remove trailing blanks.
34242
34243 2004-11-23  Jim Meyering  <jim@meyering.net>
34244
34245         * lib/__fpending.c: Add comment.
34246
34247 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34248
34249         * modules/canonicalize (Depends-on): Add xreadlink.
34250         Problem reported by James Youngman.
34251
34252 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34253
34254         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34255         New macros.
34256         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34257         optopt): Use them instead of invoking ## directly; otherwise, the
34258         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34259
34260 2004-11-19  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/strtok_r.c: Move comments from here...
34263         * lib/strtok_r.h: ... to here.
34264
34265 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34266
34267         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34268         implementations that mishandle size_t overflow.
34269
34270 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34271
34272         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34273         might fail.  Problem reported by Yoann Vandoorselaere.
34274         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34275         implementations that mishandle size_t overflow.
34276
34277 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34278
34279         * modules/canon-host (Depends-on): Add strdup.
34280
34281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34282
34283         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34284
34285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34286
34287         * lib/canon-host.c: Include "strdup.h".
34288         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34289         Use strdup instead of malloc/strcpy to duplicate strings.
34290
34291         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34292         (human_space_before_unit): New constant.
34293         * lib/human.c (human_readable): Support it.
34294
34295         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34296         (xgetcwd): Set errno correctly when failing.
34297         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34298         the failure is actually due to a PATH_MAX problem.
34299
34300         Further getopt changes to make it more likely that glibc will
34301         buy the changes back.
34302         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34303         (getopt): Use it, so to preserve glibc semantic
34304         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34305         when compiling for libc.
34306         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34307         (getopt_long, getopt_long_only): Use it.
34308
34309         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34310         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34311         (getopt): Argv is now char * const *, as per standard.
34312         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34313         not char *__getopt_argv_const *.
34314         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34315         _getopt_long_only_r): Likewise.
34316         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34317         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34318         _getopt_long_r, _getopt_long_only_r): Likewise.
34319         * lib/getopt_.h (__getopt_argv_const): Remove.
34320         (getopt): Argv is now char * const *, as per standard.
34321
34322         * lib/getdate.y (tORDINAL): New token.
34323         (day, relunit): Allow it for relative times.
34324         (relative_time_table): Use tORDINAL for ordinals.
34325
34326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34327
34328         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34329         Document that "second" isn't allowed as an ordinal number.
34330
34331 2004-11-16  Jim Meyering  <jim@meyering.net>
34332
34333         * modules/closeout (Depends-on): Add fpending.
34334
34335 2004-11-15  Jim Meyering  <jim@meyering.net>
34336
34337         * lib/closeout.c: Include "__fpending.h" once again.
34338         Include <stdbool.h>.
34339         (close_stdout): Don't fail just because stdout was closed initially,
34340         since some programs don't write to stdout in the normal course of
34341         operation (other than --version and --help), and we don't want this
34342         function to make e.g. `touch file >&-' fail.
34343         But do fail if it was closed and someone has tried to write to it.
34344         E.g., `printf foo >&-' must fail.
34345
34346 2004-11-13  Jim Meyering  <jim@meyering.net>
34347
34348         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34349
34350 2004-11-12  Simon Josefsson  <jas@extundo.com>
34351
34352         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34353         small doc fix is still pending.
34354
34355 2004-11-11  Simon Josefsson  <jas@extundo.com>
34356
34357         * modules/strtok_r: New file.
34358
34359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34360         strtok_r.
34361
34362 2004-11-11  Simon Josefsson  <jas@extundo.com>
34363
34364         * m4/strtok_r.m4: New file.
34365
34366         * m4/getopt.m4: Replace opterr.
34367
34368 2004-11-11  Simon Josefsson  <jas@extundo.com>
34369
34370         * lib/strtok_r.h, strtok_r.c: New file.
34371
34372 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34373
34374         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34375         of replacing opterr, getopt, etc.  This should handle the
34376         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34377
34378 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34379
34380         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34381         we can stop lying to compilers about the constness of argv when we
34382         are compiled outside glibc.
34383         (getopt, getopt_long, getopt_long_only): Use it.
34384         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34385         _getopt_internal, getopt): Likewise.
34386         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34387         _getopt_long_only_r): Likewise.
34388         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34389         _getopt_long_r, _getopt_long_only_r): Likewise.
34390
34391         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34392         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34393         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34394         the other external symbols.
34395         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34396         declaration, since the above renaming now works around collisions.
34397
34398 2004-11-11  Jim Meyering  <jim@meyering.net>
34399
34400         * lib/linebreak.c: Remove trailing blanks.
34401         * lib/alloca_.h: Likewise.
34402         * lib/acosl.c: Likewise.
34403         * lib/euidaccess.c: Likewise.
34404         * lib/allocsa.h: Likewise.
34405
34406 2004-11-10  Simon Josefsson  <jas@extundo.com>
34407
34408         * m4/getaddrinfo.m4: New file.
34409
34410 2004-11-10  Simon Josefsson  <jas@extundo.com>
34411
34412         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34413
34414 2004-11-10  Simon Josefsson  <jas@extundo.com>
34415
34416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34417         getaddrinfo.
34418
34419         * modules/getaddrinfo: New file.
34420
34421 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34422
34423         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34424
34425 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34426
34427         * lib/mktime.c (SHR): New macro, which is a portable
34428         substitute for >> that should work even on Crays.
34429         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34430         Problem reported by Mark D. Baushke in
34431         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34432         * lib/getdate.y (SHR): Likewise.
34433         (tm_diff): Use it.
34434         * lib/strftime.c (SHR): Likewise.
34435         (tm_diff): Use it.
34436         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34437         quote_these_too, so that right shifts are well defined.  All uses
34438         changed.
34439
34440 2004-11-10  Jim Meyering  <jim@meyering.net>
34441
34442         Ensure that no close failure goes unreported.
34443         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34444         return early when it seems there's nothing to flush.
34445         Don't include __fpending.h.
34446
34447 2004-11-10  Jim Meyering  <jim@meyering.net>
34448
34449         * modules/closeout (Depends-on): Remove fpending.
34450
34451 2004-11-10  Jim Meyering  <jim@meyering.net>
34452
34453         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34454
34455 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34456
34457         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34458         gl_FUNC_STRFTIME.
34459         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34460         and AC_REQUIRE when possible, to avoid duplicate checks.
34461         Check for <wchar.h>.
34462
34463 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34466
34467 2004-11-09  Bruno Haible  <bruno@clisp.org>
34468
34469         * m4/sockpfaf.m4: New file.
34470
34471 2004-11-05  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34474         Reported by Mark D. Baushke <mdb@cvshome.org>.
34475
34476 2004-11-04  Bruno Haible  <bruno@clisp.org>
34477
34478         2004-09-11  Bruno Haible  <bruno@clisp.org>
34479                 * allocsa.valgrind: New file.
34480         2004-02-06  Bruno Haible  <bruno@clisp.org>
34481                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34482                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34483                 Reported by Christopher Seip <chris.seip@hp.com>.
34484
34485 2004-11-04  Bruno Haible  <bruno@clisp.org>
34486
34487         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34488         (Makefile.am): Distribute it.
34489
34490 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34491
34492         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34493         with errno == ERANGE if the buffer is too small.
34494         Problem reported by Mark D. Baushke.
34495
34496 2004-11-03  Albert Chin  <china@thewrittenword.com>
34497             Paul Eggert  <eggert@cs.ucla.edu>
34498
34499         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34500         equivalent, substitute $ac_type for equivalent type rather than
34501         blindly using uint32_t *always* which won't work if uint32_t is not
34502         available.  Define _UINT32_T to work around typedef of uint32_t if
34503         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34504         2.5.1.
34505
34506 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34507
34508         * m4/jm-macros.m4: Sync from coreutils.
34509         (gl_MACROS): Check for mbrlen, for pathchk.
34510         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34511
34512 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34513
34514         * lib/xreadlink.c (MAXSIZE): New macro.
34515         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34516         size does not exceed MAXSIZE.  Avoid cast.
34517         As suggested by Mark D. Baushke in
34518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34519         if readlink fails with buffer size just under MAXSIZE, try again
34520         with MAXSIZE.
34521
34522 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34523
34524         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34525
34526 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34527         and  Paul Eggert  <eggert@cs.ucla.edu>
34528
34529         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34530         (get_date): Overparenthesize to avoid GCC warning.
34531
34532 2004-11-02  Bruno Haible  <bruno@clisp.org>
34533
34534         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34535         returns void.
34536
34537 2004-11-02  Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34540         function returns void.
34541
34542 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34543
34544         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34545         fflush_unlocked, flockfile, funlockfile, funlockfile,
34546         fputs_unlocked, putc_unlocked.
34547
34548 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34549
34550         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34551         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34552         already declared.
34553
34554 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34555
34556         * modules/getdate (Files): Add doc/getdate.texi.
34557         (Depends-on): Add setenv, xalloc.
34558
34559 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * lib/getdate.y: Add support for TZ="foo" within a date string.
34562         Fix some bugs near time_t boundaries.  Reject dates with
34563         out-of-range components, e.g., "Sept 31".
34564         Include <stdlib.h>, "setenv.h", "xalloc.h".
34565         (ISDIGIT_LOCALE): Remove; unused.
34566         Note that the TZ and time functions used here are not reentrant.
34567         (mktime_ok, get_tz): New functions.
34568         (TZBUFSIZE): New constant.
34569         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
34570         This requires that we sometimes generate our own TZ="XXX..." setting.
34571
34572 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34573
34574         * doc/getdate.texi: New file, from coreutils with modifications for
34575         the new TZ parsing.
34576
34577 2004-10-27  Derek R. Price  <derek@ximbiot.com>
34578
34579         * lib/mktime.c (not_equal_tm): Remove redundant check.
34580
34581 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34582
34583         * modules/regex (lib_SOURCES): Add regex.c.
34584         Reported by James Youngman in
34585         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34586
34587 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34588
34589         * lib/getdate.y: Use Bison 1.875 features, and some minor
34590         code cleanups.  This change does not affect semantics.
34591         Don't include <stdlib.h>; no longer needed.
34592         Don't include unlocked-io.h; only the "#if TEST" code uses
34593         stdio, and performance isn't crucial there.
34594         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34595         Bison 1.875 features as described below.
34596         All uses of "PC." replaced by "pc->".
34597         (YYSTYPE): Add a forward declaration.
34598         (yylex, yyerror): Use full prototypes in forward decls.
34599         Use "%pure-parser" rather than obsolescent "%pure_parser".
34600         Use %parse-param and %lex-param instead of obsolescent
34601         YYPARSE_PARAM and YYLEX_PARAM.
34602         (meridian_table, month_and_day_table, time_units_table,
34603         relative_time_table, time_zone_table, military_table,
34604         lookup_zone, lookup_word, get_date):
34605         Use NULL instead of 0 where appropriate.
34606         (to_hour): Avoid abort (), to avoid a dependency on
34607         stdlib.h.
34608         (yyerror, yylex): Now accepts parser_control * arg.
34609         (main) [TEST]: Use '\0' rather than 0 for char.
34610
34611 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34612
34613         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34614
34615 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34616
34617         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34618         It's now the caller's responsibility to handle the case where
34619         !HAVE_GETPAGESIZE && !defined getpagesize.
34620
34621         * lib/mktime.c (leapyear): Arg is long int, not int.
34622
34623 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
34624
34625         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34626
34627 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34628
34629         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34630         missing.  Problem reported by James Youngman.
34631
34632 2004-10-16  Simon Josefsson  <jas@extundo.com>
34633
34634         * gnulib-tool: Fix comments.  Fix parse problem.
34635         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34636
34637 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34638
34639         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34640         implementation of getopt_long.  Problem reported by Alexander Taler in:
34641         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34642
34643 2004-10-15  Bruno Haible  <bruno@clisp.org>
34644
34645         * gnulib-tool: Untabify. Initialize supplied_libname.
34646         (func_usage): More homogenous output.
34647         (func_modules_transitive_closure, func_modules_to_filelist,
34648         func_emit_lib_Makefile_am): New functions.
34649         (func_import): New function, extracted from big case statement. Use
34650         func_get_license, func_modules_transitive_closure,
34651         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34652         opt_lgpl. Don't use test -a, as it's not portable.
34653         (func_create_testdir): Use func_modules_transitive_closure,
34654         func_modules_to_filelist, func_emit_lib_Makefile_am.
34655
34656 2004-10-15  Bruno Haible  <bruno@clisp.org>
34657
34658         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34659
34660 2004-10-15  Bruno Haible  <bruno@clisp.org>
34661
34662         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34663         the portions belonging to each module.
34664         Suggested by Derek Robert Price <derek@ximbiot.com>.
34665
34666 2004-10-12  Simon Josefsson  <jas@extundo.com>
34667
34668         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34669         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34670         to real functions.
34671
34672 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34673
34674         * modules/vsnprintf: New file.
34675
34676 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34677
34678         * m4/vsnprintf.m4: New file.
34679
34680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34681
34682         * lib/vsnprintf.h: New file.
34683         * lib/vsnprintf.c: New file.
34684
34685 2004-10-11  Bruno Haible  <bruno@clisp.org>
34686
34687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
34688         vsnprintf.
34689
34690 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34691
34692         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
34693
34694 2004-10-07  Bruno Haible  <bruno@clisp.org>
34695
34696         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
34697         fits into the provided buffer.
34698
34699 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34700
34701         * lib/diacrit.c, diacrit.h: Add GPL notice.
34702
34703         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
34704         notice.
34705         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
34706         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
34707         This avoids a potential constant-folding bug.
34708
34709 2004-10-05  Bruno Haible  <bruno@clisp.org>
34710
34711         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
34712         for the declaration of strsep.
34713
34714 2004-10-05  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
34717
34718 2004-10-04  Simon Josefsson  <jas@extundo.com>
34719
34720         * modules/memmem: New file.
34721         * tests/test-memmem.c: New file.
34722         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
34723
34724 2004-10-04  Simon Josefsson  <jas@extundo.com>
34725
34726         * m4/memmem.m4: New file.
34727
34728 2004-10-04  Simon Josefsson  <jas@extundo.com>
34729
34730         * lib/memmem.h: New file.
34731         * lib/memmem.c: New file, taken from glibc.
34732
34733 2004-10-04  Simon Josefsson  <jas@extundo.com>
34734
34735         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
34736         '#ifdef USE_UNLOCKED_IO'.
34737
34738 2004-10-04  Simon Josefsson  <jas@extundo.com>
34739
34740         * config/srclist.txt: Add memmem from glibc.
34741
34742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34743
34744         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
34745
34746         * modules/argmatch, modules/argp, modules/closeout, modules/error,
34747         modules/exclude, modules/getdate, modules/getline,
34748         modules/getndelim2, modules/getpass, modules/getpass-gnu,
34749         modules/getusershell, modules/linebuffer, modules/md5,
34750         modules/mountlist, modules/posixtm, modules/readtokens,
34751         modules/readutmp, modules/regex, modules/sha1,
34752         modules/version-etc, modules/yesno:
34753         Remove dependency on unlocked-io.
34754
34755 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34756
34757         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
34758
34759         * m4/unlocked-io.m4: Add copyright notice.
34760         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
34761
34762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34763
34764         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
34765         * lib/xmalloc.c (xmemdup): Likewise.
34766         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
34767         XFREE): Remove these long-obsolescent macros.
34768         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
34769         * lib/xstrdup.c: Remove.
34770
34771         * lib/regex.c (re_comp): Cast gettext return value to char *,
34772         Problem reported by Martin Neitzel via Mark D. Baushke.
34773
34774 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34775
34776         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
34777         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
34778         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
34779         regex.c, sha1.c, version-etc.c, yesno.c:
34780         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
34781         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
34782         the includer's responsibility.
34783
34784         Sync from coreutils.
34785
34786         * lib/modechange.c (mode_compile): Don't decrement a pointer that
34787         points to the start of a string, as the C Standard says the
34788         resulting behavior is undefined.
34789
34790         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
34791         simple -> simple_backups, numbered_existing ->
34792         numbered_existing_backups, numbered -> numbered_backups
34793         to avoid shadowing problems.  All uses changed.
34794         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
34795         * lib/backupfile.c (check_extension, numbered_backup):
34796         Rename locals to avoid shadowing 'basename'.
34797         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
34798         once.
34799
34800         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
34801         * lib/.cvsignore: Add getopt.h.
34802
34803 2004-10-04  Bruno Haible  <bruno@clisp.org>
34804
34805         * modules/README: New file.
34806         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
34807         not a module.
34808
34809 2004-10-02  Jim Meyering  <jim@meyering.net>
34810
34811         * lib/dirfd.h, getpagesize.h: Add copyright notice.
34812
34813 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34814
34815         * modules/strsep: New file.
34816
34817 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34818
34819         * m4/strsep.m4: New file.
34820
34821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34822
34823         * lib/strsep.h: New file.
34824         * lib/strsep.c: New file.
34825
34826 2004-10-01  Simon Josefsson  <jas@extundo.com>
34827
34828         * lib/snprintf.c (snprintf): Handle size==0.
34829
34830 2004-10-01  Simon Josefsson  <jas@extundo.com>
34831             Bruno Haible  <bruno@clisp.org>
34832
34833         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
34834         (snprintf): Declare 'args'.
34835
34836 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
34837
34838         * lib/snprintf.c: Remove comments as to why each header is needed.
34839
34840 2004-10-01  Bruno Haible  <bruno@clisp.org>
34841
34842         * MODULES.html.sh: Add strsep.
34843
34844 2004-09-30  Simon Josefsson  <jas@extundo.com>
34845
34846         * modules/snprintf: New file.
34847
34848 2004-09-30  Simon Josefsson  <jas@extundo.com>
34849
34850         * m4/snprintf.m4: New file.
34851
34852 2004-09-30  Simon Josefsson  <jas@extundo.com>
34853
34854         * lib/snprintf.h, lib/snprintf.c: New files.
34855
34856 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34857
34858         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
34859         (hol_entry_help): Never translate an empty string.
34860         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
34861         * lib/argp.h (OPTION_NO_TRANS): New option.
34862
34863 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34864
34865         * modules/argp (Maintainer): Replace Simon Josefsson
34866         by Sergey Poznyakoff.
34867
34868 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
34871         changes merged back into glibc.
34872
34873 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
34876
34877 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
34878
34879         * lib/xvasprintf.c: Include xalloc.h.
34880         (xvasprintf): Use xalloc_die, not xmalloc_die.
34881
34882 2004-09-29  Bruno Haible  <bruno@clisp.org>
34883
34884         * modules/alloca-opt: New file, derived from modules/alloca.
34885         * modules/allocsa: Depend on alloca-opt instead of alloca.
34886         * modules/setenv: Likewise.
34887         * modules/vasnprintf: Likewise.
34888         * MODULES.html.sh: Add alloca-opt.
34889
34890 2004-09-28  Simon Josefsson  <jas@extundo.com>
34891
34892         * gnulib-tool: New parameter --lgpl, to asseert that modules are
34893         LGPL, and to replace license template from GPL to LGPL.
34894
34895 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
34896
34897         * modules/dummy: Change license to LGPL.
34898
34899 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
34900
34901         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
34902
34903 2004-09-24  Simon Josefsson  <jas@extundo.com>
34904
34905         * modules/minmax (License): Change from GPL to LGPL.
34906
34907 2004-09-23  Simon Josefsson  <jas@extundo.com>
34908
34909         * gnulib-tool (--import): Typo.
34910
34911 2004-09-23  Simon Josefsson  <jas@extundo.com>
34912
34913         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
34914
34915 2004-09-22  Bruno Haible  <bruno@clisp.org>
34916
34917         * modules/*: Add 'License' field.
34918         * gnulib-tool: Accept --extract-license option.
34919         (func_get_license): New function.
34920
34921 2004-09-21  Bruno Haible  <bruno@clisp.org>
34922
34923         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34924         Reported by Simon Josefsson.
34925
34926 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34927
34928         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
34929         gl_AC_TYPE_LONG_LONG.
34930
34931 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34932
34933         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
34934
34935 2004-09-18  Simon Josefsson  <jas@extundo.com>
34936         and  Paul Eggert  <eggert@cs.ucla.edu>
34937
34938         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34939         calls with autoreconf.  Define GL_LIB.
34940
34941 2004-09-14  Karl Berry  <karl@gnu.org>
34942
34943         * config/srclist.txt: unsync setenv.c, sigh.
34944
34945 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34946
34947         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34948         Problem reported by Bruno Haible in:
34949         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34950
34951 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34952
34953         * config/srclist.txt: Comment out argp-pvh.c.
34954
34955 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
34956
34957         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34958         in case some system header has #define'd it.  Problem reported by
34959         Soeren D. Schulze in
34960         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34961
34962 2004-09-09  Karl Berry  <karl@gnu.org>
34963
34964         * regex.[ch]: delete from the root.  These were supposed to be
34965                 synced with emacs cvs, but this has not happened for about
34966                 a year, and anyway nothing else uses emacs regex.[ch].
34967                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34968                 lib/regex[.ch] is untouched.
34969
34970 2004-09-09  Bruno Haible  <bruno@clisp.org>
34971
34972         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34973
34974 2004-09-09  Bruno Haible  <bruno@clisp.org>
34975
34976         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34977         modifications.
34978         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34979
34980 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34981
34982         * modules/xvasprintf: New file.
34983         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34984
34985 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34986
34987         * lib/xvasprintf.h: New file.
34988         * lib/xvasprintf.c: New file.
34989         * lib/xasprintf.c: New file.
34990
34991 2004-09-08  Bruno Haible  <bruno@clisp.org>
34992
34993         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34994
34995 2004-09-08  Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34998         length is > INT_MAX.
34999         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35000         more.
35001
35002 2004-09-08  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/stdint_.h: New file, taken from GNU clisp.
35005
35006 2004-09-08  Bruno Haible  <bruno@clisp.org>
35007             Oskar Liljeblad  <oskar@osk.mine.nu>
35008
35009         * modules/stdint: New file.
35010         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35011
35012 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35013
35014         Import from coreutils.
35015         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35016         strings on unbounded length.  alloca's performance benefits aren't
35017         that important here.
35018         (V_STRDUP): Remove.
35019         (parse_with_separator): New function, with most of the internals
35020         of the old parse_user_spec.  Allow user to omit both user and group,
35021         for compatibility with FreeBSD.
35022         Clone only the user name, not the entire spec.
35023         Do not set *uid, *gid unless entirely successful.
35024         Avoid memory leak in some failing cases.
35025         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35026         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35027         (parse_user_spec): Rewrite to use parse_with_separator.
35028
35029 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35030
35031         * modules/userspec: Don't depend on alloca.
35032
35033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35034
35035         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35036
35037 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35038
35039         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35040         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35041         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35042
35043 2004-08-16  Simon Josefsson  <jas@extundo.com>
35044
35045         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35046         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35047         Add --dry-run for --import.
35048         Let user provided command line parameters override configure.ac
35049         settings.
35050
35051 2004-08-12  Simon Josefsson  <jas@extundo.com>
35052
35053         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35054         as discussed with Paul Eggert in threads rooted at
35055         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35056         and
35057         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35058         Before, the test was empty, and relied on ELIDE_CODE in source
35059         code.)
35060         (gl_PREREQ_GETOPT): New macro.
35061         (gl_GETOPT): Use them.
35062
35063 2004-08-12  Simon Josefsson  <jas@extundo.com>
35064
35065         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35066         * lib/getopt_.h: Renamed from getopt.h.
35067
35068 2004-08-12  Simon Josefsson  <jas@extundo.com>
35069
35070         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35071         Change default library name from libfoo to libgnu.
35072         Now, if you have a configure.ac that says:
35073                 gl_SOURCE_BASE(gl)
35074                 gl_M4_BASE(gl/m4)
35075                 gl_MODULES(error getopt etcetera)
35076                 gl_INIT
35077         you can import all you need by running:
35078                 ../gnulib/gnulib-tool --import
35079
35080         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35081         (Makefile.am): Rewrite, use logic from argz.
35082         (Include): Use <getopt.h> instead of "getopt.h".
35083
35084 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35085
35086         * modules/argp (Files): Add m4/unlocked-io.m4.
35087         (Depends-on): Add extensions.
35088
35089 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35090
35091         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35092         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35093         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35094         Check for program_invocation_name, program_invocation_short_name,
35095         flockfile, funlockfile, features.h, _getopt_long_only_r.
35096
35097 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35098
35099         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35100         its complicated substitute.
35101         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35102         and program_invocation_name.
35103         (__argp_basename) [!_LIBC]: Remove; the only use was
35104         replaced by its body.
35105         (__argp_short_program_name): Change condition from
35106         !defined __argp_short_program_name to
35107         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35108         to match argp-namefrob.h.
35109         (__argp_failure): Don't assume strerror_r returns char *.
35110         * lib/argp-parse.c (N_): Define unconditionally.
35111         (argp_default_options): Fill out initializers with 0 to avoid
35112         gcc warnings.
35113
35114 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35115
35116         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35117         getopt1.c.
35118
35119 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35120
35121         Merge from coreutils.
35122
35123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35124
35125         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35126         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35127
35128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35129
35130         Merge from coreutils.
35131
35132         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35133         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35134         for Reliant Unix 5.43.
35135
35136         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35137         (union fooround): Use uintmax_t, not long int.
35138         The rest is a merge from libc:
35139         [defined _LIBC]: Include <shlib-compat.h>.
35140         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35141
35142         * lib/settime.c (settime): Recode to avoid warning with
35143         Sun Forte C 6U2.
35144
35145         * lib/strverscmp.c: Convert to UTF-8.
35146
35147 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35148
35149         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35150         m4/uintmax_t.m4.
35151
35152 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35153
35154         * modules/xalloc-die: New file.
35155         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35156
35157         * modules/md5 (Files): Add m4/uint32_t.m4.
35158         * modules/sha1: Renamed from modules/sha.
35159         (Files):
35160         Rename lib/sha.h to lib/sha1.h.
35161         Rename lib/sha.c to lib/sha1.c.
35162         Rename m4/sha.m4 to m4/sha1.m4.
35163         (lib_SOURCES): Likewise.
35164         (configure.ac): Rename gl_SHA to gl_SHA1.
35165         (Include): sha.h -> sha1.h.
35166
35167 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35168
35169         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35170         * m4/sha1.m4: Renamed from sha.m4.
35171         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35172
35173 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35174
35175         * lib/obstack.h (obstack_empty_p):
35176         Don't assume that chunk->contents is suitably aligned.
35177         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35178         Likewise. Problem reported by Benno in
35179         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35180
35181         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35182         readable.  This could be improved further but it'd take some work.
35183
35184 2004-08-08  Simon Josefsson  <jas@extundo.com>
35185
35186         * modules/xgethostname (Depends-on): Remove exit and error (not
35187         used).
35188
35189         * modules/getpass-gnu: Add getpass.h.
35190         (Depends-on): Add stdbool.
35191         * modules/getpass: Add getpass.h.
35192
35193 2004-08-08  Simon Josefsson  <jas@extundo.com>
35194
35195         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35196         Check getpass declaration.
35197
35198 2004-08-08  Simon Josefsson  <jas@extundo.com>
35199
35200         * lib/xgethostname.c: Don't include error.h (not used).
35201
35202         * lib/getpass.h: Add.
35203         * lib/getpass.c: Include getpass.h first.
35204
35205 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35206
35207         * lib/xalloc-die.c: New file.
35208         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35209         All uses removed.
35210         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35211         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35212         xalloc-die.c.
35213         (_, N_, xalloc_die): Move to xalloc-die.c.
35214         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35215         so that we needn't mess with xalloc_msg_memory_exhausted.
35216
35217         * lib/sha1.h: Renamed from sha.h.
35218         (SHA1_H): Renamed from _SHA_H.
35219         (sha1_ctx): Renamed from sha_ctx.
35220         (sha1_init_ctx): Renamed from sha_init_ctx.
35221         (sha1_process_block): Renamed from sha_process_block.
35222         (sha1_process_bytes): Renamed from sha_process_bytes.
35223         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35224         (sha1_read_ctx): Renamed from sha_read_ctx.
35225         (sha1_stream): Renamed from sha_stream.
35226         (sha1_buffer): Renamed from sha_buffer.
35227         * lib/sha1.c: Likewise; renamed from sha.c.
35228         Do not include <sys/types.h>.
35229         Include <stddef.h> rather than <stdlib.h>.
35230
35231 2004-08-08  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35234         FILESYSTEM_PREFIX_LEN.
35235         * lib/progreloc.c: Likewise.
35236         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35237
35238 2004-08-06  Simon Josefsson  <jas@extundo.com>
35239
35240         * modules/progname (Depends-on): Don't depend on stdbool.
35241
35242 2004-08-06  Simon Josefsson  <jas@extundo.com>
35243
35244         * modules/getsubopt: New file.
35245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35246         getsubopt.
35247
35248 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35249
35250         More merge from coreutils.
35251
35252         * m4/utimens.m4, m4/utimecmp.m4: New files.
35253         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35254         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35255         prereq.m4, sha.m4: Import changes from coreutils.
35256
35257 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35258
35259         More merge from coreutils.
35260         * modules/raise, modules/readtokens0, modules/utimens:
35261         * modules/utimecmp, module/xnanosleep: New files.
35262         * modules/strftime: Add lib/strftime.h.
35263         Change include from <time.h> to "strftime.h".
35264         * modules/yesno: Add lib/yesno.h.
35265         * modules/backupfile: Remove lib/addext.c.
35266         * modules/euidaccess: Add stat-macros.h.
35267         * modules/canonicalize, modules/euidaccess,
35268         modules/filemode, modules/lchown, modules/makepath,
35269         modules/rmdir, modules/stat: Likewise.
35270
35271 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35272
35273         Merge from tar.
35274         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35275         SIZE_MAX is a valid preprocessor constant.
35276         (__argp_basename): Change from "#ifndef _LIBC"
35277         to "#ifndef __argp_short_program_name", so that
35278         we don't compile these functions for tar.
35279
35280         More merges from coreutils.
35281         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35282         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35283         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35284         * lib/addext.c: Remove; no longer needed.
35285         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35286         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35287         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35288         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35289         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35290         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35291         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35292         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35293         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35294         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35295         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35296         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35297         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35298         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35299         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35300         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35301         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35302         Import changes from coreutils.
35303
35304 2004-08-05  Simon Josefsson  <jas@extundo.com>
35305
35306         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35307
35308 2004-08-05  Simon Josefsson  <jas@extundo.com>
35309
35310         * m4/getsubopt.m4: New file.
35311
35312 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35313
35314         Merge from coreutils.
35315
35316         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35317         * m4/getcwd-path-max.m4: New files.
35318
35319         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35320         FILESYSTEM_PREFIX_LEN ->
35321         FILE_SYSTEM_PREFIX_LEN.
35322         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35323         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35324         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35325         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35326
35327         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35328         prerequisite modules now handle the DOS stuff.
35329         Don't check for unistd.h.
35330
35331 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35332
35333         Merge from coreutils.
35334
35335         * lib/.gdb-history: Remove; this doesn't belong here.
35336
35337         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35338         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35339         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35340         * lib/getcwd.c: New files.
35341
35342         * lib/dirname.h: Include <stdbool.h>.
35343         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35344         for consistency with POSIX terminology.  All uses changed.
35345         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35346         (strip_trailing_slashes): Use bool for booleans.
35347         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35348
35349         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35350         sometimes returns a positive errno value even when it succeeds.
35351         (print_errno_message) [!LIBC]: Fall back on strerror if
35352         __strerror_r fails.
35353
35354         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35355         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35356         (longest_relative_suffix): New function.
35357         (path_concat): Use it.  Assume first argument is not NULL.
35358         Port to DOS.  Omit redundant separators.
35359         Report an error instead of returning NULL.
35360         Use mempcpy instead of memcpy.
35361         (xpath_concat): Remove: not declared or used.
35362
35363         * lib/same.h: Include <stdbool.h>
35364         (same_name): Return bool, not int.
35365         * lib/same.c (same_name): Likewise.
35366         (errno): Don't declare; we assume C89 or better now.
35367
35368         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35369         if not already defined.
35370
35371         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35372         * lib/dup-safer.c (errno): Likewise.
35373
35374 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35375
35376         Merge from coreutils.
35377         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35378         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35379         * modules/path-concat: Don't depend on strdup.
35380
35381 2004-08-03  Simon Josefsson  <jas@extundo.com>
35382
35383         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35384         * lib/progname.h: Don't include stdbool.h.
35385
35386 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35387
35388         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35389         * MODULES.html.sh (func_all_modules): Remove fatal.
35390
35391 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35392
35393         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35394
35395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35396
35397         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35398         working.
35399
35400 2004-08-02  Simon Josefsson  <jas@extundo.com>
35401
35402         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35403         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35404         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35405
35406 2004-08-01  Simon Josefsson  <jas@extundo.com>
35407
35408         * lib/xgetdomainname.c: Include stdlib.h, for free().
35409
35410 2004-07-19  Bruno Haible  <bruno@clisp.org>
35411
35412         * MODULES.html.sh (func_all_modules): Add dummy.
35413
35414 2004-07-16  Simon Josefsson  <jas@extundo.com>
35415
35416         * modules/dummy: New file.
35417
35418 2004-07-16  Simon Josefsson  <jas@extundo.com>
35419
35420         * lib/dummy.c: New file.
35421
35422 2004-07-16  Bruno Haible  <bruno@clisp.org>
35423
35424         * lib/backupfile.h: Add extern "C" for C++.
35425         * lib/closeout.h: Likewise.
35426         * lib/copy-file.h: Likewise.
35427         * lib/findprog.h: Likewise.
35428         * lib/full-write.h: Likewise.
35429         * lib/pathname.h: Likewise.
35430         * lib/progname.h: Likewise.
35431         * lib/stpcpy.h: Likewise.
35432         * lib/stpncpy.h: Likewise.
35433         * lib/strcase.h: Likewise.
35434         * lib/strstr.h: Likewise.
35435         * lib/xalloc.h: Likewise.
35436
35437         * lib/mbswidth.h: Add extern "C" for C++.
35438         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35439
35440 2004-07-13  Robert Millan  <robertmh@gnu.org>
35441
35442         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35443
35444 2004-07-09  Simon Josefsson  <jas@extundo.com>
35445
35446         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35447         failed without this.)
35448
35449 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35450
35451         * modules/chown (Files): Add lib/fchown-stub.c, since
35452         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35453
35454 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35455
35456         * lib/fchown-stub.c: New file.
35457
35458 2004-06-24  Jim Meyering  <jim@meyering.net>
35459
35460         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35461
35462 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35463
35464         * modules/argz: Omit "#include".
35465
35466         * MODULES.html.sh (func_all_modules): Add calloc, to match
35467         2004-06-01 addition of calloc module.
35468
35469 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35470
35471         * m4/argz.m4: New file, which is autoupdated from libtool.
35472
35473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35474
35475         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35476         libtool.
35477
35478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35479
35480         * config/srclist-update: Don't insist on "USA." before the
35481         close-comment, as libtool omits the period and puts the */ on a
35482         separate line.
35483         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35484         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35485
35486 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35487
35488         * modules/argz: New file.
35489         * MODULES.html.sh (func_all_modules): Add argz.
35490
35491 2004-06-12  Jim Meyering  <jim@meyering.net>
35492         and  Paul Eggert  <eggert@cs.ucla.edu>
35493
35494         * modules/hash (Files): Add lib/xalloc.h.
35495         * modules/pipe (Depends-on): Add wait-process.
35496         * modules/stat (Depends-on): Add xalloc.
35497         * modules/userspec (Files): Add lib/userspec.h.
35498         * modules/xstrto
35499
35500         Upgrade from gettext-0.13.
35501         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35502         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35503         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35504
35505 2004-06-10  Jim Meyering  <jim@meyering.net>
35506
35507         * lib/calloc.c: New file.
35508
35509 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35510
35511         * lib/getdate.y (yylex): Allow space between sign and number.
35512         Problem reported by Dan Jacobson.
35513
35514 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35515
35516         Merge from coreutils CVS.
35517
35518         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35519         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35520         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35521         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35522         xstrtol.m4: Fix copyright date and/or serial number.
35523
35524         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35525         See if we need an fchown replacement.
35526         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35527         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35528         and use the replacement function if we detect either defect.
35529
35530         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35531         gl_UTIMECMP.
35532
35533 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35534         and  Jim Meyering  <jim@meyering.net>
35535
35536         Merge from coreutils CVS.
35537
35538         * lib/stat-macros.h: New file, with contents from file-type.h
35539         and coreutils' system.h.
35540         * lib/file-type.c: Include "stat-macros.h".
35541         * lib/file-type.h (file_type): Move all macro definitions to new file,
35542         stat-macros.h.
35543
35544         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35545         Wrap old code with this conditional.
35546         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35547         function that does not dereference symlinks.
35548         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35549
35550         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35551         dependency problems.
35552         (xreadlink): Accept new arg SIZE, for efficiency.
35553         All decls and uses changed.
35554         * lib/xreadlink.h: Include <stddef.h>, for size_t.
35555
35556         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35557         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35558
35559         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35560         sysexits.h.
35561
35562 2004-06-01  Jim Meyering  <jim@meyering.net>
35563
35564         * m4/calloc.m4: New file.
35565
35566 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
35567
35568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35569         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
35570         Also, fix a typo in a diagnostic.
35571
35572 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35573
35574         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35575         or AC_FUNC_REALLOC.
35576
35577 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35578
35579         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35580         macros to be defined.
35581         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35582         the allocator returns NULL because the requested size is zero.
35583
35584 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35585
35586         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35587         var.  Add comment explaining why libc still defines it.  This
35588         merges the following patch from glibc:
35589         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35590
35591 2004-05-20  Andreas Schwab  <schwab@suse.de>
35592
35593         * m4/free.m4: Replace free if it not known to work, not the other
35594         way round.
35595
35596 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35597
35598         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
35599         present in glibc since revision 1.1 of this file.
35600         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35601         obstack_alignment_mask, obstack_alloc, obstack_base,
35602         obstack_blank, obstack_blank_fast, obstack_chunk_size,
35603         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35604         obstack_grow0, obstack_init, obstack_int_grow,
35605         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35606         obstack_next_free, obstack_object_size, obstack_ptr_grow,
35607         obstack_ptr_grow_fast, obstack_room): Remove declarations of
35608         nonexistent functions.
35609
35610 2004-05-18  Karl Berry  <karl@gnu.org>
35611
35612         * config/srclist.txt: break link for vasnprintf.c.
35613
35614 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35615
35616         Port obstack to the AS/400, where pointers are 16 bytes wide and
35617         you cannot cast an integer to a valid pointer.  This patch is
35618         currently waiting to be integrated into glibc; see
35619         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35620
35621         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35622         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35623         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35624         (struct obstack): temp member is now a union of a pointer and
35625         an integer, instead of an integer.  All integer uses changed.
35626         This does not affect the physical layout of struct obstack,
35627         except on hosts (like the AS/400) where the size or alignment of
35628         void * is greater than that of ptrdiff_t.
35629         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35630         __STDC__)]: Store temporary in pointer member of union, not
35631         integer member.
35632         * lib/obstack.c: Include <stddef.h>, for offsetof.
35633         (struct fooalign): Remove; it doesn't need a name.
35634         (union fooround): Change double to long double, and add void *.
35635         (DEFAULT_ALIGNMENT): Use offsetof to compute.
35636         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35637         not a macro.  Hence the values are always int; so remove all
35638         casts-to-int in uses.
35639
35640 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35641
35642         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35643         we can get this patch merged into glibc.
35644
35645 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35646             Paul Eggert  <eggert@cs.ucla.edu>
35647
35648         * m4/argp: Depend on alloca.
35649
35650 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35651             Paul Eggert  <eggert@cs.ucla.edu>
35652
35653         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35654         freecoding.
35655
35656 2004-05-17  Bruno Haible  <bruno@clisp.org>
35657
35658         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35659         precision that consists of a '.' followed by an empty digit string.
35660         Patch by Tor Lillqvist <tml@iki.fi>.
35661
35662 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35663
35664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35665         for backward compatibility with older code.  We need our own
35666         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
35667         it under some other name, and our alloca.h will define it.
35668
35669 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35670             Derek Price  <derek@ximbiot.com>
35671
35672         * lib/alloca.c: Include <alloca.h>, to get our interface.
35673         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35674         include <alloca.h> first.  Use C89 prototype for alloca; this
35675         requires including <stddef.h> for size_t.  Use extern "C" if C++.
35676         Use #elif for simplicity, since we can assume C89 now.
35677         Don't try to source the system alloca.h since it will not be found
35678         and to prevent recursively including its replacement.
35679         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
35680         * lib/regex.c: Likewise.
35681
35682 2004-05-16  Derek Price  <derek@ximbiot.com>
35683             Paul Eggert  <eggert@cs.ucla.edu>
35684
35685         getline cleanup.  This changes the getndelim2 API: both order of
35686         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
35687         no delimiter).
35688
35689         * lib/getline.c: Don't include stddef.h or stdio.h, since our
35690         interface does that.
35691         (getline): Always use getdelim, so that we don't have two
35692         copies of this code.
35693         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
35694         if available.
35695         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
35696         (GETNDELIM2_MAXIMUM): New macro.
35697         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
35698         instead of the old practice of delim2==0.  All callers changed.
35699         Return -1 on overflow, instead of returning junk.
35700         Do not set *linesize unless allocation succeeds.
35701         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
35702         that we include sys/types.h.
35703         * lib/getnline.h: Likewise.
35704         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
35705         (getndelim2): Reorder arguments.
35706         * lib/getnline.c (getnline, getndelim):
35707         Don't discard the NMAX argument.
35708         (getnline): Invoke getndelim, to avoid code duplication.
35709         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
35710         of (size_t) -1 by callers of the getnline family.
35711
35712 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35713
35714         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
35715         Check for gettimeofday.
35716         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
35717         Check for settimeofday, stime.
35718
35719 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35720
35721         * lib/nanosleep.c (suspended): Change its type from int to
35722         sig_atomic_t volatile.
35723         (first_call): Make it private to rpl_nanosleep, and have it
35724         be zero initially as that's a bit faster.
35725         (my_usleep): Round up fractional times instead of truncating them,
35726         as this is the usual meaning for 'sleep'.
35727
35728         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
35729         doesn't work.
35730         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
35731         (ENOSYS): Define if not defined.
35732         (settime): Fall back on stime if it exists and settimeofday fails.
35733         But don't bother with fallbacks if a method fails with errno == EPERM.
35734
35735 2004-05-11  Jim Meyering  <jim@meyering.net>
35736
35737         Prior to this change, the save_cwd caller required read access to the
35738         current directory on most systems (ones with the fchdir function).
35739
35740         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
35741         fails, try write-only, and finally, resort to using xgetcwd.
35742
35743 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35744
35745         * lib/obstack.c, obstack.h: Import changes from libc.
35746
35747 2004-04-28  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
35750         also implicitly appends .exe to executables.
35751         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
35752         accepts Windows pathnames.
35753         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35754         Treat Cygwin like Windows, since it now accepts Windows pathnames.
35755         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35756         Treat Cygwin like Windows, since it now accepts Windows pathnames.
35757         Reported by Derek Robert Price <derek@ximbiot.com>.
35758
35759 2004-04-21  Karl Berry  <karl@gnu.org>
35760
35761         * config/srclist.txt (localcharset.c): break sync.
35762
35763 2004-04-20  Paul Eggert  <eggert@twinsun.com>
35764
35765         * m4/host-os.m4: Add a copyright notice.
35766
35767 2004-04-20  Jim Meyering  <jim@meyering.net>
35768
35769         Change UTILS_ to gl_ in AC_DEFINE'd names.
35770         Change utils_- and jm_-prefixed variables, too.
35771         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
35772         UTILS_FUNC_MKDIR_TRAILING_SLASH.
35773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
35774
35775         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
35776         Don't emit trailing blanks.
35777         Also rename jm_-prefixed variables to have gl_ prefix.
35778
35779         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
35780         Also rename jm_-prefixed variables to have gl_ prefix.
35781
35782         * m4/jm-macros.m4: Reflect the renamings.
35783         * m4/prereq.m4: Likewise.
35784
35785 2004-04-20  Jim Meyering  <jim@meyering.net>
35786
35787         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
35788         memory.
35789
35790 2004-04-20  Jim Meyering  <jim@meyering.net>
35791             Bruno Haible  <bruno@clisp.org>
35792
35793         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
35794         memory when realloc fails.
35795
35796 2004-04-19  Jim Meyering  <jim@meyering.net>
35797
35798         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
35799         now that readutmp.c may call `free (0)'.
35800
35801 2004-04-19  Bruno Haible  <bruno@clisp.org>
35802
35803         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
35804         * m4/inttypes_h.m4: Likewise.
35805         * m4/stdint_h.m4: Likewise.
35806         * m4/intmax_t.m4: Likewise.
35807         * m4/uintmax_t.m4: Likewise.
35808
35809 2004-04-18  Jim Meyering  <jim@meyering.net>
35810
35811         * m4/prereq.m4: Don't forbid jm_ prefix.
35812
35813         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
35814         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
35815         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
35816         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
35817         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
35818         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
35819         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
35820         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
35821         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
35822         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
35823         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
35824         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
35825         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
35826         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
35827         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
35828         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
35829         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
35830         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
35831         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
35832
35833 2004-04-18  Jim Meyering  <jim@meyering.net>
35834
35835         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
35836         failure, don't leak memory and do call END_UTMP_ENT.
35837
35838 2004-04-16  Jim Meyering  <jim@meyering.net>
35839
35840         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
35841         coreutils' stat program.
35842         (gl_PREREQ): Don't require jm_PREREQ_STAT.
35843
35844 2004-04-11  Paul Eggert  <eggert@twinsun.com>
35845
35846         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
35847         C89.
35848         (CHAR_BIT): Remove, since we assume C89.
35849         Include <stdint.h> if available, as per current Autoconf CVS advice.
35850
35851 2004-03-31  Jim Meyering  <jim@meyering.net>
35852
35853         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
35854         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
35855         * m4/xalloc.m4: Likewise.
35856
35857 2004-03-30  Paul Eggert  <eggert@twinsun.com>
35858
35859         Merge from coreutils.
35860
35861         * m4/inttostr.m4: New file.
35862         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
35863         Require AM_STDBOOL_H and gl_TIMESPEC instead.
35864         Require gl_CLOCK_TIME.
35865         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
35866
35867 2004-03-30  Paul Eggert  <eggert@twinsun.com>
35868
35869         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
35870         not bool, to be more consistent with Unix conventions.
35871         Suggested by Bruno Haible.
35872
35873         Merge from coreutils.
35874
35875         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
35876         * lib/umaxtostr.c: New files.
35877
35878         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
35879         the usual <time.h> dance.
35880         (get_date): Change signature to support fractional time stamps.
35881         All callers changed.
35882         * lib/getdate.y: Include "getdate.h" first, as we can now
35883         assume C89 and don't need to worry about 'const'.
35884         Similarly, include "unlocked-io.h" near start, not in middle.
35885         Include <limits.h>.
35886         (textint.value): Use long int rather than int.
35887         (textint.digits): Use size_t rather than int.
35888         (BILLION, LOG10_BILLION): New constants.
35889         (parser_control): New member rel_ns.  Members day_ordinal,
35890         time_zone, month, day, hour, minutes, rel_year, rel_month,
35891         rel_day, rel_hour, rel_minutes, rel_seconds
35892         are now long int, not int.  Member seconds is now struct timespec,
35893         not int.  New member timespec_seen.  Members dates_seen, days_seen,
35894         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
35895         not int.
35896         (%union.intval): Now long int, not int.
35897         New member timespec.
35898         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
35899         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
35900         (spec): Now is a timespec or an item list.
35901         (timespec, items): New nonterminals.
35902         (time, rel, relunit, number, get_date):
35903         Add support for fractional seconds.
35904         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
35905         (gmtime, localtime, mktime): Remove decls; not needed with C89.
35906         (to_hour): First arg is now long int, not int.
35907         (to_year): Returns long int, not int.
35908         Don't treat year -70 like 70.
35909         (tm_diff): Returns long int, not int.
35910         (lookup_word): Use bool instead of int when appropriate.
35911         (yylex): Use size_t for count, not int.
35912         Detect overflow when parsing large integer constants.
35913         Add support for fractions.
35914         (get_date): Make pointers 'const' if possible.
35915         Use more-portable code to detect integer overflow.
35916         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
35917         Don't use ctime; it's not reliable if the year has >4 digits.
35918
35919         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35920         This is for compatibility with BSD.
35921
35922         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35923         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35924         From coreutils' system.h.
35925
35926         * lib/userspec.c: Don't include "posixver.h".
35927         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
35928         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
35929         compatible extension.  Simplify code by removing a boolean int
35930         that was always nonzero if a string was nonnull.
35931
35932 2004-03-30  Jim Meyering  <jim@meyering.net>
35933
35934         Merge from coreutils.
35935
35936         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
35937         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
35938         on some systems one must include <grp.h> before it.
35939         Reported by Christian Krackowizer.
35940
35941 2004-03-30  Jim Meyering  <jim@meyering.net>
35942
35943         Merge from coreutils.
35944
35945         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35946
35947         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35948         an empty input stream.
35949
35950         * lib/readtokens.c: Include <stdbool.h>.
35951         (readtoken): Use `size_t' rather than int/long.
35952         All callers adjusted.
35953         Use `bool' rather than `int' where appropriate.
35954         Use memset rather than an explicit loop.
35955         Use x2nrealloc rather than xrealloc.
35956         Allow the use of `\0' as a delimiter.
35957         (readtokens): Likewise.
35958         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35959
35960 2004-03-30  Jim Meyering  <jim@meyering.net>
35961
35962         * m4/realloc.m4: Remove file, since now it does no more than
35963         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35964         the `configure.ac' section of module/realloc.
35965         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35966
35967 2004-03-30  Bruno Haible  <bruno@clisp.org>
35968
35969         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35970         nonnull.
35971
35972 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35973
35974         Merge changes to getloadavg.c from coreutils and Emacs.
35975
35976         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35977         Define to an expression, not to the empty string.
35978         Include cloexec.h and xalloc.h.
35979         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35980         Use set_cloexec_flag rather than rolling our own.
35981         * lib/cloexec.c, lib/cloexec.h: New files.
35982
35983 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35984
35985         * m4/cloexec.m4: New file.
35986
35987 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35988
35989         * lib/getopt.h: Sync with libc CVS.
35990
35991 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35992             Bruno Haible  <bruno@clisp.org>
35993
35994         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35995         mbswidth.
35996
35997 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35998             Bruno Haible  <bruno@clisp.org>
35999
36000         * lib/mbswidth.h: Include <wchar.h> only if
36001         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36002         <wchar.h>.
36003         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36004
36005 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36006
36007         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36008         Sync with libc CVS.
36009         * lib/getopt_int.h: New file, also synced from libc.
36010
36011 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36012
36013         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36014         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36015         Bring back getopt.c, getopt.h, getopt1.c.
36016
36017 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36018
36019         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36020         All uses changed.  Check for sa_sigaction member; this fixes
36021         a bug first reported by Jason Andrade in
36022         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36023
36024 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36025
36026         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36027         '#if' expressions.  Unlike the code it replaces, it does not
36028         depend on (defined _SC_PAGESIZE).  However, it does depend on
36029         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36030         first reported by Jason Andrade in
36031         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36032
36033 2004-02-25  Simon Josefsson  <jas@extundo.com>
36034
36035         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36036
36037 2004-02-25  Simon Josefsson  <jas@extundo.com>
36038
36039         * lib/strdup.h: New file.
36040         * lib/strdup.c: Include it.
36041         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36042         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36043
36044 2004-02-23  Karl Berry  <karl@gnu.org>
36045
36046         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36047         (from fencepost.gnu.org:/gd/gnuorg).
36048
36049 2004-02-23  Karl Berry  <karl@gnu.org>
36050
36051         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36052         * config/srclist.txt: add maintain/standards documents.
36053
36054 2004-02-18  Bruno Haible  <bruno@clisp.org>
36055
36056         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36057         Reported by Derek Robert Price <derek@ximbiot.com>.
36058
36059 2004-02-16  Karl Berry  <karl@gnu.org>
36060
36061         * config/mkinstalldirs, install-sh: update from automake.
36062
36063 2004-02-06  Karl Berry  <karl@gnu.org>
36064
36065         * m4/po.m4: update from gettext 0.14.1.
36066
36067 2004-02-06  Karl Berry  <karl@gnu.org>
36068
36069         * lib/config.charset: update from gettext 0.14.1.
36070
36071 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36072
36073         Add comments and code, prompted by suggestions from Bruno Haible
36074         for sh-quote.
36075         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36076         describing the enum quoting_style values.
36077         * lib/quotearg.c (quotearg_alloc): New function.
36078         (quotearg_buffer_restyled): Treat lone { and } as special.
36079         Treat = as special.  Work around bug with older shells
36080         that "see" a '\' that is really the 2nd byte of a multibyte char.
36081         Quote empty string with shell_quoting_style.
36082
36083 2004-02-03  Bruno Haible  <bruno@clisp.org>
36084
36085         * m4/pipe.m4: New file, from GNU gettext.
36086
36087 2004-02-03  Bruno Haible  <bruno@clisp.org>
36088
36089         * lib/pipe.h: New file, from GNU gettext.
36090         * lib/pipe.c: New file, from GNU gettext.
36091
36092 2004-01-27  Bruno Haible  <bruno@clisp.org>
36093
36094         * m4/execute.m4: New file, from GNU gettext.
36095
36096 2004-01-27  Bruno Haible  <bruno@clisp.org>
36097
36098         * lib/execute.h: New file, from GNU gettext.
36099         * lib/execute.c: New file, from GNU gettext.
36100         * lib/w32spawn.h: New file, from GNU gettext.
36101
36102 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36103
36104         Merge from diffutils.
36105
36106         * lib/file-type.c (file_type): Add typed memory objects.
36107         * lib/file-type.h (S_TYPEISTMO): New macro.
36108
36109         * lib/c-stack.h (c_stack_action): Remove argv argument.
36110         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36111         (die): Don't calculate message unless segv_action returns.
36112         (get_stack_location, min_address_from_argv, max_address_from_argv,
36113         volatile stack_base, volatile_stack_size): Remove.
36114         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36115         that every segmentation violation is a stack overflow.  (Ouch!)
36116         See Debian bug 136249 (still outstanding) for more info about why
36117         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36118
36119 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36120
36121         Exit-status fix from coreutils.
36122
36123         Use exit_failure consistently in place of EXIT_FAILURE,
36124         so that program exit statuses are consistent on failure.
36125
36126         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36127         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36128         * lib/argmatch.h: Comment fix to match the above.
36129         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36130         Now a macro referring to exit_failure, instead of a separate
36131         variable.  Include "exitfail.h" to get it.
36132         * lib/xstrtol.h: Include "exitfail.h".
36133         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36134
36135         * lib/long-options.c (parse_long_options): Use prototype
36136         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36137         for clarity.
36138
36139 2004-01-21  Jim Meyering  <jim@meyering.net>
36140
36141         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36142         so as not to conflict with a different-sized __mktime_internal
36143         function in GNU libc.
36144         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36145         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36146
36147 2004-01-20  Karl Berry  <karl@gnu.org>
36148
36149         * config/config.guess: update from config.
36150
36151         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36152
36153 2004-01-20  Bruno Haible  <bruno@clisp.org>
36154
36155         Safer stack allocation.
36156         * lib/setenv.c: Include allocsa.h.
36157         (alloca): Remove fallback definition.
36158         (freea): Remove macro.
36159         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36160         instead of freea.
36161
36162 2004-01-20  Bruno Haible  <bruno@clisp.org>
36163
36164         * m4/eealloc.m4: New file, from GNU gettext.
36165
36166 2004-01-20  Bruno Haible  <bruno@clisp.org>
36167
36168         * m4/allocsa.m4: New file, from GNU gettext.
36169
36170 2004-01-20  Bruno Haible  <bruno@clisp.org>
36171
36172         * lib/xallocsa.h: New file, from GNU gettext.
36173         * lib/xallocsa.c: New file, from GNU gettext.
36174
36175 2004-01-20  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36178
36179 2004-01-20  Bruno Haible  <bruno@clisp.org>
36180
36181         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36182         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36183         specially.
36184
36185 2004-01-20  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36188         patch.
36189
36190 2004-01-20  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36193
36194 2004-01-20  Bruno Haible  <bruno@clisp.org>
36195
36196         * lib/eealloc.h: New file.
36197
36198 2004-01-20  Bruno Haible  <bruno@clisp.org>
36199
36200         * lib/binary-io.h: Avoid warnings on Cygwin.
36201
36202 2004-01-20  Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/allocsa.h: New file, from GNU gettext.
36205         * lib/allocsa.c: New file, from GNU gettext.
36206
36207 2004-01-18  Karl Berry  <karl@gnu.org>
36208
36209         * doc/gpl.texi, doc/lgpl.texi: new files.
36210
36211 2004-01-18  Karl Berry  <karl@gnu.org>
36212
36213         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36214         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36215
36216 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36217
36218         Merge from coreutils.
36219
36220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36221         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36222         (gl_DEFAULT_POSIX2_VERSION): Move
36223         the documentation from 'configure' into 'config.hin',
36224         so that 'configure --help' isn't burdened by it and
36225         we don't have to worry about its formatting there.
36226         Reword the documentation so that it's more succinct
36227         and can be run together into a single paragraph.
36228         * m4/same.m4 (gl_SAME): Check for pathconf.
36229
36230 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36231
36232         Merge from coreutils.
36233
36234         * lib/posixver.c: Include posixver.h.
36235
36236         * lib/same.c: Include <stdbool.h>, <limits.h>.
36237         (_POSIX_NAME_MAX): Define if not defined.
36238         (MIN): New macro.
36239         (same_name): If file names are silently truncated, report
36240         that the file names are the same if they are the same after
36241         the silent truncation.
36242
36243         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36244         conversion function.
36245         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36246         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36247         longer needed.
36248
36249 2004-01-15  Jim Meyering  <jim@meyering.net>
36250
36251         Merge from coreutils.
36252
36253         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36254         if no library is required.
36255         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36256         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36257         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36258         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36259         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36260         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36261         value, $ac_cv_search_crypt, if it's "none required".
36262         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36263         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36264         not gl_FUNC_GETLOADAVG.
36265         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36266         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36267
36268 2004-01-15  Jim Meyering  <jim@meyering.net>
36269
36270         Merge from coreutils.
36271
36272         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36273         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36274         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36275
36276         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36277         optional configure-time default.
36278
36279         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36280
36281         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36282
36283 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36284
36285         Merge from coreutils.
36286
36287         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36288         value, $ac_cv_search_nanosleep, if it's "none required".
36289
36290 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36291
36292         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36293         with like-named macro in fnmatch.c.
36294         (EXT): Use an internal constant instead.
36295
36296         Merge fnmatch patches from glibc.
36297         * lib/fnmatch.c (mbsinit): Remove define.
36298         Add libc_hidden_ver (__fnmatch, fnmatch).
36299         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36300         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36301
36302 2004-01-14  Karl Berry  <karl@gnu.org>
36303
36304         * config/install-sh: update from automake.
36305
36306 2004-01-13  Karl Berry  <karl@gnu.org>
36307
36308         * config/install-sh: update from automake.
36309
36310 2004-01-09  Karl Berry  <karl@gnu.org>
36311
36312         * config/install-sh: update from automake.
36313
36314 2004-01-05  Karl Berry  <karl@gnu.org>
36315
36316         * config/config.{sub,guess}: update from config.
36317
36318 2003-12-31  Karl Berry  <karl@gnu.org>
36319
36320         * config/depcomp: update from automake.
36321
36322 2003-12-14  Karl Berry  <karl@gnu.org>
36323
36324         * lib/config.charset: update from gettext-runtime.
36325
36326 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36327
36328         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36329         Bug reported by Alfred M. Szmidt.
36330
36331 2003-12-03  Bruno Haible  <bruno@clisp.org>
36332
36333         * m4/gettext.m4: Upgrade from gettext-0.13.
36334         * m4/po.m4: Upgrade from gettext-0.13.
36335         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36336         * m4/intmax.m4: New file, from gettext-0.13.
36337         * m4/printf-posix.m4: New file, from gettext-0.13.
36338
36339 2003-11-29  Karl Berry  <karl@gnu.org>
36340
36341         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36342
36343 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36344             Bruno Haible  <bruno@clisp.org>
36345
36346         * lib/printf-parse.h: Don't include sys/types.h.
36347         (ARG_NONE): New macro.
36348         (char_directive): Change type of *arg_index fields to size_t.
36349         * lib/printf-parse.c: Don't include sys/types.h.
36350         (SSIZE_MAX): Remove macro.
36351         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36352         Remove unnecessary overflow check.
36353         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36354         fields.
36355
36356 2003-11-25  Bruno Haible  <bruno@clisp.org>
36357
36358         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36359
36360 2003-11-25  Bruno Haible  <bruno@clisp.org>
36361
36362         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36363         gt_TYPE_SSIZE_T.
36364
36365 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36366
36367         * modules/alloca: Remove dependency on xalloc.
36368
36369 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36370
36371         * lib/alloca.c: Remove dependency on xalloc module.
36372         (xalloc_die): Remove.
36373         (memory_full) [!defined emacs]: New macro.
36374         [!defined emacs]: Don't include xalloc.h.
36375         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36376         address arithmetic overflows.  Change datatypes a bit to avoid
36377         unnecessary casts.
36378
36379 2003-11-22  Jim Meyering  <jim@meyering.net>
36380
36381         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36382         s/size/size_t/.
36383
36384 2003-11-21  Karl Berry  <karl@gnu.org>
36385
36386         * config/config.{sub,guess}: update from config.
36387
36388 2003-11-18  Karl Berry  <karl@gnu.org>
36389
36390         * config/config.{sub,guess}: update from config.
36391
36392         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36393
36394 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36395
36396         * README: Mention that S+T cannot overflow if S is the size of
36397         an existing object and T is sufficiently small.
36398
36399 2003-11-17  Jim Meyering  <jim@meyering.net>
36400
36401         On systems without utime and without a utimes function capable of
36402         dealing with a NULL struct utimbuf* argument, this utime replacement
36403         could -- in unusual circumstances -- leak a file descriptor.
36404         * lib/utime.c: Include <unistd.h> and <errno.h>.
36405         (utime_null): Be sure to close `fd' and to preserve errno.
36406         Reported by Geoff Collyer via Arnold Robbins.
36407
36408 2003-11-17  Bruno Haible  <bruno@clisp.org>
36409
36410         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36411         (Depends-on): Add xsize.
36412
36413 2003-11-17  Bruno Haible  <bruno@clisp.org>
36414
36415         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36416
36417 2003-11-17  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/vasnprintf.c (alloca): Remove fallback definition.
36420         (freea): Remove definition.
36421         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36422         Reported by Paul Eggert.
36423
36424 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36425             Bruno Haible  <bruno@clisp.org>
36426
36427         Protect against address arithmetic overflow.
36428         * lib/printf-args.h: Include stddef.h.
36429         (arguments): Change type of field 'count' to size_t.
36430         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36431         'unsigned int' where appropriate.
36432         * lib/printf-parse.h: Include sys/types.h.
36433         (char_directive): Change type of *arg_index fields to ssize_t.
36434         (char_directives): Change type of fields 'count', max_*_length to
36435         size_t.
36436         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36437         (SSIZE_MAX): Define fallback value.
36438         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36439         instead of 'int' where appropriate. Check a_allocated, d_allocated
36440         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36441         * lib/vasnprintf.c: Include xsize.h.
36442         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36443         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36444         overflow. Avoid wraparound when converting a width or precision from
36445         decimal to binary.
36446
36447 2003-11-16  Bruno Haible  <bruno@clisp.org>
36448
36449         Update from GNU gettext.
36450         * lib/printf-parse.c: Generalize to it can be compiled for wide
36451         strings.
36452         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36453         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36454         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36455         SNPRINTF): New macros.
36456         Don't include <alloca.h> if the file is used inside libintl.
36457         (local_wcslen): New function, for Solaris 2.5.1.
36458         (VASNPRINTF): Use it instead of wcslen.
36459
36460 2003-11-16  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/xsize.h (xmax): New function.
36463         (xsum, xsum3, xsum4): Declare as "pure" functions.
36464
36465 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36466
36467         * modules/xalloc (Files): Undo latest change, since xalloc.h
36468         no longer needs SIZE_MAX or PTRDIFF_MAX.
36469
36470 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36471
36472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36473         gl_PTRDIFF_MAX.
36474
36475 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36476
36477         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36478         "return", to pacify some unknown compiler.  Problem reported
36479         by Joerg Schilling.
36480
36481 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36482
36483         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36484         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36485         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36486         heuristic is just as accurate as far as we know, and it removes a
36487         dependency on size_max.m4 and ptrdiff_max.m4.
36488
36489 2003-11-11  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/xsize (Files): Add m4/size_max.m4.
36492         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36493
36494 2003-11-11  Bruno Haible  <bruno@clisp.org>
36495
36496         * m4/size_max.m4: New file.
36497         * m4/ptrdiff_max.m4: New file.
36498         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36499         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36500         (gl_XALLOC): Invoke it.
36501
36502 2003-11-11  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36505         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36506         defined.
36507
36508 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36509
36510         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36511         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36512         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36513         From Bruno Haible.
36514         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36515         not (size_t) -1, since it's defined here.
36516
36517 2003-11-09  Karl Berry  <karl@gnu.org>
36518
36519         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36520
36521 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36522
36523         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36524         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36525         Reject sizes of exactly SIZE_MAX bytes.
36526         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36527         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36528
36529 2003-11-05  Bruno Haible  <bruno@clisp.org>
36530
36531         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36532         SIZE_MAX defined in <limits.h> on Solaris.
36533
36534 2003-11-04  Jim Meyering  <jim@meyering.net>
36535
36536         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36537         variable names, rather than @VAR@.
36538         * modules/poll: Likewise.
36539
36540 2003-11-04  Bruno Haible  <bruno@clisp.org>
36541
36542         * modules/xsize: New file.
36543         * modules/linebreak: Depend on xsize.
36544         * MODULES.html.sh (func_all_modules): Add xsize.
36545
36546 2003-11-04  Bruno Haible  <bruno@clisp.org>
36547
36548         * m4/xsize.m4: New file.
36549
36550 2003-11-04  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/xsize.h: New file.
36553         * lib/linebreak.c: Include xsize.h.
36554         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36555         argument for overflow.
36556         Suggested by Paul Eggert.
36557
36558 2003-11-03  Karl Berry  <karl@gnu.org>
36559
36560         * config/config.{guess,sub}: update from config.
36561
36562 2003-11-03  Jim Meyering  <jim@meyering.net>
36563
36564         * modules/userspec (lib_SOURCES): Add userspec.h.
36565         (Include): Add "userspec.h".
36566         Improve description.
36567
36568 2003-11-03  Jim Meyering  <jim@meyering.net>
36569
36570         * lib/userspec.c: Include "userspec.h".
36571         * lib/userspec.h: New file.
36572
36573 2003-11-03  Bruno Haible  <bruno@clisp.org>
36574
36575         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36576
36577 2003-11-03  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36580         available, to avoid (extremely rare) race condition.
36581         Suggested by Paul Eggert.
36582
36583 2003-11-02  Karl Berry  <karl@gnu.org>
36584
36585         * config/srclist.txt (vasprintf.c): sync broken, sigh.
36586
36587 2003-10-31  Paul Eggert  <eggert@twinsun.com>
36588
36589         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36590         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36591         (read_filesystem_list): Set and use me_type_malloced.
36592         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36593         whatever the type happens to be), for brevity and consistency.
36594         Check for size calculation overflow on Alphas running OSF/1.
36595
36596 2003-10-31  Jim Meyering  <jim@meyering.net>
36597
36598         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36599
36600         * lib/linebuffer.c: Include <string.h> for declaration of memset.
36601
36602 2003-10-30  Paul Eggert  <eggert@twinsun.com>
36603             Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36606         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36607
36608 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36609
36610         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36611         netbsd*-gnu*.  Suggested by Robert Millan.
36612
36613 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36614
36615         * modules/group-member: Depend on stdbool.
36616
36617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36618
36619         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36620
36621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36622
36623         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
36624         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
36625         after the 'gnu' in these cases.  This fixes some bugs in the
36626         previous change, and is based on suggestions by Robert Millan.
36627
36628 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36629
36630         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36631         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
36632         no longer needed.
36633         * lib/quotearg.c (quotearg_n_options): Use it.
36634         * lib/group-member.c: Include <stdbool.h>.
36635         (free_group_info): Arg is now const *; don't free arg.
36636         (get_group_info): Now returns bool and accepts struct group_info *,
36637         rather than returning a malloc'ed struct group_info *.
36638         All uses changed.  Check for overflow in internal size calculation.
36639
36640         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36641         rather than xmalloc/xrealloc.
36642         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36643         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
36644         conformance bug: the old code used a pointer after freeing the
36645         storage that it addressed.
36646         * lib/hash.c (hash_initialize): Simplify the code by using
36647         xalloc_oversized rather than doing it by hand.
36648         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36649         the buffer preserved.  Use free and xmalloc instead.
36650         * lib/quotearg.c (quotearg_n_options): Likewise.
36651         Use a simpler test for size overflow.  Don't use xalloc_oversized
36652         because unsigned int might be wider than size_t (!); this suggests
36653         that we should switch from unsigned int to size_t for slot numbers.
36654
36655 2003-10-28  Paul Eggert  <eggert@twinsun.com>
36656
36657         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36658         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
36659         NetBSD kernels.  Requested by Richard Stallman.
36660
36661 2003-10-27  Paul Eggert  <eggert@twinsun.com>
36662
36663         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36664         to allocate the returned structure.  Do not allocate a subarray,
36665         as x2nrealloc will do that.
36666         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36667         instead of xnrealloc.
36668         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36669
36670 2003-10-27  Bruno Haible  <bruno@clisp.org>
36671
36672         * lib/stdbool_.h: Better support for BeOS.
36673
36674 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36675
36676         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
36677         now uses inline.
36678
36679 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36680
36681         * lib/xalloc.h (xalloc_oversized): New static inline function, for
36682         callers that want to do their own size-overflow checking.  Include
36683         <stdbool.h>, since xalloc_oversized returns bool.
36684         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
36685         to use xalloc_oversized.
36686
36687         Add two functions x2realloc, x2nrealloc, for programs that grow
36688         arrays dynamically by doubling their sizes.
36689         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
36690         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
36691         New functions.
36692
36693         Port to C99 semantics for 'inline' of external functions.
36694         Bug reported by Bruno Haible.
36695         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
36696         with the old contents of xnmalloc.
36697         (xnmalloc, xmalloc): Use it.
36698         (xnrealloc_inline): New static inline function,
36699         with the old contents of xnrealloc.
36700         (xnrealloc, xrealloc): Use it.
36701
36702         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
36703         that.
36704
36705 2003-10-26  Karl Berry  <karl@gnu.org>
36706
36707         * config/srclist.txt (COPYING.DOC): no longer available from
36708         /gd/gnuorg; don't know where the ultimate source is.
36709
36710 2003-10-25  Paul Eggert  <eggert@twinsun.com>
36711
36712         Fix several address-calculation bugs in the hash modules,
36713         plus some minor code cleanup.
36714
36715         * lib/hash.h: Include <stdbool.h>, for bool.
36716         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
36717         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
36718         hash_get_n_entries, hash_get_max_bucket_length,
36719         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
36720         hash_rehash): Use size_t rather than unsigned.
36721         * lib/hash.c (struct hash_table, hash_get_n_buckets,
36722         hash_get_n_buckets_used, hash_get_n_entries,
36723         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
36724         hash_get_entries, hash_do_for_each, hash_string, is_prime,
36725         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
36726         Likewise.
36727         (SIZE_MAX): Define if not defined.
36728         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
36729         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
36730         hash_print):
36731         Use const * when possible.
36732         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
36733         (check_tuning): Fix bug: if tuning parameters were very close to
36734         0 or 1, rounding errors could have caused subscript violations.
36735         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
36736         (hash_initialize): Add 'fail:' label
36737         to free table and return NULL, and use it to simplify code.
36738         Use calloc rather than clearing the storage ourself.
36739         (hash_initialize, hash_rehash): Check for arithmetic overflow in
36740         buffer size calculations.
36741         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
36742         Include <stddef.h>, for size_t.
36743         * lib/hash-pjw.c (hash_pjw): Likewise.
36744         Switch to method described by Bruno Haible.
36745         Include <limits.h>, for CHAR_BIT.
36746         (SIZE_BITS): New macro.
36747
36748 2003-10-23  Paul Eggert  <eggert@twinsun.com>
36749
36750         * m4/getline.m4 (AM_FUNC_GETLINE):
36751         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
36752         hosts.  Problem reported by Derek Robert Price in
36753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
36754         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
36755         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
36756
36757 2003-10-21  Paul Eggert  <eggert@twinsun.com>
36758
36759         * lib/getndelim2.c (getndelim2): When size calculation overflows,
36760         ceiling the allocation at NMAX bytes rather than silently
36761         discarding input bytes before NMAX is reached.  This makes
36762         a difference only if NMAX exceeds SIZE_MAX / 2.
36763
36764         * lib/obstack.c: Merge from glibc.
36765         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
36766         Add libc_hidden_def (_obstack_newchunk).
36767         (_obstack_free) [! defined _LIBC]: Remove.
36768         [defined _LIBC]: Make a strong alias from obstack_free, rather than
36769         a clone of the function body.
36770         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
36771         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
36772
36773         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
36774         glibc.
36775         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
36776         arg to memcpy.
36777
36778         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
36779         (obstack_ptr_grow_fast, obstack_int_grow_fast):
36780         Don't use lvalue casts, as GCC plans to remove support for them
36781         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
36782         was also present in the non-GCC version, indicating that this
36783         code had always been buggy and had never been widely used.
36784         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
36785         Use the fast variant of each macro, rather than copying the
36786         definiens of the fast variant; that way, we'll be more likely to
36787         catch future bugs in the fast variants.
36788
36789 2003-10-20  Bruno Haible  <bruno@clisp.org>
36790
36791         * modules/wait-process: New file.
36792         * MODULES.html.sh (func_all_modules): Add wait-process.
36793
36794 2003-10-20  Bruno Haible  <bruno@clisp.org>
36795
36796         * m4/wait-process.m4: New file.
36797
36798 2003-10-20  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/wait-process.h: New file, from GNU gettext.
36801         * lib/wait-process.c: New file, from GNU gettext.
36802
36803 2003-10-19  Jim Meyering  <jim@meyering.net>
36804
36805         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
36806         HPUX 10.20.
36807
36808 2003-10-18  Karl Berry  <karl@gnu.org>
36809
36810         * config/config.guess: update from config.
36811
36812 2003-10-16  Paul Eggert  <eggert@twinsun.com>
36813
36814         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
36815         (getgroups): First arg is int, not size_t.
36816         Don't let 'free' mangle errno.
36817
36818 2003-10-16  Paul Eggert  <eggert@twinsun.com>
36819
36820         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
36821
36822 2003-10-16  Karl Berry  <karl@gnu.org>
36823
36824         * config/config.{guess,sub}: update from config.
36825
36826 2003-10-16  Jim Meyering  <jim@meyering.net>
36827
36828         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
36829         memcpy.
36830
36831 2003-10-15  Paul Eggert  <eggert@twinsun.com>
36832
36833         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
36834         (SIZE_MAX): Remove.
36835         (new_exclude, add_exclude_file): Initial size no longer needs to
36836         be a power of 2.
36837         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
36838         our own address arithmetic overflow checking.
36839
36840         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
36841         (fnmatch): Do not alloca more than 2000 wide characters;
36842         instead, use malloc for large buffers.
36843         Check for address arithmetic overflow, and return -1
36844         with errno set to ENOMEM in that case.
36845         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
36846         (NEW_PATTERN): Do not alloca more than 8000 bytes;
36847         instead, return -1.  Check for address arithmetic overflow.
36848
36849 2003-10-14  Paul Eggert  <eggert@twinsun.com>
36850
36851         Handle invalid suffixes and overflow independently, so that
36852         callers can treat them independently as needed.  Fix some bugs in
36853         suffix handling, e.g., "100k@" was not diagnosed as an invalid
36854         suffix for a human-readable blocksize.  The major caller-visible
36855         change is the addition of a new
36856         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
36857         that both overflow and suffix chars were found.
36858
36859         * lib/human.c (humblock): Don't check separately for invalid suffix
36860         char; that is xstrtoumax's job (now that its bug is fixed).
36861         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
36862         INTMAX_MAX]: New macros.
36863         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
36864         TYPE_MAXIMUM): New macros.
36865         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
36866         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
36867         if overflow occurs, as it's what __strtol does and it's more useful
36868         in practice.
36869         (__xstrtol): If __strtol reports some error other than ERANGE,
36870         reflect it to the caller as LONGINT_INVALID.  If it reports
36871         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
36872         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
36873         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
36874         value.
36875         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
36876         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
36877         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
36878         [defined UINTMAX_MAX]: New macros.
36879
36880 2003-10-14  Bruno Haible  <bruno@clisp.org>
36881
36882         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
36883
36884 2003-10-14  Bruno Haible  <bruno@clisp.org>
36885
36886         * m4/sig_atomic_t: New file, from GNU gettext.
36887         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
36888
36889 2003-10-14  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
36892         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
36893         Also use volatile where needed.
36894
36895 2003-10-12  Paul Eggert  <eggert@twinsun.com>
36896
36897         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
36898         Change maintainer from Bruno Haible to 'all'.
36899
36900 2003-10-12  Paul Eggert  <eggert@twinsun.com>
36901
36902         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
36903
36904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
36905
36906         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
36907         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
36908         and define in terms of the other primitives.
36909         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
36910         (SIZE_MAX): Define if not already defined.
36911         (array_size_overflow): New function.
36912         (xalloc_die): Abort instead of exiting if 'error' returns.
36913         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
36914         (xmalloc, xrealloc): Use them.
36915         (xcalloc): Check for address arithmetic overflow.
36916         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36917         a bit faster than strcpy.
36918
36919 2003-10-10  Simon Josefsson  <jas@extundo.com>
36920
36921         * modules/argp (Depends-on): Add restrict and strcase.
36922
36923 2003-10-10  Simon Josefsson  <jas@extundo.com>
36924
36925         * m4/argp.m4: Add AC_C_INLINE.
36926
36927 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36928
36929         Merge getpass from libc, plus a few fixes.
36930
36931         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
36932         Include <stdbool.h>.
36933         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
36934         __fsetlocking to empty.
36935         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
36936         do include <bits/libc-lock.h>.
36937         Do not include <fcntl.h>; not needed.
36938         [_LIBC]: Include <wchar.h>.
36939         (NOTCANCEL_MODE): New macro.
36940         (flockfile, funlockfile) [_LIBC]: New macros.
36941         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36942         [!_LIBC]: New macros.
36943         (call_fclose): New function.
36944         (getpass): Use it.  Save tty stream separately; this simplifies the
36945         code and makes it more reliable if stdin happens to equal stdout.
36946         Invoke __fsetlocking on tty.
36947         Handle thread cancellation if needed.
36948         Namespace cleanup (use __tcgetattr, __getline).
36949         Use bool for Booleans.
36950         [USE_IN_LIBIO]: Handle wide streams.
36951         [!_LIBC]: Unconditionally do the fseek, since we don't know what
36952         stream might go where.
36953
36954         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36955         doesn't have to include <stdio.h> before us.
36956         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36957         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36958         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36959         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36960         if not declared, so that we can use getpass.c code from libc without
36961         rewriting it.
36962         (flockfile, ftrylockfile, funlockfile): New macros.
36963
36964 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36965
36966         * modules/getpass: Depend on stdbool.
36967
36968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36969
36970         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36971
36972 2003-10-07  Karl Berry  <karl@gnu.org>
36973
36974         * config/config.{guess,sub}: update from config.
36975
36976 2003-10-06  Jim Meyering  <jim@meyering.net>
36977             Bruno Haible  <bruno@clisp.org>
36978
36979         This lets translators provide better translations for the
36980         "Written by ..." part of --version output.
36981         * lib/version-etc.h: Include stdarg.h.
36982         (version_etc_copyright): Declare as readonly.
36983         (version_etc): Make this function variadic with a NULL-terminated list
36984         of author name strings.
36985         (version_etc_va): New declaration.
36986         * lib/version-etc.c: Include stdarg.h, stdlib.h.
36987         (version_etc_copyright): Declare as readonly.
36988         (version_etc_va): New function. Provide a different translatable string
36989         for each possible number of authors < 10. Abbreviate when there are 10
36990         authors or more.
36991         (version_etc): Make this function variadic. Call version_etc_va.
36992         Suggestion from Gary V. Vaughan.
36993
36994         * lib/long-options.h (parse_long_options): Change prototype: the
36995         authors string is moved to the end and becomes variadic.
36996         * lib/long-options.c: Include stdarg.h.
36997         (parse_long_options): Make this function variadic, too.
36998         Call version_etc_va, not version_etc.
36999
37000 2003-10-06  Bruno Haible  <bruno@clisp.org>
37001
37002         * modules/version-etc-2: Remove file.
37003         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37004
37005 2003-10-06  Bruno Haible  <bruno@clisp.org>
37006
37007         * modules/fatal-signal: New file.
37008         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37009
37010 2003-10-06  Bruno Haible  <bruno@clisp.org>
37011
37012         * m4/fatal-signal.m4: New file.
37013         * m4/signalblocking.m4: New file, from GNU gettext.
37014
37015 2003-10-06  Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/version-etc-2.h: Remove file.
37018         * lib/version-etc-2.c: Remove file.
37019
37020 2003-10-06  Bruno Haible  <bruno@clisp.org>
37021
37022         * lib/fatal-signal.h: New file, from GNU gettext.
37023         * lib/fatal-signal.c: New file, from GNU gettext.
37024
37025 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37026
37027         * README: Rework advice for preventing empty .o files.
37028         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37029         not <sys/types.h>.
37030
37031 2003-10-04  Karl Berry  <karl@gnu.org>
37032
37033         * lib/argp*: update from libc.
37034
37035 2003-10-04  Karl Berry  <karl@gnu.org>
37036
37037         * config/config.{guess,sub}: update from config.
37038
37039 2003-10-02  Bruno Haible  <bruno@clisp.org>
37040
37041         * modules/lchown (Include): Add lchown.h.
37042         * modules/time_r (Include): Use "..." syntax.
37043         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37044
37045 2003-10-01  Simon Josefsson  <jas@extundo.com>
37046
37047         * MODULES.html.sh (func_all_modules): Move gethostname from section
37048         'based on' to section 'lacking' POSIX:2001.
37049
37050 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37051
37052         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37053         to output mode on the same stream.
37054
37055 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37056
37057         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37058         Fix arg typo in previous patch.
37059
37060 2003-09-28  Jim Meyering  <jim@meyering.net>
37061
37062         * lib/error.c: Correct cpp indentation.
37063
37064 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37065
37066         * modules/free: New file.
37067
37068 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37069
37070         * m4/free.m4: New file.
37071
37072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37073
37074         * lib/minmax.h (MIN, MAX)
37075         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37076         Omit the special code that used __typeof__, since we worry that
37077         it could be more trouble than it's worth.  See:
37078         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37079         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37080
37081         * lib/free.c: New file.
37082
37083 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37084
37085         Trivial fixes to Makefile.am parts of module listings.
37086         * modules/strstr: Append strstr.h to lib_SOURCES.
37087         * modules/strcase: Likewise, for strcase.h.
37088
37089 2003-09-27  Karl Berry  <karl@gnu.org>
37090
37091         * config/mkinstalldirs: update from automake.
37092
37093 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37094
37095         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37096         (error_tail): Do not loop, reallocating temporary buffer, since
37097         the output cannot contain more wide characters than the input
37098         contains bytes, the size must be big enough already.  This avoids
37099         one potential size overflow calculation.  Check for size overflow
37100         when calculating temporary buffer size.  Free temporary buffer
37101         when done, if it was allocated with malloc; this plugs a memory
37102         leak.  Remove casts from void * to pointers, that are no longer
37103         needed now that we're assuming C89 or better.
37104
37105         Merge error changes from glibc.
37106
37107         * lib/error.c, error.h: Update copyright notice header to match glibc.
37108         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37109         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37110         Disable cancellation while printing error.
37111         * lib/error.h: Prepend __ to parameter names.
37112
37113 2003-09-26  Jim Meyering  <jim@meyering.net>
37114
37115         * lib/error.c (error_tail): Move some declarations
37116         into inner scope where the local variables are used.
37117
37118 2003-09-26  Bruno Haible  <bruno@clisp.org>
37119
37120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37121         stpncpy().
37122         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37123
37124 2003-09-26  Bruno Haible  <bruno@clisp.org>
37125
37126         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37127         (stpncpy): Define as alias for gnu_stpncpy.
37128         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37129
37130 2003-09-25  Simon Josefsson  <jas@extundo.com>
37131
37132         * lib/xgetdomainname.h: New file.
37133         * lib/xgetdomainname.c: New file.
37134
37135 2003-09-25  Simon Josefsson  <jas@extundo.com>
37136             Bruno Haible  <bruno@clisp.org>
37137
37138         * modules/getdomainname: New file.
37139         * modules/xgetdomainname: New file.
37140         * MODULES.html.sh (func_all_modules): Add getdomainname,
37141         xgetdomainname.
37142
37143 2003-09-25  Simon Josefsson  <jas@extundo.com>
37144             Bruno Haible  <bruno@clisp.org>
37145
37146         * m4/getdomainname.m4: New file.
37147
37148 2003-09-25  Simon Josefsson  <jas@extundo.com>
37149             Bruno Haible  <bruno@clisp.org>
37150
37151         * lib/getdomainname.h: New file.
37152         * lib/getdomainname.c: New file.
37153
37154 2003-09-25  Karl Berry  <karl@gnu.org>
37155
37156         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37157
37158 2003-09-25  Karl Berry  <karl@gnu.org>
37159
37160         * config/install-sh: update from automake.
37161
37162 2003-09-25  Bruno Haible  <bruno@clisp.org>
37163
37164         * modules/version-etc-2: New file, from modules/version-etc with
37165         modifications.
37166         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37167
37168 2003-09-25  Bruno Haible  <bruno@clisp.org>
37169
37170         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37171         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37172
37173 2003-09-24  Simon Josefsson  <jas@extundo.com>
37174
37175         * modules/xgethostname: Add xgethostname.h.
37176
37177 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37178
37179         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37180         the buffer associated with the argument.  Bug reported by
37181         Simon Josefsson.
37182
37183 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37184
37185         * README: Document assumptions that 'int' is at least 32 bits
37186         wide, that integer arithmetic is 2's complement without overflow,
37187         that there are no holes in integer values, that adding sizes of
37188         two nonoverlapping objects can't overflow, and that all-bits-zero
37189         yields scalar zero.  Fix spelling and capitalization typos.
37190
37191 2003-09-19  Karl Berry  <karl@gnu.org>
37192
37193         * lib/argp.h: update from libc.
37194
37195 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37196
37197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37198         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37199         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37200
37201 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37202
37203         * gnulib-tool: Use "test -h", not "test -L", for portability
37204         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37205         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37206         (sed_extract_prog): Issue s commands one-by-one, rather than
37207         using \| in one s command.
37208
37209 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37210
37211         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37212         input error, instead of returning NULL the next time we are called
37213         (and therefore losing track of errno).
37214
37215 2003-09-16  Bruno Haible  <bruno@clisp.org>
37216
37217         * gnulib-tool (func_create_testdir): Warn about duplicated
37218         dependencies.
37219
37220 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37221
37222         * modules/argmatch, modules/fatal, modules/obstack,
37223         modules/xalloc, modules/xgethostname: Sort dependencies by
37224         importance, not alphabetically.
37225
37226 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37227
37228         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37229         fails, so that the caller gets the proper errno.
37230
37231         * lib/readutmp.c (read_utmp): Likewise.
37232         Check for fstat error.  Close stream and free storage
37233         when failing.
37234
37235 2003-09-14  Karl Berry  <karl@gnu.org>
37236
37237         * config/srclist.txt (strdup.c): disable for c89 changes.
37238
37239 2003-09-14  Jim Meyering  <jim@meyering.net>
37240
37241         * lib/getloadavg.c: Correct cpp indentation.
37242         * lib/strdup.c: Likewise.
37243         * lib/vasnprintf.c: Likewise.
37244
37245 2003-09-14  Bruno Haible  <bruno@clisp.org>
37246
37247         * modules/fwriteerror: New file.
37248         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37249
37250 2003-09-14  Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/fwriteerror.h: New file.
37253         * lib/fwriteerror.c: New file.
37254
37255 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37256
37257         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37258         modules/xgethostname, modules/xalloc: Depend on exit.
37259
37260 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37261
37262         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37263
37264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37265         and AC_MINIX, too, so that their extensions are available.
37266
37267         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37268         This macro has been superseded by gl_BACKUPFILE.
37269
37270         More patches to assume C89 or better.
37271
37272         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37273
37274         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37275         unconditionally.
37276         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37277         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37278         Include <string.h>, <stdlib.h> unconditionally.
37279         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37280         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37281         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37282         headers or for string.h.
37283         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37284         or strtoul.
37285
37286         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37287         headers.
37288         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37289         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37290         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37291         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37292         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37293         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37294         memcpy, memset.
37295         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37296         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37297         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37298         strtol.
37299         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37300         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37302         strtoul.
37303
37304 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37305
37306         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37307         * lib/obstack.c [!defined _LIBC]: Likewise.
37308         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37309         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37310         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37311
37312         More changes to assume C89 or better.
37313
37314         * lib/error.c (error_tail): Assume vprintf.
37315
37316         * lib/argmatch.c (getenv): Remove decl.
37317         * lib/progreloc.c (get_full_program_name): Define via prototype.
37318         * lib/setenv.c (clearenv): Likewise.
37319         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37320         needed.
37321         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37322         (malloc, memcpy): Remove decls.
37323         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37324         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37325         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37326         (memcpy): Remove macro.
37327         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37328         (__P): Remove.  All uses removed.
37329         (PTR): Remove.  All uses changed to void *.
37330         (CHAR_BIT, NULL): Remove.
37331         (spaces, zeros, memset_space, memset_zero)
37332         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37333         Remove.
37334         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37335         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37336         Define with prototype.
37337         Remove now-unnecessary prototype decl.
37338         (extra_args_spec): Assume ANSI C.  All uses changed.
37339         (extra_args_spec_iso): Remove.
37340         (my_strftime, emacs_strftimeu): Define via prototype.
37341         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37342         unconditionally.
37343         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37344         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37345         (strtoul, strtol): Remove decls.
37346         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37347         LONG_MAX): Remove.
37348         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37349         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37350         (LOCALE_PARAM_PROTO): New macro.
37351         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37352         (INTERNAL (strtol), strtol): Define with a prototype.
37353         (PARAMS): Remove.  All uses removed.
37354         * lib/tempname.c: Include <string.h> unconditionally.
37355         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37356         * lib/xgethostname.c (main): Define with a prototype.
37357         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37358         Include <stdlib.h> unconditionally.
37359         (calloc, malloc, realloc, free): Remove decls.
37360         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37361         Include <stdlib.h> unconditionally.  Sort include file names.
37362         (strtod): Remove.
37363         (xstrtod): Define with a prototype.
37364         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37365         (strtol, strtoul): Remove decls.
37366
37367 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37368
37369         More patches to assume C89 or better.
37370         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37371         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37372         string.h, memchr, STDC_HEADERS.
37373
37374 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37375
37376         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37377         Include <stdlib.h>, <string.h> unconditionally.
37378         Remove now-unnecessary cast to char *.
37379         * lib/strnlen.c: Include <string.h> unconditionally.
37380         * lib/yesno.c (yesno): Define with a prototype.
37381
37382 2003-09-11  Bruno Haible  <bruno@clisp.org>
37383
37384         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37385
37386 2003-09-10  Jim Meyering  <jim@meyering.net>
37387
37388         * lib/error.c: Correct indentation of cpp directives.
37389
37390 2003-09-10  Bruno Haible  <bruno@clisp.org>
37391
37392         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37393         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37394         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37395         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37396         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37397         <stdlib.h> and <string.h> checks.
37398         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37399         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37400
37401 2003-09-10  Bruno Haible  <bruno@clisp.org>
37402
37403         * lib/strcspn.c: Include <string.h> unconditionally.
37404         * lib/strpbrk.c: Include <string.h> unconditionally.
37405         * lib/strstr.c: Include <string.h> unconditionally.
37406         * lib/unicodeio.c: Include <string.h> unconditionally.
37407         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37408         * lib/unsetenv.c: Likewise.
37409         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37410         * lib/yesno.c: Include <stdlib.h> unconditionally.
37411         (rpmatch): Add prototype.
37412
37413 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37414
37415         More patches to assume C89 or better.
37416         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37417         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37418         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37419         or for string.h.
37420         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37421         stdlib.h.
37422         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37423         C headers.
37424         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37425         string.h.
37426         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37427         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37428         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37429         or for string.h.
37430         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37431         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37432         C headers.
37433         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37434         memcpy.
37435         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37436         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37437         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37438         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37439         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37440         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37441         string.h, free.
37442         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37443         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37444         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37445         C headers, or for string.h.
37446         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37447         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37448         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37449         headers, memory.h, stdlib.h, string.h, strings.h.
37450         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37451         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37452         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37453         strchr.
37454         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37455         headers, memory.h, string.h.
37456         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37457         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37458         free.
37459         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37460         headers.
37461         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37462         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37463         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37464         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37465         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37466
37467 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37468
37469         More K&R removal.
37470
37471         * lib/acosl.c (main): Use a prototype.
37472         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37473         tanl.c: Likewise.
37474
37475         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37476
37477         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37478         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37479         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37480         with a prototype.
37481         * lib/getopt.c (const): Remove macro.
37482         Include <string.h> unconditionally.
37483         (my_index): Remove; all uses changed to strchr.
37484         (strlen): Remove decl.
37485         (exchange): Remove forward decl; no longer needed.
37486         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37487         Define with prototype.
37488         * lib/getopt1.c (const): Remove macro.
37489         (getopt_long, getopt_long_only, main): Define with prototype.
37490
37491         * lib/getugroups.c: Include <string.h> unconditionally.
37492
37493         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37494         (getusershell, setusershell, endusershell, readname, main):
37495         Define with prototypes.
37496
37497         * lib/group-member.c: Include group-member.h first.
37498         Include <stdlib.h> unconditionally.
37499
37500         * lib/hard-locale.c: Include hard-locale.h first.
37501         Include <stdlib.h>, <string.h> unconditionally.
37502
37503         * lib/hash.c (free, malloc): Remove decls.
37504         Include <stdlib.h> unconditionally.
37505
37506         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37507         (getenv): Do not declare.
37508
37509         * lib/idcache.c: Include <string.h> unconditionally.
37510
37511         * lib/long-options.c: Include long-options.h first, to test interface.
37512         Include <stdlib.h> unconditionally.
37513
37514         * lib/makepath.c: Include makepath.h first, to test interface.
37515         Include <stdlib.h> and <string.h> unconditionally.
37516
37517         * lib/linebuffer.c: Include <stdlib.h>.
37518         (free): Remove decl.
37519
37520         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37521         stddef.h. rpl_malloc returns void *, not char *.
37522         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37523         prototype.
37524
37525         * lib/md5.h: Include <limits.h> unconditionally.
37526         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37527         (__P): Remove; all uses removed.
37528         * lib/md5.c: Include "md5.h" first.
37529         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37530         md5_buffer, md5_process_bytes, md5_process_block):
37531         Define with prototypes.
37532         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37533         * lib/sha.c: Include "sha.h" first.
37534         Include <stdlib.h>, <string.h> unconditionally.
37535
37536         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37537         * lib/memcmp.c (__ptr_t): Likewise.
37538         * lib/memrchr.c (__ptr_t): Likewise.
37539         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37540         Include <string.h> unconditionally.
37541         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37542         * lib/memchr.c: Include <stdlib.h> unconditionally.
37543         * lib/memchr.c (LONG_MAX): Remove.
37544         * lib/memrchr.c (LONG_MAX): Likewise.
37545         * lib/memchr.c (__memchr): Define via a prototype.
37546         * lib/memrchr.c (__memrchr): Likewise.
37547         * lib/memcmp.c (__P): Remove, and remove all uses.
37548         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37549         Remove forward decls; no longer needed.
37550         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37551         Use types required by C89 in prototype.
37552
37553         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37554         * lib/savedir.c: Likewise.
37555         * lib/mkdir.c (free): Remove decl.
37556         * lib/rmdir.c (rmdir): Define with a prototype.
37557         * lib/savedir.c: Include savedir.h first, to test interface.
37558
37559         * lib/mktime.c (STDC_HEADERS): Remove.
37560         Include <stdlib.h>, <string.h> unconditionally.
37561
37562         * lib/modechange.c: Include <stdlib.h> unconditionally.
37563         (malloc): Remove decl.
37564
37565         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37566         (free): Remove decl.
37567
37568         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37569         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37570         (This type really should be intptr_t, but that's a C99ism.)
37571         (_obstack_memcpy): Remove: all uses changed to memcpy.
37572         Include <string.h> unconditionally.
37573         (struct obstack): Assume __STDC__ for types of members
37574         chunkfun, freefun, extra_arg.
37575         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37576         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37577         obstack_begin, obstack_specify_allocation,
37578         obstack_specify_allocation_with_arg, obstack_chunkfun,
37579         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37580         Remove unprototyped decls and the macros that use them.
37581         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
37582         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37583         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37584         (defined __STDC__ && __STDC__)]:
37585         Remove nonprototyped code.
37586         Include <stdlib.h> unconditionally.
37587         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37588         _obstack_allocated_p, _obstack_free, obstack_free,
37589         _obstack_memory_used, print_and_abort):
37590         Define using prototypes.
37591         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37592         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37593         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37594         obstack_next_free, obstack_object_size, obstack_room) [0]:
37595         Remove unused, unprototyped code.
37596
37597         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37598
37599         * lib/physmem.c (physmem_total, physmem_available, main): Define
37600         with prototypes.
37601
37602         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37603         (main): Define with a prototype.
37604
37605         * lib/posixver.c (getenv): Remove decl.
37606
37607         * lib/putenv.c (malloc): Returns void *, not char *.
37608         Include <string.h> unconditionally.
37609         (strchr, memcpy, NULL): Do not define.
37610
37611         * lib/readtokens.c: Include readtokens.h first, to test interface.
37612         Include <stdlib.h>, <string.h> unconditionally.
37613         (init_tokenbuffer): Define with a prototype.
37614
37615         * lib/regex.c (PARAMS): Remove.  All uses removed.
37616         All uses of _RE_ARGS removed, too.
37617         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37618         unconditionally.
37619         (bzero): Assume memset exists.
37620         (memcmp, memcpy, NULL): Remove.
37621         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37622         char, or assignments to local vars of type signed char.
37623         (init_syntax_once, PREFIX(extract_number_and_incr),
37624         PREFIX(print_partial_compiled_pattern),
37625         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37626         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37627         PREFIX(regex_grow_registers), PREFIX(regex_compile),
37628         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37629         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37630         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37631         wcs_compile_range, byte_compile_range, truncate_wchar,
37632         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37633         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37634         count_mbs_length, wcs_re_match_2_internal,
37635         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37636         PREFIX(alt_match_null_string_p),
37637         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37638         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37639         regfree, PREFIX(extract_number)): Define with prototype.  Remove
37640         now-unnecessary declaration, if any.
37641         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37642         regcomp, regexec):
37643         Remove now-unnecessary casts among pointer types.
37644         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
37645
37646         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37647         (free): Remove decl.
37648
37649         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37650
37651         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37652         (free): Remove decl.
37653
37654         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37655         * lib/xgetcwd.c: Likewise.
37656
37657         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37658         (free): Remove decl.
37659
37660         * lib/strchrnul.c (strchrnul): Define with a prototype.
37661         Fix bug: c_in was not converted to char before searching.
37662
37663         The following changes are not K&R related:
37664
37665         * lib/group-member.h: Include <sys/types.h>, so that this file is
37666         self-contained.
37667         * lib/makepath.h: Likewise.
37668
37669         * lib/getusershell.c (readname, default_index, line_size, readname):
37670         Use size_t, not int, for sizes.
37671         (readname): If the size overflows, report an error instead of
37672         looping forever.
37673
37674 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37675
37676         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
37677         libc.
37678
37679 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37680
37681         * README: New section: portability guidelines.
37682
37683 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
37684
37685         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
37686         C89 spec.
37687
37688 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
37689
37690         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
37691
37692 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37693
37694         Assume C89 or better; remove K&R cruft.
37695         A few of these changes were first proposed by Derek Robert Price
37696         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
37697
37698         * lib/addext.c: Include <string.h> unconditionally.
37699         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
37700         Don't declare getenv or malloc.
37701
37702         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
37703         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
37704         (NULL): Remove.
37705         (find_stack_direction, alloca): Use prototypes.
37706
37707         * lib/atexit.c (atexit): Define using a prototype.
37708
37709         * lib/basename.c, dirname.c, stripslash.c:
37710         Include <string.h> unconditionally.
37711
37712         * lib/bcopy.c: Include <stddef.h>.
37713         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
37714
37715         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
37716
37717         * lib/error.h (error, error_at_line, error_print_progname)
37718         [! (defined (__STDC__) && __STDC__)]: Remove decls.
37719         * lib/error.c: Include error.h first, to check interface.
37720         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37721         (VA_START): Remove; all uses changeed to va_start.
37722         (exit, strerror): Remove decls.
37723         (error_print_progname): Prototype uncondionally.
37724         Don't include <errno.h>; no longer needed.
37725         (private_strerror): Remove.
37726         (error_tail): Always define.
37727         (error, error_at_line): Assume C89 or better; always use prototypes.
37728         * lib/fatal.c: Include "fatal.h" first, to test interface.
37729         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37730         (VA_START): Remove; all uses changed to va_start.
37731         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
37732         this case.
37733         (exit): Remove decl.
37734         (fatal): Prototype unconditionally.  Assume va_start works.
37735         Abort at end, to pacify gcc.
37736
37737         * lib/euidaccess.c (main): Define with a prototype.
37738
37739         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
37740
37741         * lib/exitfail.c: Include <stdlib.h> unconditionally.
37742
37743         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
37744         prototypes.
37745         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
37746         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
37747         (getenv): Remove decl.
37748         (fnmatch): Define using a prototype.
37749         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
37750         (FCT): Define using a prototype.
37751
37752         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
37753
37754         * lib/gethostname.c: Include <stddef.h>.
37755         (gethostname): Define with prototype.  Length is size_t, not int.
37756
37757 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37758
37759         Assume C89 or better; remove K&R cruft.
37760         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
37761         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
37762         string.h, getenv, malloc.
37763         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
37764         headers.
37765         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
37766         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
37767         do not check for strerror.
37768         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
37769         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
37770         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
37771         do not check for doprnt or vprintf.
37772         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
37773         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
37774
37775 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37776
37777         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
37778         getversion.c should have been removed then, but was accidentally
37779         preserved.
37780
37781         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
37782         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
37783
37784 2003-09-08  Karl Berry  <karl@gnu.org>
37785
37786         * config/config.sub, config.guess, srclistvars.sh: update from savannah
37787                 config, forget about prep.
37788
37789         * config/depcomp, missing: update from automake.
37790
37791 2003-09-07  Paul Eggert  <eggert@twinsun.com>
37792
37793         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
37794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37795
37796 2003-09-07  Paul Eggert  <eggert@twinsun.com>
37797
37798         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
37799         copy_tm_result.  Bug reported by Simon Josefsson in
37800         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37801
37802 2003-09-06  Paul Eggert  <eggert@twinsun.com>
37803
37804         * m4/time_r.m4: New file.
37805         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
37806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
37807         is. Check for timegm declaration.
37808         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
37809         Do not check for gmtime_r.
37810         Replace mktime if __mktime_internal does not exist and if mktime
37811         hasn't been replaced already.
37812
37813 2003-09-06  Paul Eggert  <eggert@twinsun.com>
37814
37815         * lib/time_r.c, lib/time_r.h: New files.
37816
37817         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
37818         __localtime_r.
37819         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
37820         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
37821
37822         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
37823         __gmtime_r.
37824         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
37825         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
37826         Include <time_r.h>.
37827
37828         * lib/timegm.c: Switch to glibc implementation, with the following
37829         changes:
37830         [defined HAVE_CONFIG_H]: Include <config.h>.
37831         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
37832         (__mktime_internal) [!defined _LIBC]: New decl.
37833         (__gmtime_r) [!defined _LIBC]: New macro and function.
37834         (timegm): Use a prototype, since gnulib assumes C89.
37835         Do not bother declaring tmp to be const, as it's not really usefu.
37836         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
37837         (timegm): Declare only if HAVE_DECL_TIMEGM.
37838
37839 2003-09-06  Paul Eggert  <eggert@twinsun.com>
37840
37841         * MODULES.html.sh (func_all_modules): Add time_r.
37842         * modules/time_r: New file.
37843         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
37844         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
37845
37846 2003-09-03  Paul Eggert  <eggert@twinsun.com>
37847
37848         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
37849         Bug reported by Lute Kamstra in
37850         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
37851
37852         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
37853         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
37854         course with correspondingly smaller numbers for tomorrow and
37855         yesterday.  From Tadayoshi Funaba.  Originally installed into
37856         sh-utils on 1999-08-07, but the patch got lost (I guess during the
37857         coreutils merge?).
37858
37859 2003-08-31  Simon Josefsson  <jas@extundo.com>
37860
37861         * modules/timegm: New file.
37862         * MODULES.html.sh (func_all_modules): Add timegm.
37863
37864 2003-08-31  Simon Josefsson  <jas@extundo.com>
37865
37866         * m4/timegm.m4: New file.
37867
37868 2003-08-31  Simon Josefsson  <jas@extundo.com>
37869
37870         * lib/timegm.h: New file.
37871         * lib/timegm.c: New file.  Based on
37872         wget-1.8.2/src/http.c:mktime_from_utc.
37873
37874 2003-08-31  Karl Berry  <karl@gnu.org>
37875
37876         * lib/argp.h: update from libc.
37877
37878 2003-08-28  Bruno Haible  <bruno@clisp.org>
37879
37880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
37881         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
37882         followed by '#define fnmatch fnmatch_posix' gives an error.
37883
37884 2003-08-28  Bruno Haible  <bruno@clisp.org>
37885
37886         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
37887         warning on QNX, which defines O_BINARY to 000000.
37888
37889 2003-08-27  Jim Meyering  <jim@meyering.net>
37890
37891         * m4/mkstemp.m4: Require that the system mkstemp be able to create
37892         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
37893         would fail after 32.  Reported by Danny Levinson.  Details here:
37894         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
37895
37896 2003-08-24  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
37899         MSVC7 <stdio.h> is included later.
37900
37901 2003-08-22  Simon Josefsson  <jas@extundo.com>
37902
37903         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
37904
37905 2003-08-20  Karl Berry  <karl@gnu.org>
37906
37907         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
37908
37909 2003-08-20  Bruno Haible  <bruno@clisp.org>
37910
37911         * modules/progname: New file.
37912         * MODULES.html.sh (func_all_modules): Add progname.
37913
37914 2003-08-20  Bruno Haible  <bruno@clisp.org>
37915
37916         * lib/progname.h: New file, from GNU gettext.
37917         * lib/progname.c: New file, from GNU gettext.
37918         * lib/progreloc.c: New file, from GNU gettext.
37919
37920 2003-08-19  Jim Meyering  <jim@meyering.net>
37921
37922         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37923         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37924
37925 2003-08-19  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
37928         more.
37929
37930 2003-08-19  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/xstrdup.c: Assume <string.h> exists.
37933
37934 2003-08-18  Paul Eggert  <eggert@twinsun.com>
37935
37936         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
37937         in makefile rules.
37938
37939 2003-08-18  Jim Meyering  <jim@meyering.net>
37940
37941         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37942         * m4/lib-ld.m4: Likewise.
37943
37944 2003-08-18  Jim Meyering  <jim@meyering.net>
37945
37946         * lib/setenv.h: Indent nested cpp directive.
37947         * lib/vasnprintf.c: Remove trailing blanks.
37948
37949 2003-08-17  Simon Josefsson  <jas@extundo.com>
37950
37951         * modules/xstrndup: New file.
37952         * MODULES.html.sh (func_all_modules): Add xstrndup.
37953
37954 2003-08-17  Simon Josefsson  <jas@extundo.com>
37955
37956         * modules/argp: Fix autoconf macro name. Add more dependencies.
37957
37958 2003-08-17  Simon Josefsson  <jas@extundo.com>
37959
37960         * m4/xstrndup.m4: New file.
37961
37962 2003-08-17  Simon Josefsson  <jas@extundo.com>
37963
37964         * m4/argp.m4: New file.
37965
37966 2003-08-17  Simon Josefsson  <jas@extundo.com>
37967             Bruno Haible  <bruno@clisp.org>
37968
37969         * lib/xstrndup.h: New file.
37970         * lib/xstrndup.c: New file.
37971
37972 2003-08-17  Bruno Haible  <bruno@clisp.org>
37973
37974         * modules/strndup (Files, Include): Add lib/strndup.h.
37975
37976 2003-08-17  Bruno Haible  <bruno@clisp.org>
37977
37978         * modules/euidaccess (Files): Add lib/euidaccess.h.
37979
37980 2003-08-17  Bruno Haible  <bruno@clisp.org>
37981
37982         * lib/strndup.h: New file.
37983
37984 2003-08-17  Bruno Haible  <bruno@clisp.org>
37985
37986         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37987         like AC_GNU_SOURCE.
37988         * modules/extensions (configure.ac): Comment out the invocation of
37989         gl_USE_SYSTEM_EXTENSIONS.
37990
37991 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37992
37993         Merges from coreutils, etc.
37994         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37995         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
37996         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37997         fixing a typo.
37998         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37999         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38000
38001 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38002
38003         Document merge from coreutils.
38004         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38005         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38006         * modules/utime: Add m4/utimes-null.m4.
38007
38008 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38009
38010         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38011         space, undoing this 2003-08-12 change:
38012         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38013
38014 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38015
38016         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38017         strtoul.c from libc, undoing this 2003-08-12 change:
38018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38019
38020 2003-08-16  Jim Meyering  <jim@meyering.net>
38021
38022         Merges from coreutils.
38023         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38024         prefix.  Adjust cache variables similarly.  Create 500 rather than
38025         just 300 files, to exercise bug on Darwin6.5, too.
38026         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38027         $missing_dir.
38028         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38029         AM_SYS_POSIX_TERMIOS.
38030         Reported by mkc@mathdogs.com.
38031         Also change use of $am_cv_sys_posix_termios
38032         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38033         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38034         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38035         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38036         in /proc/mounts until it finds one with matching device number.  This
38037         is unnecessary when the FILE argument *is* a mount point.  No stat call
38038         is necessary in that case.  So, disable the statvfs-testing code on
38039         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38040         as RedHat bug# 84846.
38041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38042         to 1MB, so as not to render systems with no stack size limit (e.g.,
38043         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38044         Include <unistd.h>.  On some systems,
38045         it is required for the definition of _SC_PAGESIZE.
38046
38047 2003-08-16  Jim Meyering  <jim@meyering.net>
38048
38049         Merge from coreutils.
38050         * lib/xstrtoimax.c: #else #if -> #elif.
38051         * lib/xstrtoumax.c: Likewise.
38052
38053 2003-08-16  Jim Meyering  <jim@meyering.net>
38054
38055         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38056         * m4/utimes.m4: Removed.
38057         * m4/utimes-null.m4: Renamed from utimes.m4.
38058
38059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38060         to 1MB, so as not to render systems with no stack size limit (e.g.,
38061         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38062         Include <unistd.h>.  On some systems,
38063         it is required for the definition of _SC_PAGESIZE.
38064
38065 2003-08-16  Jim Meyering  <jim@meyering.net>
38066         and Paul Eggert  <eggert@cs.ucla.edu>
38067
38068         Merges from coreutils, etc.
38069
38070         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38071         using the latest version from cvs.  This avoids problems with #line
38072         directives using a vendor (Sun) compiler.
38073         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38074         Don't set GETGROUPS_LIB here; now it's
38075         done via getgroups.m4's wrapper function.
38076         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38077         rather than just in sh-util/configure.in, so that the
38078         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38079         same.
38080         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38081         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38082         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38083         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38084         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38085         Remove code that is now done by the newly-required macros.
38086         Append $(EXEEXT) to DF_PROG.
38087         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38088         Do not invoke or require the following here,
38089         since prereq.m4 or some gnulib .m4 now does this for us:
38090         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38091         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38092         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38093         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38094         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38095         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38096         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38097         AC_FUNC_OBSTACK.
38098         Do not replace the following functions, as this is now the job
38099         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38100         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38101         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38102         atexit getpass, strdup, getpagesize.
38103         Replace 'raise'.
38104         Do not check for the following functions, as this is now the job
38105         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38106         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38107         setregid.
38108         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38109         Check for sys/sysctl.h.
38110         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38111         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38112         of checking for ssize_t ourselves.
38113
38114         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38115         Require every macro that gnulib/modules/* suggests for us.
38116         (jm_PREREQ_ADDEXT): New macro.
38117         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38118         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38119
38120         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38121         (gl_PHYSMEM): Use it.
38122         Also check for `table' function.
38123         Check for new headers and functions.
38124         Add check for sys/sysmp.h.
38125         With suggestions from Kaveh Ghazi.
38126         Ignore headers that are present but cannot be compiled.  This
38127         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38128         C 5.4.
38129
38130 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38131
38132         Document merge from coreutils.
38133         * modules/userspec: Depend on posixver.
38134         * modules/strftime: Depend on tzset.
38135
38136 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38137
38138         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38139         rather than tab, after '#' in shell-script copyright notices.
38140         Suggested by Bruno Haible.
38141
38142 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38143
38144         * config/srclist-update: Use three spaces, rather than tab, after '#'
38145         in shell-script copyright notices.  Suggested by Bruno Haible.
38146         Remove unnecessary parenthesization in regular expression.
38147
38148 2003-08-15  Jim Meyering  <jim@meyering.net>
38149
38150         Merge from coreutils.
38151         * lib/xgethostname.c: Include <stdlib.h>.
38152         (xghostname): Don't exit for anything other than memory-related
38153         failure; just return NULL.
38154         * lib/userspec.c: Include "posixver.h".
38155         (parse_user_spec): Accept `.' as a separator only
38156         in pre-POSIX-200112 mode.
38157         * lib/strtoimax.c: Use #elif rather than #else #if.
38158         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38159         Remove function, now that we can rely on a working tzset function.
38160         [!_LIBC]: Ensure that the required autoconf test has been run.
38161         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38162         Use underlying_strftime for %r.
38163         * lib/sha.c: Merge in some clean-up and optimization changes from
38164         glibc.
38165         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38166         Ensure that it is a multiple of 64.
38167         Rearrange loop exit tests so as to avoid performing an
38168         additional fread after encountering an error or EOF.
38169         * lib/realloc.c: Update copyright date.
38170
38171 2003-08-15  Jim Meyering  <jim@meyering.net>
38172         and Paul Eggert  <eggert@twinsun.com>
38173
38174         Merge from coreutils.
38175         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38176         member but strut utmpx does not.  Needed for AIX 4.3.3.
38177         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38178
38179 2003-08-15  Jim Meyering  <jim@meyering.net>
38180         and Paul Eggert  <eggert@cs.ucla.edu>
38181
38182         Merges from coreutils, etc.
38183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38184         Require gl_FUNC_TZSET_CLOBBER.
38185         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38186         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38187         members.
38188
38189 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38190
38191         Help the merge from coreutils.
38192         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38193         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38194         * m4/tzset.m4: Use it too.
38195
38196 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38197
38198         * modules/tzset: New file.
38199
38200 2003-08-14  Jim Meyering  <jim@meyering.net>
38201
38202         Merges from coreutils.
38203         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38204         variable names, rather than @FNMATCH_H@.
38205         * modules/alloca: Likewise for $(ALLOCA_H).
38206
38207         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38208         the three copies of the literal target, `fnmatch.h'.
38209         * modules/alloca (alloca.h): Likewise.
38210
38211 2003-08-14  Jim Meyering  <jim@meyering.net>
38212
38213         Merge from coreutils.
38214         * m4/tzset.m4: New file.
38215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38216         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38217         otherwise, AIX 5.1 systems would end up using the latter.
38218         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38219         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38220         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38221         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38222
38223 2003-08-14  Jim Meyering  <jim@meyering.net>
38224
38225         Merge from coreutils.
38226         * lib/obstack.h: Whitespace changes.
38227         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38228         and xcalloc return values.
38229         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38230         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38231         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38232         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38233         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38234         error from mntctl.
38235         Use mntctl's return value to drive the entry-processing loop, since
38236         we can't rely on the value of the vmt_length member in the last
38237         entry.  On some systems doing so could result in exhausting
38238         virtual memory.  Based in part on a patch from Mike Jetzer.
38239
38240 2003-08-14  Jim Meyering  <jim@meyering.net>
38241         and Paul Eggert  <eggert@twinsun.com>
38242
38243         Merges from coreutils, plus other fixes.
38244         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38245         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38246         for credits and details.  Thanks to Kaveh Ghazi for helping
38247         to keep these files in sync.
38248         (ARRAY_SIZE): Define it.
38249         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38250         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38251         (memcasecmp): Don't assume size_t fits in unsigned int.
38252         Remove casts and duplicate code.
38253         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38254         (memcpy): Remove definition.
38255         Merge in some clean-up and optimization changes from glibc.
38256         [BLOCKSIZE]: Move definition to top of file.
38257         Ensure that it is a multiple of 64.
38258         Rearrange loop exit tests so as to avoid performing an
38259         additional fread after encountering an error or EOF.
38260         * lib/md5.h (md5_uintptr): Define.
38261         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38262         return to the initial working directory.  Preserve errno
38263         for caller.
38264         * lib/idcache.c: Include "xalloc.h".
38265         (xmalloc, xrealloc): Remove decls.
38266         (getuser): Remove casts no longer required in C89.
38267         * lib/human.c: Include stdio.h, for sprintf.
38268         * lib/group-member.c: Include "xalloc.h".
38269         (xmalloc, xrealloc): Remove decls.
38270         (get_group_info): Remove casts no longer required in C89.
38271         * lib/getusershell.c (readname): Remove casts no longer required in
38272         C89.
38273         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38274         * lib/getline.c: Whitespace fix, from coreutils.
38275
38276 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38277
38278         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38279         Check for isascii.
38280
38281         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38282         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38283         Undo previous (whitespace-only) change.
38284
38285 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38286
38287         * lib/exclude.c: Include <ctype.h>
38288         (IN_CTYPE_DOMAIN): New macro.
38289         (is_space): New fn.
38290         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38291         and empty lines.
38292
38293         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38294         Undo previous (whitespace-only) change.
38295
38296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38297
38298         * config/srclist-update: Change update back to the old behavior,
38299         leaving whitespace alone.  Use one 'sed' command rather than a
38300         pipeline.
38301         (fixlicense): Now a variable, not a function.
38302         (remove_trailing_blanks): Remove.
38303         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38304         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38305         Undo previous (whitespace-only) change.
38306
38307 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38308
38309         Merge from coreutils.
38310         * modules/euidaccess: Add lib_SOURCES, include for new
38311         file euidaccess.h
38312
38313 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38314
38315         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38316         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38317         Normalize leading white space and remove trailing white space.
38318
38319         Merge from coreutils
38320         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38321
38322         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38323         0.12.1.  These files are now being upgraded automatically by
38324         ../config/srclist-update.
38325
38326 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38327
38328         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38329         Normalize leading white space and remove trailing white space.
38330         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38331         notice, as per ../config/srclist-update.
38332
38333         Merge from coreutils.
38334         * lib/euidaccess.h: New file.
38335         * lib/euidaccess.c: Include it.
38336         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38337         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38338         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38339
38340 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38341
38342         * config/srclist-update: Add copyright notice.
38343         (remove_id_lines, remove_trailing_blanks): New constants.
38344         (fixfile): Use them to normalize spacing a bit in copied files.
38345         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38346         Normalize leading white space and remove trailing white space.
38347
38348         * config/texinfo.tex: Sync with texinfo.
38349
38350         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38351         strtoul.c from libc, to merge coreutils whitespace changes.
38352
38353         * config/srclist.txt: Get the following m4 files from gettext:
38354         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38355         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38356         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38357         wint_t.m4.
38358
38359 2003-08-12  Karl Berry  <karl@gnu.org>
38360
38361         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38362         been made.
38363
38364 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38365
38366         * modules/gnu-source, m4/gnu-source.m4:
38367         Remove; we're assuming Autoconf 2.54 or later now.
38368         Suggested by Bruno Haible.
38369         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38370
38371 2003-08-11  Bruno Haible  <bruno@clisp.org>
38372
38373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38374
38375 2003-08-11  Bruno Haible  <bruno@clisp.org>
38376
38377         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38378         (vasnprintf): Use it instead of wcslen.
38379
38380 2003-08-11  Bruno Haible  <bruno@clisp.org>
38381
38382         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38383         value to ensure that _Bool promotes to int. Use #define for _Bool when
38384         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38385
38386 2003-08-10  Karl Berry  <karl@gnu.org>
38387
38388         * lib/regex.h: update from libc (whitespace fix).
38389
38390 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38391
38392         Merge some files from coreutils.  These changes were
38393         originally made by Jim Meyering.
38394         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38395         many older Unixes require this.
38396         * lib/alloca.c (alloca): Remove cast to argument of free;
38397         no longer needed in C89.
38398         * lib/alloca_.h, regex.h: Fix white space to match
38399         what GNU indent does.
38400
38401 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38402
38403         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38404         apparently Emacs's Unicode mode got confused before my 2003-08-05
38405         checkin.
38406
38407 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38408
38409         * m4/extensions.m4: New file.
38410         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38411         Require gl_USE_SYSTEM_EXTENSIONS.
38412         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38413         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38414
38415 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38416
38417         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38418         * modules/extensions, modules/gnu-source: New files.
38419         * modules/timespec, modules/unlocked-io: Depend on extensions.
38420
38421 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38422
38423         * modules/restrict: New file.
38424         * MODULES.html.sh (func_all_modules): Add restrict.
38425         * modules/regex: Depend on restrict.
38426
38427 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38428
38429         * m4/restrict.m4: New file.
38430         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38431
38432 2003-08-07  Bruno Haible  <bruno@clisp.org>
38433
38434         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38435         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38436
38437 2003-08-07  Bruno Haible  <bruno@clisp.org>
38438
38439         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38440         makes the module 'getndelim2' compatible with the module 'getline'.
38441
38442 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38443
38444         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38445         byte with "\201" to avoid glitches when editing that source file
38446         with multi-gnome-terminal.
38447
38448 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38449
38450         * lib/bumpalloc.h: Remove.
38451
38452 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38453
38454         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38455         * modules/bumpalloc: Remove.
38456
38457 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38458
38459         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38460         GNU coding style.
38461
38462         Merge from coreutils.
38463         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38464         1. From glibc.
38465         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38466         from Karl Berry, implemented by Jim Meyering.
38467         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38468         from Dmitry V. Levin.
38469         Remove anachronistic cast of xrealloc.
38470         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38471         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38472         type. Otherwise, it wouldn't compile with at least /bin/cc on
38473         ymp-cray-unicos9.0.2.X.
38474         Combine two mostly-identical uses of alloca into one.
38475         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38476
38477 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38478
38479         [From Emacs.]
38480
38481         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38482         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38483         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38484         obsolete NLIST_NAME_UNION.
38485         [__GNU__]: Undef BSD and FSCALE.
38486         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38487
38488 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38489
38490         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38491         an enum type, so that it's guaranteed to promote to int.  See:
38492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38493
38494 2003-08-03  Karl Berry  <karl@gnu.org>
38495
38496         * config/depcomp: update from automake.
38497
38498 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38499
38500         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38501         (strerror): Don't assume that a printable int fits in 14 bytes.
38502
38503 2003-07-31  Bruno Haible  <bruno@clisp.org>
38504
38505         * modules/getpass-gnu: New file.
38506         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38507
38508 2003-07-31  Bruno Haible  <bruno@clisp.org>
38509
38510         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38511
38512 2003-07-24  Karl Berry  <karl@gnu.org>
38513
38514         * config/missing: update from automake.
38515
38516 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38517             Bruno Haible  <bruno@clisp.org>
38518
38519         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38520         * lib/getline.c (getline, getdelim): Likewise.
38521         Remove _GNU_SOURCE define; now it's defined in config.h through
38522         m4/getline.m4.
38523
38524 2003-07-23  Karl Berry  <karl@gnu.org>
38525
38526         * config/config.sub: update from prep.
38527
38528 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38529
38530         * modules/xalloc (Depends-on): Add exitfail.
38531         * modules/xmemcoll: Likewise.
38532
38533 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38534
38535         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38536         over-parenthesization in macros.
38537
38538         Sync with coreutils.
38539
38540         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38541         required by C99.
38542
38543         Use `exit_failure' for xalloc and xmemcoll instead of their own
38544         private exit-failure variables.
38545         * lib/xalloc.h (xalloc_exit_failure): Remove.
38546         * lib/xmalloc.c: Likewise.  Include exitfail.h.
38547         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38548         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38549         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
38550         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38551
38552 2003-07-20  Jim Meyering  <jim@meyering.net>
38553
38554         * modules/closeout (Depends-on): Add exitfail.
38555         Suggestion from Bruno Haible.
38556
38557 2003-07-19  Karl Berry  <karl@gnu.org>
38558
38559         * config/config.sub: update from prep.
38560
38561 2003-07-18  Paul Eggert  <eggert@twinsun.com>
38562
38563         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38564         Remove.
38565         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
38566         to test that it can stand by itself.  Include "exitfail.h".
38567         Clients should set exit_failure instead.
38568         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
38569
38570 2003-07-18  Bruno Haible  <bruno@clisp.org>
38571
38572         * modules/getndelim2: New file.
38573         * modules/getline: Share files with module getndelim2.
38574         * modules/getnline: Depend on getndelim2 instead of sharing files with
38575         it. Add getnline.c to lib_SOURCES.
38576         * MODULES.html.sh (func_all_modules): Add getndelim2.
38577
38578 2003-07-18  Bruno Haible  <bruno@clisp.org>
38579
38580         * m4/getndelim2.m4: New file.
38581         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38582         invoke gl_PREREQ_GETNDELIM2.
38583         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38584         gl_PREREQ_GETNDELIM2.
38585         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38586         gl_GETNDELIM2.
38587
38588 2003-07-18  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/getndelim2.h: New file.
38591         * lib/getndelim2.c: Make into a module of its own. Include config.h,
38592         getndelim2.h.
38593         (getndelim2): Make non-static. Change return type to ssize_t.
38594         * lib/getline.h: Change argument names.
38595         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38596         * lib/getnline.c: Include getndelim2.h.
38597
38598 2003-07-18  Andreas Schwab  <schwab@suse.de>
38599
38600         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38601
38602 2003-07-17  Karl Berry  <karl@gnu.org>
38603
38604         * config/config.sub: update from prep.
38605
38606 2003-07-17  Bruno Haible  <bruno@clisp.org>
38607
38608         * modules/getnline: New file.
38609         * modules/getline: Add lib/getndelim2.c to source file list.
38610         * MODULES.html.sh (func_all_modules): Add getnline.
38611
38612 2003-07-17  Bruno Haible  <bruno@clisp.org>
38613
38614         * m4/getnline.m4: New file.
38615
38616 2003-07-17  Bruno Haible  <bruno@clisp.org>
38617
38618         * m4/Makefile.am.in: Remove file.
38619         * m4/Makefile.am: Remove file.
38620         * m4/Makefile.in: Remove file.
38621
38622 2003-07-17  Bruno Haible  <bruno@clisp.org>
38623
38624         * lib/getnline.h: New file.
38625         * lib/getnline.c: New file.
38626         * lib/getndelim2.c: New file, extracted from getline.c.
38627         (getndelim2): Renamed from getdelim2, with added nmax argument.
38628         * lib/getline.c: Include getndelim2.c.
38629         (getdelim2): Moved out to getndelim2.c.
38630         (getline, getdelim): Update.
38631
38632 2003-07-17  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/Makefile.am: Remove file.
38635         * lib/Makefile.in: Remove file.
38636
38637 2003-07-17  Bruno Haible  <bruno@clisp.org>
38638
38639         * configure.in: Remove file.
38640         * Makefile.in: Remove file.
38641
38642 2003-07-17  Bruno Haible  <bruno@clisp.org>
38643
38644         * MODULES.html.sh: Put the </BODY> right before </HTML>.
38645
38646 2003-07-16  Karl Berry  <karl@gnu.org>
38647
38648         * config/srclist-update: was running fixlicense twice, which caused
38649                 texinfo.tex to be nullified for some reason.  Simplify,
38650                 $gplsrc is no longer needed as far as I can see?
38651
38652 2003-07-16  Jim Meyering  <jim@meyering.net>
38653
38654         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
38655
38656 2003-07-15  Paul Eggert  <eggert@twinsun.com>
38657
38658         * config/srclist.txt: Get the following files from gettext-runtime/intl
38659         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38660         ref-del.sin.  From Bruno Haible.
38661         * config/srclist-update (fixfile): Change grep pattern again, since the
38662         previous fix didn't work (there was another trailing $).  Use
38663         '[$]' to escape the $s.
38664
38665 2003-07-15  Karl Berry  <karl@gnu.org>
38666
38667         * lib/vasnprintf.c: update from gettext.
38668
38669 2003-07-15  Karl Berry  <karl@gnu.org>
38670
38671         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38672         gets expanded when surrounded by '$'.
38673
38674 2003-07-15  Jim Meyering  <jim@meyering.net>
38675
38676         * modules/save-cwd: Don't depend on error.  From Derek Price.
38677
38678 2003-07-15  Jim Meyering  <jim@meyering.net>
38679
38680         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
38681
38682 2003-07-14  Simon Josefsson  <jas@extundo.com>
38683
38684         * modules/mempcpy: New file.
38685         * MODULES.html.sh (func_all_modules): Add mempcpy.
38686
38687 2003-07-14  Simon Josefsson  <jas@extundo.com>
38688
38689         * m4/mempcpy.m4: New file.
38690
38691 2003-07-14  Simon Josefsson  <jas@extundo.com>
38692
38693         * lib/mempcpy.h: New file.
38694         * lib/mempcpy.c: New file.
38695
38696 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38697
38698         * modules/getdate, modules/posixtm: Depend on mktime.
38699
38700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38701
38702         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
38703         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
38704         unicodeio.c, unicodeio.h, unlocked-io.h:
38705         Switch from LGPL to GPL.
38706
38707 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38708
38709         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
38710         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
38711         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
38712         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
38713         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
38714         updated automatically by ../config/srclist-update.  This changes
38715         their license from LPGL to GPL.
38716
38717 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38718
38719         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
38720         assumed to refer to the root of the most recent stable gettext version.
38721         * config/srclistvars.sh: Add defaults for eggert.
38722         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
38723         Match "This program" as well as "The program".  This is needed
38724         for gettext.
38725
38726 2003-07-14  Jim Meyering  <jim@meyering.net>
38727
38728         Don't emit diagnostics.  Let callers do that.
38729         * lib/save-cwd.c: Don't include "error.h".
38730         (save_cwd): Don't call error.  Ensure that errno is valid
38731         when returning nonzero.
38732
38733         * lib/save-cwd.h (restore_cwd): Update prototype.
38734         * lib/save-cwd.c (restore_cwd): Remove two parameters.
38735         Simplify.  Don't call error upon failure.  Let callers do that.
38736         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
38737         when auditing is enabled.  But don't bother updating the #if.
38738
38739 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
38740
38741         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
38742         it breaks C++ compilation.
38743         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
38744
38745 2003-07-10  Simon Josefsson  <jas@extundo.com>
38746
38747         * modules/strchrnul (Makefile.am): Add strchrnul.h.
38748
38749 2003-07-10  Jim Meyering  <jim@meyering.net>
38750
38751         * m4/clock_time.m4: Remove trailing blank.
38752         * m4/intmax_t.m4: Likewise.
38753
38754 2003-07-10  Jim Meyering  <jim@meyering.net>
38755
38756         * lib/vasnprintf.c: Remove trailing blanks.
38757         Make cpp indentation consistent.
38758
38759 2003-07-09  Paul Eggert  <eggert@twinsun.com>
38760
38761         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
38762         posixver.c, strftime.c, strnlen.c, strverscmp.c:
38763         Switch from LGPL to GPL.
38764
38765 2003-07-09  Paul Eggert  <eggert@twinsun.com>
38766
38767         * config/srclist.txt: Sort sublists.  Add
38768         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
38769         that differ from gnulib for one reason or another; we'd like this list
38770         to be smaller but for now let's document what we have.
38771
38772 2003-07-08  Paul Eggert  <eggert@twinsun.com>
38773
38774         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
38775         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
38776         and sweeter "eval x=$x".
38777         * config/srclist.txt: Get lib/argp* from glibc.
38778
38779 2003-07-07  Paul Eggert  <eggert@twinsun.com>
38780
38781         * lib/mktime.c: Fix some boundary cases and remove need for floating
38782         point.
38783
38784         Issue a compile-time diagnostic if time_t is floating point, or if
38785         two's complement arithmetic is not in effect, or if arithmetic
38786         right shift does not propagate the sign.  These assumptions were
38787         all in the original code but they weren't checked.
38788
38789         (TIME_T_MIDPOINT, verify): New macros.
38790         (__isleap): Remove; it has integer overflow problems.
38791         (leapyear): New function, without those problems.
38792         (ydhms_tm_diff): Remove; splitting into two parts.
38793         (ydhms_diff): New function, containing the arithmetic part of
38794         the old ydhms_tm_diff function.  Issue a compile-time
38795         diagnostic if we are not using C99 integer division.
38796         Avoid casts when possible.
38797         (guess_time_tm): New function, containing the checking part of
38798         the old ydhms_tm_diff function.  Return the new value, rather than
38799         the difference between it and the old.  Accept a new argument T
38800         so that *T specifies the old value.  Check for overflow in the result.
38801
38802         (__mktime_internal): Use a time_t offset, not a long int offset.
38803         This undoes the 2003-06-04 change, which is no longer needed now
38804         that we have better overflow checking.
38805         (localtime_offset): Likewise.
38806
38807         (__mktime_internal): Avoid harmful overflow on hosts where time_t
38808         and long are 64-bit but int is only 32-bit.
38809         (ydhms_diff): Use long int to store year1 and yday1.
38810         Issue a compile-time diagnostic if long int is not wide enough.
38811
38812         (__mktime_internal): Use long int to store adjusted year and yday.
38813         Use plain C rather than preprocessor commands, if that doesn't
38814         affect efficiency.
38815         Check for overflow (and try to repair) after each probe
38816         rather than checking only at the very end.  This avoids some bugs
38817         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
38818         does not equal GMT offset at maximum time).
38819         Use integer to check for overflow rather than floating point; this
38820         is more portable to non-IEEE hosts, and is a tad faster.
38821         When we detect that we are oscillating between two values,
38822         don't check whether tm_isdst has the requested value, since
38823         we already know the answer.  When tm_isdst has the wrong value,
38824         use a different heuristic to find the right one, based on the
38825         extreme values actually observed in practice in tz2003a,
38826         rather than the (overly optimistic) "previous 3 calendar quarters".
38827
38828         (not_equal_tm, print_tm, check_result): Use "const T" rather than
38829         "T const" to accommodate glibc style.
38830         (check_result): Use less-confusing report format.  "long" -> "long int.
38831         (main): Likewise.
38832         Don't loop if the iteration overflows time_t.
38833         Allow a negative step in the iteration.
38834
38835 2003-07-06  Karl Berry  <karl@gnu.org>
38836
38837         * config/depcomp: update from automake.
38838         * config/config.sub: update from prep.
38839
38840 2003-07-03  Karl Berry  <karl@gnu.org>
38841
38842         * config/config.guess: update from prep.
38843
38844 2003-07-01  Paul Eggert  <eggert@twinsun.com>
38845
38846         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
38847         xreadlink.c now includes it unconditionally.
38848
38849 2003-07-01  Paul Eggert  <eggert@twinsun.com>
38850
38851         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
38852         having it depend on HAVE_SYS_TYPES_H.
38853
38854 2003-07-01  Bruno Haible  <bruno@clisp.org>
38855
38856         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
38857         <sys/types.h> should be sufficient.
38858         Reported by Paul Eggert.
38859
38860 2003-06-26  Karl Berry  <karl@gnu.org>
38861
38862         * config/depcomp: update from automake.
38863
38864 2003-06-26  Bruno Haible  <bruno@clisp.org>
38865
38866         * modules/human: Depend on module stdbool.
38867
38868 2003-06-25  Bruno Haible  <bruno@clisp.org>
38869
38870         * modules/readlink: New file.
38871         * modules/xreadlink: Depend on it.
38872         * MODULES.html.sh (func_all_modules): Add readlink.
38873
38874 2003-06-25  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/readlink.m4: New file.
38877
38878 2003-06-25  Bruno Haible  <bruno@clisp.org>
38879
38880         * lib/readlink.c: New file.
38881
38882 2003-06-22  Karl Berry  <karl@gnu.org>
38883
38884         * config/srclist.txt: update mkinstalldirs from automake.
38885         * config/mkinstalldirs: update.
38886
38887 2003-06-22  Bruno Haible  <bruno@clisp.org>
38888
38889         Portability to mingw32.
38890         * m4/ssize_t.m4: New file, from GNU gettext.
38891         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
38892         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
38893
38894 2003-06-22  Bruno Haible  <bruno@clisp.org>
38895
38896         * modules/safe-read: Add m4/ssize_t.m4.
38897         * modules/xreadlink: Add m4/ssize_t.m4.
38898
38899 2003-06-20  Bruno Haible  <bruno@clisp.org>
38900
38901         Assume C89, so PARAMS isn't needed.
38902         * lib/unicodeio.h (PARAMS): Remove.
38903         * lib/unicodeio.c: Don't use PARAMS.
38904
38905 2003-06-18  Karl Berry  <karl@gnu.org>
38906
38907         * config/config.{guess,sub}: update from prep.
38908
38909 2003-06-18  Jim Meyering  <jim@meyering.net>
38910
38911         Merge changes from coreutils.
38912         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
38913         Remove explicit declarations of xmalloc and realloc.
38914         Include xalloc.h.
38915         (read_utmp): Remove anachronistic cast of xmalloc.
38916
38917 2003-06-17  Paul Eggert  <eggert@twinsun.com>
38918
38919         Assume C89, so PARAMS isn't needed.
38920         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
38921         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38922         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38923         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38924         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38925         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
38926         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
38927         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
38928         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
38929         lib/xstrtod.h, lib/xstrtol.h: Likewise.
38930         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
38931         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
38932         no longer needed. Anyway, config.h should always be included before any
38933         other file.
38934
38935 2003-06-11  Simon Josefsson  <jas@extundo.com>
38936
38937         * modules/sysexits: New file.
38938         * MODULES.html.sh (func_all_modules): Add sysexits.
38939
38940 2003-06-11  Simon Josefsson  <jas@extundo.com>
38941
38942         * lib/sysexit_.h: New file.
38943
38944 2003-06-11  Derek Price  <derek@ximbiot.com>
38945
38946         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38947         necessary.
38948
38949 2003-06-11  Bruno Haible  <bruno@clisp.org>
38950
38951         * m4/sysexits.m4: New file.
38952
38953 2003-06-10  Simon Josefsson  <jas@extundo.com>
38954
38955         * lib/argp.h: New file, from glibc.
38956         * lib/argp-ba.c: New file, from glibc.
38957         * lib/argp-eexst.c: New file, from glibc.
38958         * lib/argp-fmtstream.c: New file, from glibc.
38959         * lib/argp-fmtstream.h: New file, from glibc.
38960         * lib/argp-fs-xinl.c: New file, from glibc.
38961         * lib/argp-help.c: New file, from glibc.
38962         * lib/argp-namefrob.h: New file, from glibc.
38963         * lib/argp-parse.c: New file, from glibc.
38964         * lib/argp-pv.c: New file, from glibc.
38965         * lib/argp-pvh.c: New file, from glibc.
38966         * lib/argp-xinl.c: New file, from glibc.
38967
38968 2003-06-10  Simon Josefsson  <jas@extundo.com>
38969
38970         * modules/strchrnul: New file.
38971
38972 2003-06-10  Simon Josefsson  <jas@extundo.com>
38973
38974         * modules/argp: New file.
38975
38976 2003-06-10  Simon Josefsson  <jas@extundo.com>
38977
38978         * m4/strchrnul.m4: New file.
38979
38980 2003-06-10  Simon Josefsson  <jas@extundo.com>
38981
38982         * lib/strchrnul.h: New file.
38983         * lib/strchrnul.c: New file.
38984
38985 2003-06-10  Bruno Haible  <bruno@clisp.org>
38986
38987         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38988
38989 2003-06-07  Karl Berry  <karl@gnu.org>
38990
38991         * config/config.{guess,sub}: update from prep.
38992
38993 2003-06-07  Jim Meyering  <jim@meyering.net>
38994
38995         * modules/strtod: Use $(...) notation, not @...@ for
38996         AC_REPLACE'd variables.
38997         * modules/localcharset: Likewise.
38998
38999 2003-06-07  Jim Meyering  <jim@meyering.net>
39000
39001         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39002         in place of my name in the copyright comment.
39003         Remove definition and uses of __P.
39004
39005         From coreutils.
39006         * lib/stat.c: Don't declare xmalloc explicitly.
39007         Instead, include "xalloc.h".
39008         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39009         xrealloc, and xcalloc return values.
39010         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39011         Improve comment.
39012         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39013
39014 2003-06-07  Bruno Haible  <bruno@clisp.org>
39015
39016         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39017         avoid AC_CONFIG_LINKS.
39018         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39019         fnmatch.h, to avoid AC_CONFIG_LINKS.
39020         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39021
39022 2003-06-07  Bruno Haible  <bruno@clisp.org>
39023
39024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39025         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39026         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39027         directory.
39028         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39029         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39030         directory.
39031
39032 2003-06-06  Jim Meyering  <jim@meyering.net>
39033
39034         Merge from coreutils.
39035         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39036         Consolidate declarations and initializations of *_base* locals.
39037
39038         Merge from coreutils.
39039         This avoids a core dump on systems without GNU putenv,
39040         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39041         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39042         (unsetenv): New static function, from GNU libc.
39043         (rpl_putenv): Use it.
39044
39045         * lib/modechange.c: Remove trailing blanks.
39046
39047         Merge from coreutils.
39048         * lib/fsusage.c: Remove declaration of statfs.
39049         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39050
39051         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39052
39053 2003-06-06  Jim Meyering  <jim@meyering.net>
39054
39055         * lib/stdbool_.h: Renamed from stdbool.h.in.
39056
39057 2003-06-06  Jim Meyering  <jim@meyering.net>
39058             Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39061         Adjust Makefile.am snippet not to redirect directly to target.
39062         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39063
39064 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39065
39066         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39067         mismatch, look in future quarters as well as past.  This fixes a
39068         bug when processing fall-backwards gaps immediately after a long
39069         period of daylight-saving time.
39070
39071         * lib/mktime.c: Assume freestanding C89 or better.
39072         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39073         (__P): Remove; not used.
39074         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39075         (mktime, not_equal_tm, print_tm, check_result,
39076         main): Use prototypes.  Use const * where appropriate.
39077         (main): Fix typo in testing code that uncovered by above changes.
39078         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39079
39080 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39081
39082         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39083         locale.h, localeconv.  This merges changes from coreutils.
39084
39085         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39086         It can be removed after the next Autoconf is released.
39087         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39088         needed.
39089
39090 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39091
39092         * lib/mktime.c: Fix Debian bug 177940
39093         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39094         (localtime_offset): Now long int, not time_t, because we want it
39095         to be guaranteed to be signed.  All uses changed.
39096         (__mktime_internal): If overflow would occur when adding offset,
39097         don't add it.
39098
39099         Merge 'human' changes from coreutils.  Rewrite to support
39100         locale-specific notations like thousands separators.
39101         * lib/human.c: Simplify authorship notice.
39102         Include human.h immediately after config.h.
39103         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39104         <limits.h>: Do not include, since human.h does.
39105         (SIZE_MAX, UINTMAX_MAX): New macros.
39106         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39107         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39108         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39109         (power_letter): Renamed from suffixes.
39110         (generate_suffix_backwards): Remove.
39111         (adjust_value): Now takes int style (because of human.h changes)
39112         and long double value (for greater precision on some platforms).
39113         (group_number): New function.
39114         (human_readable): Use it.  Use integer options, not enum.
39115         Put the options before the sizes in the arg list.
39116         Support all the new options.
39117         The old human_readable function has been removed;
39118         use inttostr.h instead.
39119         (human_readable, default_block_size, humblock):
39120         Use uintmax_t, not int, for block sizes.
39121         (human_readable_inexact, block_size_types): Remove.
39122         (block_size_opts): New constant.
39123         (human_options): Renamed from human_block_size, with new signature
39124         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39125         * lib/human.h: Add copyright and authorship notice.
39126         Include <limits.h> and <stdbool.h> unconditionally.
39127         (PARAMS): Remove.  All uses removed.
39128         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39129         (enum human_inexact_style): Remove tag; now a nameless enum.
39130         (human_floor, human_ceiling, human_round_to_even): Now have
39131         values 2, 0, 1 rather than -1, 1, 0.
39132         (human_group_digits, human_suppress_point_zero, human_autoscale,
39133         human_base_1024, human_SI, human_B): New constants.
39134         (human_readable_inexact, human_block_size): Remove.
39135         (human_readable): Size args are now uintmax_t, not int.
39136         (human_options): New decl.
39137
39138         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39139         unnecessary now that we assume C89 or better.  This change
39140         imported from coreutils.
39141
39142         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39143         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39144         in the 2003-05-30 sync from glibc.
39145
39146         .h files should stand alone, but we shouldn't include <sys/types.h>
39147         if we can get away with just <stddef.h>.
39148
39149         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39150         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39151         rather than <sys/types.h>, as we merely need size_t.
39152         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39153         to get size_t.
39154         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39155         Include <stdio.h>, to get FILE.
39156         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39157         memcasecmp.h has included <stddef.h> and all we need is size_t.
39158         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39159         our interface, instead of including <sys/types.h>
39160
39161 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39162
39163         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39164         now, as glibc mktime is buggy on non-glibc systems.
39165
39166 2003-06-03  Karl Berry  <karl@gnu.org>
39167
39168         * config/config.sub: update from prep.
39169
39170 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39171
39172         [from coreutils]
39173         Fix some minor time-related bugs with POSIX time arguments.
39174         Some valid time stamps were being rejected (notably -1, and
39175         time stamps before 1900 on 64-bit hosts).  And some invalid
39176         time stamps were being accepted, e.g. September 31.
39177
39178         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39179         that we can return (time_t) -1 successfully.
39180         * lib/posixtm.c: Likewise.
39181         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39182         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39183         (t): Remove static var.
39184         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39185         of static var.  All uses changed.
39186         (year): Do not reject years before 1900; they can occur with
39187         64-bit time_t.
39188         (posix_time_parse): Do not check for out-of-range components;
39189         that is now the caller's responsibility, since our checks were
39190         only approximations.
39191         (posixtime): Use mktime to check for out-of-range components,
39192         since it knows them exactly.
39193         If mktime returns (time_t) -1, check whether an error actually occurred
39194         by invoking localtime on -1.
39195         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39196         posixtime failures better.
39197         Improve the test data (in comments only).
39198
39199 2003-06-02  Karl Berry  <karl@gnu.org>
39200
39201         * config/mkinstalldirs (version): new variable.
39202         (--version): new option.
39203         (usage): improve message.
39204
39205 2003-05-30  Karl Berry  <karl@gnu.org>
39206
39207         * lib/mktime.c: update from libc.
39208
39209 2003-05-30  Bruno Haible  <bruno@clisp.org>
39210
39211         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39212         * config/config.rpath: Upgrade to gettext-0.12.1.
39213
39214 2003-05-30  Bruno Haible  <bruno@clisp.org>
39215
39216         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39217         * m4/nls.m4: New file, from gettext-0.12.1.
39218         * m4/po.m4: New file, from gettext-0.12.1.
39219         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39220
39221 2003-05-30  Bruno Haible  <bruno@clisp.org>
39222
39223         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39224         * lib/localcharset.h: Likewise.
39225         * lib/localcharset.c: Likewise.
39226
39227 2003-05-29  Karl Berry  <karl@gnu.org>
39228
39229         * config/config.rpath: update from gettext.
39230
39231 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39232
39233         Assume the headers required for C89 freestanding compilers.
39234         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39235         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39236         * m4/human.m4 (gl_HUMAN): Likewise.
39237         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39238         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39239         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39240         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39241         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39242         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39243
39244 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39245
39246         Assume the headers required for C89 freestanding compilers.
39247         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39248         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39249         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39250         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39251         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39252         define, since <limits.h> is guaranteed to do that.
39253         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39254         * lib/exclude.c: Include <stdbool.h> unconditionally.
39255         * lib/tempname.c: Include <stddef.h> unconditionally.
39256         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39257         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39258         <stddef.h> does that.
39259         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39260         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39261         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39262         needed.
39263         * lib/xstrtol.c: Likewise.
39264         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39265         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39266
39267         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39268         warnings on some platforms.
39269
39270         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39271         arbitrarily.
39272
39273 2003-05-26  Jim Meyering  <jim@meyering.net>
39274
39275         Merge in a change from coreutils:
39276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39277         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39278         that condition, rather than `-1' which is slightly misleading.
39279         Change the name of the cache variable to have the gl_ prefix.
39280         Prompted by a patch from Richard Dawe for DJGPP.
39281
39282 2003-05-24  Karl Berry  <karl@gnu.org>
39283
39284         * config/config.guess: update from prep.
39285
39286 2003-05-22  Karl Berry  <karl@gnu.org>
39287
39288         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39289
39290 2003-05-20  Karl Berry  <karl@gnu.org>
39291
39292         * config/config.guess: update from prep.
39293
39294 2003-05-18  Karl Berry  <karl@gnu.org>
39295
39296         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39297         might actually be set by the user.
39298
39299         * config/depcomp, install-sh, mdate-sh: update from automake.
39300
39301 2003-05-17  Bruno Haible  <bruno@clisp.org>
39302
39303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39304         invalid expansion for AC_EGREP_CPP.
39305         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39306         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39307         Suggested by Akim Demaille <akim@epita.fr> in
39308         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39309
39310 2003-05-12  Jim Meyering  <jim@meyering.net>
39311
39312         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39313         the space-padded-by-default conversion specifiers, %e, %k, %l.
39314
39315 2003-05-12  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39318         the string is longer than 4 KB.
39319
39320 2003-05-11  Karl Berry  <karl@gnu.org>
39321
39322         * config/config.{guess,sub}: update from prep.
39323
39324 2003-05-09  Bruno Haible  <bruno@clisp.org>
39325
39326         * modules/error: Add m4/strerror_r.m4 to file list.
39327
39328 2003-05-03  Bruno Haible  <bruno@clisp.org>
39329
39330         Upgrade to Unicode-4.0.
39331         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39332         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39333         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39334         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39335         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39336         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39337         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39338         Change width of U+E0100..U+E01EF from 1 to 0.
39339
39340 2003-04-25  Jim Meyering  <jim@meyering.net>
39341
39342         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39343         of type size_t, not int.
39344
39345 2003-04-25  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/copy-file.c: Include <stddef.h>, for size_t.
39348
39349 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39350
39351         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39352         code which expansion is under static control.  Patch imported from
39353         Akim Demaille's patch to Bison; see
39354         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39355
39356 2003-04-14  Bruno Haible  <bruno@clisp.org>
39357
39358         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39359
39360 2003-04-11  Jim Meyering  <jim@meyering.net>
39361
39362         Merge changes from Coreutils.
39363
39364         2003-03-22  Jim Meyering  <jim@meyering.net>
39365
39366         * lib/strftime.c (widen): Cast alloca return value to proper type.
39367
39368         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39369
39370         From GNU libc.
39371         * lib/strftime.c (my_strftime): Handle very large width
39372         specifications for numeric values correctly.  Improve checks for
39373         overflow.
39374
39375         2003-01-19  Jim Meyering  <jim@meyering.net>
39376
39377         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39378         definitions.
39379         (nl_get_alt_digit) [! defined my_strftime]: Define.
39380         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39381         _nl_get_alt_digit and _nl_get_walt_digit.
39382
39383         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39384         libc. These changes have no effect outside of _LIBC.
39385
39386 2003-04-10  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/findprog: New file.
39389         * MODULES.html.sh (func_all_modules): Add it.
39390
39391 2003-04-10  Bruno Haible  <bruno@clisp.org>
39392
39393         * m4/findprog.m4: New file.
39394         * m4/eaccess.m4: New file.
39395
39396 2003-04-10  Bruno Haible  <bruno@clisp.org>
39397
39398         * lib/findprog.h: New file, from GNU gettext.
39399         * lib/findprog.c: New file, from GNU gettext.
39400
39401 2003-04-05  Jim Meyering  <jim@meyering.net>
39402
39403         Merge changes from Coreutils.
39404
39405         * lib/exclude.h (PARAMS): Remove definition and uses.
39406         * lib/exclude.c: Remove uses of `PARAMS'.
39407
39408         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39409         Add test-cases for DOS filenames. Declare program_name.
39410         (main): Set up program_name.  Patch by Rich Dawe.
39411
39412         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39413         error from mntctl.
39414         Use mntctl's return value to drive the entry-processing loop, since
39415         we can't rely on the value of the vmt_length member in the last
39416         entry.  On some systems doing so could result in exhausting
39417         virtual memory.  Based in part on a patch from Mike Jetzer.
39418
39419 2003-04-04  Bruno Haible  <bruno@clisp.org>
39420
39421         * modules/linebreak: New file.
39422         * MODULES.html.sh (func_all_modules): Add it.
39423
39424 2003-04-04  Bruno Haible  <bruno@clisp.org>
39425
39426         * m4/linebreak.m4: New file.
39427
39428 2003-04-04  Bruno Haible  <bruno@clisp.org>
39429
39430         * lib/linebreak.h: New file, from GNU gettext.
39431         * lib/linebreak.c: New file, from GNU gettext with slight
39432         modifications.
39433         * lib/lbrkprop.h: New file, from GNU gettext.
39434
39435 2003-04-03  Bruno Haible  <bruno@clisp.org>
39436
39437         * modules/utf8-ucs4: New file.
39438         * modules/utf16-ucs4: New file.
39439         * modules/ucs4-utf8: New file.
39440         * modules/ucs4-utf16: New file.
39441         * MODULES.html.sh (func_all_modules): Add them.
39442
39443 2003-04-03  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/utf-ucs4.m4: New file.
39446         * m4/ucs4-utf.m4: New file.
39447
39448 2003-04-03  Bruno Haible  <bruno@clisp.org>
39449
39450         * lib/utf8-ucs4.h: New file, from GNU gettext.
39451         * lib/utf16-ucs4.h: New file, from GNU gettext.
39452         * lib/ucs4-utf8.h: New file, from GNU gettext.
39453         * lib/ucs4-utf16.h: New file, from GNU gettext.
39454
39455 2003-04-02  Bruno Haible  <bruno@clisp.org>
39456
39457         * modules/binary-io: New file.
39458         * MODULES.html.sh (func_all_modules): Add it.
39459
39460 2003-04-02  Bruno Haible  <bruno@clisp.org>
39461
39462         * lib/binary-io.h: New file, from GNU gettext.
39463
39464 2003-04-01  Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/pathname: New file.
39467         * MODULES.html.sh (func_all_modules): Add it.
39468
39469 2003-04-01  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/pathname.h: New file, from GNU gettext.
39472         * lib/concatpath.c: New file, from GNU gettext.
39473
39474 2003-03-30  Bruno Haible  <bruno@clisp.org>
39475
39476         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39477
39478 2003-03-30  Bruno Haible  <bruno@clisp.org>
39479
39480         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39481         function chown() doesn't exist.
39482
39483 2003-03-28  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/copy-file: New file.
39486         * MODULES.html.sh (func_all_modules): Add it.
39487
39488 2003-03-28  Bruno Haible  <bruno@clisp.org>
39489
39490         * m4/copy-file.m4: New file.
39491
39492 2003-03-28  Bruno Haible  <bruno@clisp.org>
39493
39494         * lib/copy-file.h: New file, from GNU gettext.
39495         * lib/copy-file.c: New file, from GNU gettext.
39496
39497 2003-03-18  Jim Meyering  <jim@meyering.net>
39498
39499         * lib/quote.c (quote_n): Fix typo in comment.
39500
39501 2003-03-18  Bruno Haible  <bruno@clisp.org>
39502
39503         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39504         checking.
39505         * m4/onceonly_2_57.m4: Likewise.
39506
39507 2003-03-17  Bruno Haible  <bruno@clisp.org>
39508
39509         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39510         (m4_quote): Remove macro.
39511         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39512
39513 2003-03-14  Jim Meyering  <jim@meyering.net>
39514
39515         Merge changes from Coreutils.
39516         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39517         to be const, in order to avoid warnings.
39518         (obstack_room): Likewise.
39519         (obstack_empty_p): Likewise.
39520
39521 2003-03-14  Bruno Haible  <bruno@clisp.org>
39522
39523         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39524         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39525
39526 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39527
39528         Merge changes from Bison.
39529         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39530         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39531         when compiling Bison 1.875's `bitset bset = obstack_alloc
39532         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39533         * lib/hash.c: Include <stdbool.h> unconditionally.
39534
39535 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39536
39537         * m4/onceonly.m4 (m4_quote): New macro.
39538         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39539         Quote AC_FOREACH variable-expansions properly.
39540
39541 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39542
39543         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39544
39545 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39546
39547         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39548         Reported by Bruce Becker; see:
39549         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39550
39551 2003-03-03  Paul Eggert  <eggert@twinsun.com>
39552             Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39555         Reported by John Hughes, see
39556         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39557
39558 2003-02-20  Bruno Haible  <bruno@clisp.org>
39559
39560         * MODULES.html.sh (func_all_modules): Add poll.
39561
39562 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39563
39564         * modules/poll: New file.
39565
39566 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39567
39568         * lib/poll_.h: New file.
39569         * lib/poll.c: New file.
39570
39571 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39572
39573         * m4/poll.m4: New file.
39574
39575 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39576
39577         * modules/mathl: New file.
39578
39579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39580
39581         * lib/mathl.h: New file.
39582         * lib/acosl.c: New file.
39583         * lib/asinl.c: New file.
39584         * lib/atanl.c: New file.
39585         * lib/ceill.c: New file.
39586         * lib/cosl.c: New file.
39587         * lib/expl.c: New file.
39588         * lib/floorl.c: New file.
39589         * lib/frexpl.c: New file.
39590         * lib/ldexpl.c: New file.
39591         * lib/logl.c: New file.
39592         * lib/sincosl.c: New file.
39593         * lib/sinl.c: New file.
39594         * lib/sqrtl.c: New file.
39595         * lib/tanl.c: New file.
39596         * lib/trigl.c: New file.
39597         * lib/trigl.h: New file.
39598
39599 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39600
39601         * m4/mathl.m4: New file.
39602
39603 2003-02-18  Bruno Haible  <bruno@clisp.org>
39604
39605         * MODULES.html.sh (func_all_modules): Add mathl.
39606
39607 2003-02-17  Bruno Haible  <bruno@clisp.org>
39608
39609         * modules/mkdtemp: New module.
39610         * MODULES.html.sh (func_all_modules): Add it.
39611
39612 2003-02-17  Bruno Haible  <bruno@clisp.org>
39613
39614         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39615
39616 2003-02-17  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/mkdtemp.h: New file, from GNU gettext.
39619         * lib/mkdtemp.c: New file, from GNU gettext.
39620
39621 2003-02-02  Jim Meyering  <jim@meyering.net>
39622
39623         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39624         e.g. glibc-2.2.93.
39625
39626 2003-01-31  Bruno Haible  <bruno@clisp.org>
39627
39628         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39629         'rpl_rename'.
39630         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39631         'rpl_strnlen'.
39632         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39633         'rpl_strtod'.
39634         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39635         'rpl_utime'.
39636
39637 2003-01-31  Bruno Haible  <bruno@clisp.org>
39638
39639         * lib/rename.c: #undef rename before defining rpl_rename.
39640         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39641
39642 2003-01-30  Bruno Haible  <bruno@clisp.org>
39643
39644         * modules/vasnprintf, modules/vasprintf: New modules.
39645         * MODULES.html.sh (func_all_modules): Add them.
39646
39647 2003-01-30  Bruno Haible  <bruno@clisp.org>
39648
39649         * m4/signed.m4: New file, from GNU gettext.
39650         * m4/longdouble.m4: New file, from GNU gettext.
39651         * m4/wchar_t.m4: New file, from GNU gettext.
39652         * m4/wint_t.m4: New file, from GNU gettext.
39653         * m4/vasnprintf.m4: New file.
39654         * m4/vasprintf.m4: New file.
39655
39656 2003-01-30  Bruno Haible  <bruno@clisp.org>
39657
39658         * lib/printf-args.h: New file, from GNU gettext.
39659         * lib/printf-args.c: New file, from GNU gettext.
39660         * lib/printf-parse.h: New file, from GNU gettext.
39661         * lib/printf-parse.c: New file, from GNU gettext.
39662         * lib/vasnprintf.h: New file, from GNU gettext.
39663         * lib/vasnprintf.c: New file, from GNU gettext.
39664         * lib/asnprintf.c: New file, from GNU gettext.
39665         * lib/vasprintf.h: New file, from GNU gettext with modifications.
39666         * lib/vasprintf.c: New file, from GNU gettext.
39667         * lib/asprintf.c: New file, from GNU gettext.
39668
39669 2003-01-29  Bruno Haible  <bruno@clisp.org>
39670
39671         * modules/stpncpy: New module.
39672         * MODULES.html.sh (func_all_modules): Add it.
39673
39674 2003-01-29  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/stpncpy.m4: New file.
39677
39678 2003-01-29  Bruno Haible  <bruno@clisp.org>
39679
39680         * lib/stpncpy.h: New file, from GNU gettext with modifications.
39681         * lib/stpncpy.c: New file, from GNU gettext with modifications.
39682
39683 2003-01-28  Bruno Haible  <bruno@clisp.org>
39684
39685         * modules/c-ctype: New module.
39686         * MODULES.html.sh (func_all_modules): Add it.
39687
39688 2003-01-28  Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
39691         Paul Eggert.
39692         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
39693         Paul Eggert.
39694
39695 2003-01-27  Bruno Haible  <bruno@clisp.org>
39696
39697         * modules/xsetenv: New module.
39698         * MODULES.html.sh (func_all_modules): Add it.
39699
39700 2003-01-27  Bruno Haible  <bruno@clisp.org>
39701
39702         * lib/xsetenv.h: New file, from GNU gettext.
39703         * lib/xsetenv.c: New file, from GNU gettext.
39704
39705 2003-01-23  Jim Meyering  <jim@meyering.net>
39706
39707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
39708         from working on systems without dirfd (at least Irix and OSF1/Tru64).
39709
39710 2003-01-23  Bruno Haible  <bruno@clisp.org>
39711
39712         * modules/minmax: New module.
39713         * MODULES.html.sh (func_all_modules): Add it.
39714
39715 2003-01-23  Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
39718         Eggert.
39719
39720 2003-01-22  Bruno Haible  <bruno@clisp.org>
39721
39722         * modules/exit: New module.
39723         * MODULES.html.sh (func_all_modules): Add it.
39724
39725 2003-01-22  Bruno Haible  <bruno@clisp.org>
39726
39727         * lib/exit.h: New file, from GNU gettext.
39728
39729 2003-01-19  Bruno Haible  <bruno@clisp.org>
39730
39731         * gnulib-tool: Recognize option --extract-maintainer.
39732         (func_get_maintainer): New function.
39733         * modules/*: Add Maintainer entry.
39734
39735 2003-01-16  Jim Meyering  <jim@meyering.net>
39736
39737         * m4/regex.m4: The `regex' struct is both input and output.
39738         Initialize it before each use.  Patch by Tim Waugh.
39739
39740 2003-01-16  Bruno Haible  <bruno@clisp.org>
39741
39742         * MODULES.html.sh: Add a table of contents. Add the module name as
39743         leftmost column. Add hyperlinks.
39744
39745 2003-01-15  Bruno Haible  <bruno@clisp.org>
39746
39747         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
39748
39749 2003-01-15  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
39752         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
39753         suffix.
39754
39755 2003-01-15  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
39758
39759 2003-01-15  Bruno Haible  <bruno@clisp.org>
39760
39761         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
39762         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
39763
39764 2003-01-14  Jim Meyering  <jim@meyering.net>
39765
39766         * lib/same.c (same_name): Tweak a comment.
39767
39768 2003-01-14  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
39771         when a string comparison is sufficient.
39772
39773 2003-01-14  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
39776         'unsigned int'.
39777
39778 2003-01-14  Bruno Haible  <bruno@clisp.org>
39779
39780         * lib/hash-pjw.c: Add comment about low quality of this function.
39781
39782 2003-01-13  Bruno Haible  <bruno@clisp.org>
39783
39784         * modules/stpcpy: Distribute lib/stpcpy.h.
39785         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
39786
39787 2003-01-13  Bruno Haible  <bruno@clisp.org>
39788
39789         * modules/*: Add a description.
39790         * modules/strpbrk: Fix Makefile.am snippet.
39791         * modules/strtoimax: Fix dependencies.
39792         * modules/strtoumax: Likewise.
39793
39794 2003-01-13  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
39797         * modules/alloca (Makefile.am): All object files depend on alloca.h.
39798         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
39799
39800 2003-01-13  Bruno Haible  <bruno@clisp.org>
39801
39802         * gnulib-tool (func_create_testdir): Store config/* files in the main
39803         directory.
39804         * config.rpath: Move to ...
39805         * config/config.rpath: ... here.
39806         * modules/gettext: Contains config/config.rpath, not config.rpath.
39807         * modules/iconv: Likewise.
39808
39809 2003-01-12  Paul Eggert  <eggert@twinsun.com>
39810
39811         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39812         to avoid collisions with libcurses and libreadline.
39813
39814         * m4/getstr.m4: Remove.
39815         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
39816
39817 2003-01-12  Paul Eggert  <eggert@twinsun.com>
39818
39819         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39820         to avoid collisions with libcurses and libreadline.
39821
39822         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
39823         * lib/getstr.h, getstr.c: Remove.
39824         * lib/getline.c: Include "getline.h", to check interface.
39825         Move body of old getstr.c here: this defines MIN_CHUNK and
39826         declares getdelim2, which is renamed from getstr.
39827         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
39828
39829         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
39830         All uses changed.
39831         * lib/linebuffer.h: Likewise.
39832         (readline): Remove backward-compatibility macro.
39833
39834 2003-01-12  Paul Eggert  <eggert@twinsun.com>
39835
39836         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39837         to avoid collisions with libcurses and libreadline.
39838         * getstr: Remove.
39839         * MODULES.html.sh: Remove getstr.
39840         * modules/getline: Depend on unlocked-io, not getstr.
39841
39842 2003-01-12  Jim Meyering  <jim@meyering.net>
39843
39844         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
39845
39846 2003-01-10  Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/alloca: Change Makefile.am requirements. Simplify Include
39849         requirements. Add lib/alloca_.h to file list.
39850
39851 2003-01-10  Bruno Haible  <bruno@clisp.org>
39852
39853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
39854
39855 2003-01-10  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/alloca_.h: New file.
39858         * lib/getdate.y: Unconditionally include alloca.h.
39859         * lib/makepath.c: Likewise.
39860         * lib/setenv.c: Likewise.
39861         * lib/userspec.c: Likewise.
39862
39863 2003-01-09  Karl Berry  <karl@gnu.org>
39864
39865         * MODULES.html.sh: include `dirname $0` in PATH, to find
39866         gnulib-tool.
39867
39868 2003-01-09  Bruno Haible  <bruno@clisp.org>
39869
39870         * modules/stdbool: Change configure.ac, Makefile.am requirements.
39871         Simplify Include requirements. Add lib/stdbool.h.in to file list.
39872
39873 2003-01-09  Bruno Haible  <bruno@clisp.org>
39874
39875         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
39876
39877 2003-01-09  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/stdbool.h.in: New file.
39880
39881 2003-01-09  Bruno Haible  <bruno@clisp.org>
39882
39883         * gnulib-tool (func_all_modules): Ignore files ending in ~.
39884         * MODULES.html.sh: Likewise.
39885
39886 2003-01-08  Jim Meyering  <jim@meyering.net>
39887
39888         * lib/full-write.c: Undefine and define-away `const' after inclusion
39889         of errno.h, not before.  Suggestion from Bruno Haible.
39890
39891 2003-01-08  Bruno Haible  <bruno@clisp.org>
39892
39893         * modules/full-read: Depend on full-write.
39894
39895 2003-01-08  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/safe-read.c: Include specification header first, to ensure its
39898         selfcontainedness.
39899         * lib/full-write.c: Likewise.
39900
39901 2003-01-07  Jim Meyering  <jim@meyering.net>
39902
39903         * lib/full-write.c: Rework so that it may serve to define full_read,
39904         too.
39905         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
39906
39907 2003-01-07  Bruno Haible  <bruno@clisp.org>
39908
39909         * lib/strtoimax.c: Include <stdint.h> as an alternative to
39910         <inttypes.h>.
39911         * lib/xstrtol.h: Likewise.
39912         * lib/xstrtoimax.c: Likewise.
39913         * lib/xstrtoumax.c: Likewise.
39914         * lib/human.h: Likewise.
39915
39916         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39917         on systems that have <inttypes.h> but not <stdint.h>.
39918
39919 2003-01-07  Bruno Haible  <bruno@clisp.org>
39920
39921         * MODULES.html.sh: Add copyright notice.
39922         (missed_files): Omit CVS directory entries.
39923         (func_module): Make it work with sed-3.02.
39924         * MODULES.txt: Remove file.
39925
39926 2003-01-06  Jim Meyering  <jim@meyering.net>
39927
39928         * lib/version-etc.c: Update year in translatable copyright string.
39929
39930 2003-01-03  Karl Berry  <karl@gnu.org>
39931
39932         * config/config.{guess,sub}: update from prep.
39933
39934 2003-01-02  Karl Berry  <karl@gnu.org>
39935
39936         * doc/COPYING.DOC: belatedly updated to 1.2.
39937
39938 2003-01-01  Karl Berry  <karl@gnu.org>
39939
39940         * gnulib-tool (func_verify_module): report module name $module in
39941         error message, not $1.
39942         * gnulib-tool (create-testdir): don't complain if destdir couldn't
39943         be created, only if it doesn't exist.
39944         * gnulib-tool (last_checkin_date): don't expand the $Date here.
39945
39946 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39947
39948         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39949
39950 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39951
39952         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39953         memcmp if strcoll doesn't work.
39954
39955 2002-12-31  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/utime.c (utime_null): No need to call ftruncate if the file was
39958         nonempty.
39959
39960 2002-12-31  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/memcoll.c (STRCOLL): New macro.
39963         (memcoll): Use it.
39964
39965 2002-12-31  Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/localcharset.h: New file.
39968         * lib/localcharset.c: Include it.
39969         * lib/unicodeio.c: Likewise.
39970
39971 2002-12-31  Bruno Haible  <bruno@clisp.org>
39972
39973         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39974         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39975
39976 2002-12-31  Bruno Haible  <bruno@clisp.org>
39977
39978         * lib/getline.h: Include <stddef.h>, for size_t.
39979
39980         * lib/unicodeio.h: Include <stddef.h>, for size_t.
39981         * lib/unicodeio.c: Don't include <stddef.h>.
39982
39983 2002-12-31  Bruno Haible  <bruno@clisp.org>
39984
39985         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39986         HAVE_TM_ZONE.
39987
39988 2002-12-24  Karl Berry  <karl@gnu.org>
39989
39990         * config/config.guess: update from prep.
39991
39992 2002-12-24  Bruno Haible  <bruno@clisp.org>
39993
39994         General infrasructure.
39995         * m4/README: Rewritten.
39996         * m4/onceonly.m4: New file.
39997         * m4/onceonly_2_57.m4: New file.
39998
39999         Module atexit.
40000         * m4/atexit.m4: New file.
40001
40002         Module strtod.
40003         * m4/strtod.m4: New file.
40004
40005         Module strtol.
40006         * m4/strtol.m4: New file.
40007
40008         Module strtoul.
40009         * m4/strtoul.m4: New file.
40010
40011         Module memchr.
40012         * m4/memchr.m4: New file.
40013
40014         Module memcmp.
40015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40016         (jm_FUNC_MEMCMP): Invoke it.
40017
40018         Module memcpy.
40019         * m4/memcpy.m4: New file.
40020
40021         Module memmove.
40022         * m4/memmove.m4: New file.
40023
40024         Module memset.
40025         * m4/memset.m4: New file.
40026
40027         Module strcspn.
40028         * m4/strcspn.m4: New file.
40029
40030         Module strpbrk.
40031         * m4/strpbrk.m4: New file.
40032
40033         Module strstr.
40034         * m4/strstr.m4: New file.
40035
40036         Module strerror.
40037         * m4/strerror.m4: New file.
40038
40039         Module mktime.
40040         * m4/mktime.m4: Renamed from jm-mktime.m4.
40041         (gl_PREREQ_MKTIME): New macro.
40042         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40043
40044         Module malloc.
40045         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40046         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40047         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40048
40049         Module realloc.
40050         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40051         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40052         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40053
40054         Module strftime.
40055         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40056         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40057         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40058         gl_TM_GMTOFF.
40059         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40060
40061         Module xalloc.
40062         * m4/xalloc.m4: New file.
40063
40064         Module alloca.
40065         * m4/alloca.m4: New file.
40066
40067         Module putenv.
40068         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40069         (jm_FUNC_PUTENV): Invoke it.
40070
40071         Module setenv.
40072         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40073         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40074         when invoked twice.
40075         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40076         gt_FUNC_SETENV.
40077
40078         Module memrchr.
40079         * m4/memrchr.m4: New file.
40080
40081         Module stpcpy.
40082         * m4/stpcpy.m4: New file.
40083
40084         Module strcase.
40085         * m4/strcase.m4: New file.
40086
40087         Module strdup.
40088         * m4/strdup.m4: New file.
40089
40090         Module strnlen.
40091         * m4/strnlen.m4: New file.
40092
40093         Module strndup.
40094         * m4/strndup.m4: New file.
40095
40096         Module xstrtod.
40097         * m4/xstrtod.m4: New file.
40098
40099         Module xstrtol.
40100         * m4/xstrtol.m4: New file.
40101
40102         Module getdate.
40103         * m4/getdate.m4: New file.
40104
40105         Module unlocked-io.
40106         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40107         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40108         * m4/jm-glibc-io.m4n: Remove file.
40109
40110         Module long-options.
40111         * m4/long-options.m4: New file.
40112
40113         Module md5.
40114         * m4/md5.m4: New file.
40115
40116         Module sha.
40117         * m4/sha.m4: New file.
40118
40119         Module getstr.
40120         * m4/getstr.m4: New file.
40121
40122         Module getline.
40123         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40124         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40125         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40126         simply getline. Infoke gl_PREREQ_GETLINE.
40127
40128         Module obstack.
40129         * m4/obstack.m4: New file.
40130
40131         Module hash.
40132         * m4/hash.m4: New file.
40133
40134         Module readtokens.
40135         * m4/readtokens.m4: New file.
40136
40137         Module strverscmp.
40138         * m4/strverscmp.m4: New file.
40139
40140         Module stdbool.
40141         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40142         OSF/1.
40143
40144         Module strtoll.
40145         * m4/strtoll.m4: New file.
40146
40147         Module strtoull.
40148         * m4/strtoull.m4: New file.
40149
40150         Module strtoimax.
40151         * m4/strtoimax.m4: New file.
40152
40153         Module strtoumax.
40154         * m4/strtoumax.m4: New file.
40155
40156         Module xstrtoimax.
40157         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40158         jm_AC_PREREQ_XSTRTOIMAX.
40159         Moved the strtol prerequisites to strtol.m4.
40160         Moved the strtoll prerequisites to strtoll.m4.
40161         Moved the strtoimax prerequisites to strtoimax.m4.
40162
40163         Module xstrtoumax.
40164         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40165         jm_AC_PREREQ_XSTRTOUMAX.
40166         Moved the strtoul prerequisites to strtoul.m4.
40167         Moved the strtoull prerequisites to strtoull.m4.
40168         Moved the strtoumax prerequisites to strtoumax.m4.
40169
40170         Module chown.
40171         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40172         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40173
40174         Module dup2.
40175         * m4/dup2.m4: New file.
40176
40177         Module ftruncate.
40178         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40179         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40180
40181         Module getgroups.
40182         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40183         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40184
40185         Module gettimeofday.
40186         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40187         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40188         gl_PREREQ_GETTIMEOFDAY.
40189
40190         Module mkdir.
40191         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40192         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40193
40194         Module mkstemp.
40195         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40196         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40197         jm_AC_TYPE_UINTMAX_T.
40198         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40199
40200         Module stat.
40201         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40202         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40203
40204         Module lstat.
40205         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40206         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40207
40208         Module timespec.
40209         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40210         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40211         * m4/st_mtim.m4: Indentation.
40212
40213         Module nanosleep.
40214         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40215         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40216         gl_PREREQ_NANOSLEEP.
40217
40218         Module regex.
40219         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40220         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40221         (gl_REGEX): New macro.
40222
40223         Module rename.
40224         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40225         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40226
40227         Module rmdir.
40228         * m4/rmdir.m4: New file.
40229
40230         Module utime.
40231         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40232         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40233         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40234
40235         Module dirname.
40236         * m4/dirname.m4: New file.
40237
40238         Module getopt.
40239         * m4/getopt.m4: New file.
40240
40241         Module unistd-safer.
40242         * m4/unistd-safer.m4: New file.
40243
40244         Module fnmatch.
40245         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40246         declaration.
40247         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40248         (gl_FUNC_FNMATCH_POSIX): New macro.
40249         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40250         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40251         simply fnmatch.
40252
40253         Module exclude.
40254         * m4/exclude.m4: New file.
40255
40256         Module human.
40257         * m4/human.m4: New file.
40258
40259         Module acl.
40260         * m4/acl.m4: Nop.
40261
40262         Module backupfile.
40263         * m4/backupfile.m4: New file.
40264         * m4/d-ino.m4: Indentation.
40265
40266         Module fsusage.
40267         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40268         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40269         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40270
40271         Module dirfd.
40272         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40273         requirements.
40274
40275         Module euidaccess.
40276         * m4/euidaccess.m4: New file.
40277
40278         Module file-type.
40279         * m4/file-type.m4: New file.
40280
40281         Module fileblocks.
40282         * m4/fileblocks.m4: New file.
40283
40284         Module filemode.
40285         * m4/filemode.m4: New file.
40286
40287         Module isdir.
40288         * m4/isdir.m4: New file.
40289
40290         Module lchown.
40291         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40292         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40293
40294         Module makepath.
40295         * m4/makepath.m4: New file.
40296
40297         Module modechange.
40298         * m4/modechange.m4: New file.
40299
40300         Module mountlist.
40301         * m4/mountlist.m4: New file.
40302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40303         Indentation.
40304
40305         Module path-concat.
40306         * m4/path-concat.m4: New file.
40307
40308         Module pathmax.
40309         * m4/pathmax.m4: New file.
40310
40311         Module same.
40312         * m4/same.m4: New file.
40313
40314         Module save-cwd.
40315         * m4/save-cwd.m4: New file.
40316
40317         Module savedir.
40318         * m4/savedir.m4: New file.
40319
40320         Module xgetcwd.
40321         * m4/xgetcwd.m4: New file.
40322         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40323
40324         Module xreadlink.
40325         * m4/xreadlink.m4: New file.
40326
40327         Module safe-read.
40328         * m4/safe-read.m4: New file.
40329
40330         Module safe-write.
40331         * m4/safe-write.m4: New file.
40332
40333         Module closeout.
40334         * m4/closeout.m4: New file.
40335
40336         Module stdio-safer.
40337         * m4/stdio-safer.m4: New file.
40338
40339         Module getpass.
40340         * m4/getpass.m4: New file.
40341
40342         Module getugroups.
40343         * m4/getugroups.m4: New file.
40344
40345         Module group-member.
40346         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40347         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40348
40349         Module idcache.
40350         * m4/idcache.m4: New file.
40351
40352         Module userspec.
40353         * m4/userspec.m4: New file.
40354
40355         Module gettime.
40356         * m4/clock_time.m4: New file.
40357         * m4/gettime.m4: New file.
40358
40359         Module settime.
40360         * m4/settime.m4: New file.
40361
40362         Module posixtm.
40363         * m4/posixtm.m4: New file.
40364
40365         Module gethostname.
40366         * m4/gethostname.m4: New file.
40367
40368         Module canon-host.
40369         * m4/canon-host.m4: New file.
40370
40371         Module gettext.
40372         * m4/codeset.m4: New file, from gettext-0.11.5.
40373         * m4/gettext.m4: New file, from gettext-0.11.5.
40374         * m4/glibc21.m4: New file, from gettext-0.11.5.
40375         * m4/iconv.m4: New file, from gettext-0.11.5.
40376         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40377         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40378         * m4/inttypes.m4: New file, from gettext-0.11.5.
40379         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40380         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40381         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40382         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40383         * m4/lib-link.m4: New file, from gettext-0.11.5.
40384         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40385         * m4/progtest.m4: New file, from gettext-0.11.5.
40386         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40387         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40388         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40389
40390         Module localcharset.
40391         * m4/localcharset.m4: New file.
40392
40393         Module hard-locale.
40394         * m4/hard-locale.m4: New file.
40395
40396         Module mbswidth.
40397         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40398         onceonly macros.
40399         * m4/mbrtowc.m4: Add comment.
40400
40401         Module memcasecmp.
40402         * m4/memcasecmp.m4: New file.
40403
40404         Module memcoll.
40405         * m4/memcoll.m4: New file.
40406
40407         Module unicodeio.
40408         * m4/unicodeio.m4: New file.
40409
40410         Module rpmatch.
40411         * m4/rpmatch.m4: New file.
40412
40413         Module yesno.
40414         * m4/yesno.m4: New file.
40415
40416         Module exitfail.
40417         * m4/exitfail.m4: New file.
40418
40419         Module c-stack.
40420         * m4/c-stack.m4 (gl_C_STACK): New macro.
40421         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40422
40423         Module error.
40424         * m4/error.m4 (gl_ERROR): New macro.
40425         (jm_PREREQ_ERROR): Use onceonly macros.
40426
40427         Module fatal.
40428         * m4/fatal.m4: New file.
40429
40430         Module getloadavg.
40431         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40432         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40433
40434         Module getpagesize.
40435         * m4/getpagesize.m4: New file.
40436
40437         Module getusershell.
40438         * m4/getusershell.m4: New file.
40439
40440         Module physmem.
40441         * m4/physmem.m4: New file.
40442
40443         Module posixver.
40444         * m4/posixver.m4: New file.
40445
40446         Module quotearg.
40447         * m4/quotearg.m4: New file.
40448
40449         Module quote.
40450         * m4/quote.m4: New file.
40451
40452         Module readutmp.
40453         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40454
40455         Module sig2str.
40456         * m4/sig2str.m4: New file.
40457
40458         Other.
40459         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40460         ulonglong.m4.
40461         * m4/intmax_t.m4: New file.
40462         * m4/d-type.m4: Indentation.
40463         * m4/jm-macros.m4: Update.
40464         * m4/prereq.m4 (jm_PREREQ): Update.
40465         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40466         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40467         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40468         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40469         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40470         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40471         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40472         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40473         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40474         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40475         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40476         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40477         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40478         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40479         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40480         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40481         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40482         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40483         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40484
40485 2002-12-24  Bruno Haible  <bruno@clisp.org>
40486
40487         * MODULES.txt: Update according to m4/ changes.
40488
40489         Module gettext.
40490         * config.rpath: New file, from gettext-0.11.5.
40491
40492         * modules/*: New module descriptions.
40493         * gnulib-tool: New file.
40494         * MODULES.html.sh: New file.
40495
40496 2002-12-21  Karl Berry  <karl@gnu.org>
40497
40498         * doc/fdl.texi: update to version 1.2.
40499
40500 2002-12-19  Karl Berry  <karl@gnu.org>
40501
40502         * config/config.guess: update from prep.
40503
40504 2002-12-18  Bruno Haible  <bruno@clisp.org>
40505
40506         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40507         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40508
40509 2002-12-17  Bruno Haible  <bruno@clisp.org>
40510
40511         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40512         stdlib.h, string.h.
40513
40514 2002-12-17  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/canon-host.c (strdup): Remove unused declaration.
40517
40518         * lib/fsusage.c: Include full_read.h.
40519         (get_fs_usage): Use full_read instead of safe_read.
40520
40521         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40522
40523 2002-12-12  Karl Berry  <karl@gnu.org>
40524
40525         * config/config.guess: update from prep.
40526
40527 2002-12-11  Bruno Haible  <bruno@clisp.org>
40528
40529         * m4/setenv.m4: New file, from gettext-0.11.5.
40530
40531 2002-12-11  Bruno Haible  <bruno@clisp.org>
40532
40533         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40534         not unsetenv().
40535         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40536         modifications:
40537
40538         2002-12-11  Bruno Haible  <bruno@clisp.org>
40539
40540                 * setenv.c (alloca): Fall back to malloc.
40541                 (freea): New macro.
40542                 (setenv): Use freea() to free memory allocated with alloca().
40543
40544         2002-11-13  Bruno Haible  <bruno@clisp.org>
40545
40546                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40547                 function declarations.
40548                 * unsetenv.c (unsetenv): Likewise.
40549
40550         2002-03-04  Bruno Haible  <bruno@clisp.org>
40551
40552                 Portability to AIX 4.3.3.
40553                 * unsetenv.c: New file, extracted from setenv.c.
40554                 * setenv.c: Move the unsetenv() function to unsetenv.c.
40555
40556         2001-12-20  Bruno Haible  <bruno@clisp.org>
40557
40558                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40559                 use malloc instead. For SunOS 4.
40560
40561         2001-12-11  Bruno Haible  <bruno@clisp.org>
40562
40563                 * setenv.c: Declare alloca.
40564                 (compar_fn_t): New typedef.
40565                 (KNOWN_VALUE, STORE_VALUE): Use it.
40566
40567         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40568         setenv.h.
40569
40570 2002-12-10  Paul Eggert  <eggert@twinsun.com>
40571
40572         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40573         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40574         Choose values that are less likely to collide with system fnmatch
40575         options.
40576         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40577         defined (e.g., a pure POSIX system).
40578         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40579         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40580
40581 2002-12-06  Paul Eggert  <eggert@twinsun.com>
40582
40583         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40584         a pain in practice to deal with generated m4 files.  This change
40585         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40586
40587         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40588         and jm-glibc-io.m4, as they are no longer a special case.
40589         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40590         kludge and the auto-generation stuff.  Check only whether the
40591         functions are declared, not whether they exist, since older hosts
40592         that don't declare the functions can't use the optimization anyway.
40593
40594 2002-12-06  Jim Meyering  <jim@meyering.net>
40595
40596         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40597
40598         Merge in changes from libc's misc/error.c, in preparation
40599         for the merge of gnulib's changes back into libc.
40600
40601         * lib/error.c (_): Define only if not already defined.
40602         Move definition to follow all #include directives.
40603         Include unlocked-io.h only if !_LIBC.
40604         [_LIBC]: Include <libio/libioP.h>.
40605         [USE_IN_LIBIO]: Include <libio/iolibio.h>
40606         (fflush): Tweak definition to use INTUSE.
40607         (putc): Define.
40608
40609 2002-12-05  Paul Eggert  <eggert@twinsun.com>
40610
40611         * lib/alloca.c [defined emacs]: Include "lisp.h".
40612         (xalloc_die) [defined emacs]: New macro.
40613         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40614         [! defined emacs]: Include <xalloc.h>.
40615         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40616         (pointer): Typedef to POINTER_TYPE *.
40617         (malloc): Remove decl; we now always use xmalloc.
40618         (alloca): Use old-style definition, since Emacs needs this.
40619         Check for arithmetic overflow when computing combined size.
40620
40621 2002-12-04  Paul Eggert  <eggert@twinsun.com>
40622
40623         Do not generate unlocked-io.h automatically, since it's easier to
40624         maintain it by hand.
40625
40626         * lib/unlocked-io.h: New file, from GNU diffutils,
40627         but with proper copyright notice and attribution.
40628         * lib/gen-uio: Remove.
40629         * lib/Makefile.am: Add copyright notice.
40630         (libfetish_a_SOURCES): Add unlocked-io.h.
40631         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40632         (DISTCLEANFILES, io_functions): Remove macros.
40633         (EXTRA_DIST): Remove gen_uio.
40634         (unlocked-io.h): Remove rule.
40635
40636 2002-12-04  Jim Meyering  <jim@meyering.net>
40637
40638         Reflect the fact that stat.c and lstat.c are no longer generated.
40639         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40640         (DISTCLEANFILES): Likewise.
40641         (EXTRA_DIST): Likewise.
40642         (all_local): Don't depend on stat.c or lstat.c.
40643         (stat.c, lstat.c): Remove rules.
40644         (EXTRA_DIST): Remove xstat.in.
40645
40646         * lib/xstat.in: Remove file.  Contents moved into stat.c.
40647         * lib/stat.c: New file.  Contents mostly from xstat.in.
40648         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40649         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40650
40651         * lib/safe-read.c: Rework so that it may serve to define safe_write,
40652         too.
40653         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40654
40655 2002-12-03  Jim Meyering  <jim@meyering.net>
40656
40657         * lib/safe-read.c, safe-write.c: Change variable names and comments,
40658         but not semantics, to minimize the differences between these two files.
40659         (safe_read): Change comment to mention SAFE_READ_ERROR.
40660
40661         * lib/safe-read.c (IS_EINTR): Define.
40662         (safe_read): Use IS_EINTR in place of in-function cpp directives.
40663
40664 2002-12-02  Jim Meyering  <jim@meyering.net>
40665
40666         * lib/safe-read.c (EINTR): Define.
40667         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40668         (INT_MAX): Provide fallback.
40669         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40670
40671         * lib/safe-read.h (SAFE_READ_ERROR): Define.
40672
40673 2002-12-02  Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40676         Define, taken from safe-read.c.
40677         (INT_MAX): Provide fallback.
40678         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
40679         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
40680
40681         * lib/safe-read.c (EINTR): Remove definition.
40682         (safe_read): Don't use EINTR if it is absent.
40683
40684 2002-12-01  Jim Meyering  <jim@meyering.net>
40685
40686         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
40687         zero.
40688         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
40689
40690 2002-11-27  Paul Eggert  <eggert@twinsun.com>
40691
40692         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
40693         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
40694         with `if (! (value < limit)) abort ();', for readability.
40695
40696 2002-11-26  Karl Berry  <karl@gnu.org>
40697
40698         * lib/strdup.c: copy from libc again, with jim's ok.
40699         * lib/.cppi-disable: re-add strdup.c
40700
40701 2002-11-25  Karl Berry  <karl@gnu.org>
40702
40703         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
40704         instead of "strtol.c".
40705
40706 2002-11-25  Karl Berry  <karl@gnu.org>
40707
40708         * config/install-sh: update from automake for variable quoting, $0 in
40709         error msgs, etc.
40710
40711         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
40712         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
40713         entry.
40714
40715 2002-11-25  Jim Meyering  <jim@meyering.net>
40716
40717         * lib/mktime.c: Sync from libc, now that it has the latest fix.
40718
40719 2002-11-24  Karl Berry  <karl@gnu.org>
40720
40721         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
40722         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
40723
40724 2002-11-24  Jim Meyering  <jim@meyering.net>
40725
40726         Update from coreutils:
40727
40728         * lib/mktime.c: Merge in changes from libc.
40729
40730         Avoid a link-time failure on some Linux systems.
40731         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
40732         (otherwise).
40733         (__mon_yday): Declare with the STATIC attribute.
40734         (__mktime_internal): Likewise.
40735         Based on a report from Greg Schafer.
40736
40737 2002-11-23  Jim Meyering  <jim@meyering.net>
40738
40739         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
40740         Use `unsigned', not `int', as type of index.
40741
40742         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
40743
40744         * lib/fsusage.c: Remove unneeded parentheses around operands of
40745         `defined'.
40746
40747 2002-11-22  Paul Eggert  <eggert@twinsun.com>
40748
40749         * lib/quotearg.h: Allow multiple inclusion by surrounding with
40750         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
40751         so that we can be included first.
40752         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
40753         * lib/quotearg.c: Include quotearg.h immediately after config.h.
40754         No need to include stddef.h or sys/types.h any more.
40755         Surround local include files with "", not "<>".
40756         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
40757         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
40758         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
40759         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
40760         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
40761         (ISPRINT): Remove; no longer needed now that we assume C89.
40762
40763         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
40764         Preserve errno.
40765
40766         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
40767         quotearg_char): Use SIZE_MAX rather than
40768         (size_t) -1 when we are talking about "infinity".
40769
40770         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
40771
40772 2002-11-22  Paul Eggert  <eggert@twinsun.com>
40773
40774         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
40775         hint that one should use `if (! x) abort ();' rather than `assert
40776         (x);', and anyway it's one less thing to worry about configuring.
40777         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
40778         hash_rehash, hash_insert): Use abort rather than assert.
40779
40780 2002-11-22  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/safe-read.h: Assume C89. Add comments.
40783         (safe_read): Change return type to size_t.
40784         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
40785         byte counts > SSIZE_MAX correctly.
40786         * lib/safe-write.h: New file.
40787         * lib/safe-write.c: New file.
40788         * lib/full-read.h: New file.
40789         * lib/full-read.c: New file.
40790         * lib/full-write.h: Assume C89. Add comments.
40791         * lib/full-write.c: Include safe-write.h.
40792         (full_write): Rewritten to use safe_write.
40793         Suggested by Jim Meyering and Paul Eggert.
40794
40795 2002-11-21  Jim Meyering  <jim@meyering.net>
40796
40797         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
40798
40799         Merge in changes from the coreutils.
40800
40801         2002-09-25  Paul Eggert  <eggert@twinsun.com>
40802         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
40803         <stdint.h>.
40804         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
40805         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
40806         int.  Work more efficiently if X is the same width as uintmax_t.
40807         Do not compare X to -1, to avoid bogus compiler warning.
40808         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
40809         Don't assume that f_frsize and f_bsize are the same type.
40810
40811         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
40812         warning on FreeBSD.
40813
40814         * lib/makepath.c (make_path): Restore umask *before* creating the final
40815         component.
40816         (make_path): Minor reformatting.
40817
40818         * lib/xmalloc.c: Adjust to work with new autoconf macros,
40819         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
40820         HAVE_MALLOC/HAVE_REALLOC.
40821
40822         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
40823         dummy ones.  At least on GNU/Linux systems, `auto' means something
40824         else.
40825         From Michael Stone.
40826
40827 2002-11-21  Bruno Haible  <bruno@clisp.org>
40828
40829         Remove case insensitive option matching.
40830         * lib/argmatch.h (argcasematch): Remove declaration.
40831         (ARGCASEMATCH): Remove macro.
40832         (__xargmatch_internal): Remove case_sensitive argument.
40833         (XARGMATCH): Update.
40834         (XARGCASEMATCH): Remove macro.
40835         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
40836         case_sensitive argument.
40837         (argcasematch): Remove function.
40838         (__xargmatch_internal): Remove case_sensitive argument.
40839         (main): Use XARGMATCH instead of XARGCASEMATCH.
40840
40841         * lib/xmalloc.c: Change compile-time error message. Add comment about
40842         required autoconf version.
40843
40844 2002-11-20  Paul Eggert  <eggert@twinsun.com>
40845
40846         Merge argmatch cleanups from Bison.  Assume C89.
40847
40848         * lib/argmatch.c: Include config.h here, not in argmatch.h.
40849         Include stdlib.h, for EXIT_FAILURE.
40850         Always include <string.h>, since we assume C89.
40851         (EXIT_FAILURE): Remove pre-C89 bug workaround.
40852         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
40853         Include <stddef.h> instead, since it's all we need for size_t.
40854         (PARAMS): Remove.  All uses removed.
40855         (ARRAY_CARDINALITY): Do not bother to #undef.
40856         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
40857         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40858         Remove unnecessary parentheses.
40859         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40860         Insert necessary parentheses.
40861         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
40862         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
40863
40864 2002-11-19  Bruno Haible  <bruno@clisp.org>
40865
40866         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
40867         * lib/mbswidth.h: Include <stddef.h>, for size_t.
40868
40869         * lib/mbswidth.h (PARAMS): Remove macro.
40870         (mbswidth, mbsnwidth): Use ANSI C function declarations.
40871         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
40872
40873         * lib/gcd.h (PARAMS): Remove macro.
40874         (gcd): Use ANSI C function declarations.
40875         * lib/gcd.c (gcd): Likewise.
40876
40877 2002-11-15  Bruno Haible  <bruno@clisp.org>
40878
40879         * lib/strcspn.c: Include <stddef.h>.
40880         (strcspn): Use ANSI C function declaration. Change return type to
40881         size_t. Use NULL.
40882         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
40883         (strpbrk): Use NULL.
40884         * lib/strpbrk.h (PARAMS): Remove macro.
40885         (strpbrk): Use ANSI C function declaration.
40886         * lib/strstr.c: Don't include <sys/types.h>.
40887         * lib/strstr.h (PARAMS): Remove macro.
40888         (strstr): Use ANSI C function declarations.
40889
40890 2002-11-14  Karl Berry  <karl@gnu.org>
40891
40892         * config/mkinstalldirs: `do' on separate line, instead of
40893         `for var; do'.
40894
40895 2002-11-06  Bruno Haible  <bruno@clisp.org>
40896
40897         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
40898         * lib/gcd.c (gcd): Likewise.
40899
40900 2002-11-05  Bruno Haible  <bruno@clisp.org>
40901
40902         * lib/gcd.h: New file, from gettext-0.11.5.
40903         * lib/gcd.c: New file, from gettext-0.11.5.
40904
40905 2002-11-05  Bruno Haible  <bruno@clisp.org>
40906
40907         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40908         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40909         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40910         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40911
40912         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
40913         <libintl.h>.
40914         * lib/makepath.c: Include gettext.h instead of <locale.h> and
40915         <libintl.h>.
40916
40917         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40918         * lib/human.c: Include gettext.h instead of <libintl.h>.
40919         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40920         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40921         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40922         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40923         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40924         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40925         (textdomain): Remove definition.
40926         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
40927
40928         * lib/long-options.c: Remove include of <libintl.h> and definition of
40929         _.
40930         * lib/same.c: Remove include of <libintl.h> and definition of _.
40931
40932 2002-11-04  Owen Taylor  <otaylor@redhat.com>
40933
40934         * lib/config.charset: A few additions for Solaris.
40935
40936 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
40937
40938         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40939         * lib/localcharset.c (locale_charset): Declare as extern "C".
40940
40941 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
40942
40943         * lib/config.charset: msdos in uk_UA uses CP1125.
40944
40945 2002-11-04  Bruno Haible  <bruno@clisp.org>
40946
40947         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40948         * lib/strcase.h: New file, from GNU gettext-0.11.5.
40949         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40950         * lib/strstr.h: New file, from GNU gettext-0.11.5.
40951         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40952
40953 2002-11-04  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/localcharset.c (locale_charset): Don't return an empty string.
40956
40957 2002-11-04  Bruno Haible  <bruno@clisp.org>
40958
40959         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40960         aliases.
40961
40962 2002-11-04  Bruno Haible  <bruno@clisp.org>
40963
40964         * lib/config.charset: Update for newest glibc. Add canonical names
40965         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40966
40967 2002-11-04  Bruno Haible  <bruno@clisp.org>
40968
40969         * lib/config.charset: Add support for NetBSD.
40970
40971 2002-11-04  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40974
40975 2002-11-01  Bruno Haible  <bruno@clisp.org>
40976
40977         * configure.in: Add AC_CONFIG_AUX_DIR call.
40978         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40979         test/Makefile.
40980         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40981
40982 2002-09-28  Karl Berry  <karl@gnu.org>
40983
40984         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40985         installed automake until the next release, since changes have been
40986         made.
40987
40988 2002-09-25  Karl Berry  <karl@gnu.org>
40989
40990         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40991         * lib/getopt*: copy from libc/posix.
40992         * lib/gettext.h: copy from gettext.
40993         * lib/.cppi-disable: add strdup.c, gettext.h.
40994
40995 2002-09-25  Karl Berry  <karl@gnu.org>
40996
40997         * config/srclist.txt: enable gettext.h check.
40998         * config/config.{guess,sub}: update from prep.
40999         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41000                 from automake 1.6.3.
41001         See srclist*.
41002
41003 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41004
41005         * regex.c (PATFETCH): Remove the translating fetch.
41006         (PATFETCH_RAW): Rename to PATFETCH.
41007         (set_image_of_range): New fun.
41008         (SET_RANGE_TABLE_WORK_AREA): Use it.
41009         (regex_compile): Don't translate the pattern chars so eagerly.
41010         Only do it when inserting an `exactn' bytecode or when handling
41011         a char-range.
41012         (mutually_exclusive_p): Avoid empty statement.
41013
41014 2002-07-06  Jim Meyering  <meyering@lucent.com>
41015
41016         * m4/README: Don't mention Makefile.am.in.
41017         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41018
41019 2002-07-01  Jim Meyering  <meyering@lucent.com>
41020
41021         * lib/c-stack.c: Include sys/time.h.
41022         From Volker Borchert.
41023
41024 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41025
41026         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41027
41028 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41029
41030         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41031         New macro.  Use it uniformly instead of
41032         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41033         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41034         reported by Vin Shelton.
41035
41036 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41037
41038         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41039         Do not assume SA_SIGINFO behavior.
41040         Bug reported by Jim Meyering on NetBSD 1.5.2.
41041
41042 2002-06-22  Jim Meyering  <meyering@lucent.com>
41043
41044         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41045         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41046
41047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41048         now that configure.ac uses AC_GNU_SOURCE.
41049         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41050         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41051
41052         Update to latest tools.  Suggestions from Paul Eggert.
41053         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41054         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41055         * m4/fnmatch.m4: Likewise.
41056         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41057         to AC_HEADER_STDBOOL
41058
41059 2002-06-22  Jim Meyering  <meyering@lucent.com>
41060
41061         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41062         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41063
41064 2002-06-22  Jim Meyering  <meyering@lucent.com>
41065
41066         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41067
41068         * lib/exitfail.c, exitfail.h: Likewise.
41069         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41070
41071         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41072         of fnmatch.h.
41073         (EXTRA_DIST): Add fnmatch_loop.c.
41074         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41075
41076         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41077         * lib/fnmatch.c: Update from diffutils-2.8.2.
41078         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41079         * lib/fnmatch.h: Remove file.
41080
41081 2002-06-21  Jim Meyering  <meyering@lucent.com>
41082
41083         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41084         * m4/mbrtowc.m4: Likewise.
41085
41086         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41087         * m4/mbswidth.m4: Reflect name change:
41088         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41089         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41090
41091         * m4/lib-link.m4: Update from gettext-0.11.2.
41092         * m4/gettext.m4: Likewise.
41093
41094         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41095         From Alfred M. Szmidt.
41096
41097 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41098
41099         * lib/file-type.h: Report an error if neither S_ISREG nor
41100         S_IFREG is defined, instead of using a test specific to glibc
41101         2.2.  This should be safe, since POSIX requires S_ISREG and
41102         Unix Version 7 had S_IFREG.  We don't need to check for
41103         <sys/types.h> since we don't use any symbols that it defines.
41104
41105 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41106
41107         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41108         $@-t, so that each temporary file name is unique and valid in the first
41109         8 characters, for operation under DOS.
41110
41111 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41112
41113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41114
41115 2002-06-15  Jim Meyering  <meyering@lucent.com>
41116
41117         Work even with DJGPP 2.03, which lacks support for symlinks.
41118         From Richard Dawe.
41119         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41120         is defined.
41121         * lib/lchown.c (S_ISLNK): Likewise.
41122
41123 2002-06-15  Jim Meyering  <meyering@lucent.com>
41124
41125         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41126         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41127         have been included before this file.
41128
41129 2002-06-14  Jim Meyering  <meyering@lucent.com>
41130
41131         * lib/file-type.h: Use the version from diffutils-2.8.2.
41132         * lib/file-type.c: Likewise.
41133
41134 2002-06-07  Jim Meyering  <meyering@lucent.com>
41135
41136         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41137         They're needed at least for NetBSD 1.5.2.
41138         ($statxfs_includes): Include those same headers.
41139         ($statxfs_includes): Include sys/vfs.h if available.
41140         ($statxfs_includes): Likewise for sys/statvfs.h.
41141         Check for the following members in both structs statfs and statvfs:
41142         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41143
41144 2002-06-01  Jim Meyering  <meyering@lucent.com>
41145
41146         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41147         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41148
41149 2002-05-28  Jim Meyering  <meyering@lucent.com>
41150
41151         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41152         Reported by Volker Borchert.
41153
41154 2002-05-27  Jim Meyering  <meyering@lucent.com>
41155
41156         Fix a problem seen only on nonconforming systems whereby ls.c's
41157         use of localtime, and then of gettimeofday would cause trouble:
41158         the localtime call used to initialize rpl_gettimeofday's save
41159         mechanism would clobber ls's current local time information so
41160         that in any long listing the first file would always be listed
41161         with date 1970-01-01.  Analysis by Volker Borchert.
41162
41163         * lib/gettimeofday.c (localtime): Undefine.
41164         (rpl_localtime): New function.
41165
41166 2002-05-27  Jim Meyering  <meyering@lucent.com>
41167
41168         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41169         localtime.
41170
41171         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41172         use the replacement function; it wouldn't resolve at link time.
41173         Reported by Volker Borchert.
41174
41175 2002-05-22  Jim Meyering  <meyering@lucent.com>
41176
41177         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41178         file-type.h.
41179         * lib/file-type.h: New file.
41180         * lib/file-type.c (file_type): New file/function.  Extracted from
41181         diffutils.
41182
41183 2002-04-30  Jim Meyering  <meyering@lucent.com>
41184
41185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41186
41187 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41188
41189         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41190
41191 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41192
41193         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41194         Do not check for alloca.h (no longer used) or stdbool.h (was never
41195         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41196
41197 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41198
41199         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41200
41201 2002-04-29  Jim Meyering  <meyering@lucent.com>
41202
41203         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41204         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41205         Use AC_FUNC_STRNLEN here instead.
41206
41207         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41208         With autoconf-2.53a, it's part of AC_PROG_CC.
41209
41210 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41211
41212         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41214
41215 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41216
41217         * lib/sig2str.h, lib/sig2str.c: New files.
41218         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41219
41220 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41221
41222         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41223         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41224         of 127, since 64 is the largest conceivable number for ancient
41225         nonstandard hosts.
41226         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41227
41228 2002-04-28  Jim Meyering  <meyering@lucent.com>
41229
41230         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41231
41232 2002-04-24  Jim Meyering  <meyering@lucent.com>
41233
41234         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41235         (jm_PREREQ): Use it.
41236
41237         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41238         mach/mach.h fcntl.h.
41239         Check for this function: setlocale.
41240
41241 2002-04-24  Jim Meyering  <meyering@lucent.com>
41242
41243         * lib/gettext.h: New file, from Gettext.
41244         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41245         (libfetish_a_SOURCES): Add gettext.h.
41246
41247 2002-04-16  Jim Meyering  <meyering@lucent.com>
41248
41249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41250         ut_pid, ut_id, ut_exit.
41251
41252 2002-04-16  Jim Meyering  <meyering@lucent.com>
41253
41254         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41255         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41256         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41257
41258 2002-04-12  Jim Meyering  <meyering@lucent.com>
41259
41260         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41261         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41262         existence of the getmntinfo function.  Needed for Darwin 5.3.
41263
41264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41265         This is necessary at least on Darwin 5.3.
41266
41267         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41268         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41269         strnlen.o in the library, and that makes some versions of ranlib
41270         object.
41271
41272 2002-04-12  Jim Meyering  <meyering@lucent.com>
41273
41274         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41275
41276 2002-04-09  Jim Meyering  <meyering@lucent.com>
41277
41278         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41279         to be more precise.  Rather than saying we're checking whether the
41280         function `works', say what we're testing.
41281         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41282         Reported by Bruno Haible.
41283
41284 2002-03-10  Jim Meyering  <meyering@lucent.com>
41285
41286         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41287         Suggestion from Santiago Vila.
41288
41289 2002-03-08  Jim Meyering  <meyering@lucent.com>
41290
41291         * lib/rename.c: Mention that this wrapper is needed also on
41292         mips-dec-ultrix4.4 systems.
41293
41294 2002-03-02  Jim Meyering  <meyering@lucent.com>
41295
41296         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41297         not HAVE_CLOCK_SETTIME.
41298
41299 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41300
41301         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41302         Check for clock_settime.
41303
41304 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41305
41306         * lib/nanosleep.h: Rename to....
41307         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41308
41309         * lib/gettime.c: New file.
41310         * lib/settime.c: New file.
41311         * lib/stime.c: Remove.
41312
41313         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41314         timespec.h.  Remove nanosleep.h.
41315
41316 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41317
41318         * m4/acl.m4: New file.
41319         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41320         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41321
41322 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41323
41324         * lib/acl.c, lib/acl.h: New files.
41325         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41326
41327 2002-02-24  Jim Meyering  <meyering@lucent.com>
41328
41329         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41330         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41331         cause trouble.  Reported by Nelson Beebe.
41332
41333 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41334
41335         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41336         compilers that don't know that xalloc_die never returns.
41337
41338 2002-02-20  Jim Meyering  <meyering@lucent.com>
41339
41340         * lib/getdate.c: Regenerate using bison-1.33.
41341
41342 2002-02-17  Jim Meyering  <meyering@lucent.com>
41343
41344         * config/config.guess (main): Don't use `head -1'; it's no longer
41345         portable. Use `sed 1q' instead.
41346
41347 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41348
41349         * m4/codeset.m4: Upgrade to gettext-0.11.
41350         * m4/gettext.m4: Upgrade to gettext-0.11.
41351         * m4/glibc21.m4: Upgrade to gettext-0.11.
41352         * m4/iconv.m4: Upgrade to gettext-0.11.
41353         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41354         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41355         * m4/lib-ld.m4: New file, from gettext-0.11.
41356         * m4/lib-link.m4: New file, from gettext-0.11.
41357         * m4/lib-prefix.m4: New file, from gettext-0.11.
41358         * m4/progtest.m4: Upgrade to gettext-0.11.
41359
41360 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41361
41362         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41363         (jm_PREREQ): Use it.
41364
41365 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41366
41367         * lib/posixver.c, lib/posixver.h: New files.
41368         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41369
41370 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41371             Bruno Haible  <bruno@clisp.org>
41372
41373         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41374         (fwrite_success_callback): New declaration.
41375         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41376         print_unicode_char. Call failure callback instead of error.
41377         (fwrite_success_callback): New function.
41378         (exit_failure_callback): New function.
41379         (fallback_failure_callback): New function.
41380         (print_unicode_char): Call unicode_to_mb.
41381
41382 2002-01-26  Jim Meyering  <meyering@lucent.com>
41383
41384         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41385         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41386
41387 2002-01-26  Jim Meyering  <meyering@lucent.com>
41388
41389         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41390
41391 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41392
41393         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41394
41395 2002-01-22  Jim Meyering  <meyering@lucent.com>
41396
41397         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41398         Otherwise, some versions of automake would omit the rule that makes
41399         Makefile from Makefile.in.
41400
41401 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41402
41403         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41404         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41405         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41406         (memcoll): Set errno to zero if there is no error.
41407
41408         * lib/quotearg.c (quotearg_buffer_restyled):
41409         Fix bug with quoting buffers containing NUL when backslashing escapes.
41410         This bug was exposed by the other changes in this patch.
41411         (quotearg_n_options): New arg ARGSIZE.
41412         All callers changed.
41413         (quoting_options_from_style): New function.
41414         (quotearg_n_style): Use it.
41415         (quotearg_n_style_mem): New function.
41416
41417         * lib/quotearg.h (quotearg_n_style_mem): New function.
41418
41419 2002-01-19  Jim Meyering  <meyering@lucent.com>
41420
41421         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41422         Remove useless quotes: DF_PROG="df".
41423         * m4/strnlen.m4: New file.
41424
41425 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41426
41427         * lib/backupfile.c (ISDIGIT): Comment fix.
41428         * lib/getdate.y (ISDIGIT): Likewise.
41429         * lib/posixtm.c (ISDIGIT, year): Likewise.
41430         * lib/strverscmp.c (ISDIGIT): Likewise.
41431         * lib/userspec.c (ISDIGIT): Likewise.
41432
41433 2002-01-16  Jim Meyering  <meyering@lucent.com>
41434
41435         * lib/getdate.y: Add three semicolons, each just before a closing
41436         brace. Bison (as of version 1.31) no longer papers over that mistake.
41437
41438 2002-01-05  Jim Meyering  <meyering@lucent.com>
41439
41440         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41441
41442 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41443
41444         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41445         not silently exit merely because the output buffer happens to
41446         have nothing pending.
41447
41448 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41449
41450         See the big note in ../ChangeLog.
41451         * lib/human.c (suffixes): Prefer K to k for 1024.
41452         (generate_suffix_backwards): New function.
41453         (human_readable_inexact): Use it.
41454         * lib/xstrtol.c (__xstrtol): If there is no number but there
41455         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41456         Accept 'K' as well as 'k'.
41457
41458 2001-12-15  Jim Meyering  <meyering@lucent.com>
41459
41460         * lib/regex.h (__restrict_arr): Update from libc.
41461
41462         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41463         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41464         (STREQ): Define.
41465
41466 2001-12-14  Jim Meyering  <meyering@lucent.com>
41467
41468         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41469         Suggestion from Bruno Haible.
41470
41471 2001-12-10  Jim Meyering  <meyering@lucent.com>
41472
41473         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41474         xrealloc, Instead, include "xalloc.h".
41475         (initbuffer): Don't cast xmalloc return value to char*.
41476         (readline): Reword comment.
41477         Don't cast xrealloc return value to char*
41478         Return NULL, not 0.
41479
41480 2001-12-09  Jim Meyering  <meyering@lucent.com>
41481
41482         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41483         about `signed and unsigned type in conditional expression'.
41484         * lib/posixtm.c (posix_time_parse): Likewise.
41485
41486         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41487
41488         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41489         to avoid a pedantic warning.
41490
41491         * lib/getstr.c: Don't include assert.h.
41492         (getstr): Remove warning-evoking assertions.
41493         Return -1 if offset parameter is out of bounds.
41494         Change the type of a local from int to size_t.
41495
41496         * lib/strftime.c (my_strftime_localtime_r): Include this function
41497         definition in the `#if ! HAVE_TM_GMTOFF' block.
41498
41499         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41500         Include xalloc.h instead.
41501
41502 2001-12-02  Jim Meyering  <meyering@lucent.com>
41503
41504         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41505         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41506         included.
41507
41508         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41509         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41510
41511 2001-11-30  Akim Demaille  <akim@epita.fr>
41512
41513         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41514         before being defined.
41515
41516 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41517
41518         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41519         First arg is int, not unsigned.
41520         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41521         (SIZE_MAX, UINT_MAX): New macros.
41522         (quotearg_n_options): Abort if N is negative.
41523         Avoid overflow check on hosts where size_t is 64 bits and int
41524         is 32 bits, as overflow is impossible there.
41525         Fix off-by-one typo that caused unnecessary reallocation.
41526
41527 2001-11-27  Jim Meyering  <meyering@lucent.com>
41528
41529         * lib/tempname.c: Merge with version from libc.
41530         * lib/regex.c: Likewise.
41531
41532         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41533         systems for which STDC_HEADERS is 0, it was not included, resulting in
41534         a warning about an integer-to-pointer conversion problem with getenv.
41535         Reported by Volker Borchert.
41536
41537 2001-11-26  Jim Meyering  <meyering@lucent.com>
41538
41539         * lib/gtod.h: Remove file.
41540         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41541         * lib/gettimeofday.c: Don't include gtod.h.
41542         (GTOD_init): Remove function.
41543         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41544         Suggestion from Volker Borchert.
41545
41546 2001-11-23  Jim Meyering  <meyering@lucent.com>
41547
41548         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
41549         it.
41550         * lib/hash.c (struct hash_table): Define it here instead.
41551
41552 2001-11-22  Jim Meyering  <meyering@lucent.com>
41553
41554         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41555
41556 2001-11-20  Jim Meyering  <meyering@lucent.com>
41557
41558         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41559         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41560
41561 2001-11-19  Jim Meyering  <meyering@lucent.com>
41562
41563         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41564         directory.  Use "conftestXXXXXX" as the template.
41565         Suggestion from Paul Eggert.
41566
41567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41568         immediately, so the test doesn't mistakenly hit the max-open-files
41569         limit.
41570
41571 2001-11-18  Paul Eggert  <eggert@twinsun.com>
41572
41573         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41574         (TEMPORARIES): New macro.
41575         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
41576         removes an artificial limitation (e.g. HP-UX 10.20, where
41577         TMP_MAX is 17576).
41578
41579 2001-11-18  Jim Meyering  <meyering@lucent.com>
41580
41581         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41582
41583 2001-11-18  Jim Meyering  <meyering@lucent.com>
41584
41585         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41586         on SunOS 4.
41587
41588         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41589         files will be created before anything else.
41590
41591 2001-11-17  Paul Eggert  <eggert@twinsun.com>
41592
41593         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41594         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41595
41596 2001-11-17  Jim Meyering  <meyering@lucent.com>
41597
41598         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41599         Prompted by a report from Bob Proulx.
41600
41601         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41602         Instead, require UTILS_FUNC_MKSTEMP.
41603
41604 2001-11-17  Jim Meyering  <meyering@lucent.com>
41605
41606         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41607         Now, that's done as part of AC_FUNC_STRTOD.
41608
41609 2001-11-17  Jim Meyering  <meyering@lucent.com>
41610
41611         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41612         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41613         rather than group writable.  Patch by Juan F. Codagnone.
41614
41615         * lib/readtokens.c: Remove explicit declarations of xmalloc and
41616         xrealloc, Instead, include "xalloc.h".
41617
41618         * lib/mountlist.c: Include unlocked-io.h after all system headers.
41619         Remove explicit declarations of xmalloc, xrealloc,
41620         and xstrdup.  Instead, include "xalloc.h".
41621
41622         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41623         unlocked-io.h.
41624         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41625         Likewise.
41626         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41627
41628         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41629         Reported by Padraig Brady.
41630
41631         * lib/mkstemp.c: #undef mkstemp.
41632         Include config.h.
41633         (rpl_mkstemp): Rename from mkstemp.
41634         Protoize.
41635
41636 2001-11-16  Jim Meyering  <meyering@lucent.com>
41637
41638         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41639         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41640         determine the amount of total physical memory, use pstat_getstatic.
41641         HPUX-11 doesn't define _SC_PHYS_PAGES.
41642         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41643         If sysconf couldn't be used to determine the amount of available
41644         physical memory, use both pstat_getstatic and pstat_getdynamic.
41645         Based on a patch from Bob Proulx.
41646
41647 2001-11-10  Jim Meyering  <meyering@lucent.com>
41648
41649         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41650         (jm_PREREQ): Use it.
41651
41652 2001-11-09  Jim Meyering  <meyering@lucent.com>
41653
41654         * m4/jm-macros.m4: Require autoconf-2.52f.
41655         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41656         Use these AC_-prefixed names, not the AM_-prefixed ones.
41657
41658         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
41659
41660 2001-11-05  Jim Meyering  <meyering@lucent.com>
41661
41662         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41663
41664 2001-11-04  Jim Meyering  <meyering@lucent.com>
41665
41666         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41667         $DEFS.
41668
41669 2001-11-03  Jim Meyering  <meyering@lucent.com>
41670
41671         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41672         of AC_DEFUN.
41673
41674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41675         know the name of the variable in the macro definition.
41676
41677 2001-11-03  Jim Meyering  <meyering@lucent.com>
41678
41679         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
41680         in argmatch_to_argument call.
41681
41682         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
41683         argument.
41684
41685         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
41686         e.g., a fault due to an attempt to free a NULL pointer.
41687
41688 2001-11-01  Jim Meyering  <meyering@lucent.com>
41689
41690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
41691         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
41692
41693 2001-11-01  Jim Meyering  <meyering@lucent.com>
41694
41695         * lib/dirfd.c, lib/dirfd.h: New files.
41696         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
41697
41698         * lib/hash.c (hash_print) [TESTING]: Clean up.
41699
41700 2001-10-22  Paul Eggert  <eggert@twinsun.com>
41701
41702         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
41703         to avoid a warning if -Wall.
41704
41705 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
41706
41707         * README: New file
41708         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
41709         (per RMS's instructions, this is now the canonical source)
41710         * lgpl/, gpl/: New directories.
41711
41712 2001-10-21  Paul Eggert  <eggert@twinsun.com>
41713
41714         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
41715
41716 2001-10-21  Jim Meyering  <meyering@lucent.com>
41717
41718         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
41719         this code would end up calling gettext even in packages built
41720         with --disable-nls.
41721         * lib/getopt.c (_): Likewise.
41722         * lib/regex.c (_): Likewise.
41723
41724 2001-10-20  Paul Eggert  <eggert@twinsun.com>
41725
41726         * m4/error.m4 (jm_PREREQ_ERROR):
41727         Do not invoke AC_CHECK_FUNCS with strerror_r, as
41728         AC_FUNC_STRERROR_R does that.
41729         Check for strerror declaration.
41730
41731         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
41732         are supposed to have them these days.
41733         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
41734         Merge changes from latest Autoconf CVS.
41735         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
41736         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
41737         POSIX decided to standardize on the int flavor of strerror_r.
41738
41739 2001-10-20  Paul Eggert  <eggert@twinsun.com>
41740
41741         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
41742         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
41743         Use strerror_r that is only a macro, even if it is not a function.
41744         (strerror): Check for HAVE_DECL_STRERROR before declaring.
41745         (private_strerror): Use prototypes, not old-style function definition.
41746         (print_errno_message): New function.
41747         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
41748         char*-flavored one.
41749         (error_tail, error, error_at_line): Use it.
41750
41751 2001-10-11  Jim Meyering  <meyering@lucent.com>
41752
41753         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
41754         and quote_n (1, ... to avoid clobbering a buffer.
41755
41756 2001-10-05  Jim Meyering  <meyering@lucent.com>
41757
41758         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
41759         hash-pjw.h.
41760         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
41761         * lib/hash-pjw.h: New file.
41762
41763 2001-09-30  Jim Meyering  <meyering@lucent.com>
41764
41765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
41766         `struct fsstat' has the `f_fstypename' member.
41767         Use that to define FS_TYPE, which is now used to make
41768         the getfsstat link test tighter.
41769
41770 2001-09-30  Jim Meyering  <meyering@lucent.com>
41771
41772         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
41773         Include <sys/ucred.h>, for Apple Darwin.
41774         Include sys/mount.h and sys/fs_types.h only if available.
41775         (FS_TYPE): Define.
41776         (read_filesystem_list): Use FS_TYPE.
41777
41778 2001-09-29  Paul Eggert  <eggert@twinsun.com>
41779
41780         * lib/exclude.c (excluded_filename): 0 -> false, since it's
41781         a boolean context.
41782
41783 2001-09-29  Jim Meyering  <meyering@lucent.com>
41784
41785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41786         [one-argument getmntent function]): Include stdio.h before mntent.h.
41787         SunOS 4.1.x needs it for the declaration of `FILE'.
41788         Patch by Volker Borchert.
41789
41790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41791         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
41792         sys/fs_types.h, and make the link-test for getfsstat guard #include
41793         directives with appropriate #if HAVE_*_H tests so that we can
41794         detect getfsstat on Apple Darwin1.3.7 systems.
41795         Reported by Nelson Beebe.
41796         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
41797
41798 2001-09-28  Paul Eggert  <eggert@twinsun.com>
41799
41800         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41801         #defines strtoimax.  Also treat the other strto* functions
41802         like strtoimax.
41803
41804         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41805         Check for strtoul and strtoumax,
41806         as those declarations are made even in the signed case.
41807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
41808         Likewise, for strtol and strtoimax.
41809
41810 2001-09-28  Paul Eggert  <eggert@twinsun.com>
41811
41812         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41813         #defines strtoimax.  Also treat the other strto* functions
41814         like strtoimax.
41815
41816         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
41817         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
41818         (strtoimax, strtoumax): Do not declare if already defined as a macro.
41819
41820 2001-09-26  Jim Meyering  <meyering@lucent.com>
41821
41822         Most macros in unlocked-io.h had the wrong number of arguments.
41823         * lib/gen-uio: New script.
41824         (USE_UNLOCKED_IO): Define to 1 if not already defined.
41825         * lib/unlocked-io.hin: Remove file.
41826         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
41827         rather than trying to embed it here.
41828         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
41829         Reported by Padraig Brady.
41830
41831 2001-09-25  Volker Borchert  <bt@teknon.de>
41832
41833         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
41834         `result'.
41835
41836 2001-09-24  Jim Meyering  <meyering@lucent.com>
41837
41838         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
41839
41840 2001-09-23  Jim Meyering  <meyering@lucent.com>
41841
41842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
41843         instead of the mere test for existence of mntent.h.  The latter
41844         would get a false-positive on AIX 3.4 systems.
41845         In the outer getmntent if-block, don't die if neither of the getmntent
41846         tests succeeds.  Instead, just fall through and continue with the
41847         remaining tests.
41848
41849 2001-09-23  Jim Meyering  <meyering@lucent.com>
41850
41851         * lib/mountlist.c: Remove useless parentheses in #if directives.
41852         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
41853         the deprecated MOUNTED symbol is no longer defined in mntent.h.
41854
41855 2001-09-22  Jim Meyering  <meyering@lucent.com>
41856
41857         * m4/gettext.m4: New file.  From gettext.
41858         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
41859         * m4/progtest.m4: Likewise
41860         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
41861         * m4/glibc21.m4: Likewise.
41862
41863         * m4/libintl.m4: Remove.  No longer used.
41864
41865 2001-09-22  Jim Meyering  <meyering@lucent.com>
41866
41867         * lib/localcharset.c: Update from latest gettext.
41868         * lib/config.charset: Likewise.
41869
41870 2001-09-20  Jim Meyering  <meyering@lucent.com>
41871
41872         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
41873         strtoimax.
41874         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
41875         strtoumax.
41876
41877 2001-09-20  Jim Meyering  <meyering@lucent.com>
41878
41879         * lib/xstrtol.c (strtoimax): Guard declaration with
41880         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
41881         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
41882         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
41883         (strtoumax): Likewise, for completeness (it wasn't necessary).
41884
41885 2001-09-17  Paul Eggert  <eggert@twinsun.com>
41886
41887         * lib/strtoimax.c (HAVE_LONG_LONG):
41888         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
41889         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
41890         to work around bug in IBM C compiler.
41891
41892 2001-09-17  Jim Meyering  <meyering@lucent.com>
41893
41894         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
41895         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
41896         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
41897         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
41898         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
41899         whenever the right hand side need not be expanded by the shell.
41900
41901 2001-09-16  Paul Eggert  <eggert@twinsun.com>
41902
41903         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
41904         library.  It's not correct, as some older glibcs are buggy.
41905         fnmatch wasn't fixed until glibc 2.2.
41906
41907         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
41908         special shell magic here.
41909
41910 2001-09-16  Jim Meyering  <meyering@lucent.com>
41911
41912         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
41913         * m4/jm-macros.m4: Require it.
41914
41915 2001-09-16  Jim Meyering  <meyering@lucent.com>
41916
41917         * lib/mkdir.c: New file.
41918
41919 2001-09-15  Jim Meyering  <meyering@lucent.com>
41920
41921         * m4/jm-macros.m4: Check for help2man.
41922
41923 2001-09-11  Jim Meyering  <meyering@lucent.com>
41924
41925         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
41926         The body, by Paul Eggert, was moved here from configure.in.
41927         * m4/jm-macros.m4: Require UTILS_HOST_OS.
41928
41929 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41930
41931         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
41932         (jm_PREREQ): Use it.
41933
41934 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41935
41936         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
41937         Use ssize_t, not int, to store result of readlink.
41938         Check for ssize_t overflow as well as size_t overflow,
41939         as POSIX says the result of readlink is implementation-defined
41940         when ssize_t overflows.
41941         Remove unnecessary cast to char*.
41942         Use free+malloc instead of realloc, as the storage doesn't need
41943         to be preserved and it's clearer and can be more efficient that way.
41944         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41945         * lib/xreadlink.h (xreadlink): Update prototype.
41946
41947 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41948
41949         * lib/xgetcwd.c: Revert some of the previous change; intead,
41950         fix the HAVE_GETCWD_NULL code to behave more like the
41951         !HAVE_GETCWD_NULL code used to.
41952
41953         Include "xalloc.h".
41954         (xgetcwd): Do not return NULL when memory is exhausted; instead,
41955         invoke xalloc_die.
41956
41957 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41958
41959         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41960         sys/param.h, as pathmax.h includes them.
41961
41962 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41963
41964         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41965         (jm_PREREQ_XGETCWD): New macro.
41966
41967         * m4/getcwd.m4: New file.
41968
41969 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41970
41971         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41972         like the HAVE_GETCWD_NULL code.
41973         Include pathmax.h if not HAVE_GETCWD.
41974         Do not include xalloc.h.
41975         (INITIAL_BUFFER_SIZE): New symbol.
41976         Do not use xmalloc / xrealloc, since the caller is responsible for
41977         handling errors.  Preserve errno around `free' during failure.
41978         Do not overrun buffer when using getwd.
41979
41980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41981
41982         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41983         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41984         getcwd (NULL, 0).
41985
41986 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41987
41988         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41989         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
41990         spotted by Jim Meyering.
41991
41992 2001-09-03  Jim Meyering  <meyering@lucent.com>
41993
41994         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41995         failure.
41996
41997 2001-09-02  Jim Meyering  <meyering@lucent.com>
41998
41999         * lib/error.c: Update from GNU libc.
42000
42001 2001-09-01  Jim Meyering  <meyering@lucent.com>
42002
42003         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42004         Used by df.
42005
42006 2001-09-01  Jim Meyering  <meyering@lucent.com>
42007
42008         * lib/xreadlink.c: New file.
42009         * lib/xreadlink.h: New file.
42010         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42011         xreadlink.h.
42012
42013         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42014         doesn't conflict with sparc Solaris 7's definition in
42015         /usr/include/sys/int_types.h.
42016
42017         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42018         files.
42019         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42020         and strncasecmp as r-values.  Unixware didn't have declarations.
42021
42022 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42023
42024         * lib/xstrtol.h: Add copyright notice.
42025         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42026         LONGINT_INVALID_SUFFIX_CHAR.
42027
42028 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42029
42030         * lib/xstrtol.c (strtoimax): New decl.
42031
42032 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42033
42034         * lib/xgetcwd.c: Don't include pathmax.h.
42035         Include stdlib.h and unistd.h if available.
42036         Include xalloc.h.
42037         (xmalloc, xstrdup, free): Remove decls.
42038         (xgetcwd): Don't assume sizes fit in unsigned.
42039         Check for overflow when computing sizes.
42040         Simplify reallocation code.
42041
42042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42043
42044         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42045         a directory's st_size can have an arbitrary value, so the old
42046         usage could waste an arbitrary amount of memory.  All uses
42047         changed.
42048         * lib/savedir.h: Update prototype.
42049
42050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42051
42052         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42053
42054         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42055         old strtoimax.c.
42056
42057         Also, make the following further changes to make this file's
42058         configuration more similar to that of strtol.c:
42059         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42060         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42061         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42062         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42063         changed to signed values.
42064
42065         And make the following changes as well:
42066         Fix copyright notice, as 1999 was missing.
42067         (verify): New macro.
42068         (strtoimax): Check sizes at compile-time, not run-time.
42069         Prefer strtol to strtoll if both work.
42070         (main): Remove; it was not that useful and was a pain to maintain.
42071
42072         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42073
42074 2001-08-31  Jim Meyering  <meyering@lucent.com>
42075
42076         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42077         Use an initial, malloc'd, buffer of length 128 rather than
42078         a statically allocated one of length 1024.
42079
42080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42081
42082         Simplify code, partly by assuming autoconf 2.52 semantics.
42083
42084         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42085
42086         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42087         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42088         All uses removed.
42089         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42090         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42091         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42092         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42093         jm_AC_HEADER_INTTYPES_H.
42094         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42095
42096         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42097
42098         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42099         Quote first arg of AC_DEFUN.
42100         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42101         since they are needed to parse the include file even if we need
42102         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42104         but with opposite signedness.
42105
42106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42107
42108         Merge 'exclude' changes from tar 1.13.22.
42109         This fixes one or two unlikely storage allocation overflow bugs,
42110         but doesn't change user-visible behavior otherwise.
42111
42112 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42113
42114         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42115         (jm_PREREQ_EXCLUDE): New macro.
42116
42117 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42118
42119         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42120         tm to be declared.
42121
42122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42123
42124         * lib/hash.c: Remove '2001' from copyright notice.
42125
42126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42127
42128         * lib/full-write.h: New file.
42129         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42130         * lib/full-write.c: Correct credits, as cccp.c no longer
42131         exists and anyway it was so heavily changed from the old cccp
42132         code as to be unrecognizable.  Include full-write.h.
42133         (full_write) Return size_t, with short writes meaning failure.
42134         All callers changed.  This fixes a bug with large buffers
42135         on 64-bit hosts.
42136         * lib/utime.c: Include full-write.h.
42137
42138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42139
42140         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42141         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42142         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42143         Include if available.
42144         (<xalloc.h>): Include
42145         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42146         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42147         collide with FNM macros.
42148         (struct patopts): New struct.
42149         (struct exclude): Use it, as exclude patterns now come with options.
42150         (new_exclude): Support above changes.
42151         (new_exclude, add_exclude_file):
42152         Initial size must now be a power of two to simplify overflow checking.
42153         (free_exclude, fnmatch_no_wildcards): New function.
42154         (excluded_filename): No longer requires options arg, as the options
42155         are determined by add_exclude.  Now returns bool, not int.
42156         (excluded_filename, add_exclude):
42157         Add support for the fancy new exclusion options.
42158         (add_exclude, add_exclude_file): Now takes int options arg.
42159         Check for arithmetic overflow when computing sizes.
42160         (add_exclude_file): xrealloc might modify errno, so don't
42161         realloc until after errno might be used.
42162
42163         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42164         New macros.
42165         (free_exclude): New decl.
42166         (add_exclude, add_exclude_file): Now takes int options arg.
42167         (excluded_filename): No longer requires options arg, as the options
42168         are determined by add_exclude.  Now returns bool, not int.
42169
42170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42171
42172         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42173
42174 2001-08-27  Jim Meyering  <meyering@lucent.com>
42175
42176         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42177
42178         * lib/version-etc.c (N_): Remove definition.
42179         Revert most of last change.
42180         Instead, simply don't mark the `Copyright...' string for translation.
42181         Based on advice from Paul Eggert.
42182
42183         * lib/strtoxmax.c: Tweak comment.
42184
42185 2001-08-26  Jim Meyering  <meyering@lucent.com>
42186
42187         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42188
42189         * m4/xstrtoimax.m4: New file.
42190         * m4/xstrtoumax.m4: Add comments explaining why we
42191         AC_REPLACE_FUNCS(strtol).
42192
42193 2001-08-26  Jim Meyering  <meyering@lucent.com>
42194
42195         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42196         of copyright with `%s' so translators don't get an untranslated
42197         message in 2002.
42198         (COPYRIGHT_YEAR): Define.
42199         (version_etc): Use fprintf rather than fputs.
42200         Suggestion from Ulrich Drepper.
42201
42202         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42203
42204         * lib/strtoll.c: New file, from GNU libc.
42205         * lib/xstrtoimax.c: New file.
42206
42207         * lib/xstrtol.h: Add xstrtoimax.
42208         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42209         * lib/strtoimax.c: New file.  Likewise, but first define
42210         STRTOUXMAX_SIGNED.
42211
42212         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42213         ...
42214         * lib/strtoxmax.c: ... then renamed to this.
42215
42216 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42217
42218         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42219         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42220         (jm_AC_TYPE_INTMAX_T): New macro.
42221         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42222
42223         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42224
42225         * m4/longlong.m4: Renamed from ulonglong.m4.
42226         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42227         * m4/uintmax_t.m4: Removed.
42228
42229 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42230
42231         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42232         Port to Solaris 8, where 'sed' requires a space after the 'r'
42233         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42234         Redirect output to $tmp just once.
42235
42236 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42237
42238         * lib/addext.c (<errno.h>): Include.
42239         (errno): Declare if not defined.
42240         (addext): Work correctly when pathconf returns -1 and leaves
42241         errno alone because there is no limit.  Also, work even if
42242         pathconf returns a value greater than SIZE_MAX.
42243
42244 2001-08-12  Jim Meyering  <meyering@lucent.com>
42245
42246         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42247         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42248         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42249         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42250         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42251         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42252         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42253         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42254         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42255         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42256         utime.m4, utimes.m4, xstrtoumax.m4:
42257         Quote the first argument in each use of AC_DEFUN.
42258
42259 2001-08-12  Jim Meyering  <meyering@lucent.com>
42260
42261         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42262         Simply `return getcwd (NULL, 0);'.
42263         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42264         Use 1300 as initial value for length, not PATH_MAX.
42265
42266         * lib/pathmax.h: Clean up cpp syntax.
42267
42268 2001-08-12  Jim Meyering  <meyering@lucent.com>
42269
42270         * lib/gettimeofday.c: New file.
42271         * lib/gtod.h: New file.
42272         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42273
42274 2001-08-05  Jim Meyering  <meyering@lucent.com>
42275
42276         * m4/jm-macros.m4: Require autoconf-2.52.
42277
42278 2001-08-04  Jim Meyering  <meyering@lucent.com>
42279
42280         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42281         stmt, to get in sync with glibc.
42282
42283 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42284
42285         The following changes are from gettext 0.10.39 as maintained by
42286         Bruno Haible.
42287
42288         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42289         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42290         with inverted sense.  All uses changed.
42291
42292         * lib/mbswidth.c: Don't include <limits.h>.
42293         Include <stdlib.h> and <string.h> unconditionally.
42294         (iswcntrl, mbsinit, ISCNTRL): New macros.
42295         (mbsnwidth): Use K&R style function declarations.
42296         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42297         can optimize it when MB_CUR_MAX == 1.
42298         The width of control characters is zero, not 1.
42299
42300 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42301
42302         The following changes are from gettext 0.10.39 as maintained by
42303         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42304
42305         * m4/codeset.m4: Upgrade to serial AM1.
42306         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42307         all uses changed.  Quote first arg of AC_DEFUN.
42308         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42309
42310         * m4/iconv.m4: Upgrade to serial AM2.
42311         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42312         Add --with-libconv-prefix.
42313         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42314         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42315         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42316         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42317         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42318
42319         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42320         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42321         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42322         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42323         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42324         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42325         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42326         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42328
42329         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42330         string.h any more.
42331
42332         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42333         not the default value.
42334
42335         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42337         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42338         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42339         Also check for iswcntrl, used for wcwidth fallback.
42340         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42341         to Autoconf 2.13.
42342
42343 2001-08-03  Jim Meyering  <meyering@lucent.com>
42344
42345         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42346         as it was in the original.  Reported by Paul Eggert.
42347
42348 2001-07-16  Jim Meyering  <meyering@lucent.com>
42349
42350         * m4/gettimeofday.m4: New file.
42351         Prompted by a report from Bernhard Baehr.
42352
42353 2001-07-15  Jim Meyering  <meyering@lucent.com>
42354
42355         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42356         stuff. Now it's in ../Makefile.cfg.
42357
42358 2001-07-15  Jim Meyering  <meyering@lucent.com>
42359
42360         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42361         (BUILT_SOURCES): Add unlocked-io.h.
42362         (io_functions): Define.
42363         (unlocked-io.h): New rule.
42364         (DISTCLEANFILES): Add unlocked-io.h.
42365         (all-local): Depend on unlocked-io.h, to ensure it is created.
42366
42367         * lib/unlocked-io.hin: New file
42368
42369         * lib/regex.c: Update from glibc.
42370
42371 2001-07-05  Jim Meyering  <meyering@lucent.com>
42372
42373         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42374         recommendation.
42375         (libfetish_a_SOURCES): Put all .h files here instead.
42376         Remove a thus-exposed (better checks in automake) duplicate and
42377         two unnecessary .h files.
42378
42379 2001-07-04  Jim Meyering  <meyering@lucent.com>
42380
42381         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42382         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42383         distcheck failure.
42384
42385 2001-07-02  Jim Meyering  <meyering@lucent.com>
42386
42387         The following changes were prompted by suggestions from Bruno Haible.
42388
42389         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42390         is now generated.
42391         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42392         definition of EXTRA_DIST.
42393         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42394         ensure that the generated file is created/updated whenever the list
42395         of $(unlocked_functions) is changed.
42396         (jm-glibc-io.m4): New rule.
42397         (unlocked-io.h): New rule -- currently unused.
42398
42399 2001-06-24  Jim Meyering  <meyering@lucent.com>
42400
42401         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42402         unmatched right bracket, rather than kludging it with an extra,
42403         falsely-matching quote in a comment.  Patch by Akim Demaille.
42404
42405 2001-06-11  Jim Meyering  <meyering@lucent.com>
42406
42407         * lib/regex.c: Update from GNU libc.
42408
42409 2001-05-27  Jim Meyering  <meyering@lucent.com>
42410
42411         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42412         Check for ut_type in struct utmp.
42413
42414 2001-05-27  Jim Meyering  <meyering@lucent.com>
42415
42416         * lib/readutmp.h (UT_TYPE): Define.
42417
42418 2001-05-24  Jim Meyering  <meyering@lucent.com>
42419
42420         * lib/argmatch.c: Include "quote.h".
42421         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42422         quote function.  Reported by Göran Uddeborg.
42423
42424 2001-05-22  Jim Meyering  <meyering@lucent.com>
42425
42426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42427         now that we use the package-supplied version unconditionally.
42428         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42429
42430 2001-05-21  Jim Meyering  <meyering@lucent.com>
42431
42432         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42433         shell syntax errors.
42434
42435 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42436
42437         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42438
42439 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42440
42441         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42442         Don't bother to check library strftime, since
42443         we'll be using our own my_strftime function anyway.
42444         Define my_strftime instead of strftime.
42445
42446 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42447
42448         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42449         which is not yet declared.
42450
42451 2001-05-15  Jim Meyering  <meyering@lucent.com>
42452
42453         * m4/regex.m4: Use proper quoting so brackets appear in the test
42454         program.
42455         Reported by, and with help from, Bruno Haible.
42456
42457 2001-05-13  Jim Meyering  <meyering@lucent.com>
42458
42459         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42460         undefined.
42461
42462 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42463
42464         dirname code cleanup.  base_name now behaves more compatibly
42465         with POSIX basename when given file names that have trailing
42466         slashes, and similarly for dir_name.  Add new primitives
42467         base_len and dir_len.  Put the directory-name-related decls
42468         into dirname.h.
42469
42470         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42471         * lib/backupfile.c (base_name): Likewise.
42472         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42473         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42474         * lib/makepath.c (strip_trailing_slashes): Likewise.
42475         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42476         ISSLASH): Likewise.
42477         * lib/rename.c (strip_trailing_slashes): Likewise.
42478         * lib/same.c (base_name): Likewise.
42479         * lib/stripslash.c (ISSLASH): Likewise.
42480
42481         * lib/addext.c: Include <dirname.h> after size_t is defined.
42482         * lib/backupfile.c: Likewise.
42483
42484         * lib/addext.c (addext): Use base_len to trim redundant
42485         trailing slashes instead of doing it ourselves.
42486         But do not trim the last slash if it is not redundant.
42487
42488         * lib/backupfile.c (find_backup_file_name,
42489         max_backup_version): Use base_len instead of rolling it ourselves.
42490         Handle the case of "" and (on DOS) "C:" correctly.
42491
42492         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42493         needed. Include <string.h>, <dirname.h>.
42494         (base_name): Allow file names ending in slashes, other than names
42495         that are all slashes.  In this case, return the basename followed
42496         by the slashes.  This is more general, and can be used in places
42497         where the original base_name purposely had an assertion failure.
42498         (base_len): New function.
42499
42500         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42501         Do not include <assert.h>; no longer needed.
42502         Include xalloc.h.
42503         (memrchr): Remove decl.
42504         (dir_name_r): Remove.
42505         (dir_len): Renamed from dirlen.  All callers changed.
42506         Rewrite in terms of base_name, for simplicity and consistency.
42507         (dir_name): Never return NULL.  All callers changed.
42508         Do not include <stdlib.h> in test program; no longer needed.
42509         return 0; is fine for test program.
42510
42511         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42512         New macros.
42513         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42514
42515         * lib/path-concat.c (path_concat): Use base_len to compute
42516         base length, not strlen; this means we cannot rely on memcpy
42517         to null-terminate.
42518
42519         * lib/same.c (STREQ): Remove.
42520         (same_name): Handle the case where the basename ends in trailing '/'.
42521
42522         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42523         a slash was stripped.  Do not strip the last slash after a
42524         file system prefix.
42525
42526 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42527
42528         * lib/Makefile.am (libfetish_a_SOURCES):
42529         Add strftime.c, since we now compile it on all hosts.
42530
42531         * lib/strftime.c (my_strftime):
42532         Define to nstrftime if emacs, but only if my_strftime is not defined.
42533         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42534         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42535         Add one more extra argument: a nanoseconds value.
42536         All uses changed.
42537         (ns): New macro.
42538         (my_strftime function): Add %N format.
42539         (emacs_strftimeu): Renamed from emacs_strftime,
42540         with extra ut argument.
42541
42542 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42543
42544         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42545
42546 2001-04-21  Jim Meyering  <meyering@lucent.com>
42547
42548         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42549         doesn't interfere.
42550
42551 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42552
42553         * m4/ftruncate.m4: Check for chsize.
42554         Link with ftruncate.o unconditionally if ftruncate is missing.
42555         This was required when cross-compiling to i586-mingw32msvc.
42556
42557 2001-04-08  Jim Meyering  <meyering@lucent.com>
42558
42559         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42560         recomputed; that's necessary when the offset spans a DST transition.
42561         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
42562
42563 2001-04-02  Jim Meyering  <meyering@lucent.com>
42564
42565         * lib/regex.h, regex.c: Update from GNU libc.
42566
42567 2001-03-24  Jim Meyering  <meyering@lucent.com>
42568
42569         * m4/jm-macros.m4: Require autoconf-2.49d.
42570
42571 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
42572
42573         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42574
42575 2001-03-19  Paul Eggert  <eggert@twinsun.com>
42576
42577         * lib/version-etc.c (version_etc_copyright): Update to 2001.
42578
42579 2001-03-17  Jim Meyering  <meyering@lucent.com>
42580
42581         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42582         now that the version in autoconf is equivalent.
42583         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42584
42585         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42586         Suggestion from Akim Demaille.
42587
42588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42589         (jm_PREREQ_TEMPNAME): New function.
42590
42591 2001-03-16  Paul Eggert  <eggert@twinsun.com>
42592
42593         * lib/tempname.c (uint64_t): Define to uintmax_t if
42594         not defined, and if UINT64_MAX is not defined.
42595         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42596         Reported by John David Anglin.
42597
42598 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
42599
42600         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42601         resolve alias if codeset is empty.
42602         * lib/config.charset (BeOS): Use wildcard syntax.
42603
42604 2001-03-13  Jim Meyering  <meyering@lucent.com>
42605
42606         * lib/path-concat.c (path_concat)
42607         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42608         concatenating e.g., `C:' and `foo'.
42609         From Bruno Haible.
42610
42611 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42612
42613         * lib/localcharset.c (locale_charset): Don't use
42614         setlocale(LC_CTYPE,NULL). Don't return NULL.
42615         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42616
42617 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42618
42619         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42620         support for DOS/DJGPP.
42621
42622 2001-03-01  Paul Eggert  <eggert@twinsun.com>
42623
42624         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42625         lacks mkstemp.  Compile our own tempname.c if we compile our own
42626         mkstemp.c, as mkstemp relies on tempname.
42627
42628 2001-03-01  Jim Meyering  <meyering@lucent.com>
42629
42630         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42631         AH_VERBATIM really does output its argument verbatim.
42632
42633 2001-02-28  Paul Eggert  <eggert@twinsun.com>
42634
42635         * lib/Makefile.am (libfetish_a_SOURCES):
42636         Add dup-safer.c, fopen-safer.c.
42637         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42638
42639         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42640         * lib/unistd-safer.h: New files.
42641
42642 2001-02-25  Paul Eggert  <eggert@twinsun.com>
42643
42644         The mkstemp replacement is taken from glibc 2.2.2, with some
42645         portability fixes for use outside glibc, as follows:
42646
42647         * lib/tempname.c (struct_stat64): New macro.
42648         (direxists, __gen_tempname): Use it.
42649         This avoids a portability problem with Solaris 8.
42650
42651         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42652         (<stddef.h>, <stdint.h>, <string.h>):
42653         Include only if STDC_HEADERS || _LIBC.
42654         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42655         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42656         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42657         (__set_errno): Define this macro if <errno.h> doesn't.
42658         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42659         Define these macros if <stdio.h> doesn't.
42660         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42661         Define these macros if <sys/stat.h>
42662         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42663         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42664         __xstat64): Define if not _LIBC.
42665         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42666         (__gen_tempname): Invoke gettimeofday only if
42667         HAVE_GETTIMEOFDAY || _LIBC;
42668         otherwise, fall back on plain "time".
42669         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42670
42671         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42672
42673         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42674
42675 2001-02-18  Paul Eggert  <eggert@twinsun.com>
42676
42677         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
42678
42679 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42680
42681         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
42682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
42683         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
42684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42685
42686 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42687
42688         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
42689         Remove workaround macros for hosts that have mbrtowc but not
42690         mbstate_t, as we now insist on proper declarations for both
42691         before using mbrtowc.
42692
42693 2001-02-17  Jim Meyering  <meyering@lucent.com>
42694
42695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
42696         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
42697         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
42698         UnixWare 7.1.1.
42699
42700         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
42701         rather than AC_CACHE_VAL.
42702
42703 2001-02-17  Jim Meyering  <meyering@lucent.com>
42704
42705         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
42706         around included file name.
42707
42708         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
42709
42710         * lib/strftime.c: Update from GNU libc (the only changes were to
42711         comments).
42712
42713 2001-02-17  Jim Meyering  <meyering@lucent.com>
42714
42715         * lib/regex.c: Update from libc.
42716
42717 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
42718
42719         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
42720         clash.
42721
42722 2001-02-16  Paul Eggert  <eggert@twinsun.com>
42723
42724         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
42725         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
42726         Reported by Mark Hounschell via Paul Eggert.
42727
42728 2001-02-07  Jim Meyering  <meyering@lucent.com>
42729
42730         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
42731
42732 2001-02-05  Jim Meyering  <meyering@lucent.com>
42733
42734         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
42735         it includes the patch required for `large file' support with at least
42736         HP-UX's 10.20 /bin/cc.
42737
42738 2001-02-03  Jim Meyering  <meyering@lucent.com>
42739
42740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
42741         AS_IF, now that it works once again (mysteriously).
42742         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42743
42744 2001-01-30  Jim Meyering  <meyering@lucent.com>
42745
42746         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
42747         * m4/chown.m4: Rename conftestchown to conftest.chown.
42748         * m4/rename.m4: s/conftestdir/conftest.d1/ and
42749         s/conftestdir2/conftest.d2/.
42750         * m4/utimes.m4: s/conftestdata/conftest.data/
42751         Inspired by Pavel Roskin's change in autoconf.
42752
42753 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
42754
42755         * lib/config.charset: Update for FreeBSD 4.2.
42756
42757 2001-01-27  Jim Meyering  <meyering@lucent.com>
42758
42759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
42760         a use of AS_IF.
42761         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42762
42763 2001-01-26  Jim Meyering  <meyering@lucent.com>
42764
42765         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
42766         quotearg.c includes it.
42767
42768 2001-01-26  Jim Meyering  <meyering@lucent.com>
42769
42770         * lib/quotearg.c: Include stddef.h.
42771         * lib/quote.c: Include stddef.h.
42772         Reported by Axel Kittenberger.
42773
42774         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
42775         line in double quotes so that it evokes a better diagnostic.
42776         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
42777         Reported by Axel Kittenberger.
42778
42779 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
42780
42781         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
42782         as if it was a `charset'.
42783
42784 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
42785
42786         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
42787         has const.
42788
42789 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
42790
42791         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
42792         to avoid a warning.  Add back 'const' to inptr.
42793
42794 2001-01-20  Jim Meyering  <meyering@lucent.com>
42795
42796         Be sure that headers are checked before used in code compiled
42797         for the type checks.
42798         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
42799         In place of that, invoke jm_CHECK_ALL_TYPES.
42800         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
42801         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
42802         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
42803         The check for ssize_t was mistakenly run before the test for unistd.h.
42804
42805         The configure-time check for stdbool.h was missing.
42806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
42807         (jm_PREREQ_HASH): New function.
42808
42809 2001-01-17  Jim Meyering  <meyering@lucent.com>
42810
42811         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
42812         for autoconf-2.49c.
42813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
42814
42815 2001-01-16  Jim Meyering  <meyering@lucent.com>
42816
42817         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
42818         From Bruno Haible.
42819
42820 2001-01-14  Jim Meyering  <meyering@lucent.com>
42821
42822         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
42823         foo and bar.  Create conftestdir/ in the script, not in the C code.
42824         Remove directories in the script, not in the C code.
42825         Remove conftestdir{,2} before trying to create the directory.
42826         Make the entire configure script fail if the mkdir fails.
42827
42828 2001-01-14  Jim Meyering  <meyering@lucent.com>
42829
42830         * lib/rename.c: New file.  From Volker Borchert.
42831         Include stdlib.h, string.h or strings.h, and xalloc.h.
42832         Use strip_trailing_slashes rather than open-coding it.
42833
42834 2001-01-03  Paul Eggert  <eggert@twinsun.com>
42835
42836         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
42837
42838 2001-01-03  Jim Meyering  <meyering@lucent.com>
42839
42840         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
42841         of local `inptr' to avoid warning with some system declarations of
42842         iconv.
42843
42844 2001-01-02  Volker Borchert  <bt@teknon.de>
42845
42846         * m4/rename.m4: New file.
42847         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
42848
42849 2001-01-01  Jim Meyering  <meyering@lucent.com>
42850
42851         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
42852         even on systems with utmpx.h.  It's necessary for the declaration of
42853         utmp's ut_user member.  Reported by Andreas Jaeger.
42854
42855         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
42856         available. They are required for the declarations of getgrgid and
42857         getpwuid resp.
42858         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
42859         Reported by Andreas Jaeger.
42860
42861 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
42862
42863         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
42864         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
42865         so `make install' also works in VPATH builds.
42866
42867 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
42868
42869         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
42870         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
42871         can be used in subdirectories.
42872
42873 2000-12-29  Paul Eggert  <eggert@twinsun.com>
42874
42875         * lib/modechange.c: Do not assume that mode_t uses the
42876         traditional octal encoding.  E.g. "chmod 1 FOO" should set
42877         the other-execute bit of FOO even if S_IXOTH != 1.
42878
42879         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
42880         WOTH, XOTH, ALLM): New macros.
42881         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
42882          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
42883         Use them.
42884         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
42885         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
42886         (mode_compile):
42887         No need to use uintmax_t; unsigned long is long enough.
42888         Don't bother to get suffix since we don't use it.
42889
42890 2000-12-26  Jim Meyering  <meyering@lucent.com>
42891
42892         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
42893         better with autoheader.
42894
42895 2000-12-24  Jim Meyering  <meyering@lucent.com>
42896
42897         * lib/hash.c (is_prime): Return explicit boolean values.
42898         (hash_get_first): Return NULL to appease Irix5.6's 89.
42899         Reported by Nelson Beebe.
42900
42901 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
42902
42903         * lib/localcharset.c (locale_charset): Add support for Win32.
42904
42905 2000-12-18  Paul Eggert  <eggert@twinsun.com>
42906
42907         * lib/physmem.h, lib/physmem.c: New files.
42908
42909         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
42910         (noinst_HEADERS): Add physmem.h.
42911
42912         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
42913         't' for compatibility with Solaris 8 sort.
42914
42915 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
42916
42917         * lib/config.charset: Add support for BeOS.
42918
42919 2000-12-17  Jim Meyering  <meyering@lucent.com>
42920
42921         * m4/dos.m4 (jm_AC_DOS): New file and macro.
42922         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42923
42924 2000-12-16  Jim Meyering  <meyering@lucent.com>
42925
42926         This bug had a serious impact on chown: `chown N:M FILE' (for integer
42927         N and M) would have treated it like `chown N:N FILE'.
42928
42929         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
42930
42931 2000-12-16  Jim Meyering  <meyering@lucent.com>
42932
42933         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
42934         SHELLS_FILE to a file name that's useful on djgpp systems.
42935         Include stdlib.h.
42936         (ADDITIONAL_DEFAULT_SHELLS): Define.
42937         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
42938         Based mostly on a patch from Prashant TR.
42939
42940 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
42941
42942         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42943         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42944         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42945
42946 2000-12-08  Andreas Schwab  <schwab@suse.de>
42947
42948         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42949         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42950
42951 2000-12-07  Jim Meyering  <meyering@lucent.com>
42952
42953         * lib/stripslash.c (ISSLASH): Define.
42954         (strip_trailing_slashes): Use ISSLASH rather than comparing against
42955         `/'.
42956         From Prashant TR.
42957
42958         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42959         (dir_name_r): Declare this function as static.
42960         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42961         manifest itself on a name containing a mix of slashes and
42962         backslashes.
42963         Make this function work with names starting with a DOS-style
42964         drive letter and colon prefix.
42965         (dir_name): Append `.' if necessary.
42966         Based mostly on patches from Prashant TR and Eli Zaretskii.
42967
42968         * lib/dirname.h (dir_name_r): Remove prototype.
42969
42970 2000-12-06  Paul Eggert  <eggert@twinsun.com>
42971
42972         * m4/off_t-format.m4: Remove this file.
42973         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42974
42975 2000-12-06  Jim Meyering  <meyering@lucent.com>
42976
42977         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42978         replacement strtoull, we may well need the replacement strtoul, too.
42979         Check for declarations of strtoul and strtoull.
42980         Check for strtol.  Mainly as a cue to cause automake to include
42981         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42982         Check for limits.h -- strtol.c needs it.
42983
42984 2000-12-05  Jim Meyering  <meyering@lucent.com>
42985
42986         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42987
42988 2000-12-04  Jim Meyering  <meyering@lucent.com>
42989
42990         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42991         Also include memory.h, stdlib.h, unistd.h if appropriate.
42992         Reported by Andreas Jaeger (conflicting declaration of malloc).
42993
42994 2000-12-02  Jim Meyering  <meyering@lucent.com>
42995
42996         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42997         * m4/jm-macros.m4 (jm_MACROS): require it.
42998
42999 2000-12-02  Jim Meyering  <meyering@lucent.com>
43000
43001         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43002
43003 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43004
43005         * lib/memrchr.c: Include <config.h> before any system include file.
43006
43007 2000-11-30  Jim Meyering  <meyering@lucent.com>
43008
43009         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43010
43011 2000-11-30  Jim Meyering  <meyering@lucent.com>
43012
43013         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43014
43015 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43016
43017         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43018
43019 2000-11-26  Jim Meyering  <meyering@lucent.com>
43020
43021         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43022
43023 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43024
43025         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43026         size of (size_t) -1; it's not portable.
43027
43028 2000-11-17  Jim Meyering  <meyering@lucent.com>
43029
43030         * lib/strstr.c: Update from GNU libc.
43031
43032 2000-11-17  Akim Demaille  <akim@epita.fr>
43033
43034         * lib/obstack.h: Formatting changes.
43035         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43036         prevent type checking.
43037         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43038         cast the value to (void *): assigning a `foo *' to a `void *'
43039         variable is valid.
43040         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43041
43042 2000-11-16  Jim Meyering  <meyering@lucent.com>
43043
43044         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43045
43046 2000-11-11  Jim Meyering  <meyering@lucent.com>
43047
43048         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43049
43050 2000-11-10  Jim Meyering  <meyering@lucent.com>
43051
43052         * lib/obstack.h: Update from GNU libc.
43053         * lib/obstack.c: Likewise.
43054
43055 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43056
43057         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43058
43059 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43060
43061         * lib/getusershell.c (setusershell): Use rewind rather than
43062         fseek/fseeko, to avoid configuration hassles with fseeko.
43063         Don't bother opening SHELLS_FILE if shellstream is NULL;
43064         it's not necessary.
43065
43066 2000-11-05  Jim Meyering  <meyering@lucent.com>
43067
43068         * lib/makepath.h (make_dir): Declare.
43069         * lib/makepath.c (make_dir): Remove `static' attribute.
43070         Tweak a comment.
43071
43072 2000-11-04  Jim Meyering  <meyering@lucent.com>
43073
43074         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43075
43076 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43077
43078         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43079         last one in a bucket, advance to the next bucket.
43080
43081 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43082
43083         * lib/fnmatch.c: Do not comment out all the code if we are using
43084         the GNU C library, because in some cases we are replacing buggy
43085         code in the GNU C library itself.
43086
43087 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43088
43089         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43090         (regex_compile): Catch bogus \(\1\).
43091
43092 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43093
43094         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43095         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43096         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43097
43098 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43099
43100         * lib/error.h, getline.h, modechange.h:
43101         Remove "2000" from Copyright line, as the file hasn't been
43102         changed this year other than in the copyright notice.
43103
43104         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43105         was changed this year.
43106
43107 2000-10-29  Jim Meyering  <meyering@lucent.com>
43108
43109         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43110         renaming.
43111         * m4/ls-mntd-fs.m4: Likewise
43112
43113 2000-10-29  Jim Meyering  <meyering@lucent.com>
43114
43115         * lib/xstat.in: Fix grammar in comment.
43116
43117 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43118
43119         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43120         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43121         doesn't define __restrict_arr.
43122
43123 2000-10-28  Jim Meyering  <meyering@lucent.com>
43124
43125         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43126         (jm_PREREQ_MEMCHR): New function.
43127
43128 2000-10-28  Jim Meyering  <meyering@lucent.com>
43129
43130         * lib/memchr.c: Update from libc.
43131         Adjust for portability:
43132         [HAVE_STDLIB_H]: Include stdlib.h.
43133         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43134         Undef __memchr, too.
43135         [!weak_alias]: Define __memchr to memchr.
43136
43137         * lib/regex.c: Update from libc.
43138         * lib/regex.h: Likewise.
43139         * lib/getopt1.c: Likewise.
43140         * lib/memcmp.c: Likewise.
43141
43142         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43143         Avoid using fseek, when possible -- it's broken by design.
43144         Patch by Ulrich Drepper.
43145
43146 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43147
43148         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43149         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43150         Giving in to popular pressure to shut up the compiler with casts.
43151
43152 2000-10-26  Jim Meyering  <meyering@lucent.com>
43153
43154         * lib/strftime.c: Update from libc.
43155
43156 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43157
43158         * regex.c: More `unsigned char' -> `re_char' changes.
43159         Also change several `int' into `re_wchar_t'.
43160         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43161         (PUSH_FAILURE_POINTER): Don't cast any more.
43162         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43163         We want GCC to complain, since this piece of code makes
43164         re_match non-reentrant, which *should* be fixed.
43165         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43166         (EXTEND_BUFFER): Use RETALLOC.
43167         (SET_LIST_BIT): Don't cast.
43168         (re_wchar_t): New type.
43169         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43170         that those two functions will always properly return.
43171         (IMMEDIATE_QUIT_CHECK): Cast to void.
43172         (analyse_first): Use recursion rather than an explicit stack.
43173         (re_compile_fastmap): Can't fail anymore.
43174         (re_search_2): Don't check re_compile_fastmap for failure.
43175         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43176         Now also sets the new value (passed in a new argument).
43177         (re_match_2_internal): Use it.
43178         Also, use a new var `reg' of type size_t when looping through regs
43179         rather than reuse the inappropriate `mcnt'.
43180
43181 2000-10-25  Jim Meyering  <meyering@lucent.com>
43182
43183         * lib/obstack.c: Update from libc.
43184
43185 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43186
43187         * regex.c (regex_compile): Change the way of handling a range from
43188         a char less than 256 to a char not less than 256.
43189
43190 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43191
43192         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43193         NT-Emacs only.
43194         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43195         so that re_search functions only quit when callers expect them to.
43196
43197 2000-10-23  Jim Meyering  <meyering@lucent.com>
43198
43199         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43200         wrong.  That set_locale call must not have any side effects.
43201         From Paul Eggert.
43202
43203 2000-10-22  Jim Meyering  <meyering@lucent.com>
43204
43205         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43206         [CYCLIC]: Remove now-unused definition.
43207
43208         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43209         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43210         Suggestion from Ulrich Drepper.
43211
43212 2000-10-21  Jim Meyering  <meyering@lucent.com>
43213
43214         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43215         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43216         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43217
43218 2000-10-21  Jim Meyering  <meyering@lucent.com>
43219
43220         * lib/dirname.c (memrchr): Declare if necessary.
43221         (dir_name): Remove the restriction that there be no
43222         trailing slashes.  Now, this code skips past them, effectively
43223         ignoring them.
43224         [TEST_DIRNAME] (main): New unit tests.
43225
43226         * lib/memrchr.c: New file from GNU libc.
43227         Undef __memrchr, too.
43228         [!weak_alias]: Define __memrchr to memrchr.
43229         Guard weak_alias use with `#ifdef weak_alias'.
43230
43231 2000-10-21  Jim Meyering  <meyering@lucent.com>
43232
43233         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43234         (dir_name): Use dir_name_r.
43235         * lib/dirname.h (dir_name_r): Declare it.
43236
43237 2000-10-17  Jim Meyering  <meyering@lucent.com>
43238
43239         * lib/quote.h (PARAMS): Define and use.
43240         Reported by Akim Demaille.
43241
43242         * lib/getopt.c: Update from libc.
43243
43244 2000-10-16  Jim Meyering  <meyering@lucent.com>
43245
43246         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43247         setlocale.
43248         From Jan Fedak.
43249
43250 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43251
43252         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43253
43254 2000-09-25  Jim Meyering  <meyering@lucent.com>
43255
43256         * lib/md5.h (rol): Define (from GnuPG).
43257
43258         * lib/sha.c: Give credit (GnuPG) where due.
43259         (M): Use rol rather than open-coding it.
43260         Add a FIXME comment.
43261
43262 2000-09-21  Jim Meyering  <meyering@lucent.com>
43263
43264         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43265         Reported by Michael Stone.
43266
43267 2000-09-20  Jim Meyering  <meyering@lucent.com>
43268
43269         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43270         (noinst_HEADERS): Add sha.h.
43271         Based on code from Scott G. Miller and from GnuPG.
43272
43273 2000-09-18  Jim Meyering  <meyering@lucent.com>
43274
43275         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43276         LIBS. Otherwise, everyone ends up linking with -lelf for some
43277         configurations.
43278         Reported by Mike Stone.
43279
43280 2000-09-15  Jim Meyering  <meyering@lucent.com>
43281
43282         * lib/regex.c: Update from libc.
43283
43284 2000-09-10  Jim Meyering  <meyering@lucent.com>
43285
43286         * lib/getopt.c (_getopt_internal): Update from glibc.
43287
43288 2000-09-09  Jim Meyering  <meyering@lucent.com>
43289
43290         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43291         think it should be used as a general replacement for isascii.
43292         * lib/fnmatch.c: Likewise.
43293         * lib/mbswidth.c: Likewise
43294         * lib/regex.c: Likewise.
43295
43296         Don't use atoi.
43297         * lib/userspec.c: Include sys/param.h and limits.h.
43298         Include xstrtol.h.
43299         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43300         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43301         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43302         UID, GID.  Check range.
43303
43304 2000-09-06  Jim Meyering  <meyering@lucent.com>
43305
43306         * lib/getopt.c (_getopt_internal): Update from glibc.
43307
43308 2000-08-30  Jim Meyering  <meyering@lucent.com>
43309
43310         * lib/strftime.c: Merge in changes from GNU libc.
43311
43312 2000-08-26  Jim Meyering  <meyering@lucent.com>
43313
43314         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43315         * m4/fpending.m4: New file.
43316
43317 2000-08-26  Jim Meyering  <meyering@lucent.com>
43318
43319         * lib/closeout.c: Include "__fpending.h".
43320         (close_stdout_status): Return right away if there's nothing to flush.
43321
43322         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43323         * lib/__fpending.c: New file.
43324         * lib/__fpending.h: New file.
43325
43326 2000-08-20  Jim Meyering  <meyering@lucent.com>
43327
43328         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43329         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43330         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43331
43332 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43333
43334         Improve fileutils installation on systems where running
43335         programs (like install) can't be unlinked.
43336         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43337         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43338
43339 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43340
43341         Standardize on "memory exhausted" instead of "Memory exhausted"
43342         or "virtual memory exhausted".
43343         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43344         "virtual memory exhausted".
43345         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43346         our own message.
43347         * lib/userspec.c (parse_user_spec): Likewise.
43348         * lib/bumpalloc.h: comment fix
43349         * lib/same.c, userspec.c: Include xalloc.h.
43350
43351         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43352         not char *const and pointing to a constant array.
43353         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43354         (xrealloc): Comment fix.
43355
43356         * lib/userspec.c (parse_user_spec):
43357         Don't translate a message until just before returning,
43358         to avoid unnecessary translation.
43359
43360 2000-08-07  Jim Meyering  <meyering@lucent.com>
43361
43362         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43363         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43364         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43365         getgroups.c, gethostname.c, getopt.h, group-member.c,
43366         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43367         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43368         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43369         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43370         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43371         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43372         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43373         yesno.c: Back out Copyright date changes for each file with no change
43374         this year.  This eases coordination with other programs using the same
43375         source code modules.  From Paul Eggert.
43376
43377 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43378
43379         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43380         not char, for compatibility with glibc 2.1.3 strftime.c.
43381
43382 2000-08-03  Greg McGary  <greg@mcgary.org>
43383
43384         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43385         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43386         (EXTEND_BUFFER): Use them.
43387
43388 2000-08-01  Jim Meyering  <meyering@lucent.com>
43389
43390         * lib/dirname.c (ISSLASH): Define.
43391         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43392         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43393         both `\' and `/' may be use as path separators.
43394         Based on a patch from Prashant TR.
43395
43396 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43397
43398         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43399         slot vector a constant, since it might get modified.
43400
43401 2000-07-31  Jim Meyering  <meyering@lucent.com>
43402
43403         * lib/xmalloc.c: Use `virtual memory exhausted', not
43404         `Memory exhausted'.
43405         * lib/obstack.c (print_and_abort): Likewise.
43406
43407 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43408
43409         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43410         buffer, so that the caller can always quote one small
43411         component of a "memory exhausted" message in slot 0.
43412         From a suggestion by Jim Meyering.
43413
43414 2000-07-30  Jim Meyering  <meyering@lucent.com>
43415
43416         * lib/makepath.c (make_path): Quote the other instance, too.
43417
43418         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43419         (STATIC_BUF_SIZE): Define.
43420         (quotearg_n_options): Use only statically allocated storage when
43421         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43422         than STATIC_BUF_SIZE.
43423
43424 2000-07-29  Jim Meyering  <meyering@lucent.com>
43425
43426         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43427         * lib/dirname.c (dir_name): Likewise.
43428
43429         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43430         `/'.
43431
43432         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43433         (dir_name): Assert that there are no trailing slashes.
43434
43435 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43436
43437         * lib/mbswidth.h (mbswidth): Add a flags argument.
43438         (mbswidth): New declaration.
43439         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43440         * lib/mbswidth.c (mbswidth): Add a flags argument.
43441         (mbsnwidth): New function.
43442
43443 2000-07-24  Jim Meyering  <meyering@lucent.com>
43444
43445         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43446
43447 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43448
43449         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43450
43451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43452
43453         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43454         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43455         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43456         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43457         invoke multibyte primitives.
43458
43459 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43460
43461         * lib/quotearg.c:
43462         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43463         so that mbstate_t is always defined.
43464
43465         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43466         be 1 in at least one GCC installation, and this configuration
43467         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43468         performance on hosts that have mbrtowc but have only unibyte
43469         locales, but I assume these hosts are rare.
43470
43471 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43472
43473         * lib/mbswidth.c (_XOPEN_SOURCE):
43474         Don't define; this causes problems on Solaris 7.
43475         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43476
43477 2000-07-23  Jim Meyering  <meyering@lucent.com>
43478
43479         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43480         too: getgrgid, getpwuid, getuid.
43481
43482 2000-07-23  Jim Meyering  <meyering@lucent.com>
43483
43484         * lib/basename.c (base_name): Add an assertion.
43485
43486 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43487
43488         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43489         shadow its mbsinit function.
43490
43491 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43492
43493         * lib/mbswidth.h: New file.
43494         * lib/mbswidth.c: New file.
43495         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43496         (noinst_HEADERS): Add mbswidth.h.
43497
43498 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43499
43500         * lib/config.charset: Add support for FreeBSD. Improve support for
43501         HP-UX and IRIX 6.
43502
43503 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43504
43505         * m4/mbswidth.m4: New file.
43506         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43507
43508 2000-07-15  Jim Meyering  <meyering@lucent.com>
43509
43510         * lib/makepath.c: Include quote.h.
43511         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43512         corresponding argument in a `quote (...)' call.
43513         Give better diagnostics.
43514
43515         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43516         (noinst_HEADERS): Add quote.h.
43517
43518         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43519         from tar's src/misc.c.
43520         * lib/quote.h: New file.  Prototypes for same.
43521
43522 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43523
43524         From a suggestion by Bruno Haible.
43525         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43526         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43527         to decide whether to define the BeOS workaround macro;
43528         this adjusts to the change to AC_MBSTATE_T.
43529
43530 2000-07-14  Jim Meyering  <meyering@lucent.com>
43531
43532         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43533         jm_AC_TYPE_UINTMAX_T.
43534
43535 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43536
43537         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43538
43539         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43540         quotearg_buffer_restyled): Add support for
43541         clocale_quoting_style.  Undo previous change to
43542         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43543         and "{RIGHT QUOTATION MARK}" msgids.
43544
43545 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43546
43547         From a suggestion by Bruno Haible.
43548         * m4/mbstate_t.m4 (AC_MBSTATE_T):
43549         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
43550         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43551         and mbstate_t, to a single-part test that simply defines mbstate_t.
43552         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43553         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43554
43555 2000-07-10  Jim Meyering  <meyering@lucent.com>
43556
43557         * m4/strerror_r.m4: Mirror the correction made in autoconf.
43558
43559         * m4/gnu-source.m4: Output to confdefs.h directly.
43560         Suggestion from Akim Demaille.
43561
43562 2000-07-09  Paul Eggert  <eggert@twinsun.com>
43563
43564         The old behavior of quoting `like this' doesn't look good with
43565         newer, ISO-style fonts.  See:
43566         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43567
43568         Instead, quote "like this" by default.  Let the translator
43569         tailor the locale-specific quoting behavior by providing
43570         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43571
43572         * lib/quotearg.c (N_): New macro.
43573         (gettext_default): New function.
43574         (quotearg_buffer_restyled): Use
43575         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43576         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43577
43578 2000-07-09  Jim Meyering  <meyering@lucent.com>
43579
43580         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43581         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
43582
43583         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43585
43586 2000-07-09  Jim Meyering  <meyering@lucent.com>
43587
43588         * lib/Most files: Update copyright dates to include 2000.
43589
43590 2000-07-08  Jim Meyering  <meyering@lucent.com>
43591
43592         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43593         if not defined.
43594         (xgethostname): Remove now-unnecessary #ifdef.
43595         Move declaration of `err' into loop where it's used.
43596
43597 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43598         and Bruno Haible  <haible@clisp.cons.org>
43599
43600         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43601         only if the test for an object-type mbstate_t fails.  This
43602         prevents us from mistakenly reporting that mbstate_t is a
43603         system object type after we "#define mbstate_t int" to work
43604         around its lack.
43605
43606 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43607         and Bruno Haible  <haible@clisp.cons.org>
43608
43609         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43610
43611 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43612
43613         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43614         to strerror_r.
43615         Include <ctype.h> for use of isalpha.
43616
43617 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43618
43619         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43620         by allocating a larger buffer. Test the gethostname return value for
43621         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
43622         returns an error and ENAMETOOLONG isn't defined.
43623
43624 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43625
43626         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43627         dimension.
43628
43629 2000-07-04  Jim Meyering  <meyering@lucent.com>
43630
43631         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43632         of the deprecated AC_CHECKING.
43633
43634 2000-07-04  Jim Meyering  <meyering@lucent.com>
43635
43636         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43637         Reported by Bruno Haible.
43638
43639 2000-07-04  Jim Meyering  <meyering@lucent.com>
43640
43641         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43642         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
43643         lacks mbrtowc.
43644
43645 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43646
43647         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43648         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43649
43650 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43651         and Bruno Haible  <haible@clisp.cons.org>
43652
43653         * lib/quotearg.c (mbrtowc):
43654         Assign to *pwc, and return 1 only if result is nonzero.
43655         (iswprint): Use ISPRINT when substituting our own mbrtowc.
43656
43657 2000-07-03  Jim Meyering  <meyering@lucent.com>
43658
43659         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43660
43661 2000-07-03  Jim Meyering  <meyering@lucent.com>
43662
43663         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43664         This is necessary to get a definition of e.g., UTMP_FILE on
43665         HP-UX 10.20.
43666         From Bob Proulx.
43667
43668 2000-07-02  Jim Meyering  <meyering@lucent.com>
43669
43670         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43671
43672         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43673         AC_LIBOBJ(function_name).
43674         * m4/chown.m4: Likewise.
43675         * m4/fnmatch.m4: Likewise.
43676         * m4/ftruncate.m4: Likewise.
43677         * m4/getgroups.m4: Likewise.
43678         * m4/getline.m4: Likewise.
43679         * m4/group-member.m4: Likewise.
43680         * m4/jm-macros.m4: Likewise.
43681         * m4/lstat.m4: Likewise.
43682         * m4/malloc.m4: Likewise.
43683         * m4/memcmp.m4: Likewise.
43684         * m4/nanosleep.m4: Likewise.
43685         * m4/putenv.m4: Likewise.
43686         * m4/realloc.m4: Likewise.
43687         * m4/regex.m4: Likewise.
43688         * m4/stat.m4: Likewise.
43689         * m4/strftime.m4: Likewise.
43690
43691 2000-07-02  Jim Meyering  <meyering@lucent.com>
43692
43693         * lib/quotearg.c (mbstate_t): Don't define here.
43694
43695 2000-07-02  Jim Meyering  <meyering@lucent.com>
43696
43697         * lib/nanosleep.c (SIGCONT): Define if not already defined.
43698
43699 2000-07-01  Jim Meyering  <meyering@lucent.com>
43700
43701         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
43702
43703 2000-07-01  Jim Meyering  <meyering@lucent.com>
43704
43705         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
43706         problem.
43707
43708 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
43709
43710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
43711         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
43712
43713 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
43714
43715         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
43716         per change in ../m4/ls-mntd-fs.m4.
43717         (read_filesystem_list): Ignore symbolic links.
43718
43719 2000-06-29  Jim Meyering  <meyering@lucent.com>
43720
43721         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
43722         for declaration of strcmp.
43723
43724         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
43725
43726         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
43727         Avoid warning by casting result to `char *' to remove `const'.
43728
43729 2000-06-28  Jim Meyering  <meyering@lucent.com>
43730
43731         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
43732         included by quotearg.c, for which we perform this test.  From
43733         Bruno Haible.
43734
43735 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
43736
43737         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
43738         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
43739         <utmpx.h> exists, put readutmp.o into LIBOBJS.
43740
43741 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
43742
43743         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
43744
43745 2000-06-26  Paul Eggert  <eggert@twinsun.com>
43746
43747         savedir now sets errno on failure and invokes xmalloc to get memory.
43748         Fix a couple of other minor bugs while we're at it.
43749
43750         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
43751         (NAMLEN): Remove macro.
43752         (malloc, realloc): Remove decls.
43753         (stpcpy): Likewise.
43754         ("xalloc.h"): Include.
43755         (NAME_SIZE_DEFAULT): New macro.
43756         (savedir): Use xmalloc / xrealloc to allocate memory.
43757         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
43758         Skip "" directory entries.
43759         Use strlen to calculate directory entry length, since the old method
43760         is rarely used these days and isn't worth supporting.
43761         Don't use a pointer after freeing it.
43762         Check for integer overflow when calculating allocation size.
43763         Use memcpy to copy entries, instead of stpcpy.
43764         Set errno properly when returning NULL.
43765         Check for readdir error.
43766
43767 2000-06-26  Jim Meyering  <meyering@lucent.com>
43768
43769         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
43770
43771 2000-06-25  Jim Meyering  <meyering@lucent.com>
43772
43773         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
43774         Linux header bug when _XOPEN_SOURCE is defined to 500.
43775
43776 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
43777
43778         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
43779         deficiency.
43780
43781 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
43782
43783         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
43784         Include xalloc.h.
43785         Don't include <stdlib.h>.  Don't declare malloc, realloc.
43786
43787 2000-06-24  Jim Meyering  <meyering@lucent.com>
43788
43789         * m4/strerror_r.m4: Revive this file -- to try out an experimental
43790         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
43791         for which strerror does return char*, but which lacks a conveniently
43792         accessible declaration of the function.  If the compile-test says
43793         strerror_r doesn't work, then resort to a `run'-test that works on
43794         BeOS and segfaults on DEC Unix.
43795
43796 2000-06-24  Jim Meyering  <meyering@lucent.com>
43797
43798         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
43799
43800 2000-06-23  Paul Eggert  <eggert@twinsun.com>
43801
43802         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
43803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
43804
43805 2000-06-23  Paul Eggert  <eggert@twinsun.com>
43806
43807         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
43808         (mbrtowc, mbstate_t): Define substitutes if
43809         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
43810         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
43811         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
43812
43813 2000-06-23  Jim Meyering  <meyering@lucent.com>
43814
43815         * m4/afs.m4: Add missing AC_MSG_RESULT.
43816         Reported by Bruno Haible.
43817
43818         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
43819         Suggestion from Bruno Haible.
43820
43821 2000-06-23  Jim Meyering  <meyering@lucent.com>
43822
43823         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
43824
43825 2000-06-21  Jim Meyering  <meyering@lucent.com>
43826
43827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
43828
43829 2000-06-21  Jim Meyering  <meyering@lucent.com>
43830
43831         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
43832         (noinst_HEADERS): Add getstr.h.
43833
43834         * lib/getline.c (getstr): Move into a separate file.
43835         * lib/getstr.c (getstr): New file, extracted from getline.c, with
43836         the following changes: new parameter, delim2; both delim[12]
43837         parameters have type `int', not `char'.  The latter would lose
43838         with 8-bit delimiters.
43839         * lib/getstr.h: New file.
43840
43841 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
43842
43843         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
43844         than 1024, return a memory chunk of least possible size, instead
43845         of size PATH_MAX + 2. In the loop, increment the size proportionally.
43846         Use free/xmalloc instead of xrealloc to avoid copying for very long
43847         paths.
43848
43849 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
43850
43851         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
43852         the empty string.
43853
43854 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
43855
43856         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
43857         address, not strdup.  Include <stdlib.h> and don't declare free().
43858
43859 2000-06-19  Jim Meyering  <meyering@lucent.com>
43860
43861         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
43862
43863 2000-06-18  Jim Meyering  <meyering@lucent.com>
43864
43865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
43866
43867         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
43868         `checking whether...' message to be consistent with that of the
43869         lstat test.
43870
43871 2000-06-18  Jim Meyering  <meyering@lucent.com>
43872
43873         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
43874         Besides, these days every porting target provides a mkdir function.
43875
43876         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
43877         needed. (this snippet comes from src/system.h).
43878
43879 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
43880
43881         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
43882
43883 2000-06-15  Paul Eggert  <eggert@twinsun.com>
43884
43885         * lib/human.c (adjust_value): New function.
43886         (human_readable_inexact): Apply rounding style even when
43887         printing approximate values.
43888
43889 2000-06-14  Paul Eggert  <eggert@twinsun.com>
43890
43891         * lib/human.c (human_readable_inexact): Allow an input block
43892         size that is not a multiple of the output block size, and vice versa.
43893         Reported by Piergiorgio Sartor.
43894
43895 2000-06-14  Paul Eggert  <eggert@twinsun.com>
43896
43897         * lib/getdate.y (get_date): Apply relative times after time
43898         zone indicator, not before.  Reported by Todd A. Jacobs.
43899
43900 2000-06-13  Jim Meyering  <meyering@lucent.com>
43901
43902         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
43903
43904         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
43905
43906 2000-06-12  Paul Eggert  <eggert@twinsun.com>
43907
43908         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
43909
43910 2000-06-12  Jim Meyering  <meyering@lucent.com>
43911
43912         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
43913         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
43914         optional argument.
43915         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
43916         the optional argument, `lib'.
43917
43918 2000-06-08  Jim Meyering  <meyering@lucent.com>
43919
43920         * m4/largefile.m4: Remove file (now that it's part of autoconf).
43921
43922 2000-06-04  Paul Eggert  <eggert@twinsun.com>
43923
43924         Rewrite largefile configuration so that we don't need to run
43925         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
43926         AC_CANONICAL_HOST in configure.in -- jmm]
43927
43928         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
43929         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
43930         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
43931         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
43932         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
43933         All uses changed.
43934         Instead of inspecting the output of getconf, try to compile the
43935         test program without and with the macro definition.
43936         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
43937         for getconf.  Instead, check for the needed flags by compiling
43938         test programs.
43939
43940 2000-06-04  Paul Eggert  <eggert@twinsun.com>
43941
43942         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43943
43944 2000-06-04  Jim Meyering  <meyering@lucent.com>
43945
43946         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43947         SunOS 4.1.4 for which gid_t is an unsigned type.
43948
43949 2000-06-03  Jim Meyering  <meyering@lucent.com>
43950
43951         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43952         now that autoconf requires that.
43953
43954         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43955         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43956         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43957
43958 2000-06-03  Jim Meyering  <meyering@lucent.com>
43959
43960         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43961
43962 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43963
43964         * m4/glibc21.m4: New file.
43965         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43966
43967 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43968
43969         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43970         newer, don't install charset.alias.
43971         * lib/config.charset: Change the Linux/glibc rules so they become empty
43972         on glibc-2.1 or newer.
43973
43974 2000-06-02  Jim Meyering  <meyering@lucent.com>
43975
43976         * lib/mountlist.c: Back out last change.  Instead, do this...
43977         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43978         me_dummy member using the same `ignore'-testing code.
43979         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43980         fs_type strings.
43981         From Mark D. Roth.
43982
43983 2000-05-29  Jim Meyering  <meyering@lucent.com>
43984
43985         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43986         mounts with the `ignore' attribute.  Based on a patch from
43987         Mark D. Roth.
43988
43989 2000-05-28  Jim Meyering  <meyering@lucent.com>
43990
43991         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43992         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43993         * m4/stat.m4: Likewise.
43994         * m4/lstat.m4: Likewise.
43995         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43996
43997         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43998         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43999
44000 2000-05-26  Jim Meyering  <meyering@lucent.com>
44001
44002         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44003
44004 2000-05-24  Jim Meyering  <meyering@lucent.com>
44005
44006         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44007         autoconf requires that.
44008         * m4/lib-check.m4: Likewise.
44009         * m4/jm-macros.m4: Likewise.
44010         * m4/strftime.m4: Likewise.
44011
44012         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44013         AC_CHECK_DECLS, now that autoconf requires that.
44014
44015 2000-05-22  Jim Meyering  <meyering@lucent.com>
44016
44017         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44018         * m4/lstat.m4: Likewise.
44019
44020 2000-05-22  Jim Meyering  <meyering@lucent.com>
44021
44022         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44023
44024 2000-05-20  Jim Meyering  <meyering@lucent.com>
44025
44026         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44027         (jm_PREREQ): Use it.
44028
44029 2000-05-18  Jim Meyering  <meyering@lucent.com>
44030
44031         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44032         back, too, since it may have been modified by allocate_entry.
44033         (hash_delete): Rewrite to use neither the assignment operator
44034         nor the comma operator in an if-expression.
44035
44036 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44037
44038         * lib/closeout.c:
44039         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44040         Remove; no longer needed.
44041         "quotearg.h": Add include.
44042         (file_name): Do not bother to explicitly initialize to NULL; it's less
44043         efficient on some hosts.
44044         (close_stdout_status): Remove test as to whether stdout was already
44045         closed; it breaks for the case "echo x | sort >&-".
44046         Quote file name colons.
44047         Do not assume that _("write error") lacks format strings.
44048
44049 2000-05-15  Jim Meyering  <meyering@lucent.com>
44050
44051         * lib/version-etc.c (version_etc_copyright): Update the copyright
44052         string used in all --version output.
44053
44054 2000-05-14  Jim Meyering  <meyering@lucent.com>
44055
44056         * lib/closeout.c (close_stdout_set_file_name): New function.
44057         (close_stdout_status): Use new file-scoped global.
44058         Return right away if fstat says the stdout file descriptor is invalid.
44059         * lib/closeout.h (close_stdout_set_file_name): Declare.
44060
44061 2000-05-10  Jim Meyering  <meyering@lucent.com>
44062
44063         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44064         (close_stdout_set_status): New function.
44065         * lib/closeout.h (close_stdout_set_status): Declare.
44066
44067 2000-05-09  Jim Meyering  <meyering@lucent.com>
44068
44069         * m4/gettext.m4: Rename this...
44070         * m4/libintl.m4: ...to this.
44071
44072 2000-05-08  Jim Meyering  <meyering@lucent.com>
44073
44074         * lib/long-options.c: Don't include closeout.h.
44075         (parse_long_options): Don't call close_stdout for --version.
44076
44077 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44078
44079         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44080         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44081         2.1.3 bug.  This avoids a clash when files like regex.c define
44082         _GNU_SOURCE.
44083
44084 2000-05-06  Jim Meyering  <meyering@lucent.com>
44085
44086         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44087         (AC_REPLACE_FUNCS): Add strnlen.
44088
44089         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44090         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44091
44092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44093         AC_SEARCH_LIBS call for nanosleep.
44094         (LIB_NANOSLEEP): Set and AC_SUBST.
44095
44096 2000-05-06  Jim Meyering  <meyering@lucent.com>
44097
44098         * lib/strnlen.c: Undefine __strnlen and strnlen.
44099         [!weak_alias]: Define __strnlen to strnlen.
44100
44101         * lib/atexit.c: New file, from libiberty.
44102
44103 2000-05-06  Jim Meyering  <meyering@lucent.com>
44104
44105         * lib/closeout.c (close_stdout_status): Also check for errors on the
44106         stderr stream.
44107
44108 2000-05-05  Jim Meyering  <meyering@lucent.com>
44109
44110         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44111         AC_SEARCH_LIBS call for clock_gettime.
44112         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44113
44114         * m4/search-libs.m4: Update from autoconf.
44115
44116         su doesn't work on Solaris 2.6.
44117         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44118         <shadow.h>.  Reported by Dragos Harabor.
44119
44120 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44121
44122         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44123         memcpy instead of xmalloc, xrealloc, path_concat.
44124         (locale_charset): Treat empty environment variables as absent.
44125         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44126
44127 2000-05-04  Jim Meyering  <meyering@lucent.com>
44128
44129         * lib/getopt.c: Update from glibc.
44130         * lib/obstack.c: Likewise.
44131         * lib/obstack.h: Likewise.
44132         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44133         file
44134
44135         * lib/regex.h: Likewise.
44136         * lib/strndup.c: Likewise.
44137         * lib/strnlen.c: New file, from glibc.
44138
44139 2000-05-03  Jim Meyering  <meyering@lucent.com>
44140
44141         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44142
44143 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44144
44145         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44146         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44147         compile-time test, rather than inspecting host and OS, to
44148         decide whether to define _LARGEFILE_SOURCE.
44149
44150 2000-05-01  Jim Meyering  <meyering@lucent.com>
44151
44152         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44153
44154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44155         Based on a patch from Bruno Haible.
44156
44157 2000-05-01  Jim Meyering  <meyering@lucent.com>
44158
44159         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44160
44161 2000-04-29  Jim Meyering  <meyering@lucent.com>
44162
44163         * lib/path-concat.c: Declare strdup only if it's not defined.
44164         * lib/canon-host.c: Likewise.
44165
44166 2000-04-28  Jim Meyering  <meyering@lucent.com>
44167
44168         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44169         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44170         is included first, then limits.h is included by locale.h by libintl.h.
44171         From John David Anglin.
44172
44173 2000-04-25  Jim Meyering  <meyering@lucent.com>
44174
44175         * lib/makepath.c (S_IRWXUGO): Define.
44176         (make_path): Always perform explicit chmod if MODE specifies any
44177         of the `special' permission bits.  Prompted by a bug report against
44178         install from Mate Wierdl and Joost van Baal.
44179
44180 2000-04-18  Jim Meyering  <meyering@lucent.com>
44181
44182         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44183         (jm_PREREQ): Use it.
44184
44185 2000-04-18  Jim Meyering  <meyering@lucent.com>
44186
44187         * lib/README: New file.
44188
44189         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44190         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44191
44192 2000-04-17  Jim Meyering  <meyering@lucent.com>
44193
44194         Get it right :-)
44195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44196         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44197         Suggestion from Akim Demaille.
44198
44199 2000-04-17  Jim Meyering  <meyering@lucent.com>
44200
44201         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44202         the definition of it to rpl_strftime also defined-away the system's
44203         declaration.
44204
44205 2000-04-15  Jim Meyering  <meyering@lucent.com>
44206
44207         Use `C' to denote so-called `contiguous' files, the same way
44208         that tar does.
44209         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44210         (ftypelet): Use S_ISCTG.
44211         From Michael Deutschmann.
44212
44213 2000-04-14  Jim Meyering  <meyering@lucent.com>
44214
44215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44216         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44217         clobbered.
44218
44219 2000-04-14  Jim Meyering  <meyering@lucent.com>
44220
44221         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44222
44223 2000-04-13  Jim Meyering  <meyering@lucent.com>
44224
44225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44226         AH_VERBATIM to insert required #ifndef into config.h.in.
44227         Suggestion from Akim Demaille.
44228
44229 2000-04-12  Jim Meyering  <meyering@lucent.com>
44230
44231         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44232         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44233         Christian Krackowizer.
44234
44235         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44236         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44237         (AC_SYS_LARGEFILE): Require.
44238         (AM_C_PROTOTYPES): Require.
44239
44240 2000-04-08  Jim Meyering  <meyering@lucent.com>
44241
44242         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44243         names don't conflict.  Reported by Eli Zaretskii.
44244
44245 2000-04-07  Jim Meyering  <meyering@lucent.com>
44246
44247         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44248         sys/types.h, to work around system header problems on AIX 3.2.5.
44249         From Bruno Haible.
44250
44251 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44252
44253         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44254         bug.  Deal with the different error behavior of Irix iconv.
44255
44256 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44257
44258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44259         IRIX if the installer said otherwise.
44260
44261 2000-04-05  Jim Meyering  <meyering@lucent.com>
44262
44263         Portability tweaks required for ultrix4.3.
44264         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44265         (jm_CHECK_DECLS): Add getutent to the list of functions.
44266         (_jm_DECL_HEADERS): Add utmpx.h.
44267         From John David Anglin.
44268
44269         * m4/strftime.m4: Back out the 2000-04-02 change.
44270         Instead of that change, simply undefine putenv in the test program.
44271
44272 2000-04-05  Jim Meyering  <meyering@lucent.com>
44273
44274         Portability tweaks required for ultrix4.3.
44275         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44276         getutent.
44277         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44278         * lib/canon-host.c: Declare strdup.
44279         * lib/path-concat.c: Likewise.
44280         From John David Anglin.
44281
44282 2000-04-04  Jim Meyering  <meyering@lucent.com>
44283
44284         Be more DOS 8.3-friendly.
44285         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44286         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44287         * lib/Makefile.am: Reflect renaming.
44288         Reported by Eli Zaretskii.
44289
44290         Use a temporary file name that won't clash with `charset.alias'
44291         in the DOS 8.3 name space.
44292         * lib/Makefile.am (charset_tmp): Define.
44293         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44294         (uninstall-local): Likewise.
44295         Reported by Eli Zaretskii.
44296
44297 2000-04-03  Jim Meyering  <meyering@lucent.com>
44298
44299         * m4/gettext.m4: Fix typo in comment.
44300
44301         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44302         textutils/configure.in).  Suggestion from Paul Eggert.
44303         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44304
44305 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44306
44307         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44308         variable in the shell rather than using putenv, which isn't
44309         portable.  This avoids the configure-time inter-test dependency
44310         on the potentially-renamed putenv function.
44311
44312 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44313
44314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44315         before checking struct stat.st_blksize, so that
44316         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44317
44318 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44319
44320         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44321         since strftime.c uses HAVE_STRFTIME to decide whether to use
44322         the underlying strftime.
44323
44324 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44325
44326         * lib/time/strftime.c (my_strftime): Make sure we call the system
44327         strftime, not ourselves, when invoking the underlying strftime.
44328
44329 2000-03-24  Jim Meyering  <meyering@lucent.com>
44330
44331         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44332         (charset_alias): Define.
44333         (install-exec-local): Factor out common code.
44334         (uninstall-local): Split lines longer than 80.
44335         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44336         (SUFFIXES): Define.
44337         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44338         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44339
44340 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44341
44342         * lib/config.charset: Output a line containing "Packages using this
44343         file".
44344         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44345         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44346         ref-del.sed): New rules.
44347
44348 2000-03-17  Jim Meyering  <meyering@lucent.com>
44349
44350         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44351         Otherwise, include <strings.h>
44352
44353 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44354
44355         * lib/unicodeio.c (utf8_wctomb): New function.
44356         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44357         format instead of in UCS-4 with platform dependent endianness.
44358
44359 2000-03-10  Jim Meyering  <meyering@lucent.com>
44360
44361         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44362         From Marco Franzen.
44363
44364 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44365
44366         * lib/savedir.c (savedir): Work even if directory size is
44367         negative; this can happen with some screwy NFS configurations.
44368
44369 2000-03-06  Jim Meyering  <meyering@lucent.com>
44370
44371         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44372         if it's NULL (because we ran out of memory).  From Bruno Haible.
44373
44374 2000-03-05  Jim Meyering  <meyering@lucent.com>
44375
44376         * lib/localcharset.c ("path-concat.h"): Include.
44377         (get_charset_aliases): Use path_concat instead of ANSI string
44378         concatenation.
44379
44380         * lib/unicodeio.h (PARAMS): Define.
44381         Use it to guard prototype.
44382
44383 2000-03-04  Jim Meyering  <meyering@lucent.com>
44384
44385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44386         for lib/localcharset.c.
44387
44388 2000-03-04  Jim Meyering  <meyering@lucent.com>
44389
44390         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44391         installing into it.
44392         (uninstall-local): Uncomment this rule so `make distcheck' works
44393         once again.
44394
44395         * lib/unicodeio.c (<errno.h>): Include it.
44396         (errno): Declare if not defined.
44397
44398         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44399
44400         * lib/config.charset: New version, incorporating remarks from a linux
44401         i18n mailing list.  From Bruno Haible.
44402
44403 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44404
44405         * m4/codeset.m4: New file.
44406         * m4/iconv.m4: New file.
44407         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44408
44409 2000-03-03  Jim Meyering  <meyering@lucent.com>
44410
44411         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44412
44413 2000-03-02  Jim Meyering  <meyering@lucent.com>
44414
44415         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44416         the messages come out on separate lines.
44417
44418         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44419         rather than jm_CHECK_DECLARATIONS.
44420         * m4/decl.m4: Remove now-unused file.
44421
44422         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44423         geteuid.
44424
44425 2000-03-02  Jim Meyering  <meyering@lucent.com>
44426
44427         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44428
44429 2000-03-01  Jim Meyering  <meyering@lucent.com>
44430
44431         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44432         * lib/unicodeio.c: Likewise.
44433
44434 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44435
44436         * lib/config.charset: New file.
44437         * lib/localcharset.c: New file.
44438         * lib/unicodeio.h, lib/unicodeio.c: New files.
44439         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44440         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44441         (noinst_HEADERS): Add unicodeio.h.
44442         (all-local, install-exec-local, charset.alias): New targets.
44443
44444 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44445
44446         * lib/quotearg.c (ALERT_CHAR): New macro.
44447         (quotearg_buffer_restyled): Use it.
44448
44449 2000-02-27  Jim Meyering  <meyering@lucent.com>
44450
44451         * m4/check-decl.m4: Add getenv to the list.
44452
44453 2000-02-27  Jim Meyering  <meyering@lucent.com>
44454
44455         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44456         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44457
44458         * lib/backupfile.c: Guard inclusion of stdlib.h with
44459         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44460         Declare malloc if needed.
44461
44462         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44463         `#ifndef HAVE_DECL..'
44464         now that autoconf always defines the HAVE_DECL_ symbols.
44465         * lib/human.c: Likewise.
44466         * lib/same.c: Likewise.
44467         * lib/strtoumax.c: Likewise.
44468
44469         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44470         declaration check was not run.
44471         * lib/hash.c: Likewise.
44472         * lib/human.c: Likewise.
44473         * lib/same.c: Likewise.
44474         * lib/strtoumax.c: Likewise.
44475
44476         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44477         `.', then first look up the entire `.'-containing string as a login
44478         name.
44479
44480 2000-02-23  Jim Meyering  <meyering@lucent.com>
44481
44482         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44483         in place of my hack.
44484
44485 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44486
44487         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44488         (textint): New typedef.
44489         (parser_control): Member year changed from int to textint.
44490         All uses changed.
44491         (YYSTYPE): Removed; replaced by %union with int and textint members.
44492         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44493         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44494         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44495         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44496         (date, number, to_year): Use width of number in digits, not its value,
44497         to determine whether it's a 2-digit year, or a 2-digit time.
44498         (yylex): Store number of digits of numeric tokens.
44499         Reported by John Kendall.
44500
44501         (parser_control): Changed from struct parser_control to typedef (for
44502         consistency).  All uses changed.
44503
44504         (tID): Removed; not used.
44505         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44506
44507 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44508
44509         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44510         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44511
44512 2000-02-12  Jim Meyering  <meyering@lucent.com>
44513
44514         * lib/userspec.c (ISDIGIT): Define it.
44515         (isdigit): Remove definition.
44516         (is_number): Use ISDIGIT, not isdigit.
44517         <libintl.h>: Include.
44518         (_ and N_): Define.
44519         (parse_user_spec): Mark translatable strings.
44520
44521 2000-02-10  Jim Meyering  <meyering@lucent.com>
44522
44523         With these changes, nanosleep.[ch] are finally enough like the other
44524         lib/* replacement files to compile on a few more losing systems.
44525
44526         * lib/nanosleep.h: Don't include config.h.
44527         Remove prototype from declaration of nanosleep.
44528         (PARAMS): Remove now-unneeded definition.
44529         * lib/nanosleep.c: #undef nanosleep.
44530         (rpl_nanosleep): Rename from nanosleep.
44531
44532 2000-02-10  Jim Meyering  <meyering@lucent.com>
44533
44534         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44535         gnu_nanosleep to rpl_nanosleep.
44536
44537 2000-02-09  Jim Meyering  <meyering@lucent.com>
44538
44539         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44540         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44541
44542 2000-02-08  Akim Demaille  <akim@epita.fr>
44543
44544         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44545         `[' and `]' and remove uses of `changequote'.
44546         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44547         (AC_SYS_LARGEFILE): Likewise.
44548         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44549         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44550         of changequote.
44551         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44552         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44553         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44554         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44555
44556 2000-02-05  Jim Meyering  <meyering@lucent.com>
44557
44558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44559         Remove explicit use of AC_HEADER_TIME.  It is required by
44560         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
44561         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44562         in autoconf whereby the expansion of the latter ended up preceding
44563         the expansion of its prerequisite, AC_HEADER_TIME.
44564         Reported by Volker Borchert.
44565
44566 2000-02-03  Jim Meyering  <meyering@lucent.com>
44567
44568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44569
44570 2000-02-03  Jim Meyering  <meyering@lucent.com>
44571
44572         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44573         rather than with `#if HAVE_UTMPNAME'.
44574
44575 2000-02-02  Jim Meyering  <meyering@lucent.com>
44576
44577         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44578         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44579         Reported by Eli Zaretskii.
44580
44581 2000-02-01  Jim Meyering  <meyering@lucent.com>
44582
44583         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
44584
44585 2000-01-31  Jim Meyering  <meyering@lucent.com>
44586
44587         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44588         functions.  Add the time.h and sys/time.h headers along with the
44589         AC_REQUIRE'ment of AC_HEADER_TIME.
44590
44591 2000-01-31  Jim Meyering  <meyering@lucent.com>
44592
44593         * lib/nanosleep.h (nanosleep): Guard declaration with
44594         `#if ! HAVE_DECL_NANOSLEEP'.
44595         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44596         the declaration in that vendor's sys/timers.h.
44597         Reported by Christian Krackowizer.
44598
44599         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44600         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44601         (ISPRINT): Likewise.
44602         Reported by Tom Tromey.
44603
44604 2000-01-30  Jim Meyering  <meyering@lucent.com>
44605
44606         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44607
44608         * m4/prereq.m4 (utmp_includes): Define.
44609         Check for ut_user and ut_name members in both struct utmpx
44610         and struct utmp.
44611
44612 2000-01-30  Jim Meyering  <meyering@lucent.com>
44613
44614         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44615         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
44616         header files where only utmpx.ut_user is declared.
44617
44618         * lib/readutmp.h (UT_USER): Define.
44619
44620 2000-01-29  Jim Meyering  <meyering@lucent.com>
44621
44622         * m4/lib-check.m4: New file containing library-related checks from
44623         fileutils and sh-utils (textutils had none).
44624
44625 2000-01-28  Jim Meyering  <meyering@lucent.com>
44626
44627         * m4/perl.m4: Change format of warning message to look more like that
44628         from the missing script.  Suggestion from François Pinard.
44629
44630 2000-01-25  Jim Meyering  <meyering@lucent.com>
44631
44632         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44633         well as time.h in the compile check.
44634         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44635         Fix typo in cross-compiling case: s/yes/no/.
44636
44637 2000-01-23  Jim Meyering  <meyering@lucent.com>
44638
44639         * m4/jm-macros.m4: Move df-related tests here from
44640         fileutils/configure.in
44641
44642         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44643         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44644
44645         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
44646         s/space/ac_fsusage_space/.
44647         (jm_FILE_SYSTEM_USAGE): Take two parameters.
44648
44649         * m4/ftruncate.m4: New file (derived from part of
44650         fileutils/configure.in).
44651         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44652         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44653
44654         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44655         AC_SUBST these here, rather than just in sh-util/configure.in, so
44656         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44657         all the same.
44658         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44659         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44660         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44661         (AC_SUBST(POW_LIBM)): Likewise.
44662         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44663
44664 2000-01-23  Jim Meyering  <meyering@lucent.com>
44665
44666         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44667         obstack.c.
44668
44669 2000-01-22  Jim Meyering  <meyering@lucent.com>
44670
44671         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44672
44673         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44674
44675         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44676         configure.in
44677         (AC_CHECK_HEADERS): Likewise for sh-utils.
44678         (AC_CHECK_HEADERS): Likewise for textutils.
44679         Merge the three lists of headers.
44680
44681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
44682         from fileutils' configure.in.
44683
44684         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
44685         code. Moved tests into their own function (_jm_DECL_HEADERS) in
44686         check-decl.m4.
44687
44688         * m4/check-decl.m4: Use #if rather than #ifdef.
44689         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
44690         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
44691         (_jm_DECL_HEADERS): Define new function.
44692         (jm_CHECK_DECLARATIONS): Require it.
44693
44694 2000-01-22  Jim Meyering  <meyering@lucent.com>
44695
44696         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
44697         [! HAVE_DECL_STRTOULL]: Declare strtoull.
44698         Required for some AIX systems.  Reported by Christian Krackowizer.
44699         [TESTING] (main): New function.
44700
44701         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
44702         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
44703         letters.
44704
44705         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
44706         iswprint.
44707
44708         * lib/strverscmp.c (ISDIGIT): Define.
44709         (strverscmp): Use ISDIGIT, not isdigit.
44710
44711 2000-01-19  Jim Meyering  <meyering@lucent.com>
44712
44713         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
44714         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
44715         defines `struct timespec' in <sys/time.h>
44716
44717         * m4/c-bs-a.m4: Remove uses of changequote altogether.
44718         Thanks to Akim for explaining.
44719
44720 2000-01-17  Paul Eggert  <eggert@twinsun.com>
44721
44722         * lib/nanosleep.c (nanosleep):
44723         Don't use SA_INTERRUPT to decide whether to call sigaction, as
44724         POSIX.1 doesn't require SA_INTERRUPT and some systems
44725         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
44726         it's been part of POSIX.1 since day 1 (in 1988).
44727
44728 2000-01-17  Jim Meyering  <meyering@lucent.com>
44729
44730         * lib/interlock: Remove unused file.  Reported by François Pinard.
44731
44732 2000-01-16  Paul Eggert  <eggert@twinsun.com>
44733
44734         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
44735         alert, backslash, formfeed, and vertical tab unnecessarily in
44736         shell quoting style.
44737
44738 2000-01-16  Jim Meyering  <meyering@lucent.com>
44739
44740         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
44741         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
44742         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
44743         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
44744
44745 2000-01-16  Jim Meyering  <meyering@lucent.com>
44746
44747         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
44748         because the latter didn't work.
44749
44750 2000-01-15  Jim Meyering  <meyering@lucent.com>
44751
44752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
44753         (AC_REPLACE_FUNCS): Add memcpy and memset.
44754         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
44755         Add strpbrk.
44756         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
44757
44758 2000-01-12  Jim Meyering  <meyering@lucent.com>
44759
44760         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
44761         (jm_PREREQ): Use it.
44762         (jm_PREREQ_READUTMP): New macro.
44763         (jm_PREREQ): Use it.
44764
44765 2000-01-11  Paul Eggert  <eggert@twinsun.com>
44766
44767         Quote multibyte characters correctly.
44768         * m4/c-bs-a.m4: New file.
44769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
44770         (jm_PREREQ): Use it.
44771
44772 2000-01-11  Paul Eggert  <eggert@twinsun.com>
44773
44774         * m4/uintmax_t.m4: Port to autoconf 2.13.
44775
44776 2000-01-08  Jim Meyering  <meyering@ascend.com>
44777
44778         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
44779         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
44780
44781 2000-01-04  Jim Meyering  <meyering@ascend.com>
44782
44783         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
44784         jm_STRUCT_DIRENT_D_TYPE.
44785         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
44786         jm_STRUCT_DIRENT_D_INO.
44787         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
44788         jm_STRUCT_UTIMBUF.
44789         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
44790         renamings.
44791         * m4/utime.m4: Likewise.
44792
44793         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
44794         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
44795
44796 2000-01-03  Paul Eggert  <eggert@twinsun.com>
44797
44798         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
44799         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
44800
44801 2000-01-02  Jim Meyering  <meyering@ascend.com>
44802
44803         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
44804         remember if this is necessary.
44805
44806 1999-12-26  Jim Meyering  <meyering@ascend.com>
44807
44808         * m4/jm-macros.m4: Use it here.
44809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
44810
44811 1999-12-23  Jim Meyering  <meyering@ascend.com>
44812
44813         * m4/jm-macros.m4: Check for clock_gettime (moved from
44814         fileutils/configure.in)
44815         Check for gettimeofday.
44816
44817 1999-12-20  Jim Meyering  <meyering@ascend.com>
44818
44819         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
44820         autoconf-2.14a-1999-12-20.
44821
44822 1999-12-19  Jim Meyering  <meyering@ascend.com>
44823
44824         * m4/lstat-slash.m4: New file.
44825         * m4/jm-macros.m4: Use the new macro:
44826         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44827
44828 1999-12-07  Jim Meyering  <meyering@ascend.com>
44829
44830         * m4/perl.m4: Require that File::Compare be available, too.
44831         Too many systems seem to lack it.
44832
44833         * m4/strftime.m4: Add checks for most of the cpp macros tested in
44834         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
44835
44836 1999-11-18  Paul Eggert  <eggert@twinsun.com>
44837
44838         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
44839         problem with the QNX 4.25 shell, which doesn't propagate exit
44840         status of failed commands inside shell assignments.
44841
44842 1999-11-17  Jim Meyering  <meyering@ascend.com>
44843
44844         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
44845
44846 1999-11-07  Jim Meyering  <meyering@ascend.com>
44847
44848         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
44849
44850 1999-11-06  Jim Meyering  <meyering@ascend.com>
44851
44852         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
44853         * m4/jm-macros.m4 (jm_MACROS): Use it here.
44854
44855 1999-11-05  Jim Meyering  <meyering@ascend.com>
44856
44857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
44858         configure.in of textutils, fileutils, and sh-utils into this one
44859         (shared between those packages) file.
44860         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
44861         AC_STRUCT_ST_BLKSIZE.
44862
44863 1999-11-03  Jim Meyering  <meyering@ascend.com>
44864
44865         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
44866         of AC_CHECK_TYPE checks includes unistd.h.
44867         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
44868         Suggestion from Akim Demaille.
44869
44870 1999-10-30  Jim Meyering  <meyering@ascend.com>
44871
44872         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
44873         m4-quoted string.
44874         * m4/ls-mntd-fs.m4: Likewise.
44875         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
44876         * m4/jm-winsz1.m4: Likewise.
44877
44878         * m4/const.m4: Remove file, since the fix made it into the experimental
44879         version of autoconf.
44880         * m4/mktime.m4: Likewise.
44881
44882         * m4/check-type.m4: Remove file, now that the latest version of
44883         AC_CHECK_TYPE takes a third arg to specify additional #includes.
44884
44885         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
44886         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
44887         AC_CHECK_TYPE.
44888
44889 1999-10-04  Jim Meyering  <meyering@ascend.com>
44890
44891         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
44892
44893 1999-09-22  Paul Eggert  <eggert@twinsun.com>
44894
44895         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
44896         2.95.1 bug with HP-UX 10.20.
44897
44898 1999-09-17  Jim Meyering  <meyering@ascend.com>
44899
44900         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
44901         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
44902         due to missing strdup (against sh-utils-2.0).
44903
44904 1999-08-29  Jim Meyering  <meyering@ascend.com>
44905
44906         * m4/jm-macros.m4: Require jm_BISON.
44907         * m4/bison.m4: New file.
44908
44909 1999-08-17  Paul Eggert  <eggert@twinsun.com>
44910
44911         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
44912         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
44913
44914 1999-08-05  Jim Meyering  <meyering@ascend.com>
44915
44916         * m4/getline.m4: Rename test file from conftestdata to conftest.data
44917         to avoid conflicts with `conftest' on 8+3 filesystems.
44918         Suggestion from Eli Zaretskii.
44919
44920 1999-08-04  Jim Meyering  <meyering@ascend.com>
44921
44922         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44923         fileutils and sh-utils (textutils's getline test was inadequate).
44924         (AM_FUNC_GETLINE): Run this test.
44925         (AC_CHECK_FUNCS): Check for getdelim.
44926         Reported by Bob Proulx.
44927
44928 1999-08-02  Jim Meyering  <meyering@ascend.com>
44929
44930         * m4/jm-macros.m4: Add a comment.
44931
44932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44933
44934         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
44935         <inttypes.h> defines strtoumax as a macro (and not as a
44936         function).
44937
44938 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44939
44940         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44941         that we can shift, multiply and divide unsigned long long
44942         values; Ultrix cc can't do it.
44943
44944 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44945
44946         * m4/mktime.m4: New file, which is a preview of what should appear
44947         in the next public autoconf release.
44948
44949 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44950
44951         * m4/lfs.m4: Remove this file.
44952         * m4/largefile.m4: New file.  It contains the old contents of
44953         lfs.m4, except that all names with prefix AC_LFS have been
44954         changed to use the prefix AC_SYS_LARGEFILE instead, to be
44955         compatible with future autoconf versions.  Also, some minor m4
44956         quoting problems have been fixed.
44957
44958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44959
44960         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44961         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44962         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44963         and simplify the shell code.
44964
44965 1999-08-01  Jim Meyering  <meyering@ascend.com>
44966
44967         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44968         m4.
44969
44970 1999-07-20  Jim Meyering  <meyering@ascend.com>
44971
44972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44973
44974 1999-07-15  Jim Meyering  <meyering@ascend.com>
44975
44976         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44977
44978 1999-05-22  Jim Meyering  <meyering@ascend.com>
44979
44980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44981
44982 1999-05-20  Jim Meyering  <meyering@ascend.com>
44983
44984         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44985         Add a colon after each `then' in case $4 is empty.
44986
44987 1999-05-16  Jim Meyering  <meyering@ascend.com>
44988
44989         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44990
44991 1999-05-10  Jim Meyering  <meyering@ascend.com>
44992
44993         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44994
44995         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44996         AC_FUNC_MKTIME.
44997
44998 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
44999
45000         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45001
45002 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45003
45004         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45005         not CPPFLAGS, so that linking works correctly in IRIX.
45006
45007 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45008
45009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45010
45011 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45012
45013         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45014         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45016         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45017         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45018
45019         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45020
45021 1999-04-20  Jim Meyering  <meyering@ascend.com>
45022
45023         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45024         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45025         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45026
45027 1999-04-18  Jim Meyering  <meyering@ascend.com>
45028
45029         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45030         * m4/jm-macros.m4: Use it.
45031
45032 1999-04-06  Jim Meyering  <meyering@ascend.com>
45033
45034         * m4/strftime.m4: Remove test for %f.
45035
45036 1999-03-29  Jim Meyering  <meyering@ascend.com>
45037
45038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45039         superset of the AC_TYPE_* checks in the textutils, fileutils,
45040         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45041         AC_TYPE_PID_T.
45042
45043 1999-03-28  Jim Meyering  <meyering@ascend.com>
45044
45045         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45046         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45047         replaced e.g., in the *.sh files of the sh-utils.
45048
45049 1999-03-20  Jim Meyering  <meyering@ascend.com>
45050
45051         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45052         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45053         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45054
45055 1999-03-19  Jim Meyering  <meyering@ascend.com>
45056
45057         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45058
45059 1999-03-12  Jim Meyering  <meyering@ascend.com>
45060
45061         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45062
45063 1999-03-07  Jim Meyering  <meyering@ascend.com>
45064
45065         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45066         declared.
45067
45068 1999-02-17  Jim Meyering  <meyering@ascend.com>
45069
45070         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45071         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45072
45073 1999-02-07  Jim Meyering  <meyering@ascend.com>
45074
45075         * m4/group-member.m4: New file -- extracted from sh-utils'
45076         configure.in.
45077
45078         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45079         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45080
45081 1999-02-06  Jim Meyering  <meyering@ascend.com>
45082
45083         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45084         * m4/fnmatch.m4: Likewise.
45085         * m4/getgroups.m4: Likewise.
45086         * m4/lstat.m4: Likewise.
45087         * m4/malloc.m4: Likewise.
45088         * m4/putenv.m4: Likewise.
45089         * m4/realloc.m4: Likewise.
45090         * m4/regex.m4: Likewise.
45091         * m4/stat.m4: Likewise.
45092         * m4/strftime.m4: Likewise.
45093         Suggestion from Alain Magloire.
45094
45095         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45096         * m4/fnmatch.m4: Likewise.
45097         * m4/getgroups.m4: Likewise.
45098         * m4/getline.m4: Likewise.
45099         * m4/lstat.m4: Likewise.
45100         * m4/malloc.m4: Likewise.
45101         * m4/memcmp.m4: Likewise.
45102         * m4/putenv.m4: Likewise.
45103         * m4/realloc.m4: Likewise.
45104         * m4/regex.m4: Likewise.
45105         * m4/stat.m4: Likewise.
45106         * m4/strftime.m4: Likewise.
45107         Suggestion from Alain Magloire.
45108
45109         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45110         an argument.
45111
45112         * m4/regex.m4: Add a run-time Test for proper operation of
45113         re_compile_pattern.
45114
45115 1999-01-31  Jim Meyering  <meyering@ascend.com>
45116
45117         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45118
45119 1999-01-30  Jim Meyering  <meyering@ascend.com>
45120
45121         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45122
45123         * m4/jm-mktime.m4: Make this a wrapper around the official
45124         AM_FUNC_MKTIME rather than my private copy, now that the official one
45125         is up to date.
45126         * m4/mktime.m4: Remove file.
45127
45128         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45129         * m4/uptime.m4: Likewise.
45130         * m4/uintmax_t.m4: Likewise.
45131
45132 1999-01-28  Jim Meyering  <meyering@ascend.com>
45133
45134         * m4/jm-macros.m4: Use jm_AFS.
45135         * m4/afs.m4: New file (from fileutils' configure.in).
45136
45137         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45138         * m4/chown.m4: Likewise.
45139         * m4/d-ino.m4: Likewise.
45140         * m4/d-type.m4: Likewise.
45141         * m4/fnmatch.m4: Likewise.
45142         * m4/getgroups.m4: Likewise.
45143         * m4/gettext.m4: Likewise.
45144         * m4/jm-mktime.m4: Likewise.
45145         * m4/jm-winsz2.m4: Likewise.
45146         * m4/lcmessage.m4: Likewise.
45147         * m4/ls-mntd-fs.m4: Likewise.
45148         * m4/malloc.m4: Likewise.
45149         * m4/memcmp.m4: Likewise.
45150         * m4/putenv.m4: Likewise.
45151         * m4/realloc.m4: Likewise.
45152         * m4/st_mtim.m4: Likewise.
45153         * m4/strftime.m4: Likewise.
45154
45155 1999-01-16  Jim Meyering  <meyering@ascend.com>
45156
45157         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45158         (ARGMATCH_DIE_DECL): Define.
45159
45160 1999-01-12  Jim Meyering  <meyering@ascend.com>
45161
45162         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45163         Reported by Lars Hecking.
45164
45165 1999-01-10  Jim Meyering  <meyering@ascend.com>
45166
45167         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45168         gross kludge.
45169         * m4/inttypes_h.m4: Likewise.
45170         * m4/lstat.m4: Likewise.
45171         * m4/malloc.m4: Likewise.
45172         * m4/readdir.m4: Likewise.
45173         * m4/realloc.m4: Likewise.
45174         * m4/st_dm_mode.m4: Likewise.
45175         * m4/stat.m4: Likewise.
45176         * m4/utimbuf.m4: Likewise.
45177         * m4/utimes.m4: Likewise.
45178
45179         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45180         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45181         comments in config.h.in are meaningful.
45182
45183         * m4/jm-macros.m4: Require autoconf-2.13 here.
45184
45185         * m4/regex.m4: By default, don't use the included regex.c on systems
45186         with glibc 2.  Suggestion from Uli Drepper.
45187
45188 1999-01-02  Jim Meyering  <meyering@ascend.com>
45189
45190         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45191
45192 1998-12-18  Jim Meyering  <meyering@ascend.com>
45193
45194         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45195         Based on a suggestion from Lars Hecking.
45196
45197 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45198
45199         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45200
45201 1998-11-16  Jim Meyering  <meyering@ascend.com>
45202
45203         * m4/lfs.m4: Double-quote the `uname...` expression.
45204
45205 1998-11-14  Jim Meyering  <meyering@ascend.com>
45206
45207         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45208         * m4/stat.m4: Likewise.
45209
45210 1998-11-03  Jim Meyering  <meyering@ascend.com>
45211
45212         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45213         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45214
45215 1998-10-18  Jim Meyering  <meyering@ascend.com>
45216
45217         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45218
45219 1998-10-17  Jim Meyering  <meyering@ascend.com>
45220
45221         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45222         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45223         calls for those previously hard-coded headers.  Instead, take a new
45224         parameter.
45225         (jm_CHECK_DECLARATIONS): Reflect interface change.
45226         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45227         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45228
45229         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45230
45231 1998-10-14  Jim Meyering  <meyering@ascend.com>
45232
45233         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45234         instead of "TZ=America/Vancouver".  From Paul Eggert.
45235
45236 1998-10-11  Jim Meyering  <meyering@ascend.com>
45237
45238         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45239         This adds a test for a recently added compatibility fix for mktime.c.
45240         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45241
45242 1998-09-27  Jim Meyering  <meyering@ascend.com>
45243
45244         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45245
45246         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45247         ../configure.in, including a change from Gordon Matzigkeit to allow
45248         cross-compiling for the Hurd.
45249
45250         * m4/glibc.m4: New file/macro to test for the GNU C Library
45251         versions 1 and 2.  From Gordon Matzigkeit.
45252         Indent.
45253
45254 1998-09-21  Jim Meyering  <meyering@ascend.com>
45255
45256         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45257
45258 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45259
45260         Port nanosecond-resolution times to UnixWare 2.1.2 and
45261         pedantic Solaris 2.6.
45262
45263         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45264         AC_STRUCT_ST_MTIM.
45265         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45266         Generate name of ns member, instead of just 1 or undef.
45267         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45268
45269 1998-08-15  Jim Meyering  <meyering@ascend.com>
45270
45271         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45272         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45273         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45274         instead of jm_TYPE_SSIZE_T.
45275
45276 1998-08-12  Jim Meyering  <meyering@ascend.com>
45277
45278         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45279
45280 1998-08-02  Jim Meyering  <meyering@ascend.com>
45281
45282         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45283         in acconfig.h manually.
45284
45285 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45286
45287         * m4/st_mtim.m4: New file.
45288
45289 1998-07-28  Jim Meyering  <meyering@ascend.com>
45290
45291         * m4/utimes.m4: Undef stat.
45292
45293 1998-07-25  Jim Meyering  <meyering@ascend.com>
45294
45295         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45296         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45297
45298 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45299
45300         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45301         uid and gid actually remain unchanged.
45302
45303 1998-07-07  Jim Meyering  <meyering@ascend.com>
45304
45305         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45306
45307 1998-07-04  Jim Meyering  <meyering@ascend.com>
45308
45309         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45310         to prove that this macro can be used in packages without regex.c.
45311
45312 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45313
45314         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45315         is to be used.
45316
45317 1998-07-03  Jim Meyering  <meyering@ascend.com>
45318
45319         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45320
45321         * m4/gettext.m4: New file -- from gettext-0.10.35.
45322         * m4/lcmessage.m4: Likewise.
45323         * m4/progtest.m4: Likewise.
45324
45325         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45326         * m4/jm-macros.m4: Require the new macro.
45327
45328 1998-06-29  Jim Meyering  <meyering@ascend.com>
45329
45330         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45331         for the definition of NGROUPS (used in a system header included
45332         by sys/mount.h).
45333
45334 1998-06-28  Jim Meyering  <meyering@ascend.com>
45335
45336         * m4/ls-mntd-fs.m4: New file.
45337         * m4/fstypename.m4: New file.
45338
45339         * m4/jm-macros.m4: Require the new macro.
45340         * m4/jm-glibc-io.m4: New file.
45341
45342 1998-05-19  Jim Meyering  <meyering@ascend.com>
45343
45344         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45345         * m4/lchown.m4: New file.
45346
45347         * m4/Makefile.am.in: New file.
45348         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45349
45350 1998-05-14  Jim Meyering  <meyering@ascend.com>
45351
45352         * m4/Makefile.am (EXTRA_DIST): Add them.
45353         * m4/jm-macros.m4: New file.
45354         * m4/utimbuf.m4: New file.
45355
45356 1998-05-12  Jim Meyering  <meyering@ascend.com>
45357
45358         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45359
45360 1998-05-11  Jim Meyering  <meyering@ascend.com>
45361
45362         * m4/isc-posix.m4: New file.
45363
45364 1998-05-10  Jim Meyering  <meyering@ascend.com>
45365
45366         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45367
45368 1998-05-09  Jim Meyering  <meyering@ascend.com>
45369
45370         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45371         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45372         with automake.
45373
45374         * m4/ssize_t.m4: New file.
45375         * m4/mktime.m4: Remove file -- the new automake has this now.
45376
45377 1998-04-26  Jim Meyering  <meyering@ascend.com>
45378
45379         * m4/assert.m4: New file.
45380         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45381
45382 1998-04-05  Jim Meyering  <meyering@ascend.com>
45383
45384         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45385         (jm_PREREQ): Use it here.
45386
45387 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45388
45389         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45390         in acconfig.h.
45391
45392 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45393
45394         * m4/prereq.m4: New file.
45395         * m4/error.m4: New file.
45396         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45397
45398 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45399
45400         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45401         cache-check for the same variable -- that defeated the purpose of
45402         the test; the test program was never run.  This was a problem only
45403         on systems with losing getline functions -- HP-UX 10.20 is one.
45404         Reported by Bjorn Helgaas.
45405
45406 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45407
45408         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45409
45410 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45411
45412         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45413
45414         * m4/const.m4: New file.  Use an initializer in this declaration
45415         typedef int charset[2]; const charset x;
45416         Reported by Bob Glickstein.
45417
45418 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45419
45420         * m4/chown.m4: Fix reversed types on -1 args to chown.
45421         From Kaveh Ghazi.
45422
45423 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45424
45425         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45426         Add lseek and memchr.
45427
45428         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45429         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45430         have a 20-character limit on names.
45431
45432 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45433
45434         * m4/inttypes_h.m4: New file.
45435         * m4/uintmax_t.m4: New file.
45436         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45437
45438
45439         -----
45440
45441         Local Variables:
45442         coding: utf-8
45443         End:
45444
45445         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45446
45447         Copying and distribution of this file, with or without
45448         modification, are permitted provided the copyright notice
45449         and this notice are preserved.