1 2008-11-05 Ben Pfaff <blp@gnu.org>
3 Fix lib/close.c build on Windows.
4 * modules/close (Files): Add lib/w32sock.h.
6 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
8 Accept Bison's NEWS format.
9 * build-aux/announce-gen (print_news_deltas): Tweak
12 2008-11-04 Bruno Haible <bruno@clisp.org>
14 * modules/random_r (Maintainer): Add glibc.
16 2008-11-04 Simon Josefsson <simon@josefsson.org>
18 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19 by karl@freefriends.org (Karl Berry).
20 * doc/alloca.texi: Likewise.
21 * doc/c-ctype.texi: Likewise.
22 * doc/c-strcase.texi: Likewise.
23 * doc/c-strcaseeq.texi: Likewise.
24 * doc/c-strcasestr.texi: Likewise.
25 * doc/c-strstr.texi: Likewise.
26 * doc/c-strtod.texi: Likewise.
27 * doc/c-strtold.texi: Likewise.
28 * doc/ctime.texi: Likewise.
29 * doc/error.texi: Likewise.
30 * doc/fdl.texi: Likewise.
31 * doc/gcd.texi: Likewise.
32 * doc/getdate.texi: Likewise.
33 * doc/gnulib-intro.texi: Likewise.
34 * doc/gnulib-tool.texi: Likewise.
35 * doc/gnulib.texi: Likewise.
36 * doc/inet_ntoa.texi: Likewise.
37 * doc/maintain.texi: Likewise.
38 * doc/make-stds.texi: Likewise.
39 * doc/quote.texi: Likewise.
40 * doc/regexprops-generic.texi: Likewise.
41 * doc/standards.texi: Likewise.
42 * doc/verify.texi: Likewise.
43 * doc/visibility.texi: Likewise.
44 * doc/gnulib.texi (GNU Free Documentation License): Include
45 fdl-1.3.texi instead of fdl.texi.
47 2008-11-04 Simon Josefsson <simon@josefsson.org>
49 * doc/fdl-1.3.texi: New file, from
50 <http://www.gnu.org/licenses/fdl-1.3.texi>.
51 * modules/fdl-1.3: Add.
52 * MODULES.html.sh: Add fdl-1.3.
54 2008-11-03 Bruno Haible <bruno@clisp.org>
56 Make determination of absolute name of header file work with AIX xlc.
57 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
58 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
60 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63 2008-11-03 Simon Josefsson <simon@josefsson.org>
65 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
66 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
69 2008-11-02 Bruno Haible <bruno@clisp.org>
71 Mark 'strpbrk' obsolete.
72 * modules/strpbrk (Status, Notice): New sections.
73 * modules/strtok_r (Depends-on): Add strpbrk.
75 2008-11-02 Bruno Haible <bruno@clisp.org>
77 Mark 'strdup' obsolete.
78 * modules/strdup (Status, Notice): New sections.
79 * modules/findprog (Depends-on): Add strdup.
80 * modules/getaddrinfo (Depends-on): Likewise.
81 * modules/localename (Depends-on): Likewise.
82 * modules/relocatable-lib (Depends-on): Likewise.
83 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
84 * modules/relocatable-prog (Depends-on): Likewise.
85 * modules/trim (Depends-on): Likewise.
86 * modules/unictype/gen-ctype (Depends-on): Likewise.
87 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89 2008-11-02 Bruno Haible <bruno@clisp.org>
91 Mark 'strcspn' obsolete.
92 * modules/strcspn (Status, Notice): New sections.
94 2008-11-02 Bruno Haible <bruno@clisp.org>
96 Mark 'rmdir' obsolete.
97 * modules/rmdir (Status, Notice): New sections.
98 * modules/clean-temp (Depends-on): Add rmdir.
99 * modules/openat (Depends-on): Likewise.
101 2008-11-02 Bruno Haible <bruno@clisp.org>
103 Mark 'raise' obsolete.
104 * modules/raise (Status, Notice): New sections.
105 (Include): Specify <signal.h>.
106 * modules/stdio (Depends-on): Add raise.
107 * modules/write (Depends-on): Likewise.
109 2008-11-02 Bruno Haible <bruno@clisp.org>
111 Mark 'memset' obsolete.
112 * modules/memset (Status, Notice): New sections.
114 2008-11-02 Bruno Haible <bruno@clisp.org>
116 Mark 'memmove' obsolete.
117 * modules/memmove (Status, Notice): New sections.
118 * modules/argp (Depends-on): Add memmove.
119 * modules/argz (Depends-on): Likewise.
120 * modules/canonicalize (Depends-on): Likewise.
121 * modules/canonicalize-lgpl (Depends-on): Likewise.
122 * modules/fts (Depends-on): Likewise.
123 * modules/getcwd (Depends-on): Likewise.
124 * modules/human (Depends-on): Likewise.
125 * modules/regex (Depends-on): Likewise.
126 * modules/striconveh (Depends-on): Likewise.
127 * modules/trim (Depends-on): Likewise.
128 * modules/unistr/u8-move (Depends-on): Likewise.
129 * modules/unistr/u16-move (Depends-on): Likewise.
130 * modules/unistr/u32-move (Depends-on): Likewise.
132 2008-11-02 Bruno Haible <bruno@clisp.org>
134 Mark 'memcpy' obsolete.
135 * modules/memcpy (Status, Notice): New sections.
137 2008-11-02 Bruno Haible <bruno@clisp.org>
139 Mark 'memcmp' obsolete.
140 * modules/memcmp (Status, Notice): New sections.
141 * modules/argmatch (Depends-on): Add memchr.
142 * modules/backupfile (Depends-on): Likewise.
143 * modules/c-strcasestr (Depends-on): Likewise.
144 * modules/crypto/des (Depends-on): Likewise.
145 * modules/csharpcomp (Depends-on): Likewise.
146 * modules/fnmatch (Depends-on): Likewise.
147 * modules/git-merge-changelog (Depends-on): Likewise.
148 * modules/isnand (Depends-on): Likewise.
149 * modules/isnand-nolibm (Depends-on): Likewise.
150 * modules/isnanf (Depends-on): Likewise.
151 * modules/isnanf-nolibm (Depends-on): Likewise.
152 * modules/isnanl (Depends-on): Likewise.
153 * modules/isnanl-nolibm (Depends-on): Likewise.
154 * modules/mbchar (Depends-on): Likewise.
155 * modules/memcoll (Depends-on): Likewise.
156 * modules/quotearg (Depends-on): Likewise.
157 * modules/regex (Depends-on): Likewise.
158 * modules/relocatable-prog (Depends-on): Likewise.
159 * modules/same (Depends-on): Likewise.
160 * modules/signbit (Depends-on): Likewise.
161 * modules/strcasestr-simple (Depends-on): Likewise.
162 * modules/unictype/gen-ctype (Depends-on): Likewise.
163 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
164 * modules/uniname/uniname (Depends-on): Likewise.
165 * modules/unistr/u8-cmp (Depends-on): Likewise.
167 2008-11-02 Bruno Haible <bruno@clisp.org>
169 Mark 'memchr' obsolete.
170 * modules/memchr (Status, Notice): New sections.
171 * modules/argp (Depends-on): Add memchr.
172 * modules/base64 (Depends-on): Likewise.
173 * modules/c-strcasestr (Depends-on): Likewise.
174 * modules/chdir-long (Depends-on): Likewise.
175 * modules/fnmatch (Depends-on): Likewise.
176 * modules/getsubopt (Depends-on): Likewise.
177 * modules/git-merge-changelog (Depends-on): Likewise.
178 * modules/glob (Depends-on): Likewise.
179 * modules/strcasestr-simple (Depends-on): Likewise.
180 * modules/strnlen (Depends-on): Likewise.
182 2008-11-02 Bruno Haible <bruno@clisp.org>
184 Mark 'atexit' obsolete.
185 * modules/atexit (Status, Notice): New sections.
186 * modules/chdir-long (Depends-on): Add atexit.
187 * modules/wait-process (Depends-on): Likewise.
189 2008-11-02 Bruno Haible <bruno@clisp.org>
191 * gnulib-tool: New option --with-obsolete.
192 (func_usage): Document it.
193 (func_modules_transitive_closure): Drop obsolete dependencies if
194 incobsolete is not true.
195 (func_import): Read and save the incobsolete variable to the cache.
197 2008-11-02 Bruno Haible <bruno@clisp.org>
199 * modules/TEMPLATE-EXTENDED: New field 'Status'.
200 * gnulib-tool: New option --extract-status.
201 (func_usage): Document it.
202 (sed_extract_prog): Recognize it.
203 (func_get_status): New function.
205 2008-10-30 Simon Josefsson <simon@josefsson.org>
207 * modules/sockets (License): Change from LGPL to LGPLv2+.
209 2008-10-28 Simon Josefsson <simon@josefsson.org>
211 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
213 2008-10-28 Simon Josefsson <simon@josefsson.org>
215 * MODULES.html.sh (Support for systems lacking POSIX:2001):
216 Mention times and sys_times.
217 * modules/sys_times, modules/sys_times-tests: New modules.
218 * modules/times, modules/times-tests: Likewise
219 * m4/sys_times_h.m4: New file.
220 * lib/sys_times.in.h: Likewise
221 * lib/times.c: Likewise.
222 * tests/test-sys_times.c: Likewise.
223 * tests/test-times.c: Likewise.
224 * doc/posix-headers/sys_times.texi: Update.
225 * doc/posix-functions/times.texi: Update.
227 2008-10-28 Jim Meyering <meyering@redhat.com>
229 * modules/tempname (Depends-on): Add lstat.
231 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
233 2008-10-28 Simon Josefsson <simon@josefsson.org>
235 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
236 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
237 using idiom used elsewhere in gnulib.
239 2008-10-27 Jim Meyering <meyering@redhat.com>
241 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
243 2008-10-27 Simon Josefsson <simon@josefsson.org>
245 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
246 TESTS_ENVIRONMENT, for shell scripts that needs to call built
248 * tests/test-argp-2.sh: Use $EXEEXT when needed.
250 2008-10-27 Simon Josefsson <simon@josefsson.org>
252 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
254 2008-10-27 Bruno Haible <bruno@clisp.org>
256 * tests/test-lstat.c: Include <stdio.h>.
258 2008-10-27 Simon Josefsson <simon@josefsson.org>
260 * modules/lstat-tests: New module.
261 * tests/test-lstat.c: New file.
263 2008-10-26 Jim Meyering <meyering@redhat.com>
265 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
267 2008-10-26 Simon Josefsson <simon@josefsson.org>
268 Bruno Haible <bruno@clisp.org>
270 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
271 * modules/configmake (Include): Add a note that the include must come
272 after all system headers.
273 * lib/javaversion.c: Include configmake.h after all other includes.
275 2008-10-26 Bruno Haible <bruno@clisp.org>
277 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
278 HAVE_STRUCT_RANDOM_DATA to 1.
279 (gl_STDLIB_H): Simplify.
281 2008-10-26 Simon Josefsson <simon@josefsson.org>
283 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
284 substitute HAVE_STRUCT_RANDOM_DATA.
285 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
287 * modules/stdlib (Makefile.am): Substitute
288 HAVE_STRUCT_RANDOM_DATA.
290 2008-10-26 Simon Josefsson <simon@josefsson.org>
292 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
293 * doc/gnulib-intro.texi (Copyright): Likewise.
295 2008-10-26 Simon Josefsson <simon@josefsson.org>
297 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
300 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
301 Bruno Haible <bruno@clisp.org>
303 * lib/unistd.in.h: Include <winsock2.h>.
304 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
305 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
306 Provide dummy declarations.
307 (gethostname): Override.
308 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
309 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
310 gl_PREREQ_SYS_H_WINSOCK2.
311 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
312 * doc/posix-functions/gethostname.texi: More details.
314 2008-10-25 Bruno Haible <bruno@clisp.org>
316 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
317 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
318 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
320 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
322 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
323 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
324 gl_UNISTD_H_DEFAULTS.
326 2008-10-25 Eric Blake <ebb9@byu.net>
328 signbit: avoid spurious compiler failure
329 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
330 declarations inside function.
332 2008-10-24 Simon Josefsson <simon@josefsson.org>
333 Bruno Haible <bruno@clisp.org>
335 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
336 * modules/random_r (Depends-on): Add stdint.
338 2008-10-24 Bruno Haible <bruno@clisp.org>
340 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
342 * modules/strerror (License): Likewise.
344 2008-10-24 Jim Meyering <meyering@redhat.com>
346 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
347 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
349 2008-10-24 Eric Blake <ebb9@byu.net>
351 getgroups: fix compilation when getgroups is available
352 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
353 but with <config.h> override of getgroups disabled.
355 2008-10-24 Simon Josefsson <simon@josefsson.org>
357 * doc/gnulib.texi (Header files): Add note about C++ problems.
358 Explained by Bruno Haible <bruno@clisp.org>.
360 2008-10-23 Bruno Haible <bruno@clisp.org>
362 Define a dummy SA_NODEFER macro on Interix.
363 * lib/signal.in.h (SA_NODEFER): Define fallback.
364 Reported by Aleksey Cheusov <cheusov@tut.by> via
365 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
367 2008-10-23 Bruno Haible <bruno@clisp.org>
369 * modules/freadahead (License): Change to LGPLv2+.
370 Suggested by Simon Josefsson.
372 2008-10-23 Jim Meyering <meyering@redhat.com>
375 * modules/random_r: New file.
376 * m4/random_r.m4: New file.
377 * lib/random_r.c: New file, from glibc.
378 * modules/random_r-tests: New file.
379 * tests/test-random_r.c: New file.
380 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
383 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
384 * modules/stdlib: Substitute them, too.
385 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
386 * doc/glibc-functions/initstate_r.texi: Mention the new module.
387 * doc/glibc-functions/random_r.texi: Likewise.
388 * doc/glibc-functions/setstate_r.texi: Likewise.
389 * doc/glibc-functions/srandom_r.texi: Likewise.
390 * config/srclist.txt: Mention it.
392 2008-10-23 David Lutterkort <lutter@redhat.com>
394 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
397 2008-10-23 Jim Meyering <meyering@redhat.com>
399 selinux-h: mark parameters of stub functions as intentionally unused
400 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
401 * lib/se-context.in.h: Likewise.
403 2008-10-22 Simon Josefsson <simon@josefsson.org>
405 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
407 2008-10-22 Simon Josefsson <simon@josefsson.org>
409 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
411 2008-10-22 Eric Blake <ebb9@byu.net>
413 glthread/thread: avoid compiler warning
414 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
415 Add unreachable abort to silence compiler.
417 2008-10-22 Eric Blake <ebb9@byu.net>
419 netdb: also supply struct addrinfo for cygwin 1.5.x
420 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
422 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
424 * doc/posix-headers/netdb.texi (netdb.h): Document this.
426 2008-10-22 Bruno Haible <bruno@clisp.org>
428 * users.txt: Update entry about pspp.
430 2008-10-21 Bruno Haible <bruno@clisp.org>
433 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
434 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
437 * lib/ioctl.c (ioctl): Don't undefine.
438 * lib/socket.c (socket): Don't undefine.
440 Remove unused module indicator macros.
441 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
442 GNULIB_$1 as a C macro.
444 * doc/posix-functions/close.texi: Undo last change.
445 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
448 2008-10-21 Bruno Haible <bruno@clisp.org>
450 Add gethostname() declaration to <unistd.h>.
451 * lib/unistd.in.h (gethostname): New declaration.
452 * lib/gethostname.c: Include <unistd.h>.
453 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
454 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
455 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
456 and HAVE_GETHOSTNAME.
457 * modules/gethostname (Depends-on): Add unistd.
458 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
459 (Include): Specify <unistd.h>.
460 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
462 * tests/test-gethostname.c: Include <unistd.h> first.
464 2008-10-21 Bruno Haible <bruno@clisp.org>
466 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
467 * modules/select-tests (Depends-on): Likewise.
468 Reported by Simon Josefsson.
470 2008-10-21 Simon Josefsson <simon@josefsson.org>
472 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
473 * lib/accept.c: New file, based on winsock.c.
474 * lib/bind.c: New file, based on winsock.c.
475 * lib/connect.c: New file, based on winsock.c.
476 * lib/getpeername.c: New file, based on winsock.c.
477 * lib/getsockname.c: New file, based on winsock.c.
478 * lib/getsockopt.c: New file, based on winsock.c.
479 * lib/ioctl.c: New file, based on winsock.c.
480 * lib/listen.c: New file, based on winsock.c.
481 * lib/recv.c: New file, based on winsock.c.
482 * lib/recvfrom.c: New file, based on winsock.c.
483 * lib/send.c: New file, based on winsock.c.
484 * lib/sendto.c: New file, based on winsock.c.
485 * lib/setsockopt.c: New file, based on winsock.c.
486 * lib/shutdown.c: New file, based on winsock.c.
487 * lib/socket.c: New file, based on winsock.c.
488 * lib/w32sock.h: New file, based on winsock.c.
489 * lib/winsock.c: Remove file.
490 * modules/accept: Likewise.
491 * modules/bind: Likewise.
492 * modules/connect: Likewise.
493 * modules/getpeername: Likewise.
494 * modules/getsockname: Likewise.
495 * modules/getsockopt: Likewise.
496 * modules/ioctl: Likewise.
497 * modules/listen: Likewise.
498 * modules/recv: Likewise.
499 * modules/recvfrom: Likewise.
500 * modules/send: Likewise.
501 * modules/sendto: Likewise.
502 * modules/setsockopt: Likewise.
503 * modules/shutdown: Likewise.
504 * modules/socket: Use socket.c instead of winsock.c.
505 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
506 * doc/posix-functions/accept.texi: Doc fix.
507 * doc/posix-functions/bind.texi: Doc fix.
508 * doc/posix-functions/close.texi: Doc fix.
509 * doc/posix-functions/connect.texi: Doc fix.
510 * doc/posix-functions/getpeername.texi: Doc fix.
511 * doc/posix-functions/getsockname.texi: Doc fix.
512 * doc/posix-functions/getsockopt.texi: Doc fix.
513 * doc/posix-functions/ioctl.texi: Doc fix.
514 * doc/posix-functions/listen.texi: Doc fix.
515 * doc/posix-functions/recv.texi: Doc fix.
516 * doc/posix-functions/recvfrom.texi: Doc fix.
517 * doc/posix-functions/send.texi: Doc fix.
518 * doc/posix-functions/sendto.texi: Doc fix.
519 * doc/posix-functions/setsockopt.texi: Doc fix.
520 * doc/posix-functions/shutdown.texi: Doc fix.
521 * doc/posix-functions/socket.texi: Doc fix.
523 2008-10-20 Bruno Haible <bruno@clisp.org>
525 Take into account the role of SIGABRT_COMPAT on Windows 2008.
526 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
527 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
528 as an alias for SIGABRT.
529 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
530 (sigaction): Map it to SIGABRT.
531 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
533 2008-10-20 Bruno Haible <bruno@clisp.org>
535 * lib/fts.c: Don't include lstat.h.
536 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
538 Move the lstat() declaration to <sys/stat.h>.
539 * lib/lstat.h: Remove file.
540 * lib/sys_stat.in.h: Add special invocation convention.
541 (lstat): New declaration.
542 * lib/lstat.c (orig_lstat): New function.
543 (rpl_lstat): Use orig_lstat instead of lstat.
544 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
545 AC_C_INLINE. Set REPLACE_LSTAT.
546 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
548 * modules/lstat (Files): Remove lib/lstat.h.
549 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
550 (Include): Specify <sys/stat.h> instead of lstat.h.
551 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
553 * NEWS: Mention the change.
555 2008-10-20 Bruno Haible <bruno@clisp.org>
557 * modules/posix_spawn-tests: New file.
558 * tests/test-posix_spawn3.c: New file.
560 2008-10-20 Bruno Haible <bruno@clisp.org>
562 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
563 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
564 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
565 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
566 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
568 2008-10-20 Bruno Haible <bruno@clisp.org>
570 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
571 of posix_spawn on AIX 5.3.
573 2008-10-20 Bruno Haible <bruno@clisp.org>
575 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
577 2008-10-20 Bruno Haible <bruno@clisp.org>
579 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
582 2008-10-20 Simon Josefsson <simon@josefsson.org>
584 * lib/netdb.in.h: Don't define GNU specific constants until they
585 are supported or needed. Reported by Bruno Haible
588 2008-10-20 Simon Josefsson <simon@josefsson.org>
590 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
592 2008-10-20 Simon Josefsson <simon@josefsson.org>
594 * lib/getaddrinfo.h: Remove file.
595 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
596 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
597 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
598 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
599 * modules/netdb: Substitute GNULIB_GETADDRINFO.
600 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
601 * tests/test-getaddrinfo.c: Likewise.
602 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
603 * NEWS: Mention change.
605 2008-10-19 Bruno Haible <bruno@clisp.org>
607 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
609 2008-10-19 Bruno Haible <bruno@clisp.org>
611 * lib/wait-process.c: Include simply <sys/wait.h>.
612 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
613 WIFSTOPPED): Remove fallback definitions.
614 * modules/wait-process (Depends-on): Add sys_wait.
616 New module 'sys_wait'.
617 * modules/sys_wait: New file.
618 * lib/sys_wait.in.h: New file, partially copied from
620 * m4/sys_wait_h.m4: New file.
621 * doc/posix-headers/sys_wait.texi: Mention the new module.
623 2008-10-19 Bruno Haible <bruno@clisp.org>
625 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
627 2008-10-19 Bruno Haible <bruno@clisp.org>
629 Assume that waitpid() fills an 'int' status, not a 'union wait'.
630 * lib/wait-process.c (WAIT_T): Remove type.
631 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
632 (wait_subprocess): Update.
634 2008-10-19 Bruno Haible <bruno@clisp.org>
637 * modules/atoll: New file.
638 * lib/stdlib.in.h (atoll): New declaration.
639 * lib/atoll.c: New file, from glibc with modifications.
640 * m4/atoll.m4: New file.
641 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
643 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
644 * doc/posix-functions/atoll.texi: Mention the new module.
646 2008-10-19 Bruno Haible <bruno@clisp.org>
648 Add strtoull() declaration to <stdlib.h>.
649 * lib/stdlib.in.h (strtoull): New declaration.
650 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
652 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
654 * modules/strtoull (Depends-on): Add stdlib.
655 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
656 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
659 2008-10-19 Bruno Haible <bruno@clisp.org>
661 Add strtoll() declaration to <stdlib.h>.
662 * lib/stdlib.in.h (strtoll): New declaration.
663 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
665 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
667 * modules/strtoll (Depends-on): Add stdlib.
668 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
669 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
671 2008-10-19 Bruno Haible <bruno@clisp.org>
673 * modules/bcopy (Depends-on): Add strings.
674 (Include): Specify <strings.h>.
676 2008-10-19 Bruno Haible <bruno@clisp.org>
678 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
680 2008-10-19 Bruno Haible <bruno@clisp.org>
682 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
683 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
686 2008-10-19 Bruno Haible <bruno@clisp.org>
688 * lib/atanl.c: Don't include isnanl.h.
689 * lib/cosl.c: Likewise.
690 * lib/ldexpl.c: Likewise.
691 * lib/logl.c: Likewise.
692 * lib/sinl.c: Likewise.
693 * lib/sqrtl.c: Likewise.
694 * lib/tanl.c: Likewise.
696 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
697 * lib/isnanf.h: Remove file.
698 * lib/isnand.h: Remove file.
699 * lib/isnanl.h: Remove file.
700 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
701 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
703 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
704 HAVE_ISNANF, don't define it as a C macro.
705 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
706 HAVE_ISNAND, don't define it as a C macro.
707 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
708 HAVE_ISNANL, don't define it as a C macro.
709 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
711 * modules/isnanf (Files): Remove lib/isnanf.h.
712 (Depends-on): Add math.
713 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
714 (Include): Specify <math.h> instead of isnanf.h.
715 * modules/isnand (Files): Remove lib/isnand.h.
716 (Depends-on): Add math.
717 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
718 (Include): Specify <math.h> instead of isnand.h.
719 * modules/isnanl (Files): Remove lib/isnanl.h.
720 (Depends-on): Add math.
721 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
722 (Include): Specify <math.h> instead of isnanl.h.
723 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
725 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
726 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
727 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
728 * NEWS: Mention the change.
730 2008-10-18 Bruno Haible <bruno@clisp.org>
732 Add getusershell(), setusershell(), endusershell() declarations to
734 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
736 * lib/getusershell.c: Include unistd.h.
737 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
738 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
740 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
741 and HAVE_GETUSERSHELL.
742 * modules/getusershell (Depends-on): Add unistd, extensions.
743 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
744 (Include): Specify <unistd.h>.
745 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
748 2008-10-18 Bruno Haible <bruno@clisp.org>
750 Add a getloadavg() declaration to <stdlib.h>.
751 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
752 getloadavg declaration.
753 (getloadavg): New declaration.
754 * lib/getloadavg.c: Include <stdlib.h> first.
755 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
756 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
757 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
758 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
759 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
760 * modules/getloadavg (Depends-on): Add stdlib, extensions.
761 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
762 (Include): Specify <stdlib.h>.
763 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
764 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
766 2008-10-18 Bruno Haible <bruno@clisp.org>
768 * lib/dirchownmod.c: Don't include lchmod.h.
770 Move the lchmod() declaration to <sys/stat.h>.
771 * lib/lchmod.h: Remove file.
772 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
773 (lchmod): New declaration, moved here from lib/lchown.h.
774 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
775 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
776 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
778 * modules/lchmod (Files): Remove lib/lchmod.h.
779 (Depends-on): Add sys_stat, extensions.
780 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
781 (Include): Specify <sys/stat.h> instead of lchmod.h.
782 * modules/sys_stat (Depends-on): Add link-warning.
783 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
784 definition of GL_LINK_WARNING.
785 * NEWS: Mention the change.
787 2008-10-18 Bruno Haible <bruno@clisp.org>
789 * lib/fchdir.c: Don't include dirfd.h.
790 * lib/fts.c: Likewise.
791 * lib/getcwd.c: Likewise.
792 * lib/glob.c: Likewise.
794 Move the dirfd() declaration to <dirent.h>.
795 * lib/dirfd.h: Remove file.
796 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
797 (dirfd): New declaration.
798 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
799 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
800 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
802 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
804 * modules/dirfd (Files): Remove lib/dirfd.h.
805 (Depends-on): Add dirent, extensions.
806 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
807 (Include): Specify <dirent.h> instead of dirfd.h.
808 * modules/dirent (Depends-on): Add link-warning.
809 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
810 definition of GL_LINK_WARNING.
811 * NEWS: Mention the change.
813 2008-10-18 Bruno Haible <bruno@clisp.org>
815 Move the euidaccess() declaration to <unistd.h>.
816 * lib/euidaccess.h: Remove file.
817 * lib/unistd.in.h (euidaccess): New declaration.
818 * lib/euidaccess.c: Don't include euidaccess.h.
819 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
820 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
821 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
823 * modules/euidaccess (Files): Remove lib/euidaccess.h.
824 (Depends-on): Add unistd.
825 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
826 (Include): Specify <unistd.h> instead of euidaccess.h.
827 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
829 * NEWS: Mention the change.
831 2008-10-18 Bruno Haible <bruno@clisp.org>
833 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
835 Move the getdomainname() declaration to <unistd.h>.
836 * lib/getdomainname.h: Remove file.
837 * lib/unistd.in.h (getdomainname): New declaration.
838 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
839 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
840 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
842 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
843 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
844 * modules/getdomainname (Files): Remove lib/getdomainname.h.
845 (Depends-on): Add unistd, extensions.
846 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
847 (Includes): Specify <unistd.h> instead of getdomainname.h.
848 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
850 * NEWS: Mention the change.
852 2008-10-18 Bruno Haible <bruno@clisp.org>
854 * modules/dirent: New file.
855 * m4/dirent_h.m4: New file.
856 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
857 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
858 * modules/fchdir (Files): Remove lib/dirent.in.h.
859 (Depends-on): Add dirent.
860 (Makefile.am): Move rules to modules/dirent.
861 * doc/posix-headers/dirent.texi: Mention the new module.
863 2008-10-18 Bruno Haible <bruno@clisp.org>
865 Avoid -Wunused-parameter warnings in public gnulib header files.
866 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
868 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
870 2008-10-18 Bruno Haible <bruno@clisp.org>
872 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
873 * doc/glibc-functions/error.texi: Mention the module 'error'.
874 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
875 * doc/glibc-functions/getdomainname.texi: Mention the module
877 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
878 * doc/glibc-functions/getpagesize.texi: Mention the module
880 * doc/glibc-functions/getusershell.texi: Mention the module
882 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
883 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
884 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
885 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
886 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
887 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
888 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
889 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
890 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
891 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
892 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
893 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
894 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
895 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
897 2008-10-17 Bruno Haible <bruno@clisp.org>
899 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
900 HP-UX and IRIX, use -0.0L.
901 * tests/test-ceill.c (minus_zero): Likewise.
902 * tests/test-floorl.c (minus_zero): Likewise.
903 * tests/test-frexpl.c (minus_zero): Likewise.
904 * tests/test-isnan.c (minus_zerol): Likewise.
905 * tests/test-isnanl.h (minus_zero): Likewise.
906 * tests/test-ldexpl.c (minus_zero): Likewise.
907 * tests/test-roundl.c (minus_zero): Likewise.
908 * tests/test-signbit.c (minus_zerol): Likewise.
909 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
910 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
911 * tests/test-truncl.c (minus_zero): Likewise.
912 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
913 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
914 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
915 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
917 2008-10-17 Bruno Haible <bruno@clisp.org>
919 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
920 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
921 that it gets activated only for gcc >= 3.0.
922 * lib/dirent.in.h: Likewise.
923 * lib/errno.in.h: Likewise.
924 * lib/fcntl.in.h: Likewise.
925 * lib/float.in.h: Likewise.
926 * lib/iconv.in.h: Likewise.
927 * lib/inttypes.in.h: Likewise.
928 * lib/locale.in.h: Likewise.
929 * lib/math.in.h: Likewise.
930 * lib/netdb.in.h: Likewise.
931 * lib/netinet_in.in.h: Likewise.
932 * lib/search.in.h: Likewise.
933 * lib/signal.in.h: Likewise.
934 * lib/spawn.in.h: Likewise.
935 * lib/stdarg.in.h: Likewise.
936 * lib/stdint.in.h: Likewise.
937 * lib/stdio.in.h: Likewise.
938 * lib/stdlib.in.h: Likewise.
939 * lib/string.in.h: Likewise.
940 * lib/strings.in.h: Likewise.
941 * lib/sys_file.in.h: Likewise.
942 * lib/sys_ioctl.in.h: Likewise.
943 * lib/sys_select.in.h: Likewise.
944 * lib/sys_socket.in.h: Likewise.
945 * lib/sys_stat.in.h: Likewise.
946 * lib/sys_time.in.h: Likewise.
947 * lib/sysexits.in.h: Likewise.
948 * lib/time.in.h: Likewise.
949 * lib/unistd.in.h: Likewise.
950 * lib/wchar.in.h: Likewise.
951 * lib/wctype.in.h: Likewise.
952 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
954 2008-10-17 Jim Meyering <meyering@redhat.com>
956 ignore-value: don't depend on inline module
957 * modules/ignore-value (Depends-on): Remove 'inline'.
958 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
959 Suggestion from Bruno Haible.
961 2008-10-17 Bruno Haible <bruno@clisp.org>
963 New implementation of condition variables for Win32.
964 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
965 (gl_linked_waitqueue_t): New type.
967 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
968 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
969 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
970 (glthread_cond_init_func, glthread_cond_wait_func,
971 glthread_cond_timedwait_func, glthread_cond_signal_func,
972 glthread_cond_broadcast_func, glthread_cond_destroy_func):
973 Reimplemented on the basis of gl_linked_waitqueue_t.
974 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
976 (gl_rwlock_t): Update.
977 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
979 2008-10-17 Simon Josefsson <simon@josefsson.org>
981 * modules/recvfrom (Depends-on): Add dependency on getpeername.
982 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
984 2008-10-17 Jim Meyering <meyering@redhat.com>
986 ignore-value: new module
987 * modules/ignore-value: New file.
988 * lib/ignore-value.h: New file.
989 * MODULES.html.sh (Compiler warning management): New section,
990 just for this module. More to come.
992 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
994 open-safer.c: avoid 'signed and unsigned in conditional...' warning
995 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
996 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
998 2008-10-16 Jim Meyering <meyering@redhat.com>
1000 openat-die.c: avoid 'no previous prototype' warning
1001 * lib/openat-die.c: Include "openat.h".
1002 Reported by Reuben Thomas <rrt@sc3d.org>.
1004 2008-10-16 Simon Josefsson <simon@josefsson.org>
1006 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1007 * lib/netdb.in.h: Fix typo.
1008 Reported by Bruno Haible <bruno@clisp.org>
1010 * lib/netdb.in.h: Include sys/socket.h for platforms without
1011 netdb.h, to get structures like hostent on MinGW.
1012 * modules/netdb (Depends-on): Add sys_socket.
1014 2008-10-15 Simon Josefsson <simon@josefsson.org>
1016 * modules/netdb, modules/netdb-tests: New file.
1017 * m4/netdb_h.m4: New file.
1018 * lib/netdb.in.h: Add, currently just an empty file pending
1020 * tests/test-netdb.c: New file.
1021 * doc/posix-headers/netdb.texi: Mention that we replace it if
1023 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1026 2008-10-15 Simon Josefsson <simon@josefsson.org>
1028 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1031 2008-10-13 Bruno Haible <bruno@clisp.org>
1033 * lib/glthread/cond.c (glthread_cond_wait_func,
1034 glthread_cond_timedwait_func): Add a comment.
1036 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
1038 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1039 * tests/test-select.c: Likewise,
1041 2008-10-13 Bruno Haible <bruno@clisp.org>
1043 * lib/glthread/cond.c (glthread_cond_wait_func,
1044 glthread_cond_timedwait_func): Fix variable name.
1045 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1047 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1049 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1050 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1051 struct sockaddr.sa_len.
1052 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1054 2008-10-13 Simon Josefsson <simon@josefsson.org>
1056 * build-aux/pmccabe2html: Add css and css_url parameters.
1058 2008-10-12 Bruno Haible <bruno@clisp.org>
1060 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1062 Reported by Rainer Tammer <tammer@tammer.net>.
1064 2008-10-12 Bruno Haible <bruno@clisp.org>
1066 Use msvcrt aware primitives for creation/termination of Win32 threads.
1067 * lib/glthread/thread.c: Include <process.h>.
1068 (glthread_create_func): Use _beginthreadex instead of CreateThread.
1069 (wrapper_func): Update signature.
1070 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1072 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
1073 Bruno Haible <bruno@clisp.org>
1075 Provide a Win32 implementation of the 'cond' module.
1076 * lib/glthread/cond.h [USE_WIN32]: New implementation.
1077 * lib/glthread/cond.c (glthread_cond_init_func,
1078 glthread_cond_wait_func, glthread_cond_timedwait_func,
1079 glthread_cond_signal_func, glthread_cond_broadcast_func,
1080 glthread_cond_destroy_func) [USE_WIN32]: New functions.
1081 * modules/cond (Dependencies): Add gettimeofday.
1083 2008-10-11 Bruno Haible <bruno@clisp.org>
1085 Make sleep work on older versions of mingw.
1086 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1087 only whether it exists.
1088 * doc/posix-functions/sleep.texi: Mention the problem with older
1091 2008-10-11 Bruno Haible <bruno@clisp.org>
1093 New module 'shutdown'.
1094 * modules/shutdown: New file.
1095 * lib/sys_socket.in.h (shutdown): New declaration.
1096 * lib/winsock.c (shutdown): New function.
1097 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1099 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1100 * doc/posix-functions/shutdown.texi: Document the new module.
1102 2008-10-11 Jim Meyering <meyering@redhat.com>
1104 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1106 2008-10-11 Bruno Haible <bruno@clisp.org>
1108 New module 'fclose'.
1109 * modules/fclose: New file.
1110 * lib/stdio.in.h (fclose): New declaration.
1111 * lib/fclose.c: New file.
1112 * m4/fclose.m4: New file.
1113 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1115 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1116 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1118 * modules/close (Depends-on): fclose.
1119 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1121 2008-10-11 Bruno Haible <bruno@clisp.org>
1123 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1124 set errno and don't call _close.
1126 2008-10-10 Bruno Haible <bruno@clisp.org>
1128 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1129 ACL, not afterwards. Fixes test failure on Cygwin.
1131 2008-10-09 Ben Pfaff <blp@gnu.org>
1133 * build-aux/announce-gen: Fix gnulib version related part of usage
1134 message. Die with a useful error message if no tarballs are
1137 2008-10-10 Jim Meyering <meyering@redhat.com>
1139 bootstrap: use git's --depth=N option only if it's supported
1140 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1141 recognize the --depth option. Reported by Pádraig Brady.
1143 2008-10-09 Bruno Haible <bruno@clisp.org>
1146 * modules/ioctl: New file.
1147 * lib/sys_socket.in.h (ioctl): Remove declaration.
1148 * lib/winsock.c: Include <sys/ioctl.h>.
1149 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1150 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1151 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1152 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1153 * doc/posix-functions/ioctl.texi: Mention the new module.
1155 2008-10-09 Bruno Haible <bruno@clisp.org>
1157 New module 'sys_ioctl'.
1158 * lib/sys_ioctl.in.h: New file.
1159 * m4/sys_ioctl_h.m4: New file.
1160 * modules/sys_ioctl: New file.
1161 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1163 2008-10-09 Bruno Haible <bruno@clisp.org>
1165 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1166 * lib/winsock.c: Include <stdarg.h>.
1167 (rpl_ioctl): Change to second argument 'int' and then varargs.
1169 2008-10-09 Bruno Haible <bruno@clisp.org>
1171 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1172 when the sys_socket module is present and the system has <winsock2.h>.
1174 2008-10-09 Bruno Haible <bruno@clisp.org>
1176 * doc/posix-functions/close.texi: Mention module 'close' instead of
1177 module 'sys_socket'.
1179 2008-10-09 Bruno Haible <bruno@clisp.org>
1181 * doc/glibc-headers/sys_ioctl.texi: New file.
1182 * doc/gnulib.texi: Include it.
1184 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1185 Bruno Haible <bruno@clisp.org>
1187 Combine the two replacements of 'close'.
1188 * lib/sys_socket.in.h (close): Define to a reminder to include
1190 (_gl_close_fd_maybe_socket): New declaration.
1191 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1192 * lib/winsock.c (close): Remove undefinition.
1193 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1194 needed for the gnulib module 'close'.
1195 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1196 define to an error symbol or to a warning, if suitable.
1197 * lib/close.c: Include <sys/socket.h>.
1198 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1199 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1200 UNISTD_H_HAVE_WINSOCK2_H.
1201 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1202 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1203 UNISTD_H_HAVE_WINSOCK2_H.
1204 * modules/sys_socket (Files): Add m4/unistd_h.m4.
1205 (configure.ac): Set a module indicator.
1206 (Makefile.am): Substitute GNULIB_CLOSE.
1207 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1208 * modules/poll-tests (Depends-on): Add close.
1209 * modules/select-tests (Depends-on): Likewise.
1211 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1212 Bruno Haible <bruno@clisp.org>
1215 * modules/close: New file.
1216 * lib/unistd.in.h (close): Move declaration out of the
1217 FCHDIR_REPLACEMENT scope.
1218 (_gl_unregister_fd): New declaration.
1219 * lib/close.c: New file.
1220 * lib/fchdir.c (rpl_close): Remove function.
1221 * m4/close.m4: New file.
1222 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1224 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1226 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1228 * modules/fchdir (Depends-on): Add close.
1230 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1231 Bruno Haible <bruno@clisp.org>
1233 * lib/fcntl.in.h (open): Simplify conditionals.
1234 (_gl_register_fd): New declaration.
1235 * lib/fchdir.c (rpl_open): Remove function.
1236 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1238 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1239 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1242 2008-10-09 Jim Meyering <meyering@redhat.com>
1244 GNUmakefile: use the more name-space-friendly "_version"
1245 * top/GNUmakefile (_dummy): Update.
1246 (_version): Rename from "version".
1248 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1249 Bruno Haible <bruno@clisp.org>
1251 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1253 (_gl_register_fd): New function, extracted from rpl_open.
1254 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1255 (rpl_open, rpl_opendir): Use _gl_register_fd.
1257 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1259 Fix organization of 'open' replacement.
1260 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1261 (gl_FUNC_OPEN): Use it.
1262 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1264 2008-10-08 Bruno Haible <bruno@clisp.org>
1266 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1268 2008-10-08 Simon Josefsson <simon@josefsson.org>
1270 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
1271 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1274 2008-10-08 Eric Blake <ebb9@byu.net>
1276 GNUmakefile: add 'make version' target
1277 * top/GNUmakefile (_curr-ver): Split version update rules...
1278 (version): ...into a target.
1280 2008-10-07 Bruno Haible <bruno@clisp.org>
1282 Use a more portable replacement expression for -0.0L.
1283 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1284 instead of -0.0L. Fix m4 quotation.
1286 * tests/test-signbit.c: Include <float.h>.
1287 (minus_zero): New variable.
1288 (test_signbitl): Use minus_zero instead of -zero.
1289 * modules/signbit-tests (Depends-on): Add float.
1291 * tests/test-ceill.c: Include <float.h>.
1292 (zero): Remove variable.
1293 (minus_zero): New variable.
1294 (main): Use minus_zero instead of -zero.
1295 * modules/ceill-tests (Depends-on): Add float.
1297 * tests/test-floorl.c: Include <float.h>.
1298 (zero): Remove variable.
1299 (minus_zero): New variable.
1300 (main): Use minus_zero instead of -zero.
1301 * modules/floorl-tests (Depends-on): Add float.
1303 * tests/test-roundl.c: Include <float.h>.
1304 (zero): Remove variable.
1305 (minus_zero): New variable.
1306 (main): Use minus_zero instead of -zero.
1307 * modules/roundl-tests (Depends-on): Add float.
1309 * tests/test-truncl.c: Include <float.h>.
1310 (zero): Remove variable.
1311 (minus_zero): New variable.
1312 (main): Use minus_zero instead of -zero.
1313 * modules/truncl-tests (Depends-on): Add float.
1315 * tests/test-frexpl.c (zero): Remove variable.
1316 (minus_zero): New variable.
1317 (main): Use minus_zero instead of -zero.
1318 * modules/frexpl-tests (Depends-on): Add float.
1320 * tests/test-isnan.c (zerol): Remove variable.
1321 (minus_zerol): New variable.
1322 (test_long_double): Use minus_zerol instead of -zerol.
1323 * modules/isnan-tests (Depends-on): Add float.
1325 * tests/test-isnanl.h (zero): Remove variable.
1326 (minus_zero): New variable.
1327 (main): Use minus_zero instead of -zero.
1328 * modules/isnanl-nolibm-tests (Depends-on): Add float.
1329 * modules/isnanl-tests (Depends-on): Add float.
1331 * tests/test-ldexpl.c (zero): Remove variable.
1332 (minus_zero): New variable.
1333 (main): Use minus_zero instead of -zero.
1334 * modules/ldexpl-tests (Depends-on): Add float.
1336 * tests/test-snprintf-posix.h (zerol): Remove variable.
1337 (minus_zerol): New variable.
1338 (test_function): Use minus_zerol instead of -zerol.
1339 * modules/snprintf-posix-tests (Depends-on): Add float.
1340 * modules/vsnprintf-posix-tests (Depends-on): Add float.
1342 * tests/test-sprintf-posix.h (zerol): Remove variable.
1343 (minus_zerol): New variable.
1344 (test_function): Use minus_zerol instead of -zerol.
1345 * modules/sprintf-posix-tests (Depends-on): Add float.
1346 * modules/vsprintf-posix-tests (Depends-on): Add float.
1348 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1349 (minus_zerol): New variable.
1350 (test_function): Use minus_zerol instead of -zerol.
1351 * modules/vasnprintf-posix-tests (Depends-on): Add float.
1353 * tests/test-vasprintf-posix.c (zerol): Remove variable.
1354 (minus_zerol): New variable.
1355 (test_function): Use minus_zerol instead of -zerol.
1356 * modules/vasprintf-posix-tests (Depends-on): Add float.
1358 2008-10-07 Simon Josefsson <simon@josefsson.org>
1360 * MODULES.html.sh (Support for building documentation): Mention
1361 pmccabe2html. Sort entries.
1363 Add pmccabe2html module, from gnupdf.
1364 * build-aux/pmccabe.css: New file.
1365 * build-aux/pmccabe2html: New file.
1366 * m4/pmccabe2html.m4: New file.
1367 * modules/pmccabe2html: New file.
1369 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
1372 * MODULES.html.sh: Add to list of modules.
1373 * lib/flock.c: flock implementation for Windows and Unix systems
1375 * doc/glibc-functions/flock.texi: Update documentation.
1376 * lib/sys_file.in.h: <sys/file.h> header file.
1377 * m4/flock.m4: M4 macros.
1378 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1379 * modules/flock: flock module.
1380 * modules/flock-tests: flock tests module.
1381 * modules/sys_file: sys/file.h module.
1382 * tests/test-flock.c: test suite for flock.
1384 2008-10-06 Jim Meyering <meyering@redhat.com>
1386 bootstrap: check for LT_INIT more portably still ;-)
1387 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1388 Spotted by Bruno Haible.
1390 2008-10-06 Eric Blake <ebb9@byu.net>
1392 test-signbit: avoid tripping Irix cc bug on -0.0L
1393 * tests/test-signbit.c (minus_zerol): Delete, and replace with
1394 '-zerol'. This may break on HP-UX/hppa, but at least makes the
1395 entire testsuite consistent and avoids an Irix 6.2 bug.
1397 2008-10-05 Bruno Haible <bruno@clisp.org>
1398 Jim Meyering <jim@meyering.net>
1400 Add an option for ignoring EPIPE during close_stdout.
1401 * lib/closeout.h: Include <stdbool.h>.
1402 (close_stdout_set_ignore_EPIPE): New declaration.
1403 * lib/closeout.c: Include <stdbool.h>.
1404 (ignore_EPIPE): New variable.
1405 (close_stdout_set_ignore_EPIPE): New function.
1406 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1407 * lib/close-stream.c (close_stream): Mention the possible EPIPE
1409 * modules/closeout (Depends-on): Add stdbool.
1411 2008-10-05 Bruno Haible <bruno@clisp.org>
1413 * modules/accept: New file.
1414 * modules/bind: New file.
1415 * modules/connect: New file.
1416 * modules/getpeername: New file.
1417 * modules/getsockname: New file.
1418 * modules/getsockopt: New file.
1419 * modules/listen: New file.
1420 * modules/recv: New file.
1421 * modules/recvfrom: New file.
1422 * modules/send: New file.
1423 * modules/sendto: New file.
1424 * modules/setsockopt: New file.
1425 * modules/socket: New file.
1426 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1427 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1428 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1429 the particular module is requested. Add a link warning when the
1430 particular module is not requested.
1431 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1432 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1433 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1434 the particular module is requested.
1435 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1436 gl_SYS_SOCKET_H_DEFAULTS): New macros.
1437 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1438 * modules/sys_socket (Depends-on): Add link-warning.
1439 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1440 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1441 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1442 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1444 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1445 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1446 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1447 * doc/posix-functions/getpeername.texi: Mention the new module
1449 * doc/posix-functions/getsockname.texi: Mention the new module
1451 * doc/posix-functions/getsockopt.texi: Mention the new module
1453 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1454 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1455 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1456 * doc/posix-functions/send.texi: Mention the new module 'send'.
1457 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1458 * doc/posix-functions/setsockopt.texi: Mention the new module
1460 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1461 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1462 listen, connect, accept.
1463 * modules/select-tests (Depends-on): Likewise.
1465 2008-10-05 Bruno Haible <bruno@clisp.org>
1467 * lib/winsock.c (strerror): Remove unused #undef.
1468 (rpl_close): Remove unused local variable.
1470 * modules/sys_socket (Depends-on); Add errno.
1472 2008-10-05 Bruno Haible <bruno@clisp.org>
1474 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1475 (select): Add a link warning when the 'select' module is not used.
1476 * modules/sys_select (Depends-on): Add link-warning.
1477 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1478 Suggested by Paolo Bonzini.
1480 2008-10-05 Jim Meyering <meyering@redhat.com>
1482 bootstrap: check for LT_INIT more portably
1483 * build-aux/bootstrap: Avoid using grep -E, since it's not
1484 portable enough. Suggestion from Bruno Haible.
1486 2008-10-05 Bruno Haible <bruno@clisp.org>
1488 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1489 as being fixed by gnulib.
1491 2008-10-05 Bruno Haible <bruno@clisp.org>
1493 * modules/select-tests: New file, mostly copied from
1494 modules/sys_select-tests.
1495 * tests/test-select.c: New file, mostly copied from
1496 tests/test-sys_select.c.
1497 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1498 * modules/sys_select-tests (Depends-on): Remove all dependencies.
1499 (Makefile.am): Remove test_sys_select_LDADD.
1501 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1502 to an undefined symbol, for an error message.
1503 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1504 (gl_SYS_SELECT_H_DEFAULTS): New macro.
1505 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1506 winsock-select.c here.
1507 * modules/sys_select (Files): Remove lib/winsock-select.c.
1508 (Depends-on): Remove alloca.
1509 (Makefile.am): Substitute GNULIB_SELECT.
1510 * modules/select: New file.
1511 * doc/posix-functions/select.texi: Update.
1513 2008-10-05 Bruno Haible <bruno@clisp.org>
1515 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1516 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1517 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1518 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1520 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1521 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1523 2008-10-05 Bruno Haible <bruno@clisp.org>
1525 * modules/getdtablesize-tests: New file.
1526 * tests/test-getdtablesize.c: New file.
1528 New module 'getdtablesize'.
1529 * lib/unistd.in.h (getdtablesize): New declaration.
1530 * lib/getdtablesize.c: New file.
1531 * m4/getdtablesize.m4: New file.
1532 * modules/getdtablesize: New file.
1533 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1534 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1535 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1537 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1539 2008-10-05 Bruno Haible <bruno@clisp.org>
1541 * modules/sched (Makefile.am): Fix typo.
1542 Reported by Simon Josefsson.
1544 2008-10-05 Jim Meyering <meyering@redhat.com>
1546 bootstrap: check for LT_INIT, too
1547 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1548 are deprecated. Suggestion from Ralf Wildenhues.
1550 2008-10-05 Bruno Haible <bruno@clisp.org>
1552 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1553 overriding them by ours.
1554 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1556 2008-10-05 Jim Meyering <meyering@redhat.com>
1558 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1559 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1560 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
1562 2008-10-04 Bruno Haible <bruno@clisp.org>
1564 * modules/dup2 (License): Change to LGPLv2+.
1565 * modules/sleep (License): Likewise.
1566 * modules/perror (License): Likewise.
1567 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1569 * modules/signal (License): Likewise.
1570 * modules/sigprocmask (License): Likewise.
1571 * modules/raise (License): Change to LGPLv2+, with approval by Jim
1574 2008-10-04 Bruno Haible <bruno@clisp.org>
1576 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1577 Reported by Rainer Tammer <tammer@tammer.net>.
1579 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
1580 Bruno Haible <bruno@clisp.org>
1582 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1583 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1584 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1586 2008-10-03 Kamil Dudka <kdudka@redhat.com>
1588 filevercmp: new module
1589 * lib/filevercmp.h: New function filevercmp comparing version strings.
1590 * lib/filevercmp.c: Implementation of filevercmp function.
1591 * modules/filevercmp: Module metadata.
1592 * tests/test-filevercmp.c: Unit test for new module.
1593 * modules/filevercmp-tests: Unit test metadata.
1594 * MODULES.html.sh: Add filevercmp module.
1596 2008-10-03 Bruno Haible <bruno@clisp.org>
1598 * lib/c-ctype.h: Add comment.
1599 Reported by Jim Meyering.
1601 2008-10-02 Bruno Haible <bruno@clisp.org>
1603 * modules/posix_spawn-internal (Depends-on): Add 'open'.
1605 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1607 * build-aux/bootstrap: Allow renaming bootstrap, and change the
1608 name of bootstrap.conf accordingly.
1610 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1612 * build-aux/bootstrap: Install git-merge-changelog configuration
1613 items into .gitconfig if needed.
1615 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1617 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1618 git repository, and initialize/update it accordingly.
1620 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
1622 * modules/fsync-tests: New file.
1623 * tests/test-fsync.c: New file.
1626 * lib/fsync.c: New file.
1627 * m4/fsync.m4: New file.
1628 * modules/fsync: New file.
1629 * lib/unistd.in.h (fsync): New declaration.
1630 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1631 GNULIB_FSYNC and HAVE_FSYNC.
1632 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1633 * MODULES.html.sh (posix_functions): Add fsync.
1634 * doc/posix-functions/fsync.texi: Mention the new module.
1636 2008-10-02 Jim Meyering <meyering@redhat.com>
1638 fts.c: sync with similar code from coreutils' remove.c
1639 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1640 Guard also with "#if defined __linux__", since for now at least,
1641 this code is Linux-kernel-specific.
1643 2008-10-02 Jim Meyering <meyering@redhat.com>
1646 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1647 Include <sys/vfs.h>, not <sys/statfs.h>.
1649 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1650 Include <sys/vfs.h>, not <sys/statfs.h>.
1652 2008-10-01 Bruno Haible <bruno@clisp.org>
1654 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1655 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1656 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1657 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1658 * doc/posix-functions/posix_spawnp.texi: Likewise.
1659 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1660 whether posix_spawn actually works.
1661 * m4/pipe.m4 (gl_PIPE): Likewise.
1662 * modules/execute (Files): Add m4/posix_spawn.m4.
1663 * modules/pipe (Files): Add m4/posix_spawn.m4.
1664 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1666 2008-10-01 Jim Meyering <meyering@redhat.com>
1668 remove trailing spaces
1670 * lib/poll.c (poll): Likewise.
1671 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1672 * lib/winsock.c (rpl_close): Likewise.
1673 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1674 * modules/yield: Likewise.
1675 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1676 * tests/test-sys_select.c (connect_to_socket): Likewise.
1678 fts.c: adjust a new interface to be more generally useful
1679 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1680 (fts_build): Adjust caller.
1682 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1684 * modules/cond-tests: New file.
1685 * tests/test-cond.c: New file.
1687 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1688 Bruno Haible <bruno@clisp.org>
1690 * modules/cond (Dependencies): Add errno, time.
1691 * lib/glthread/cond.h: Include <time.h>.
1692 (gl_cond_define, gl_cond_define_initialized): Use the same definition
1695 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1696 Bruno Haible <bruno@clisp.org>
1698 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1700 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1701 Bruno Haible <bruno@clisp.org>
1703 * modules/tls-tests (Depends-on): Add thread, yield.
1704 (configure.ac): Remove all checks.
1705 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1706 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1707 gl_thread_self): Remove definitions. Include glthread/thread.h and
1708 glthread/yield.h instead.
1709 (test_tls): Pass an additional NULL argument to gl_thread_join.
1711 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1712 Bruno Haible <bruno@clisp.org>
1714 * modules/lock-tests (Depends-on): Add thread, yield.
1715 (configure.ac): Remove all checks.
1716 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1717 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1718 gl_thread_self): Remove definitions. Include glthread/thread.h and
1719 glthread/yield.h instead.
1720 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1721 additional NULL argument to gl_thread_join.
1723 2008-09-30 Bruno Haible <bruno@clisp.org>
1725 Fix the Win32 implementation of the 'thread' module.
1726 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1728 (gl_thread_self): Invoke gl_thread_self_func.
1729 (gl_thread_self_func): New declaration.
1730 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1731 (do_init_self_key, init_self_key): New functions.
1732 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1734 (running_threads, running_lock): Remove variables.
1735 (get_current_thread_handle): New function.
1736 (gl_thread_self_func, wrapper_func, glthread_create_func,
1737 glthread_join_func, gl_thread_exit_func): Largely rewritten and
1740 2008-09-30 Bruno Haible <bruno@clisp.org>
1742 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1745 2008-09-30 Jim Meyering <meyering@redhat.com>
1747 fts.m4: correct the test for statfs.f_type
1748 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1749 when checking for statfs.f_type.
1751 2008-09-15 Simon Josefsson <simon@josefsson.org>
1753 tests: avoid some compiler warnings
1754 * tests/test-memchr.c (main): Pass NULL indirectly.
1755 * tests/test-getdate.c (main): Remove unused variable 'ret'.
1757 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
1759 getdate.y: disallow countable dayshifts like "4 yesterday ago"
1760 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1761 exactly specified dayshifts.
1762 (dayshift): New rule.
1763 (rel): Add dayshift.
1764 (relative_time_table) [tomorrow, yesterday, today, now]:
1765 Use tDAY_SHIFT in place of tDAY_UNIT.
1766 * tests/test-getdate.c: Add tests for now-disallowed countable
1767 dayshifts, e.g., "4 yesterday ago".
1769 2008-09-29 Bruno Haible <bruno@clisp.org>
1771 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1772 * tests/test-posix_spawn1.in.sh: Renamed from
1773 tests/test-posix_spawn.in.sh.
1774 * tests/test-posix_spawn2.c: New file.
1775 * tests/test-posix_spawn2.in.sh: New file.
1776 * modules/posix_spawnp-tests (Files): Update.
1777 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1779 2008-09-29 Bruno Haible <bruno@clisp.org>
1781 Propagate effects of putenv/setenv/unsetenv to child processes.
1782 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1783 * lib/pipe.c (create_pipe): Likewise.
1785 2008-09-29 Bruno Haible <bruno@clisp.org>
1787 Enable use of shell scripts as executables in mingw.
1788 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1789 run the program as a shell script.
1790 * lib/pipe.c (create_pipe): Likewise.
1791 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1794 2008-09-29 Eric Blake <ebb9@byu.net>
1796 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1798 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
1800 * doc/posix-functions/accept.texi: Update mingw problems.
1801 * doc/posix-functions/bind.texi: Update mingw problems.
1802 * doc/posix-functions/close.texi: Update mingw problems.
1803 * doc/posix-functions/connect.texi: Update mingw problems.
1804 * doc/posix-functions/getpeername.texi: Update mingw problems.
1805 * doc/posix-functions/getsockname.texi: Update mingw problems.
1806 * doc/posix-functions/getsockopt.texi: Update mingw problems.
1807 * doc/posix-functions/ioctl.texi: Update mingw problems.
1808 * doc/posix-functions/listen.texi: Update mingw problems.
1809 * doc/posix-functions/recv.texi: Update mingw problems.
1810 * doc/posix-functions/recvfrom.texi: Update mingw problems.
1811 * doc/posix-functions/select.texi: Update mingw problems.
1812 * doc/posix-functions/send.texi: Update mingw problems.
1813 * doc/posix-functions/sendto.texi: Update mingw problems.
1814 * doc/posix-functions/setsockopt.texi: Update mingw problems.
1815 * doc/posix-functions/socket.texi: Update mingw problems.
1817 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
1818 Bruno Haible <bruno@clisp.org>
1820 * lib/sys_select.in.h: Include sys/time.h.
1821 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1822 * modules/sys_select: Depend on sys_time.
1823 * tests/test-sys_select.c: Test that sys/select.h defines struct
1826 2008-09-29 Bruno Haible <bruno@clisp.org>
1828 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1829 * lib/sys_select.in.h: Likewise.
1831 2008-09-29 Bruno Haible <bruno@clisp.org>
1833 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1835 2008-09-29 Bruno Haible <bruno@clisp.org>
1837 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1838 Set LIBSOCKET instead of augmenting LIBS.
1839 * modules/sockets (Link): New section.
1840 * modules/sockets-tests (test_sockets_LDADD): New variable.
1841 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1842 * modules/poll-tests (test_poll_LDADD): New variable.
1843 * NEWS: Document the change.
1845 2008-09-29 Bruno Haible <bruno@clisp.org>
1847 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1848 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1849 ARPA_INET_H directly.
1850 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1852 2008-09-28 Bruno Haible <bruno@clisp.org>
1854 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1855 from gl_HEADER_SYS_SOCKET.
1856 (gl_HEADER_SYS_SOCKET): Invoke it.
1857 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1859 2008-09-28 Bruno Haible <bruno@clisp.org>
1861 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1862 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1863 Needed on OSF/1 4.0.
1865 2008-09-28 Bruno Haible <bruno@clisp.org>
1867 Override open more carefully.
1868 * lib/open.c (orig_open): New function.
1869 (rpl_open): Use orig_open instead of open.
1870 * lib/fcntl.in.h: Add special invocation convention.
1871 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1872 (gl_FUNC_OPEN): Invoke it.
1874 Override freopen more carefully.
1875 * lib/freopen.c (orig_freopen): New function.
1876 (rpl_freopen): Use orig_freopen instead of freopen.
1877 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1878 (gl_FUNC_FREOPEN): Invoke it.
1880 Override fopen more carefully.
1881 * lib/fopen.c (orig_fopen): New function.
1882 (rpl_fopen): Use orig_fopen instead of fopen.
1883 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1884 (gl_FUNC_FOPEN): Invoke it.
1885 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1887 2008-09-28 Bruno Haible <bruno@clisp.org>
1889 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1892 2008-09-28 Bruno Haible <bruno@clisp.org>
1894 * tests/test-sigaction.c (handler, main): Disable the check whether
1895 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1896 glibc systems with LinuxThreads.
1898 2008-09-28 Bruno Haible <bruno@clisp.org>
1900 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1902 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1904 * lib/fcntl.in.h (open): Likewise.
1905 Reported by Rainer Tammer <tammer@tammer.net>.
1907 2008-09-28 Bruno Haible <bruno@clisp.org>
1909 * modules/posix_spawnp-tests: New file.
1910 * tests/test-posix_spawn.c: New file.
1911 * tests/test-posix_spawn.in.sh: New file.
1913 New module 'posix_spawnp'.
1914 * modules/posix_spawnp: New file.
1915 * lib/spawnp.c: New file, from GNU libc with modifications.
1916 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1918 New module 'posix_spawn'.
1919 * modules/posix_spawn: New file.
1920 * lib/spawn.c: New file, from GNU libc with modifications.
1921 * doc/posix-functions/posix_spawn.texi: Mention the new module.
1923 New module 'posix_spawnattr_destroy'.
1924 * modules/posix_spawnattr_destroy: New file.
1925 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1926 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1929 New module 'posix_spawnattr_setsigmask'.
1930 * modules/posix_spawnattr_setsigmask: New file.
1931 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1933 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1936 New module 'posix_spawnattr_getsigmask'.
1937 * modules/posix_spawnattr_getsigmask: New file.
1938 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1940 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1943 New module 'posix_spawnattr_setsigdefault'.
1944 * modules/posix_spawnattr_setsigdefault: New file.
1945 * lib/spawnattr_setdefault.c: New file, from GNU libc with
1947 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1950 New module 'posix_spawnattr_getsigdefault'.
1951 * modules/posix_spawnattr_getsigdefault: New file.
1952 * lib/spawnattr_getdefault.c: New file, from GNU libc with
1954 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1957 New module 'posix_spawnattr_setschedpolicy'.
1958 * modules/posix_spawnattr_setschedpolicy: New file.
1959 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1961 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1964 New module 'posix_spawnattr_getschedpolicy'.
1965 * modules/posix_spawnattr_getschedpolicy: New file.
1966 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1968 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1971 New module 'posix_spawnattr_setschedparam'.
1972 * modules/posix_spawnattr_setschedparam: New file.
1973 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1975 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1978 New module 'posix_spawnattr_getschedparam'.
1979 * modules/posix_spawnattr_getschedparam: New file.
1980 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1982 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1985 New module 'posix_spawnattr_setpgroup'.
1986 * modules/posix_spawnattr_setpgroup: New file.
1987 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1989 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1992 New module 'posix_spawnattr_getpgroup'.
1993 * modules/posix_spawnattr_getpgroup: New file.
1994 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1996 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1999 New module 'posix_spawnattr_setflags'.
2000 * modules/posix_spawnattr_setflags: New file.
2001 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2002 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2005 New module 'posix_spawnattr_getflags'.
2006 * modules/posix_spawnattr_getflags: New file.
2007 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2008 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2011 New module 'posix_spawnattr_init'.
2012 * modules/posix_spawnattr_init: New file.
2013 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2014 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2017 New module 'posix_spawn_file_actions_destroy'.
2018 * modules/posix_spawn_file_actions_destroy: New file.
2019 * lib/spawn_faction_destroy.c: New file, from GNU libc with
2021 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2024 New module 'posix_spawn_file_actions_addopen'.
2025 * modules/posix_spawn_file_actions_addopen: New file.
2026 * lib/spawn_faction_addopen.c: New file, from GNU libc with
2028 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2031 New module 'posix_spawn_file_actions_adddup2'.
2032 * modules/posix_spawn_file_actions_adddup2: New file.
2033 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2035 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2038 New module 'posix_spawn_file_actions_addclose'.
2039 * modules/posix_spawn_file_actions_addclose: New file.
2040 * lib/spawn_faction_addclose.c: New file, from GNU libc with
2042 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2045 New module 'posix_spawn_file_actions_init'.
2046 * modules/posix_spawn_file_actions_init: New file.
2047 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2048 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2051 New module 'posix_spawn-internal'.
2052 * modules/posix_spawn-internal: New file.
2053 * lib/spawn_int.h: New file, from GNU libc with modifications.
2054 * lib/spawni.c: New file, from GNU libc with modifications.
2055 * m4/posix_spawn.m4: New file.
2058 * modules/spawn: New file.
2059 * lib/spawn.in.h: New file, from GNU libc with modifications.
2060 * m4/spawn_h.m4: New file.
2061 * doc/posix-headers/spawn.texi: Mention the new module.
2063 2008-09-28 Bruno Haible <bruno@clisp.org>
2065 * modules/sched-tests: New file.
2066 * tests/test-sched.c: New file.
2069 * modules/sched: New file.
2070 * lib/sched.in.h: New file.
2071 * m4/sched_h.m4: New file.
2072 * doc/posix-headers/sched.texi: Mention the new module.
2074 2008-09-27 Eric Blake <ebb9@byu.net>
2076 Fix previous patch, and tweak references to $0.
2077 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2078 (func_version, func_gnulib_dir): Don't call this program
2080 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2081 with using $0 in function.
2082 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2083 (func_fatal_error): Reuse the name the user invoked us with.
2085 2008-09-27 Bruno Haible <bruno@clisp.org>
2087 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2088 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2089 (gl_ICONV_H): Not here.
2090 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2091 instead of assigning ICONV_H directly.
2093 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2094 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2097 2008-09-27 Bruno Haible <bruno@clisp.org>
2099 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2100 * modules/arpa_inet (Depends-on): Add link-warning.
2101 (Makefile.am): Insert the definition of GL_LINK-WARNING.
2102 * modules/unistd (Makefile.am): Likewise.
2104 2008-09-26 Bruno Haible <bruno@clisp.org>
2106 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2108 (func_version): Essentially copied from gnulib-tool.
2109 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2110 func_readlink): Copied from gnulib-tool.
2112 2008-09-26 Bruno Haible <bruno@clisp.org>
2114 * gnulib-tool (func_version): Change directory to $gnulib_dir before
2115 invoking git-version-gen.
2117 2008-09-26 Bruno Haible <bruno@clisp.org>
2119 * posix-modules: Update to directory names changed on 2008-01-19.
2120 Remove commas in output before splitting into words. No more need to
2121 avoid 'ftruncate' since 2007-02-19.
2123 2008-09-26 Bruno Haible <bruno@clisp.org>
2125 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2127 2008-09-26 Bruno Haible <bruno@clisp.org>
2129 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2130 * modules/fwriteerror (Depends-on): Add errno.
2132 2008-09-26 Bruno Haible <bruno@clisp.org>
2134 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2135 * tests/test-vc-list-files-cvs.sh: Likewise.
2137 2008-09-26 Bruno Haible <bruno@clisp.org>
2139 * doc/posix-headers/sys_resource.texi: Reorder items.
2141 2008-09-26 Jim Meyering <meyering@redhat.com>
2143 fts: tweak inode comparison function
2144 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2145 inode numbers, as documented.
2147 fts: sort dirent entries on inode number before traversing
2148 This avoids a quadratic, seek-related performance penalty when
2149 operating on a directory containing many entries (measurable at 10k;
2150 3.5 hours at 2 million entries with a cold cache) on certain types
2151 of file systems, including ext3 and ext4, but not tmpfs.
2152 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2153 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2154 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2155 (fs_handles_readdir_ordered_dirents_efficiently): New function.
2156 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2157 (fts_build): Set the stat.st_ino member from D_INO.
2158 If it is likely to be useful, sort dirent entries on inode number.
2160 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2161 and the struct statfs.f_type member.
2162 * modules/fts (Depends-on): Add d-ino.
2164 2008-09-26 Bruno Haible <bruno@clisp.org>
2166 * modules/sigpipe-die (Depends-on): Add sigpipe.
2168 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2169 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2170 and GNULIB_STDIO_H_SIGPIPE are set.
2171 * lib/stdio-write.c: New file.
2172 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2173 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2174 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2175 REPLACE_STDIO_WRITE_FUNCS.
2176 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2177 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2178 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2179 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2180 * modules/stdio (Files): Add lib/stdio-write.c.
2181 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2182 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2183 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2184 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2185 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2186 REPLACE_FPRINTF_POSIX.
2187 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2188 REPLACE_PRINTF_POSIX.
2189 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2190 REPLACE_VFPRINTF_POSIX.
2191 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2192 REPLACE_VPRINTF_POSIX.
2193 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2195 * doc/posix-functions/fputc.texi: Likewise.
2196 * doc/posix-functions/fputs.texi: Likewise.
2197 * doc/posix-functions/fwrite.texi: Likewise.
2198 * doc/posix-functions/printf.texi: Likewise.
2199 * doc/posix-functions/putc.texi: Likewise.
2200 * doc/posix-functions/putchar.texi: Likewise.
2201 * doc/posix-functions/puts.texi: Likewise.
2202 * doc/posix-functions/vfprintf.texi: Likewise.
2203 * doc/posix-functions/vprintf.texi: Likewise.
2205 * modules/safe-write (Depends-on): Add write.
2207 * modules/sigpipe-tests: New file.
2208 * tests/test-sigpipe.c: New file.
2209 * tests/test-sigpipe.sh: New file.
2211 * modules/write: New file.
2212 * lib/unistd.in.h: Include <sys/types.h>.
2213 (write): New declaration.
2214 * lib/write.c: New file.
2215 * m4/write.m4: New file.
2216 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2217 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2218 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2219 GNULIB_WRITE, REPLACE_WRITE.
2220 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2221 and the SIGPIPE issue.
2223 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2224 (raise): New declaration.
2225 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2226 (ext_signal): New function.
2227 (rpl_raise): New function.
2228 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2229 GNULIB_SIGNAL_H_SIGPIPE.
2230 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2231 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2233 * modules/sigpipe: New file.
2234 * m4/sigpipe.m4: New file.
2236 2008-09-25 Derek Price <derek@ximbiot.com>
2237 Bruno Haible <bruno@clisp.org>
2239 * gnulib-tool (func_import): Report all license incompatibilities, not
2242 2008-09-25 Bruno Haible <bruno@clisp.org>
2244 * gnulib-tool (func_import): When computing the edits, consider not
2245 only the Makefile.ams that exist but also those that will be generated.
2247 2008-09-25 Simon Josefsson <simon@josefsson.org>
2249 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2250 fixes gnulib-tool --test warning about duplicate dependency.
2252 2008-09-25 Bruno Haible <bruno@clisp.org>
2254 * gnulib-tool: Don't ask the user to perform edits in the generated
2256 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2257 apply to the Makefile.am being generated.
2258 (func_emit_tests_Makefile_am): Execute edits that apply to the
2259 Makefile.am being generated.
2260 (func_import): Setup list of Makefile.am edits before emitting the
2261 Makefile.ams, not at the end.
2262 (func_create_testdir): Update.
2263 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2265 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2267 * gnulib-tool (func_import): Store the --tests-base option in the
2268 comment in gnulib-cache.m4.
2270 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
2272 * NEWS: Document increased portability that sys_select now provides.
2274 * lib/sys_select.in.h: Install select wrapper.
2275 * lib/sys_socket.in.h: Use more descriptive name when there is no
2277 * lib/winsock-select.c: New.
2278 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2279 Require gl_HEADER_SYS_SOCKET.
2280 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2281 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2282 * tests/test-sys_select.c: Add functional tests.
2284 2008-09-24 Eric Blake <ebb9@byu.net>
2286 open, fopen: close fd leak in last patch
2287 * lib/open.c (rpl_open): Close fd before returning error.
2288 * lib/fopen.c (rpl_fopen): Close fd before returning error.
2289 * doc/posix-functions/open.texi (open): Document that Irix also
2291 * doc/posix-functions/fopen.texi (fopen): Likewise.
2292 Reported by Paolo Bonzini.
2294 2008-09-24 Bruno Haible <bruno@clisp.org>
2296 Ensure that a filename ending in a slash cannot be used to access a
2298 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2299 to check whether it's really a directory.
2300 * lib/fopen.c: Include fcntl.h, unistd.h.
2301 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2303 * modules/fopen (Depends-on): Add unistd.
2304 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2305 * tests/test-fopen.c (main): Likewise.
2306 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2307 * doc/posix-functions/fopen.texi: Likewise.
2308 Reported by Eric Blake.
2310 2008-09-23 Eric Blake <ebb9@byu.net>
2312 c-stack: avoid compiler optimizations when provoking overflow
2313 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2314 recursion harder to optimize, to ensure a stack overflow occurs.
2315 * tests/test-c-stack.c (recurse): Likewise.
2316 Borrowed from libsigsegv.
2318 c-stack: work around Irix sigaltstack bug
2319 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2320 whether sigaltstack uses wrong end of stack_t (copied in part from
2322 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2323 Irix bug, without requiring an over-allocation.
2324 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2327 fopen: document mingw bug on directories
2328 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2329 not allowing a stream visiting a directory, even though reading
2330 from such a stream is not portable.
2332 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2334 * lib/poll.c: Rewrite.
2335 * modules/poll: Depend on alloca.
2337 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2339 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2340 instead define prototypes for a full set of wrappers. Ensure
2341 that Cygwin does not use the compatibility code, which is only
2343 * lib/winsock.c: New.
2344 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2345 * modules/sys_socket: Add lib/winsock.c.
2347 * modules/poll-tests: Add errno and perror.
2348 * tests/test-poll.c: Use ioctl, not ioctlsocket.
2350 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2352 * tests/test-poll.c: Downgrade minimum needed Winsock version.
2354 2008-09-23 Bruno Haible <bruno@clisp.org>
2356 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2357 * doc/glibc-functions/*: Likewise.
2359 2008-09-23 Simon Josefsson <simon@josefsson.org>
2361 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2364 2008-09-22 Eric Blake <ebb9@byu.net>
2365 Bruno Haible <bruno@clisp.org>
2367 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2368 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2369 supply %A but mishandle pseudo-NaN.
2370 Reported by Simon Josefsson.
2372 2008-09-21 Bruno Haible <bruno@clisp.org>
2374 * tests/test-lock.c (main): Tweak skip message.
2375 * tests/test-tls.c (main): Likewise.
2377 2008-09-21 Bruno Haible <bruno@clisp.org>
2379 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2380 whether 'struct sigaction' has sa_sigaction here...
2381 (gl_PREREQ_SIG_HANDLER_H): ... not here.
2382 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2384 2008-09-21 Bruno Haible <bruno@clisp.org>
2386 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2388 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2389 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2391 (Support for obsolete systems lacking POSIX:2001): New section.
2392 (String handling <string.h>): Move strdup to the new section.
2393 Suggested by Simon Josefsson and Paolo Bonzini.
2395 2008-09-21 Bruno Haible <bruno@clisp.org>
2397 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2398 exponents in %e and %g results on 'long double'. Needed for mingw's
2399 improved *printf functions.
2400 * tests/test-vasprintf-posix.c (test_function): Likewise.
2401 * tests/test-snprintf-posix.h (test_function): Likewise.
2402 * tests/test-sprintf-posix.h (test_function): Likewise.
2403 Reported by Eric Blake.
2405 2008-09-21 Bruno Haible <bruno@clisp.org>
2407 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2408 * tests/test-sprintf-posix.h (test_function): Likewise.
2410 2008-09-21 Bruno Haible <bruno@clisp.org>
2412 * modules/getpass (Depends-on): Add strdup-posix.
2414 New module 'strdup-posix'.
2415 * modules/strdup-posix: New file.
2416 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2417 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2418 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2420 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2421 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2422 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2425 * modules/strdup (Depends-on): Remove malloc-posix.
2427 2008-09-20 Bruno Haible <bruno@clisp.org>
2429 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2432 2008-09-20 Bruno Haible <bruno@clisp.org>
2434 Ensure that wint_t gets defined on IRIX 5.3.
2435 * lib/wchar.in.h (wint_t): Define if not defined by the system.
2436 * lib/wctype.in.h (wint_t): Likewise.
2437 (__wctype_wint_t): Remove type.
2438 (isw*): Use wint_t instead of __wctype_wint_t.
2439 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2440 * modules/wchar (Files): Add m4/wint_t.m4.
2441 (Makefile.am): Substitute HAVE_WINT_T.
2442 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2443 * tests/test-wctype.c: Check that wint_t is defined.
2444 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2445 * doc/posix-headers/wctype.texi: Likewise.
2446 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2448 2008-09-18 Bruno Haible <bruno@clisp.org>
2450 * gnulib-tool (func_exit): Update comment.
2452 2008-09-18 Simon Josefsson <simon@josefsson.org>
2454 * modules/getaddrinfo (Depends-on): Remove strdup, this module
2455 assumes strdup exists and does not depend on strdup to return
2456 ENOMEM on out of memory conditions.
2458 2008-09-18 Bruno Haible <bruno@clisp.org>
2460 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
2461 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2462 digits for the exponent.
2464 2008-09-18 Jim Meyering <meyering@redhat.com>
2465 Bruno Haible <bruno@clisp.org>
2467 * lib/vasnprintf.c (decimal_point_char): Define also if
2468 NEED_PRINTF_INFINITE_LONG_DOUBLE.
2470 2008-09-16 Bruno Haible <bruno@clisp.org>
2471 and Eric Blake <ebb9@byu.net>
2473 vasnprintf: support Irix 5.3
2474 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2475 that mishandle long double infinity.
2476 Reported by Tom G. Christensen.
2478 2008-09-16 Bruno Haible <bruno@clisp.org>
2480 * doc/glibc-functions/scandir.texi: Mention the function is missing on
2482 * doc/glibc-functions/alphasort.texi: Likewise.
2483 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2485 2008-09-16 Jim Meyering <meyering@redhat.com>
2487 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2488 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2489 a umask modification leak out of a subshell. Otherwise, the
2490 opensolaris /bin/sh would be accepted and thus cause unwarranted
2491 failures in the coreutils test suite.
2493 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
2495 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2498 2008-09-16 Jim Meyering <meyering@redhat.com>
2500 avoid spurious test failure when library is built without ACL support
2501 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2502 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2503 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2504 * tests/test-copy-acl.sh: Likewise.
2506 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2508 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2509 based on character occurrence counts.
2511 2008-09-15 Eric Blake <ebb9@byu.net>
2513 tests: avoid some compiler warnings
2514 * tests/test-memchr.c (main): Pass NULL indirectly.
2515 * tests/test-closein.c (main): Avoid unused variable.
2517 2008-09-15 Bruno Haible <bruno@clisp.org>
2519 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2520 are missing on OpenBSD 4.0 individually.
2521 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2523 2008-09-15 Bruno Haible <bruno@clisp.org>
2525 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2526 * doc/posix-functions/strerror.texi: Mention also Cygwin.
2527 * doc/posix-functions/perror.texi: Likewise.
2528 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2530 Reported by Eric Blake.
2532 * lib/errno.in.h: Use replacement values >= 2000.
2533 Reported by Eric Blake.
2535 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2537 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2538 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2540 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2541 compareseq was aborted.
2543 2008-09-14 Bruno Haible <bruno@clisp.org>
2545 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2547 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2548 (fstrcmp_bounded): Simplify result computation accordingly.
2550 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2552 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2553 (fstrcmp): Define in terms of fstrcmp_bounded.
2554 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2555 lower_bound argument.
2556 Return quickly if the result is certainly < lower_bound.
2557 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2559 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2561 * lib/diffseq.h (EARLY_ABORT): New macro.
2562 (compareseq): Change return type to bool. Return true when EARLY_ABORT
2565 2008-09-14 Bruno Haible <bruno@clisp.org>
2567 * modules/perror-tests: New file.
2568 * tests/test-perror.sh: New file.
2569 * tests/test-perror.c: New file.
2571 New module 'perror'.
2572 * lib/stdio.in.h (perror): New declaration.
2573 * lib/perror.c: New file.
2574 * m4/perror.m4: New file.
2575 * modules/perror: New file.
2576 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2577 * doc/posix-functions/perror.texi: Mention the perror module.
2578 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2580 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2583 2008-09-14 Bruno Haible <bruno@clisp.org>
2585 * modules/stdio (Makefile.am): Reorder to match the order in
2587 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2589 2008-09-13 Bruno Haible <bruno@clisp.org>
2591 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2593 2008-09-13 Bruno Haible <bruno@clisp.org>
2595 Extend strerror to cover the added errno values.
2596 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2597 (rpl_strerror): Provide error messages for the added errno values and
2598 for the WSA* values.
2599 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2600 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2602 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2603 * modules/strerror (Depends-on): Add errno.
2604 * doc/posix-functions/strerror.texi: Document the change.
2605 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2608 2008-09-13 Bruno Haible <bruno@clisp.org>
2610 * modules/EOVERFLOW: Remove file.
2611 * m4/eoverflow.m4: Remove file.
2612 * modules/EOVERFLOW-tests: Remove file.
2613 * tests/test-EOVERFLOW.c: Remove file.
2614 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2615 * modules/ftell (Depends-on): Likewise.
2616 * modules/getdelim (Depends-on): Likewise.
2617 * modules/getugroups (Depends-on): Likewise.
2618 * modules/poll (Depends-on): Likewise.
2619 * modules/snprintf (Depends-on): Likewise.
2620 * modules/sprintf-posix (Depends-on): Likewise.
2621 * modules/vasnprintf (Depends-on): Likewise.
2622 * modules/vasprintf (Depends-on): Likewise.
2623 * modules/vfprintf-posix (Depends-on): Likewise.
2624 * modules/vsnprintf (Depends-on): Likewise.
2625 * modules/vsprintf-posix (Depends-on): Likewise.
2626 * modules/xvasprintf (Depends-on): Likewise.
2627 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2628 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2629 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2630 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2631 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2632 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2633 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2634 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2635 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2636 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2637 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2638 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2639 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2640 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2641 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2642 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2643 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2644 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2645 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2646 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2647 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2648 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2649 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2650 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2651 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2652 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2653 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2654 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2655 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2656 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2657 * MODULES.html.sh: Remove EOVERFLOW.
2658 * NEWS: Mention the change.
2660 2008-09-13 Bruno Haible <bruno@clisp.org>
2662 * modules/errno-tests: New file.
2663 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2665 * lib/errno.in.h: New file.
2666 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2667 * modules/errno: New file.
2668 * doc/posix-headers/errno.texi: Update documentation.
2669 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2671 2008-09-13 Bruno Haible <bruno@clisp.org>
2673 * tests/test-poll.c: Use #if for native Windows, rather than testing
2676 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2677 Bruno Haible <bruno@clisp.org>
2679 * lib/glob.c: Don't include <pwd.h> on native Windows.
2680 (WINDOWS32): New macro.
2681 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2683 2008-09-13 Bruno Haible <bruno@clisp.org>
2685 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2686 (ETIMEDOUT): Remove macro.
2687 (glthread_cond_timedwait_multithreaded): New declaration.
2688 (glthread_cond_timedwait): Use it.
2689 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2690 (glthread_cond_timedwait_multithreaded): New function.
2692 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2694 * modules/poll-tests: Do not check for io.h.
2695 * tests/test-poll.c: Check for __MSVCRT__ instead.
2697 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2699 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2700 * modules/poll-tests: Add inet_pton, stdbool, sockets.
2701 * tests/test-poll.c: Use them. Use _pipe on Windows.
2703 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2705 * modules/poll-tests: New.
2706 * tests/test-poll.c: New.
2708 2008-09-12 Eric Blake <ebb9@byu.net>
2710 frexp: test for NetBSD failure on -0.0
2711 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2712 not all, bugs from NetBSD 3.0 have been fixed.
2713 * doc/posix-functions/frexp.texi (frexp): Document bug.
2714 Reported by Thomas Klausner.
2716 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2717 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2719 Reported by Jonathan C. Patschke <jp@centtech.com>.
2721 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2723 * lib/glthread/cond.h: Use dummy implementation also if
2726 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2728 * modules/fnmatch-posix (License): Change to LGPLv2+.
2729 * modules/fnmatch-gnu (License): Likewise.
2731 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2733 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2735 2008-09-11 Jim Meyering <meyering@redhat.com>
2737 * users.txt: Add gtk-vnc.
2739 2008-09-08 Simon Josefsson <simon@josefsson.org>
2741 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2744 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2745 required for 16-bit and 8-bit rotates.
2746 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2747 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2748 UINT8_MAX instead of hard-coded constants.
2749 Suggested by Paul Eggert.
2751 2008-09-07 Bruno Haible <bruno@clisp.org>
2753 * tests/test-striconveh.c (main): Check behaviour when converting from
2756 Make striconveh work better with stateful encodings.
2757 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2758 that iconv does not increment the inptr when returning -1/EINVAL.
2760 2008-09-07 Bruno Haible <bruno@clisp.org>
2762 * build-aux/config.rpath: Update according to libtool-2.2.6.
2763 * build-aux/config.libpath: Likewise.
2765 2008-09-06 Bruno Haible <bruno@clisp.org>
2767 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2768 * lib/freadptr.c (freadptr): Likewise.
2769 * lib/freadseek.c (freadptrinc): Likewise.
2770 Reported by Simon Josefsson.
2772 2008-09-06 Bruno Haible <bruno@clisp.org>
2774 * modules/freadptr (License): Change to LGPLv2+.
2775 * modules/freadseek (License): Likewise.
2776 Suggested by Eric Blake.
2778 * modules/memchr2 (License): Change to LGPLv2+.
2779 Approved by Eric Blake.
2781 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2782 Bruno Haible <bruno@clisp.org>
2784 Make gnulib-tool work with native 'sed' on AIX.
2785 * gnulib-tool (sed_noop): New variable.
2786 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2787 func_add_or_update, func_create_testdir): Use it to initialize sed
2789 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2791 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
2792 Bruno Haible <bruno@clisp.org>
2794 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2795 also works after #include directives.
2797 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
2799 getdate.y: reject an out-of-range timezone value
2800 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2801 the range [-24...+24]. When specified with only one or two digits,
2802 * tests/test-getdate.c: Tests for the fix.
2803 * doc/getdate.texi: Document this change.
2805 2008-09-03 Bruno Haible <bruno@clisp.org>
2807 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2809 2008-09-02 Simon Josefsson <simon@josefsson.org>
2811 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
2812 <bruce.korb@gmail.com> with ideas from Ben Pfaff
2813 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2814 Blake <ebb9@byu.net>.
2816 * tests/test-bitrotate.c: Add more test vectors.
2818 2008-09-02 Eric Blake <ebb9@byu.net>
2820 vasnprintf-posix: handle large precision via %.*d
2821 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2822 when handling it ourselves.
2823 * tests/test-vasnprintf-posix.c (test_function): Add test.
2824 * tests/test-snprintf-posix.h (test_function): Likewise.
2825 * tests/test-sprintf-posix.h (test_function): Likewise.
2826 * tests/test-vasprintf-posix.c (test_function): Likewise.
2827 Reported by Alain Guibert.
2829 2008-09-01 Eric Blake <ebb9@byu.net>
2831 c-stack: make configure-time check more robust
2832 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2833 successful sigaction call.
2834 Reported by Tom G. Christensen.
2836 2008-09-01 Bruno Haible <bruno@clisp.org>
2838 New module 'findprog-lgpl'.
2839 * modules/findprog-lgpl: New file.
2840 * lib/findprog-lgpl.c: New file.
2841 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2842 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2843 to decide whether to use strdup or xstrdup, concatenated_filename or
2844 xconcatenated_filename.
2846 2008-09-01 Bruno Haible <bruno@clisp.org>
2848 Split module 'concat-filename' into 'concat-filename' (LGPL) and
2849 'xconcat-filename' (GPL).
2850 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2851 (License): Change to LGPLv2+.
2852 * modules/xconcat-filename: New file.
2853 * lib/concat-filename.h (concatenated_filename): Change specification.
2854 (xconcatenated_filename): New declaration.
2855 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2856 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2858 * lib/xconcat-filename.c: New file.
2859 * NEWS: Mention the change.
2860 * lib/findprog.c: Include concat-filename.h, not filename.h.
2861 (find_in_path): Use xconcatenated_filename instead of
2862 concatenated_filename.
2863 * lib/javacomp.c: Include concat-filename.h, not filename.h.
2864 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2865 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2866 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2867 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2868 instead of concatenated_filename.
2869 * lib/javaexec.c: Include concat-filename.h, not filename.h.
2870 (execute_java_class): Use xconcatenated_filename instead of
2871 concatenated_filename.
2872 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2873 * modules/javacomp (Depends-on): Likewise.
2874 * modules/javaexec (Depends-on): Likewise.
2876 2008-09-01 Bruno Haible <bruno@clisp.org>
2878 Split module 'filename' into 'filename' and 'concat-filename'.
2879 * modules/filename: Keep only lib/filename.h.
2880 (License): Change to LGPLv2+.
2881 * modules/concat-filename: New file, extracted from modules/filename.
2882 * lib/filename.h (concatenated_filename): Remove declaration.
2883 * lib/concat-filename.h: New file, extracted from lib/filename.h.
2884 * lib/concat-filename.c: Include concat-filename.h.
2885 * NEWS: Mention the change.
2887 2008-09-01 Simon Josefsson <simon@josefsson.org>
2889 * lib/bitrotate.h (rotl8, rotr8): Add.
2891 * modules/bitrotate (configure.ac): Need
2892 AC_REQUIRE([AC_C_INLINE]).
2893 (Description): Mention stdint.h. Reported by Bruno Haible
2896 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
2897 Paolo Bonzini <bonzini@gnu.org>.
2899 2008-08-31 Bruno Haible <bruno@clisp.org>
2901 Assume Solaris specific bi-arch conventions on Solaris systems.
2902 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2903 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2904 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2905 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2906 like acl_libdirstem.
2907 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2909 * NEWS: Mention the change.
2910 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2912 2008-08-31 Jim Meyering <meyering@redhat.com>
2914 * lib/strftime.h: Add comments describing the two added arguments.
2916 remove duplicate #include directives
2917 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2918 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2920 2008-08-31 Bruno Haible <bruno@clisp.org>
2922 New module 'sigpipe-die'.
2923 * modules/sigpipe-die: New file.
2924 * lib/sigpipe-die.h: New file.
2925 * lib/sigpipe-die.c: New file.
2926 * MODULES.html.sh (Signal handling): Add sigpipe-die.
2928 2008-08-31 Bruno Haible <bruno@clisp.org>
2930 Don't override previously installed signal handlers.
2931 * lib/fatal-signal.c (saved_sigactions): New variable.
2932 (uninstall_handlers): Reset the signal to the saved handler, not
2933 to SIG_DFL (except when ignored).
2934 (install_handlers): Save the previous handlers.
2936 2008-08-30 Bruno Haible <bruno@clisp.org>
2938 * gnulib-tool (func_reset_sigpipe): New function.
2939 (func_get_automake_snippet, func_modules_transitive_closure,
2940 func_import): Invoke it before a join command that reads from stdin,
2941 to avoid "echo: write error: Broken pipe" error messages on stderr.
2942 Reported by Sam Steingold <sds@gnu.org>.
2944 2008-08-30 Bruno Haible <bruno@clisp.org>
2946 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2947 Code copied from m4/open.m4.
2948 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2949 access and the filename ends in a slash. Code copied from lib/open.c.
2950 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2951 * tests/test-fopen.c (main): Check against bug with trailing slash.
2953 2008-08-29 Bruno Haible <bruno@clisp.org>
2955 Avoid some "gcc -pedantic" warnings.
2956 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2957 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2958 * lib/dirent.in.h: Likewise.
2959 * lib/fcntl.in.h: Likewise.
2960 * lib/float.in.h: Likewise.
2961 * lib/iconv.in.h: Likewise.
2962 * lib/inttypes.in.h: Likewise.
2963 * lib/locale.in.h: Likewise.
2964 * lib/math.in.h: Likewise.
2965 * lib/netinet_in.in.h: Likewise.
2966 * lib/search.in.h: Likewise.
2967 * lib/signal.in.h: Likewise.
2968 * lib/stdarg.in.h: Likewise.
2969 * lib/stdint.in.h: Likewise.
2970 * lib/stdio.in.h: Likewise.
2971 * lib/stdlib.in.h: Likewise.
2972 * lib/string.in.h: Likewise.
2973 * lib/strings.in.h: Likewise.
2974 * lib/sys_select.in.h: Likewise.
2975 * lib/sys_socket.in.h: Likewise.
2976 * lib/sys_stat.in.h: Likewise.
2977 * lib/sys_time.in.h: Likewise.
2978 * lib/sysexits.in.h: Likewise.
2979 * lib/time.in.h: Likewise.
2980 * lib/unistd.in.h: Likewise.
2981 * lib/wchar.in.h: Likewise.
2982 * lib/wctype.in.h: Likewise.
2983 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2984 * modules/fchdir (Makefile.am): Likewise.
2985 * modules/fcntl (Makefile.am): Likewise.
2986 * modules/float (Makefile.am): Likewise.
2987 * modules/iconv_open (Makefile.am): Likewise.
2988 * modules/inttypes (Makefile.am): Likewise.
2989 * modules/locale (Makefile.am): Likewise.
2990 * modules/math (Makefile.am): Likewise.
2991 * modules/netinet_in (Makefile.am): Likewise.
2992 * modules/search (Makefile.am): Likewise.
2993 * modules/signal (Makefile.am): Likewise.
2994 * modules/stdarg (Makefile.am): Likewise.
2995 * modules/stdint (Makefile.am): Likewise.
2996 * modules/stdio (Makefile.am): Likewise.
2997 * modules/stdlib (Makefile.am): Likewise.
2998 * modules/string (Makefile.am): Likewise.
2999 * modules/strings (Makefile.am): Likewise.
3000 * modules/sys_select (Makefile.am): Likewise.
3001 * modules/sys_socket (Makefile.am): Likewise.
3002 * modules/sys_stat (Makefile.am): Likewise.
3003 * modules/sys_time (Makefile.am): Likewise.
3004 * modules/sysexits (Makefile.am): Likewise.
3005 * modules/time (Makefile.am): Likewise.
3006 * modules/unistd (Makefile.am): Likewise.
3007 * modules/wchar (Makefile.am): Likewise.
3008 * modules/wctype (Makefile.am): Likewise.
3009 Reported by Reuben Thomas <rrt@sc3d.org>.
3011 2008-08-29 Bruno Haible <bruno@clisp.org>
3013 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3016 2008-08-29 Simon Josefsson <simon@josefsson.org>
3018 * MODULES.html.sh (Misc): Add bitrotate.
3020 * modules/bitrotate: New file.
3022 * lib/bitrotate.h: New file.
3024 * modules/bitrotate-tests: New file.
3026 * tests/test-bitrotate.c: New file.
3028 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3029 on the bitrotate module.
3031 * lib/arctwo.c: Use new bitrotate module.
3033 2008-08-29 Jim Meyering <meyering@redhat.com>
3035 bootstrap: merge changes from coreutils
3036 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3037 of copied files. Remove a kludge, now that this is fixed.
3038 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3039 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3040 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3042 2008-08-29 Bruno Haible <bruno@clisp.org>
3044 * MODULES.html.sh: Remove --cvs-urls option.
3046 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
3048 maint.mk: adjust to file name change
3049 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3051 2008-08-28 Jim Meyering <meyering@redhat.com>
3053 * modules/getndelim2 (License): Relicense to LGPLv2+.
3054 Approved by Richard Stallman for the version of 1995, and by
3055 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3057 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
3059 * lib/getdelim.c (flockfile, funlockfile): Make all of them
3060 dummy if one is not available. Do not touch them if
3061 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3062 (getc_maybe_unlocked): New.
3063 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3065 2008-08-26 Eric Blake <ebb9@byu.net>
3067 doc/INSTALL: resync from autoconf
3068 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3069 (INSTALL_PRELUDE): Delete; this is done more efficiently by
3071 * install.texi [!autoconf]: ...here. Resync from autoconf.
3072 * INSTALL: Regenerate.
3073 * INSTALL.ISO: New file.
3074 * INSTALL.UTF-8: Likewise.
3076 2008-08-26 Jim Meyering <meyering@redhat.com>
3078 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3079 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3080 these definitions conditional, so that they may be overridden, too.
3082 2008-08-26 Bruno Haible <bruno@clisp.org>
3084 Generate INSTALL file variants with prettier quotes.
3085 * doc/Makefile (INSTALL_PRELUDE): New macro.
3087 (INSTALL.ISO, INSTALL.UTF-8): New rules.
3089 2008-08-26 Bruno Haible <bruno@clisp.org>
3091 Run makeinfo in an English locale.
3092 * doc/Makefile (MAKEINFO): New variable.
3094 2008-08-26 Bruno Haible <bruno@clisp.org>
3096 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3097 Suggested by Eric Blake.
3099 2008-08-25 Bruno Haible <bruno@clisp.org>
3101 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3103 2008-08-25 Eric Blake <ebb9@byu.net>
3105 c-stack: test that stack overflow can be caught
3106 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3107 that platform allows handling stack overflow; at least OS/2 EMX
3108 has sigaltstack, but crashes before transferring control to
3109 handler on stack overflow.
3110 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3111 check for HAVE_STACK_OVERFLOW_HANDLING.
3112 Reported by Elbert Pol.
3114 2008-08-25 Bruno Haible <bruno@clisp.org>
3116 * doc/posix-functions/strftime.texi: Fix description of strftime
3119 2008-08-24 Bruno Haible <bruno@clisp.org>
3121 * tests/uniwidth/test-uc_width2.c: New file.
3122 * tests/uniwidth/test-uc_width2.sh: New file.
3123 * modules/uniwidth/width-tests (Files): Add the new files.
3124 (TESTS): Add uniwidth/test-uc_width2.sh.
3125 (TESTS_ENVIRONMENT): New variable.
3126 (check_PROGRAMS): Add test-uc_width2.
3127 (test_uc_width2_SOURCES): New variable.
3129 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3130 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3132 Reported by Alexander V. Lukyanov <lav@netis.ru>.
3134 2008-08-22 Eric Blake <ebb9@byu.net>
3136 test-lock, test-tls: mention why a test is skipped
3137 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3139 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3141 count-one-bits: relax license
3142 * modules/count-one-bits (License): Relicense to LGPLv2+.
3143 Suggested by Ludovic Courtès, approved by Ben Pfaff.
3145 2008-08-22 Andreas Schwab <schwab@suse.de>
3147 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3148 Remove spurious space in assignment.
3150 2008-08-21 Simon Josefsson <simon@josefsson.org>
3152 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
3153 Paul Eggert <eggert@CS.UCLA.EDU>.
3155 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
3157 * modules/gettext: Add m4/threadlib.m4.
3159 2008-08-19 Eric Blake <ebb9@byu.net>
3161 test-c-stack: fix compilation failure on FreeBSD 5.0
3162 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3163 headers before <sys/resource.h>.
3164 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3166 Reported by Nelson H. F. Beebe.
3168 strverscmp: migrate from "strverscmp.h" to <string.h>
3169 * modules/string (Makefile.am): Add new hooks.
3170 * modules/strverscmp (Files): Remove strverscmp.h.
3171 (Depends-on): Add string.
3172 (configure.ac): Add indicator.
3173 (Include): Mention new header.
3174 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3176 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3178 * lib/strverscmp.h: Delete.
3179 * lib/string.in.h (strverscmp): Provide declaration, when needed.
3180 * tests/test-strverscmp.c (includes): Adjust client.
3181 * lib/check-version.c (includes): Likewise.
3182 * NEWS: Document the change.
3184 strverscmp: add unit test
3185 * modules/strverscmp-tests: New file.
3186 * tests/test-strverscmp.c: Likewise.
3188 2008-08-19 Simon Josefsson <simon@josefsson.org>
3190 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
3191 regarding Windows crypto stuff, from Mono.
3193 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
3195 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
3196 if present, for intel RND. Return error on failures.
3198 2008-08-18 Ben Pfaff <blp@gnu.org>
3200 gitlog-to-changelog: give better diagnostic for failed pipe-open
3201 * build-aux/gitlog-to-changelog: Improve error message: suggest
3202 that the version of Git may be too old.
3204 2008-08-18 Simon Josefsson <simon@josefsson.org>
3206 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
3207 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
3209 2008-08-18 Bruno Haible <bruno@clisp.org>
3211 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3214 2008-08-18 Bruno Haible <bruno@clisp.org>
3216 * lib/glthread/threadlib.c: Include <pthread.h>.
3218 2008-08-18 Bruno Haible <bruno@clisp.org>
3220 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3221 glthread_recursive_lock_* macros.
3222 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3225 2008-08-18 Bruno Haible <bruno@clisp.org>
3227 * lib/glthread/thread.c: Avoid forcing a context switch right after
3230 2008-08-17 Bruno Haible <bruno@clisp.org>
3232 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3233 * lib/glthread/thread.h: Provide Win32 specific implementation.
3234 * modules/thread (Files): Add lib/glthread/thread.c.
3235 (Depends-on): Add lock.
3236 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3238 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3241 * modules/yield: New file.
3242 * lib/glthread/yield.h: New file.
3243 * m4/yield.m4: New file.
3244 * MODULES.html.sh (Multithreading): Add yield.
3246 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3248 New module 'thread'.
3249 * modules/thread: New file.
3250 * lib/glthread/thread.h: New file.
3251 * m4/thread.m4: New file.
3252 * MODULES.html.sh (Multithreading): Add thread.
3254 2008-08-17 Bruno Haible <bruno@clisp.org>
3256 * lib/glthread/lock.h: Include <stdlib.h> always.
3257 * lib/glthread/tls.h: Likewise.
3258 * lib/glthread/cond.h: Likewise.
3260 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3263 * modules/cond: New file.
3264 * lib/glthread/cond.h: New file.
3265 * lib/glthread/cond.c: New file.
3266 * m4/cond.m4: New file.
3267 * MODULES.html.sh (Multithreading): Add cond.
3269 2008-08-16 Eric Blake <ebb9@byu.net>
3271 c-stack: fix regression on Irix 5.3 from 2008-06-21
3272 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3274 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3275 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3276 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3277 * modules/signal (Makefile.am): Use the value.
3278 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3279 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3280 * doc/posix-headers/signal.texi (signal.h): Document this
3282 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3283 Reported by Tom G. Christensen.
3285 2008-08-17 Bruno Haible <bruno@clisp.org>
3287 New module 'threadlib'.
3288 * modules/threadlib: New file.
3289 * lib/glthread/threadlib.c: New file, extracted from
3290 lib/glthread/lock.c.
3291 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3293 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3294 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3295 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3297 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3298 (gl_DISABLE_THREADS): Remove macro.
3299 * modules/lock (Files): Remove build-aux/config.rpath.
3300 (Depends-on): Remove havelib. Add threadlib.
3301 (configure.ac-early): Remove section.
3302 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3303 * modules/tls (Depends-on): Remove lock. Add threadlib.
3304 (Link): New section, copied from threadlib.
3305 * MODULES.html.sh (Multithreading): Add threadlib.
3307 2008-08-14 Bruno Haible <bruno@clisp.org>
3309 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3310 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3311 glthread_rwlock_unlock, glthread_rwlock_destroy,
3312 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3313 glthread_recursive_lock_destroy): Define as macros always.
3314 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3316 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3317 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3318 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3319 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3320 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3321 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3322 (glthread_recursive_lock_lock_func): Renamed from
3323 glthread_recursive_lock_lock.
3324 (glthread_recursive_lock_unlock_func): Renamed from
3325 glthread_recursive_lock_unlock.
3326 (glthread_recursive_lock_destroy_func): Renamed from
3327 glthread_recursive_lock_destroy.
3329 2008-08-14 Bruno Haible <bruno@clisp.org>
3331 * lib/glthread/lock.h: Renamed from lib/lock.h.
3332 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3333 * lib/glthread/tls.h: Renamed from lib/tls.h.
3334 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3335 * lib/fstrcmp.c: Update includes.
3336 * lib/strsignal.c: Update includes.
3337 * modules/lock (Files, Makefile.am): Update.
3338 (Include): Change to "glthread/lock.h".
3339 * modules/tls (Files, Makefile.am): Update.
3340 (Include): Change to "glthread/tls.h".
3341 * tests/test-lock.c: Update includes.
3342 * tests/test-tls.c: Update includes.
3343 * NEWS: Mention the renamed header files.
3345 2008-08-11 Jim Meyering <meyering@redhat.com>
3347 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3349 2008-08-11 Eric Blake <ebb9@byu.net>
3351 test-c-stack: avoid C99-ism
3352 * tests/test-c-stack.c (main): Fix whitespace, move declaration
3354 Reported by Alain Guibert.
3356 2008-08-10 Jim Meyering <meyering@redhat.com>
3358 ensure that return value of uinttostr et al are not ignored
3359 * lib/inttostr.h (__GNUC_PREREQ): Define.
3360 (__attribute_warn_unused_result__): Define.
3361 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3363 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
3365 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3366 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3368 2008-08-07 Jim Meyering <meyering@redhat.com>
3370 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3372 * modules/mkstemp (License): Relicense under LGPLv2+.
3373 * modules/tempname (License): Likewise.
3375 2008-08-06 Bruno Haible <bruno@clisp.org>
3377 * lib/poll.c (poll): Further micro-optimization.
3379 2008-08-06 Jim Meyering <meyering@redhat.com>
3381 inet_pton.c: use locale-independent tolower
3382 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3383 (inet_pton6): Use c_tolower rather than tolower.
3384 * modules/inet_pton (Depends-on): Add c-ctype.
3386 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
3388 * lib/poll.c (poll): Avoid division when timeout is 0, cache
3389 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
3391 2008-08-06 Jim Meyering <meyering@redhat.com>
3393 * modules/inet_pton (License): Relicense under LGPLv2+.
3395 2008-08-03 Bruno Haible <bruno@clisp.org>
3397 Additional non-aborting API for lock and tls.
3398 * lib/lock.h: Include <errno.h>.
3399 (glthread_lock_init): New macro/function.
3400 (gl_lock_init): Define as wrapper around glthread_lock_init.
3401 (glthread_lock_lock): New macro/function.
3402 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3403 (glthread_lock_unlock): New macro/function.
3404 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3405 (glthread_lock_destroy): New macro/function.
3406 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3407 (glthread_rwlock_init): New macro/function.
3408 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3409 (glthread_rwlock_rdlock): New macro/function.
3410 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3411 (glthread_rwlock_wrlock): New macro/function.
3412 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3413 (glthread_rwlock_unlock): New macro/function.
3414 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3415 (glthread_rwlock_destroy): New macro/function.
3416 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3417 (glthread_recursive_lock_init): New macro/function.
3418 (gl_recursive_lock_init): Define as wrapper around
3419 glthread_recursive_lock_init.
3420 (glthread_recursive_lock_lock): New macro/function.
3421 (gl_recursive_lock_lock): Define as wrapper around
3422 glthread_recursive_lock_lock.
3423 (glthread_recursive_lock_unlock): New macro/function.
3424 (gl_recursive_lock_unlock): Define as wrapper around
3425 glthread_recursive_lock_unlock.
3426 (glthread_recursive_lock_destroy): New macro/function.
3427 (gl_recursive_lock_destroy): Define as wrapper around
3428 glthread_recursive_lock_destroy.
3429 (glthread_once): New macro/function.
3430 (gl_once): Define as wrapper around glthread_once.
3431 Update function declarations.
3432 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3433 glthread_rwlock_init. Return error code.
3434 (glthread_rwlock_rdlock_multithreaded): Renamed from
3435 glthread_rwlock_rdlock. Return error code.
3436 (glthread_rwlock_wrlock_multithreaded): Renamed from
3437 glthread_rwlock_wrlock. Return error code.
3438 (glthread_rwlock_unlock_multithreaded): Renamed from
3439 glthread_rwlock_unlock. Return error code.
3440 (glthread_rwlock_destroy_multithreaded): Renamed from
3441 glthread_rwlock_destroy. Return error code.
3442 (glthread_recursive_lock_init_multithreaded): Renamed from
3443 glthread_recursive_lock_init. Return error code.
3444 (glthread_recursive_lock_lock_multithreaded): Renamed from
3445 glthread_recursive_lock_lock. Return error code.
3446 (glthread_recursive_lock_unlock_multithreaded): Renamed from
3447 glthread_recursive_lock_unlock. Return error code.
3448 (glthread_recursive_lock_destroy_multithreaded): Renamed from
3449 glthread_recursive_lock_destroy. Return error code.
3450 (glthread_once_call): Make static.
3451 (glthread_once_multithreaded): Renamed from glthread_once.
3452 * lib/tls.h: Include <errno.h>.
3453 (glthread_tls_key_init): New macro/function.
3454 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3455 (glthread_tls_set): New macro/function.
3456 (gl_tls_set): Define as wrapper around glthread_tls_set.
3457 (glthread_tls_key_destroy): New macro/function.
3458 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3459 Update function declarations.
3460 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3462 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3464 2008-08-04 Eric Blake <ebb9@byu.net>
3466 gnumakefile: use space, not TAB, outside of targets
3467 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3469 2008-08-02 Jim Meyering <meyering@redhat.com>
3471 getdate.y: avoid locale-dependent date parsing failure
3472 In Turkish locales, getdate would fail to recognize keywords
3473 containing a lowercase "i". The solution is not to rely on
3474 locale-sensitive case-conversion.
3475 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3476 (lookup_word): Use c_toupper in place of toupper.
3477 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3478 Reported by Vefa Bicakci <bicave@superonline.com> in
3479 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3480 * modules/getdate (Depends-on): Add c-ctype.
3482 2008-08-02 Bruno Haible <bruno@clisp.org>
3484 * gnulib-tool (func_import): When updating or creating a .gitignore
3485 file, prepend each added line with a slash, and ignore leading slashes
3486 from the existing lines.
3487 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3489 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3491 Portability fix for GNU make 3.79.1.
3492 * top/GNUmakefile: Avoid 'else COND', which older GNU make
3493 versions do not understand.
3495 2008-08-01 Bruno Haible <bruno@clisp.org>
3497 Work around bug of HP-UX 10.20 cc with -0.0 literal.
3498 * tests/test-isnanf.h (zero): New variable.
3499 (main): Avoid literal -0.0f.
3500 * tests/test-isnand.h (zero): New variable.
3501 (main): Avoid literal -0.0.
3502 * tests/test-isnanl.h (zero): New variable.
3503 (main): Avoid literal -0.0L.
3504 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3505 (test_float, test_double, test_long_double): Avoid literals -0.0f,
3507 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3508 (test_signbitd): Avoid literal -0.0.
3509 (test_signbitl): Avoid literal -0.0L.
3510 * tests/test-ceilf1.c (zero): New variable.
3511 (main): Avoid literal -0.0f.
3512 * tests/test-ceill.c (zero): New variable.
3513 (main): Avoid literal -0.0L.
3514 * tests/test-floorf1.c (zero): New variable.
3515 (main): Avoid literal -0.0f.
3516 * tests/test-floorl.c (zero): New variable.
3517 (main): Avoid literal -0.0L.
3518 * tests/test-roundf1.c (zero): New variable.
3519 (main): Avoid literal -0.0f.
3520 * tests/test-round1.c (zero): New variable.
3521 (main): Avoid literal -0.0.
3522 * tests/test-roundl.c (zero): New variable.
3523 (main): Avoid literal -0.0L.
3524 * tests/test-truncf1.c (zero): New variable.
3525 (main): Avoid literal -0.0f.
3526 * tests/test-trunc1.c (zero): New variable.
3527 (main): Avoid literal -0.0.
3528 * tests/test-truncl.c (zero): New variable.
3529 (main): Avoid literal -0.0L.
3530 * tests/test-frexp.c (zero): New variable.
3531 (main): Avoid literal -0.0.
3532 * tests/test-frexpl.c (zero): New variable.
3533 (main): Avoid literal -0.0L.
3534 * tests/test-ldexpl.c (zero): New variable.
3535 (main): Avoid literal -0.0L.
3536 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3537 (zerod, zerol): New variables.
3538 (test_function): Avoid literals -0.0, -0.0L.
3539 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3540 (zerod, zerol): New variables.
3541 (test_function): Avoid literals -0.0, -0.0L.
3542 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3543 (zerod, zerol): New variables.
3544 (test_function): Avoid literals -0.0, -0.0L.
3545 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3546 (zerod, zerol): New variables.
3547 (test_function): Avoid literals -0.0, -0.0L.
3548 * tests/test-strtod.c (zero): New variable.
3549 (main): Avoid literal -0.0.
3550 Reported by Jonathan C. Patschke <jp@centtech.com>.
3552 2008-07-31 Jim Meyering <meyering@redhat.com>
3554 sha256.h: correct definition of SHA224_DIGEST_SIZE
3555 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3556 Reported by Paulie Pena IV <paulie4@gmail.com>.
3557 Define as 224 / 8, rather than as a literal.
3558 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3559 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3560 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3562 2008-07-31 Bruno Haible <bruno@clisp.org>
3564 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3565 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3566 Reported by Jonathan Patschke <jp@centtech.com>.
3568 2008-07-31 Bruno Haible <bruno@clisp.org>
3570 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3571 Reported by Paolo Bonzini <bonzini@gnu.org>.
3573 2008-07-30 Eric Blake <ebb9@byu.net>
3575 test-strtod: allow compilation without -lm
3576 * tests/test-strtod.c (main): Avoid link dependence on fabs.
3577 Reported by Dennis Clarke <blastwave@gmail.com>.
3579 2008-07-28 Jim Meyering <meyering@redhat.com>
3581 bootstrap: work also when there are no .po files in po/
3582 * build-aux/bootstrap (update_po_files): Complete the change
3583 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3585 2008-07-27 Jim Meyering <meyering@redhat.com>
3587 * users.txt: Add zile.
3589 2008-07-26 Ben Pfaff <blp@gnu.org>
3591 Add missing dependencies on new m4/exponent[fdl].m4 files.
3592 * modules/isnanf-nolibm: Add m4/exponentf.m4.
3593 * modules/isnand-nolibm: Add m4/exponentd.m4.
3594 * modules/isnanl-nolibm: Add m4/exponentl.m4.
3595 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3596 m4/isnan[fdl].m4, because the macros actually used moved.
3597 Reported by Jim Meyering.
3599 2008-07-14 Ben Pfaff <blp@gnu.org>
3602 * lib/isinf.c: New file.
3603 * lib/math.in.h: Define isinf macro if we have decided to replace
3605 * m4/isinf.m4: New file.
3606 * m4/math_h.m4: Initialize and substitute variables for isinf
3608 * modules/isinf: New file.
3609 * modules/isinf-tests: New file.
3610 * modules/math: Add substitutions for new module.
3611 * tests/test-isinf.c: New file.
3612 * doc/posix-functions/isinf.texi: Mention new module.
3613 * MODULES.html.sh: Mention new module.
3615 2008-07-14 Ben Pfaff <blp@gnu.org>
3617 Factor out some macros for use by additional modules.
3618 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3620 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3622 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3624 * m4/exponentf.m4: New file.
3625 * m4/exponentd.m4: New file.
3626 * m4/exponentl.m4: New file.
3627 * modules/isnanf: Use new file m4/exponentf.m4.
3628 * modules/isnand: Use new file m4/exponentd.m4.
3629 * modules/isnanl: Use new file m4/exponentl.m4.
3631 2008-07-23 Ulrich Drepper <drepper@redhat.com>
3633 mktime.c: normalize tp->tm_isdst value to -1/0/1.
3634 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3635 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3636 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3638 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3639 readlink on platforms without PATH_MAX.
3641 2008-07-21 Eric Blake <ebb9@byu.net>
3643 Warn, not fail, on stale version.
3644 * top/GNUmakefile (_curr-ver): Tone down previous patch.
3646 Don't allow installation with stale devel version number.
3647 * top/GNUmakefile (_is-install-target): New macro.
3648 (_curr-ver): Forbid installation with stale version number.
3650 2008-07-20 Bruno Haible <bruno@clisp.org>
3652 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3654 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3656 2008-07-20 Bruno Haible <bruno@clisp.org>
3658 * lib/c-stack.h (c_stack_action): Add documentation.
3659 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3661 2008-07-20 Bruno Haible <bruno@clisp.org>
3663 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3664 * modules/readlink (License): Likewise.
3666 2008-07-17 Eric Blake <ebb9@byu.net>
3668 * modules/c-stack (Link): Fix typo.
3670 Make c-stack use libsigsegv, when available.
3671 * modules/c-stack (Depends-on): Add libsigsegv.
3672 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3674 * lib/c-stack.c (SIGSTKSZ): Define fallback.
3675 (segv_handler, overflow_handler, c_stack_action)
3676 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3677 implementation when libsigsegv is available, but only when using
3678 the library is necessary.
3679 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3680 comment, explaining why XSI check fails on Linux.
3681 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3682 * tests/test-c-stack2.sh: Tweak skip message.
3683 * NEWS: Document new link-time requirements.
3685 2008-07-16 Eric Blake <ebb9@byu.net>
3687 c-stack: Expose false positives when not using libsigsegv.
3688 * modules/c-stack-tests (Files): Expand test.
3689 * tests/test-c-stack.c (main): Add means to conditionally trigger
3690 non-overflow SIGSEGV.
3691 * tests/test-c-stack2.sh: New file.
3693 2008-07-14 Bruno Haible <bruno@clisp.org>
3695 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3696 Reported by Eric Blake.
3698 2008-07-14 Sam Steingold <sds@gnu.org>
3699 Bruno Haible <bruno@clisp.org>
3701 New module libsigsegv.
3702 * modules/libsigsegv: New file.
3703 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3705 * MODULES.html.sh (Signal handling): New section.
3707 2008-07-14 Bruno Haible <bruno@clisp.org>
3709 * modules/unictype/ctype-* (Description): Add the word "function".
3710 Improves the resulting doc in MODULES.html.
3712 2008-07-12 Ben Pfaff <blp@gnu.org>
3714 Add longlong module.
3715 * modules/longlong: New file.
3717 2008-07-12 Bruno Haible <bruno@clisp.org>
3719 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3722 2008-07-10 Ben Pfaff <blp@gnu.org>
3725 * doc/posix-functions/isnan.texi: Mention new module.
3726 * lib/math.in.h: Define isnan macro if we have decided to replace
3728 * m4/isnan.m4: New file.
3729 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3730 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3732 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3734 * m4/math_h.m4: Initialize and substitute variables for isnan
3736 * modules/isnan: New file.
3737 * modules/isnan-tests: New file.
3738 * modules/math: Add substitutions for new module.
3739 * tests/test-isnan.c: New file.
3740 * MODULES.html.sh: Mention new module.
3742 2008-07-10 Ben Pfaff <blp@gnu.org>
3745 * lib/isnanf.m4: New file.
3746 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3747 (gl_HAVE_ISNANF_IN_LIBM): New macro.
3748 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3749 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3750 * modules/isnanf: New file.
3751 * modules/isnanf-tests: New file.
3752 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3754 * tests/test-isnanf-nolibm.c: factored most of its contents into
3755 new file tests/test-isnanf.h.
3756 * tests/test-isnanf.h: New file.
3757 * tests/test-isnanf.c: New file.
3758 * MODULES.html.sh: Mention new module.
3759 * doc/glibc-functions/isnanf.texi: Mention new module.
3761 2008-07-10 Ben Pfaff <blp@gnu.org>
3764 * lib/isnand.h: New file.
3765 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3766 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3767 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3769 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3770 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3771 (gl_HAVE_ISNAND_IN_LIBM): New macro.
3772 * modules/isnand: New file.
3773 * modules/isnand-tests: New file.
3774 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3776 * tests/test-isnand-nolibm.c: factored most of its contents into
3777 new file tests/test-isnand.h.
3778 * tests/test-isnand.h: New file.
3779 * tests/test-isnand.c: New file.
3780 * MODULES.html.sh: Mention new module.
3782 2008-07-10 Ben Pfaff <blp@gnu.org>
3784 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3785 * lib/isnand.h: Rename lib/isnand-nolibm.h.
3786 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3787 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3788 * modules/isnanf-nolibm: Update references to renamed files.
3789 * modules/isnand-nolibm: Likewise.
3790 * modules/isnanf-nolibm-tests: Likewise.
3791 * modules/isnand-nolibm-tests: Likewise.
3792 * lib/frexp.c: Likewise.
3793 * lib/isfinite.c: Likewise.
3794 * lib/signbitd.c: Likewise.
3795 * lib/signbitf.c: Likewise.
3796 * lib/vasnprintf.c: Likewise.
3797 * tests/test-ceilf1.c: Likewise.
3798 * tests/test-ceilf2.c: Likewise.
3799 * tests/test-floorf1.c: Likewise.
3800 * tests/test-floorf2.c: Likewise.
3801 * tests/test-frexp.c: Likewise.
3802 * tests/test-round1.c: Likewise.
3803 * tests/test-round2.c: Likewise.
3804 * tests/test-roundf1.c: Likewise.
3805 * tests/test-strtod.c: Likewise.
3806 * tests/test-trunc1.c: Likewise.
3807 * tests/test-trunc2.c: Likewise.
3808 * tests/test-truncf1.c: Likewise.
3809 * tests/test-truncf2.c: Likewise.
3810 * NEWS: Mention the renamed header files.
3812 2008-07-11 Jim Meyering <meyering@redhat.com>
3814 vc-list-files: make the last-resort awk code more portable
3815 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3816 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3817 does not support it.
3819 2008-07-10 Eric Blake <ebb9@byu.net>
3821 Work with tar's bootstrap.
3822 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3823 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3826 2008-07-09 Jim Meyering <meyering@redhat.com>
3828 posix-shell.m4: fix typo that made this test malfunction
3829 * m4/posix-shell.m4: Remove capitalization in variable name.
3831 2008-07-08 Bruno Haible <bruno@clisp.org>
3833 * m4/onceonly.m4: Update comments.
3834 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3836 2008-07-04 Jim Meyering <meyering@redhat.com>
3838 * users.txt: Add vc-dwim.
3839 (bison, coreutils): Use the gitweb URL.
3841 2008-07-03 Jim Meyering <meyering@redhat.com>
3843 * users.txt: Add libffcall. From Sam Steingold.
3845 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
3847 getdate.y: do not ignore TZ with relative day, month or year offset
3848 * lib/getdate.y (get_date): Move the tz-handling block to follow the
3849 relative-date-handling, since otherwise, the latter would clobber the
3850 sole output (an updated Start value) of the tz-handling block.
3851 * tests/test-getdate.c: Tests for the fix
3853 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3855 Recognize 'foo_LIBRARIES += libgnu.a'.
3856 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3857 makefile snippet has already specified an installation location,
3860 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
3862 getdate.y: factor out common actions
3863 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3864 Use them in place of open-coded actions.
3866 2008-07-01 Simon Josefsson <simon@josefsson.org>
3868 Add self-test for getdate module.
3869 * modules/getdate-tests: New file.
3870 * tests/test-getdate.c: New file.
3872 2008-06-29 Bruno Haible <bruno@clisp.org>
3874 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3876 Reported by Sylvain Beucler <beuc@beuc.net>.
3878 2008-06-29 Bruno Haible <bruno@clisp.org>
3880 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3881 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3883 2008-06-29 Bruno Haible <bruno@clisp.org>
3885 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3887 Reported by Sylvain Beucler <beuc@beuc.net>.
3889 2008-06-26 Jim Meyering <meyering@redhat.com>
3891 make several modules depend on the "open" module
3892 This provides slightly increased consistency when opening-for-write
3893 the name of a non-directory spelled with a trailing slash.
3894 * modules/chdir-safer: Likewise.
3895 * modules/chown: Likewise.
3896 * modules/clean-temp: Likewise.
3897 * modules/copy-file: Likewise.
3898 * modules/fchdir: Likewise.
3899 * modules/fcntl-safer: Likewise.
3900 * modules/pipe: Likewise.
3901 * modules/utime: Likewise.
3902 Prompted by Eric Blake and Bruno Haible.
3904 2008-06-24 Andreas Schwab <schwab@suse.de>
3906 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3907 literals can be used as initializers for global variables.
3909 2008-06-23 Eric Blake <ebb9@byu.net>
3911 Make gnulib-cache.m4 easier to diff.
3912 * gnulib-tool (func_import): Allow newlines when reading cached
3913 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3915 2008-06-23 Bruno Haible <bruno@clisp.org>
3917 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3918 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3919 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3920 m4/signalblocking.m4.
3921 (gl_PREREQ_SIGACTION): Don't invoke it.
3922 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3923 gl_PREREQ_SIG_HANDLER_H.
3924 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3925 Don't check for sigaction here.
3927 2008-06-23 Bruno Haible <bruno@clisp.org>
3929 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3930 (install_handlers): Don't set the SA_RESETHAND flag.
3932 2008-06-23 Bruno Haible <bruno@clisp.org>
3934 * m4/sigaction.m4: Comment fixes.
3935 * lib/signal.in.h: Likewise.
3937 2008-06-23 Eric Blake <ebb9@byu.net>
3940 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3942 Avoid SA_ namespace.
3943 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3944 Reported by Ralf Wildenhues.
3946 Avoid test failure due to SA_RESTORER.
3947 * tests/test-sigaction.c (SA_MASK): New macro.
3948 (main): Avoid failing due to extension flags being set.
3949 Reported by Jim Meyering.
3951 Revert use of sig-handler.h in sigprocmask.c.
3952 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3953 it requires the existence of struct sigaction.
3954 * lib/sigprocmask.c (handler_t): Restore typedef.
3955 (rpl_signal, old_handlers): Use local type.
3957 2008-06-22 Bruno Haible <bruno@clisp.org>
3959 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3961 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3963 2008-06-22 Bruno Haible <bruno@clisp.org>
3965 * doc/posix-functions/siginterrupt.texi: Move note.
3967 * lib/signal.in.h (SA_RESTART): New macro.
3968 * lib/sigaction.c: Update comment.
3970 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3972 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3973 (gl_PREREQ_SIGPROCMASK): Invoke it.
3974 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3976 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3978 * lib/sigprocmask.c: Update a comment.
3980 2008-06-21 Eric Blake <ebb9@byu.net>
3982 Use sigaction module rather than signal().
3983 * modules/c-stack (Depends-on): Add sigaction.
3984 * modules/fatal-signal (Depends-on): Likewise.
3985 * modules/nanosleep (Depends-on): Likewise.
3986 * modules/sigprocmask (Files): Add sig-handler.h.
3987 * modules/sigaction (Files): Likewise.
3988 * lib/sig-handler.h (get_handler): New file, suggested by Paul
3990 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3991 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3992 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3993 (init_fatal_signals): Likewise.
3994 * lib/nanosleep.c (rpl_nanosleep): Likewise.
3995 (siginterrupt): Delete fallback.
3996 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3998 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4001 New module sigaction, for mingw.
4002 * modules/sigaction: New module...
4003 * modules/sigaction-tests: ...and its test.
4004 * m4/sigaction.m4: New file.
4005 * lib/sigaction.c: Likewise.
4006 * tests/test-sigaction.c: Likewise.
4007 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4008 * modules/signal (Makefile.am): Likewise.
4009 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4011 * doc/posix-headers/signal.texi (signal.h): Mention provided
4013 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4014 that sigaction is preferable.
4015 * doc/posix-functions/sigaction.texi (sigaction): Mention new
4017 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4020 Improve robustness of sigprocmask by overriding signal.
4021 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4023 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4024 (SIGKILL, SIGSTOP): Provide fallbacks.
4025 (rpl_signal): Implement.
4026 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4027 signal can be called inside handlers.
4029 Fix nanosleep module on mingw.
4030 * modules/nanosleep (Depends-on): Add sys_select.
4031 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4033 Fix licensing of sigprocmask.
4034 * modules/raise (License): Relicense as LGPL.
4036 2008-06-21 Bruno Haible <bruno@clisp.org>
4038 * lib/propername.c (proper_name_utf8): Don't use the transliterated
4039 result if it contains question marks.
4040 Reported by Michael Geng <linux@michaelgeng.de>.
4042 2008-06-19 Bruno Haible <bruno@clisp.org>
4045 * doc/gnulib.texi: Include updated-stamp.texi.
4046 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4047 (updated-stamp.texi): New rule.
4048 (gnulib.info): Depend on it.
4049 * doc/.gitignore: Add updated-stamp.texi.
4050 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4052 2008-06-19 Bruno Haible <bruno@clisp.org>
4054 * doc/Makefile (gnulib.info): Update and simplify dependencies.
4055 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4057 2008-06-19 Eric Blake <ebb9@byu.net>
4059 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4060 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4061 Reported by Stepan Kasal.
4063 2008-06-18 Bruno Haible <bruno@clisp.org>
4065 * lib/fatal-signal.c (init_fatal_signals): Add comment.
4066 Reported by Eric Blake.
4068 2008-06-18 Eric Blake <ebb9@byu.net>
4070 Work around cygwin 1.5.25 strsignal bug.
4071 * tests/test-strsignal.c: Allow for const char *.
4072 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4074 2008-06-18 Simon Josefsson <simon@josefsson.org>
4076 * users.txt: Update URL to article and add author/date
4079 2008-06-17 Bruno Haible <bruno@clisp.org>
4081 New macro gl_DISABLE_THREADS.
4082 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4083 if the user did not pass --enable-threads or --disable-threads option.
4084 (gl_DISABLE_THREADS): New macro.
4085 Reported by Eric Blake <ebb9@byu.net>.
4087 2008-06-17 Bruno Haible <bruno@clisp.org>
4089 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4090 when the macro ignores it.
4091 Based on a patch by Eric Blake <ebb9@byu.net>.
4093 2008-06-17 Bruno Haible <bruno@clisp.org>
4095 * modules/tls (License): Change to LGPLv2+.
4096 Reported by Eric Blake.
4098 2008-06-17 Eric Blake <ebb9@byu.net>
4100 Simplify c-stack prerequisites.
4101 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4102 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4103 no longer requires <ucontext.h> to exist. Optimize setrlimit
4105 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4108 Move c-stack test into testsuite.
4109 * modules/c-stack-tests: New file.
4110 * lib/c-stack.c [DEBUG]: Move test program...
4111 * tests/test-c-stack.c: ...into this new file. Skip rather than
4112 fail test if sigaltstack is lacking.
4113 * tests/test-c-stack.sh: New driver file.
4115 2008-06-16 Eric Blake <ebb9@byu.net>
4117 Use raise module consistently.
4118 * modules/fatal-signal (Depends-on): Add raise.
4119 * modules/sigprocmask (Depends-on): Likewise.
4120 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4121 * lib/sigprocmask.c (sigprocmask): Likewise.
4122 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4123 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4125 Fix compliance bug in sigpending.
4126 * lib/sigprocmask.c (sigpending): Return pending array via
4127 parameter, not return value.
4129 2008-06-14 Eric Blake <ebb9@byu.net>
4131 Improve obstack-printf test code.
4132 * tests/test-obstack-printf.c (test_function): Fix comment, and
4133 simplify usage of obstack_* in macros. Add a test for coverage.
4134 Reported by Bruno Haible.
4136 2008-06-14 Bruno Haible <bruno@clisp.org>
4138 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4139 array size as a constant, not as a const variable.
4140 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4141 AC_USE_SYSTEM_EXTENSIONS.
4142 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4143 Test whether the obstack_printf function actually exists.
4144 * modules/obstack-printf (Depends-on): Add extensions.
4145 (Include): Remove obstack.h.
4146 * modules/obstack-printf-posix (Depends-on): Add extensions.
4147 (Include): Remove obstack.h.
4149 2008-06-13 Eric Blake <ebb9@byu.net>
4151 Add obstack-printf and obstack-printf-posix modules.
4152 * modules/obstack-printf: New file.
4153 * modules/obstack-printf-posix: Likewise.
4154 * MODULES.html.sh (Misc): Mention them.
4155 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4157 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4159 * modules/stdio (Makefile.am): Accomodate new modules.
4160 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4161 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4163 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4165 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4166 (gl_REPLACE_OBSTACK_PRINTF): New macros
4167 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4168 * tests/test-obstack-printf.c: New file.
4169 * modules/obstack-printf-tests: Likewise.
4170 * modules/obstack-printf-posix-tests: Likewise.
4172 2008-06-11 Bruno Haible <bruno@clisp.org>
4174 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4175 * lib/open.c: Include errno.h.
4176 (open): Fail when attempting to write to a file that has a trailing
4178 * tests/test-open.c (main): Test against trailing slash bug.
4179 * doc/posix-functions/open.texi: Mention the trailing slash bug.
4181 2008-06-10 Bruno Haible <bruno@clisp.org>
4183 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4184 for $? to work inside the trap command, with various /bin/sh-s.
4185 * tests/test-vc-list-files-cvs.sh: Likewise.
4187 2008-06-10 Bruno Haible <bruno@clisp.org>
4189 * lib/acl-internal.h: Don't include gettext.h here.
4190 * lib/set-mode-acl.c: Include gettext.h here.
4191 * lib/copy-acl.c: Likewise.
4193 2008-06-10 Bruno Haible <bruno@clisp.org>
4195 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4196 * lib/wait-process.c (wait_subprocess): Likewise.
4197 * lib/execute.h (execute): Add termsigp argument.
4198 * lib/execute.c (execute): Likewise.
4199 * lib/csharpcomp.c (compile_csharp_using_pnet,
4200 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4201 * lib/csharpexec.c (execute_csharp_using_pnet,
4202 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4203 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4204 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4205 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4206 is_jikes_present): Update.
4207 * lib/javaexec.c (execute_java_class): Update.
4208 * lib/javaversion.c (execute_and_read_line): Update.
4209 * NEWS: Document the changes.
4210 Reported by Eric Blake.
4212 2008-06-10 Eric Blake <ebb9@byu.net>
4214 Add missing include.
4215 * tests/test-strstr.c (includes): Add <signal.h>.
4216 * tests/test-strcasestr.c (includes): Likewise.
4217 * tests/test-memmem.c (includes): Likewise.
4219 2008-06-10 Bruno Haible <bruno@clisp.org>
4221 * lib/wait-process.c (wait_subprocess): Add an assertion.
4223 2008-06-10 Bruno Haible <bruno@clisp.org>
4225 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4227 2008-06-10 Bruno Haible <bruno@clisp.org>
4229 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4231 * tests/test-strcasestr.c (main): Likewise.
4232 * tests/test-strstr.c (main): Likewise.
4234 2008-06-09 Bruno Haible <bruno@clisp.org>
4236 Work around the Solaris 10 ACE ACLs ABI change.
4237 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4238 declare if ACL_NO_TRIVIAL is present.
4239 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4240 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4241 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4242 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4243 define if ACL_NO_TRIVIAL is present.
4244 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4245 and use the current ABI.
4246 (file_has_acl): Use same #if condition as elsewhere.
4247 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4248 in use, and use the current ABI.
4249 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4250 Reported by Jim Meyering.
4252 2008-06-09 Eric Blake <ebb9@byu.net>
4254 Work around environments that (stupidly) ignore SIGALRM.
4255 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4256 before using alarm().
4257 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4258 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4259 Reported by Ian Beckwith <ianb@erislabs.net>.
4261 Produce autobuild blurb earlier in log.
4262 * modules/autobuild (configure.ac-early): Move AB_INIT here.
4264 2008-06-09 Jim Meyering <meyering@redhat.com>
4265 and Ondřej Vašík <ovasik@redhat.com>
4267 utimens.c: correct kernel bug work-around
4268 Ondřej Vašík found that the invalid return value of 280 indicates
4269 failure, not success, and the kernel bug we're trying to work
4270 around affects not just the utimensat call, but also the fallback
4272 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4274 [HAVE_FUTIMENS]: Use the same work-around, here.
4276 2008-06-09 Jim Meyering <meyering@redhat.com>
4278 add more guards around definition of ACE_-related code
4279 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4280 ALLOW and ACE_OWNER are also defined.
4282 2008-06-08 Bruno Haible <bruno@clisp.org>
4284 * lib/acl-internal.h: Add me as co-author.
4285 * lib/file-has-acl.c: Likewise.
4286 * lib/set-mode-acl.c: Likewise.
4287 * lib/copy-acl.c: Likewise.
4289 2008-06-08 Bruno Haible <bruno@clisp.org>
4291 Add support for AIX ACLs.
4292 * lib/acl-internal.h (acl_nontrivial): New declaration.
4293 * lib/file-has-acl.c (acl_nontrivial): New function.
4294 (file_has_acl): Add implementation using AIX 4 ACL API.
4295 * lib/set-mode-acl.c (qset_acl): Likewise.
4296 * lib/copy-acl.c (qcopy_acl): Likewise.
4298 2008-06-08 Bruno Haible <bruno@clisp.org>
4300 Add support for HP-UX ACLs.
4301 * lib/acl-internal.h (acl_nontrivial): New declaration.
4302 * lib/file-has-acl.c (acl_nontrivial): New function.
4303 (file_has_acl): Add implementation using HP-UX 11 ACL API.
4304 * lib/set-mode-acl.c (qset_acl): Likewise.
4305 * lib/copy-acl.c (qcopy_acl): Likewise.
4307 2008-06-08 Bruno Haible <bruno@clisp.org>
4309 Add support for Cygwin ACLs.
4310 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4311 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4312 the chmod_or_fchmod call.
4313 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4315 2008-06-08 Bruno Haible <bruno@clisp.org>
4317 Fix bug with setuid modes in Solaris 10+ code.
4318 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4319 succeeded, when the mode contains some special bits.
4321 2008-06-08 Bruno Haible <bruno@clisp.org>
4323 Add support for Solaris 7..10 ACLs.
4324 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4326 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4328 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4329 * lib/set-mode-acl.c (qset_acl): Likewise.
4330 * lib/copy-acl.c (qcopy_acl): Likewise.
4332 2008-06-08 Bruno Haible <bruno@clisp.org>
4334 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4336 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4337 (acl_access_nontrivial): Remove MacOS X case.
4338 (file_has_acl): Use acl_extended_nontrivial.
4339 * lib/copy-acl.c (qcopy_acl): Likewise.
4341 2008-06-08 Bruno Haible <bruno@clisp.org>
4343 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4345 2008-06-08 Jim Meyering <meyering@redhat.com>
4347 * modules/acl (Maintainer): Add Bruno Haible.
4349 2008-06-07 Bruno Haible <bruno@clisp.org>
4351 Improve support for Tru64 ACLs.
4352 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4355 2008-06-07 Bruno Haible <bruno@clisp.org>
4357 Add support for MacOS X ACLs.
4358 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4359 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4360 * lib/set-mode-acl.c (qset_acl): Likewise.
4361 * lib/copy-acl.c (qcopy_acl): Likewise.
4363 2008-06-07 Bruno Haible <bruno@clisp.org>
4365 Fix memory leak introduced on 2008-05-22.
4366 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4369 2008-06-07 Bruno Haible <bruno@clisp.org>
4371 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4372 to construct an empty ACL.
4374 2008-06-07 Bruno Haible <bruno@clisp.org>
4376 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4378 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4380 2008-06-07 Bruno Haible <bruno@clisp.org>
4382 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4383 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4385 2008-06-07 Bruno Haible <bruno@clisp.org>
4387 * doc/posix-functions/_setjmp.texi: Explain the use of this function
4388 regardless of POSIX.
4389 * doc/posix-functions/_longjmp.texi: Likewise.
4390 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4391 SystemV platform in this case.
4393 2008-06-06 Eric Blake <ebb9@byu.net>
4395 Document abort() bugs.
4396 * doc/posix-functions/abort.texi (abort): Mention anomalies.
4398 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4399 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4401 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4402 siglongjmp, but only as a macro.
4403 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4405 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4407 Tweak documentation to cover cygwin argz bugs.
4408 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4409 argz bug fix; no code change needed since no cygwin releases
4410 occurred between the last fix and the bug being tested.
4411 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4412 module and recently fixed cygwin bugs.
4413 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4414 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4415 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4416 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4417 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4419 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4420 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4421 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4422 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4423 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4424 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4427 Avoid gcc warning on cygwin.
4428 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4429 !ACL_NO_TRIVIAL]: Avoid unused variable.
4431 2008-06-05 Eric Blake <ebb9@byu.net>
4433 Be tolerant of UNKNOWN version in gnulib-tool test dir.
4434 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4435 git-version-gen fails to come up with a version.
4436 Reported by Simon Josefsson.
4438 2008-06-05 Jim Meyering <meyering@redhat.com>
4439 Paul Eggert <eggert@cs.ucla.edu>
4441 utimens.c: work around a probable Linux kernel bug
4442 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4443 appears to be a kernel bug that causes utimensat to return 280
4444 instead of 0, indicating success.
4446 2008-06-04 Bruno Haible <bruno@clisp.org>
4448 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4451 2008-06-04 Bruno Haible <bruno@clisp.org>
4453 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4454 * lib/file-has-acl.c (acl_access_nontrivial): New function.
4455 (file_has_acl): Use it. Save errno afterwards.
4456 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4458 2008-06-03 Bruno Haible <bruno@clisp.org>
4460 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4461 draft code. Simplify #ifs.
4462 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4463 Put Solaris code after POSIX-draft code. Fix comments regarding
4464 Solaris 10, HP-UX. Mention Cygwin.
4465 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4467 2008-06-03 Eric Blake <ebb9@byu.net>
4469 Provide fallback for older kernels.
4470 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4471 Provide runtime fallback if kernel lacks support.
4472 Reported by Mike Frysinger.
4474 2008-06-02 Bruno Haible <bruno@clisp.org>
4476 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4479 2008-06-02 Bruno Haible <bruno@clisp.org>
4481 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4482 * lib/copy-acl.c (qcopy_acl): Update comment.
4484 2008-06-02 Bruno Haible <bruno@clisp.org>
4486 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4489 2008-06-02 Bruno Haible <bruno@clisp.org>
4491 * tests/test-file-has-acl.sh: Use different code for Cygwin.
4492 * tests/test-set-mode-acl.sh: Likewise.
4493 * tests/test-copy-acl.sh: Likewise.
4494 * tests/test-copy-file.sh: Likewise.
4496 2008-06-02 Bruno Haible <bruno@clisp.org>
4498 * tests/test-file-has-acl.sh: Remove unused code.
4500 2008-06-01 Bruno Haible <bruno@clisp.org>
4502 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4503 (copy_acl): Just a wrapper around qcopy_acl that emits the error
4505 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4507 2008-06-01 Bruno Haible <bruno@clisp.org>
4509 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4510 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4511 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4513 * modules/acl-tests (configure.ac): Remove tests now contained in
4516 2008-06-02 Jim Meyering <meyering@redhat.com>
4518 announce-gen: use a better key-server host name
4519 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4520 it may be more consistently reliable. Suggested by Werner Koch
4521 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4523 2008-06-01 Bruno Haible <bruno@clisp.org>
4525 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4526 Reported by Voroskoi Andras <voroskoi@gmail.com>.
4528 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
4530 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4532 2008-06-01 Bruno Haible <bruno@clisp.org>
4535 * tests/test-file-has-acl.sh: New file.
4536 * tests/test-file-has-acl.c: New file.
4537 * tests/test-set-mode-acl.sh: New file.
4538 * tests/test-set-mode-acl.c: New file.
4539 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4540 * tests/test-copy-acl.c: New file.
4541 * modules/acl-tests: New file, based on modules/copy-file-tests.
4542 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4543 (Depends-on): Add acl-tests.
4544 (configure.ac): Remove checks.
4545 (Makefile.am): Don't create test-sameacls program here any more.
4547 2008-06-01 Bruno Haible <bruno@clisp.org>
4549 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4550 * tests/test-sameacls.c: Include progname.h.
4551 (main): Invoke set_program_name. Portability fixes for MacOS X,
4554 2008-06-01 Bruno Haible <bruno@clisp.org>
4556 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4558 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4560 2008-06-01 Bruno Haible <bruno@clisp.org>
4562 * modules/rpmatch (Depends-on): Add strdup.
4564 2008-06-01 Bruno Haible <bruno@clisp.org>
4566 * lib/pipe.c: Include unistd-safer.h.
4567 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4568 * modules/pipe (Depends-on): Add unistd-safer.
4570 2008-05-30 Simon Josefsson <simon@josefsson.org>
4572 * modules/autobuild (configure.ac): Call AB_INIT.
4574 2008-05-30 Simon Josefsson <simon@josefsson.org>
4576 * tests/test-getaddrinfo.c: Don't print debug messages by default.
4577 Suggested by Bruno Haible <bruno@clisp.org>.
4579 2008-05-30 Simon Josefsson <simon@josefsson.org>
4581 * tests/test-base64.c: Cast size_t to unsigned long when invoking
4582 printf. Use %lu instead of %d. Reported by Bruno Haible
4585 2008-05-29 Eric Blake <ebb9@byu.net>
4587 Prefer new POSIX 200x interfaces over futimesat.
4588 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4589 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4591 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4593 2008-05-28 Bruno Haible <bruno@clisp.org>
4595 * modules/stpcpy (License): Change to LGPLv2+.
4596 Requested by David Lutterkort <dlutter@redhat.com>.
4598 2008-05-27 Bruno Haible <bruno@clisp.org>
4600 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4602 Reported by Jose E. Marchesi <jemarch@gnu.org>.
4604 2008-05-27 Bruno Haible <bruno@clisp.org>
4606 * modules/iconv_open (Link): New section, from module 'iconv'.
4607 * modules/striconv (Link): Likewise.
4608 * modules/striconveh (Link): Likewise.
4609 * modules/xstriconv (Link): Likewise.
4610 * modules/unicodeio (Link): Likewise.
4611 * modules/propername (Link): Likewise.
4612 Reported by Jim Meyering.
4614 2008-05-26 Jim Meyering <meyering@redhat.com>
4616 sha256: do not artificially restrict buffer length to be < 2^32
4617 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4619 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4622 avoid unaligned access errors, e.g., on sparc
4623 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4624 direct access through a possibly-unaligned uint64* pointer.
4625 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4626 direct access through a possibly-unaligned uint32* pointer.
4627 Prompted by this patch from Tom "spot" Callaway:
4628 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4630 sha512.c: fix typo in comment
4631 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4633 2008-05-25 Bruno Haible <bruno@clisp.org>
4635 * lib/set-mode-acl.c: Renamed from lib/acl.c.
4636 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4637 (Makefile.am): Update lib_SOURCES.
4639 2008-05-25 Bruno Haible <bruno@clisp.org>
4641 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4643 2008-05-25 Jim Meyering <meyering@redhat.com>
4645 useless-if-before-free: freed expr may have white-space differences
4646 * build-aux/useless-if-before-free: Recognize cases in which the
4647 freed expression differs from the tested one in embedded white
4648 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
4649 $1 was used, so we can't make any regexp shy. Improved tests now
4652 useless-if-before-free: accept white space in the expression.
4653 * build-aux/useless-if-before-free: For now, any white space
4654 in the expression must be identical in the free argument.
4656 useless-if-before-free: efficiency tweak
4657 * build-aux/useless-if-before-free: Make the expression-matching
4659 Make the *outer* regexp shy, not the expr-matching one.
4661 update code-in-comment to accept cast of free arg
4662 * build-aux/useless-if-before-free: Update regexp.
4664 2008-05-25 Bruno Haible <bruno@clisp.org>
4666 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4667 * modules/copy-file-tests (Files, Makefile.am): Update.
4668 * tests/test-copy-file.c (func_test_copy): Update.
4670 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
4672 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4674 2008-05-23 Bruno Haible <bruno@clisp.org>
4676 Improve support for ACLs on OSF/1.
4677 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4678 Remove fallback for unknown flavors of ACLs.
4680 2008-05-22 Bruno Haible <bruno@clisp.org>
4682 Add support for ACLs on OSF/1.
4683 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4685 (acl_free_text): New macro fallback.
4686 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4688 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4689 acl_free_text function. Require AC_C_INLINE.
4691 2008-05-22 Bruno Haible <bruno@clisp.org>
4693 Make copy_acl work on MacOS X 10.5.
4694 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4695 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4696 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4697 If MODE_INSIDE_ACL, don't assume that every system has the same text
4698 representation for ACLs as FreeBSD.
4699 * lib/copy-acl.c (copy_acl): Add support for platforms with
4701 * lib/file-has-acl.c (file_has_acl): Likewise.
4702 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4703 FreeBSD, MacOS X, or IRIX, respectively.
4705 2008-05-22 Bruno Haible <bruno@clisp.org>
4707 * lib/acl.h: Don't include <sys/acl.h>.
4708 (GETACLCNT): Move fallback to lib/acl-internal.h.
4709 * lib/acl-internal.h: Include <sys/acl.h> here.
4710 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4712 2008-05-22 Bruno Haible <bruno@clisp.org>
4714 Split off copy_acl function to separate file.
4715 * lib/copy-acl.c: New file, extracted from lib/acl.c.
4716 * lib/acl.c (copy_acl): Moved function to separate file.
4717 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4718 * modules/acl (Files): Add lib/copy-acl.c.
4719 (Makefiles.am): Augment lib_SOURCES.
4721 2008-05-22 Bruno Haible <bruno@clisp.org>
4723 * modules/copy-file-tests: New file.
4724 * tests/test-copy-file.sh: New file.
4725 * tests/test-copy-file.c: New file.
4726 * tests/test-copy-file-sameacls.c: New file.
4728 2008-05-22 Eric Blake <ebb9@byu.net>
4731 * tests/test-memcmp.c (main): Pass NULL indirectly.
4733 2008-05-21 Bruno Haible <bruno@clisp.org>
4735 Add reference doc about ACLs.
4736 * doc/acl-resources.txt: New file.
4737 * doc/acl-cygwin.txt: New file.
4739 2008-05-21 Bruno Haible <bruno@clisp.org>
4741 Avoid one more warning from gcc.
4742 * lib/vasnprintf.c (IF_LINT): Update comments.
4743 (VASNPRINTF): Use it also for the 'prefix' array initializer.
4745 2008-05-21 Jim Meyering <meyering@redhat.com>
4747 avoid a warning from gcc
4748 * lib/vasnprintf.c (IF_LINT): Define.
4749 (scale10_round_decimal_long_double):
4750 Use it to avoid a "may be used uninitialized" warning.
4751 (scale10_round_decimal_double): Likewise.
4753 2008-05-21 Simon Josefsson <simon@josefsson.org>
4755 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4758 2008-05-20 Bruno Haible <bruno@clisp.org>
4760 * tests/test-memcmp.c (main): Test also the sign of the result. Test
4761 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4763 2008-05-20 Simon Josefsson <simon@josefsson.org>
4765 * modules/memcmp-tests: New file.
4766 * tests/test-memcmp.c: New file.
4768 2008-05-19 Bruno Haible <bruno@clisp.org>
4770 * modules/propername (Notice, configure.ac): Put quoted "..." into
4772 * lib/propername.h: Update comments accordingly.
4773 Reported by Eric Blake.
4775 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
4777 * modules/getpass-gnu (Depends-on): Add fseeko.
4779 2008-05-19 Simon Josefsson <simon@josefsson.org>
4781 * modules/base64-tests: New file.
4783 2008-05-19 Bo Borgerson <gigabo@gmail.com>
4785 * lib/base64.c (base64_decode_ctx): If a decode context structure
4786 was passed in use it to ignore newlines. If a context structure
4787 was _not_ passed in, continue to treat newlines as garbage (this
4788 is the historical behavior). Formerly base64_decode.
4789 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
4790 takes a decode context structure.
4791 * lib/base64.h (base64_decode): Macro for four-argument calls.
4792 (base64_decode_alloc): Likewise.
4793 * lib/base64.c (base64_decode_ctx): If a decode context structure
4794 was passed in use it to ignore newlines. If a context structure
4795 was _not_ passed in, continue to treat newlines as garbage (this
4796 is the historical behavior). Formerly base64_decode.
4797 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
4798 takes a decode context structure.
4799 * lib/base64.h (base64_decode): Macro for four-argument calls.
4800 (base64_decode_alloc): Likewise.
4802 2008-05-19 Jim Meyering <meyering@redhat.com>
4804 avoid a warning from gcc
4805 * lib/trim.c (IF_LINT): Define.
4806 (trim2): Use it to avoid a "may be used uninitialized" warning.
4809 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4811 2008-05-19 Bruno Haible <bruno@clisp.org>
4813 * doc/glibc-functions/getpass.texi: Document limits of other
4816 2008-05-19 Simon Josefsson <simon@josefsson.org>
4817 Bruno Haible <bruno@clisp.org>
4819 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4821 2008-05-18 Bruno Haible <bruno@clisp.org>
4823 * modules/propername: New file, from GNU gettext.
4824 * lib/propername.h: New file, from GNU gettext.
4825 * lib/propername.c: New file, from GNU gettext.
4826 * MODULES.html.sh (Internationalization functions): Add propername.
4828 2008-05-16 Jim Meyering <meyering@redhat.com>
4829 Bruno Haible <bruno@clisp.org>
4831 Avoid some warnings from "gcc -Wshadow".
4832 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4834 2008-05-15 Eric Blake <ebb9@byu.net>
4836 Extend previous patch to cygwin 1.7.0.
4837 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4838 fast implementation in cygwin >= 1.7.0.
4839 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4840 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4842 2008-05-15 Bruno Haible <bruno@clisp.org>
4844 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4845 implementation in glibc >= 2.9.
4846 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4847 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4849 2008-05-15 Bruno Haible <bruno@clisp.org>
4851 * MODULES.html.sh (Internationalization functions): Remove linebreak.
4852 (Unicode string functions): Add unilbrk/*.
4853 Reported by Karl Berry.
4855 2008-05-15 Eric Blake <ebb9@byu.net>
4857 Fix violation of <stdbool.h> replacement in regex.
4858 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4859 * lib/regexec.c (re_search_internal): Likewise.
4860 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4862 2008-05-15 Jim Meyering <meyering@redhat.com>
4864 avoid distracting test output when git or cvs is not found
4865 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4866 * tests/test-vc-list-files-git.sh: Likewise.
4868 2008-05-15 Eric Blake <ebb9@byu.net>
4870 Glibc finally accepted the memmem speedup code, bugzilla #5514.
4871 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4873 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4874 * doc/posix-functions/strstr.texi (strstr): Likewise.
4875 * lib/str-two-way.h (MAX): Sychronize with glibc.
4877 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
4879 * lib/regcomp.c (optimize_utf8): Add a note on why we test
4881 (calc_first): Initialize constraint field.
4882 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4884 (duplicate_node): Merge constraint field for all node types.
4885 (calc_eclosure_iter): Look at constraint field for all node types.
4886 * lib/regex_internal.c (create_cd_newstate): Don't look at
4889 2008-05-14 Bruno Haible <bruno@clisp.org>
4891 Help GCC to do better code generation.
4892 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4893 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4894 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4895 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4896 Declare with attribute 'malloc' if supported.
4898 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
4900 use "echo STR|wc -c" rather than unportable "expr length STR"
4901 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4902 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4904 2008-05-14 Jim Meyering <meyering@redhat.com>
4906 use dd ibs=$n count=1 ... rather than less-portable head -c$n
4907 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4908 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4909 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4912 2008-05-14 Eric Blake <ebb9@byu.net>
4914 Avoid quadratic growth in gl_LIBSOURCES.
4915 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4916 Suggested by Bruno Haible.
4919 * modules/xmemdup0-tests: New file.
4920 * tests/test-xmemdup0.c: Likewise.
4922 2008-05-13 Eric Blake <ebb9@byu.net>
4924 Split xmemdup0 into its own module.
4925 * modules/xmemdup0: New file.
4926 * lib/xmemdup0.h: Likewise.
4927 * lib/xmemdup0.c: Likewise.
4928 * MODULES.html.sh (Memory management functions): Add xmemdup0.
4929 * lib/xalloc.h (xmemdup0): Remove.
4930 * lib/xmalloc.c (xmemdup0): Likewise.
4932 2008-05-13 Eric Blake <ebb9@byu.net>
4933 Bruno Haible <bruno@clisp.org>
4935 Reduce number of forks required during autoconf.
4936 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4937 and gl_LIBSOURCES_DIR.
4938 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4939 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4941 <m4_foreach_w>: Move...
4942 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4944 2008-05-13 Eric Blake <ebb9@byu.net>
4946 * gnulib-tool: Fix various comment typos.
4948 2008-05-12 Bruno Haible <bruno@clisp.org>
4950 Tailor the linebreaking algorithm.
4951 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4953 2008-05-12 Bruno Haible <bruno@clisp.org>
4955 Update to Unicode 5.0.0.
4956 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4957 LBP_JV, LBP_JT. Redistribute values.
4958 (unilbrk_table): Change size.
4959 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4960 Unicode TR#14 rev. 22.
4961 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4962 LBP_JV, LBP_JT. Redistribute values.
4963 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4964 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4966 * lib/unilbrk/lbrkprop1.h: Regenerated.
4967 * lib/unilbrk/lbrkprop2.h: Regenerated.
4968 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4969 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4970 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4972 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4974 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4976 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4977 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4978 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4979 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4980 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4981 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4983 2008-05-11 Bruno Haible <bruno@clisp.org>
4985 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4987 2008-05-11 Bruno Haible <bruno@clisp.org>
4989 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4990 * modules/unilbrk/gen-lbrk: New file.
4992 2008-05-11 Bruno Haible <bruno@clisp.org>
4994 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4995 * m4/sha512.m4 (gl_SHA512): Likewise.
4997 2008-05-11 Jim Meyering <meyering@redhat.com>
4999 New modules: crypto/sha256, crypto/sha512 (from coreutils)
5000 * modules/crypto/sha256: New file.
5001 * modules/crypto/sha512: Likewise.
5002 * lib/sha256.c: Likewise.
5003 * lib/sha256.h: Likewise.
5004 * lib/sha512.c: Likewise.
5005 * lib/sha512.h: Likewise.
5006 * lib/u64.h: Likewise.
5007 * m4/sha256.m4: Likewise.
5008 * m4/sha512.m4: Likewise.
5009 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5011 2008-05-10 Bruno Haible <bruno@clisp.org>
5013 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5014 (Input/Output <stdio.h>): Add xprintf.
5015 (Signal handling <signal.h>): Add strsignal.
5016 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5017 (Core language properties): Add func.
5018 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5019 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5021 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5022 (Input/output): New section.
5023 (File system functions): Add openat-die, stat-macros.
5024 (Networking functions): Add sockets.
5025 (Unicode string functions): Add unictype/*.
5026 (Support for building libraries and executables): Add gperf.
5027 (Support for building documentation): Add agpl-3.0.
5028 (Misc): Add nocrash.
5030 2008-05-10 Bruno Haible <bruno@clisp.org>
5032 * modules/unictype/gen-ctype: New file.
5034 2008-05-10 Jim Meyering <meyering@redhat.com>
5036 Make chdir-safer.c more efficient on a system with no symlinks.
5037 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5038 also if ELOOP is zero. Suggested by Bruno Haible.
5040 Make chdir-safer.c slightly safer.
5041 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5042 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5044 Avoid compile failure on systems without ELOOP (like mingw).
5045 * lib/chdir-safer.c (ELOOP): Define if not already defined.
5046 Reported by Bruno Haible.
5048 2008-05-10 Bruno Haible <bruno@clisp.org>
5050 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5051 (is_utf8_encoding): Use a case-insensitive comparison.
5052 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5055 2008-05-10 Bruno Haible <bruno@clisp.org>
5057 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5058 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5059 * lib/unilbrk/ulc-common.h (iconv_string_length,
5060 iconv_string_keeping_offsets): Remove declarations.
5061 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5062 Don't include <iconv.h>, streq.h, xsize.h.
5063 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5065 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5066 <iconv.h>, streq.h, xsize.h.
5067 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5069 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5070 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5071 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5072 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5074 2008-05-10 Bruno Haible <bruno@clisp.org>
5076 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5077 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5079 * modules/unilbrk/u32-width-linebreaks-tests: New file.
5080 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5082 * modules/unilbrk/u16-width-linebreaks-tests: New file.
5083 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5085 * modules/unilbrk/u8-width-linebreaks-tests: New file.
5086 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5088 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5089 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5091 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5092 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5094 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5095 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5097 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5098 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5100 2008-05-10 Bruno Haible <bruno@clisp.org>
5102 Split up 'linebreak' module.
5103 * lib/unilbrk.h: New file, based on lib/linebreak.h.
5104 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5105 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5107 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5108 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5109 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5111 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5113 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5115 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5116 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5117 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5119 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5121 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5123 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5125 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5127 * modules/unilbrk/base: New file.
5128 * modules/unilbrk/tables: New file.
5129 * modules/unilbrk/u8-possible-linebreaks: New file.
5130 * modules/unilbrk/u16-possible-linebreaks: New file.
5131 * modules/unilbrk/u32-possible-linebreaks: New file.
5132 * modules/unilbrk/ulc-common: New file.
5133 * modules/unilbrk/ulc-possible-linebreaks: New file.
5134 * modules/unilbrk/u8-width-linebreaks: New file.
5135 * modules/unilbrk/u16-width-linebreaks: New file.
5136 * modules/unilbrk/u32-width-linebreaks: New file.
5137 * modules/unilbrk/ulc-width-linebreaks: New file.
5138 * lib/linebreak.h: Remove file.
5139 * lib/linebreak.c: Remove file.
5140 * m4/linebreak.m4: Remove file.
5141 * modules/linebreak: Remove file.
5142 * NEWS: Mention the changes.
5144 2008-05-09 Eric Blake <ebb9@byu.net>
5147 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5149 * lib/xmalloc.c (xmemdup0): New C implementation.
5151 2008-05-08 Bruno Haible <bruno@clisp.org>
5153 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5155 2008-05-07 Eric Blake <ebb9@byu.net>
5157 Support cross-compilation of <wctype.h>.
5158 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5161 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
5163 * build-aux/vc-list-files: Add support for bzr.
5165 2008-05-03 Jim Meyering <meyering@redhat.com>
5167 avoid failed assertion with tight malloc
5168 * tests/test-getndelim2.c: Correct an off-by-one assertion.
5170 2008-05-03 Simon Josefsson <simon@josefsson.org>
5172 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5173 are needed from arpa/inet.h.
5174 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5175 Reported by Bruno Haible.
5177 2008-05-02 Jim Meyering <meyering@redhat.com>
5179 avoid compilation error on FreeBSD 6
5180 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5182 2008-05-01 Jim Meyering <meyering@redhat.com>
5184 useless-if-before-free: correct --help's exit status description
5185 * build-aux/useless-if-before-free (usage): Like grep, exit 0
5186 for one or more matches, etc. Reported by Bruno Haible.
5188 vc-list-files: make the stand-alone gnulib test work
5189 * modules/vc-list-files-tests (configure.ac):
5190 Define and AC_SUBST abs_aux_dir.
5191 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5192 $(abs_top_srcdir) to each script and having each of them
5193 duplicate the work of setting PATH, set PATH here, using
5194 the new variable, abs_aux_dir instead.
5195 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5196 * tests/test-vc-list-files-git.sh: Likewise.
5197 Reported by Bruno Haible.
5199 2008-05-01 Bruno Haible <bruno@clisp.org>
5201 * lib/getndelim2.c (getndelim2): Fix newsize computation during
5202 reallocation. Rename 'done' to 'found_delimiter'.
5204 2008-05-01 Jim Meyering <meyering@redhat.com>
5206 vc-list-files: accommodate /bin/sh like the one from Solaris 10
5207 * build-aux/vc-list-files: Use `...`, not $(...).
5209 2008-04-30 Jim Meyering <meyering@redhat.com>
5211 add tests for vc-list-files
5212 * modules/vc-list-files-tests: New module.
5213 * tests/test-vc-list-files-cvs.sh: New file.
5214 * tests/test-vc-list-files-git.sh: New file.
5216 avoid a warning from gcc
5217 * lib/getndelim2.c (IF_LINT): Define.
5218 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5220 vc-list-files: work properly with build-aux/cvsu, too
5221 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5222 to all cvs-based clauses.
5224 vc-list-files: work properly in the CVS+awk case, too
5225 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5227 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5228 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5229 take more than one file argument, so . Add quotes, just in case $dir
5230 ever contains a shell meta-character. Prompted by Soren Hansen in
5231 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5233 2008-04-29 Eric Blake <ebb9@byu.net>
5235 Optimize getndelim2 to use block operations when possible.
5236 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5237 freadseek, and memchr2.
5238 * lib/getndelim2.c (getndelim2): Use them for block reads.
5240 2008-04-29 Bruno Haible <bruno@clisp.org>
5242 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5243 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5244 * modules/inet_ntop (Depends-on): Add extensions.
5245 * modules/inet_pton (Depends-on): Likewise.
5246 Reported by Simon Josefsson.
5248 2008-04-29 Jim Meyering <meyering@redhat.com>
5250 When the is more than one match in a block, match all of them.
5251 * build-aux/useless-if-before-free: Iterate through each block
5252 until there are no more matches.
5254 Fix broken useless-if-before-free script.
5255 * build-aux/useless-if-before-free: Fix typo: missing "?" after
5256 the expression to match cast of argument to free-like function.
5258 2008-04-29 Eric Blake <ebb9@byu.net>
5261 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5263 2008-04-29 Jim Meyering <meyering@redhat.com>
5265 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5266 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5267 by gnulib to exist and to declare e.g., inet_ntop.
5268 Don't include "inet_ntop.h", now removed.
5270 * m4/arpa_inet_h.m4: Remove trailing blanks.
5272 2008-04-29 Eric Blake <ebb9@byu.net>
5274 Silence valgrind on safe reads beyond potential array bounds.
5275 * lib/rawmemchr.valgrind: New file.
5276 * lib/strchrnul.valgrind: Likewise.
5277 * modules/rawmemchr (Files): Distribute new file.
5278 * modules/strchrnul (Files): Likewise.
5279 Suggested by Bruno Haible.
5281 2008-04-29 Bruno Haible <bruno@clisp.org>
5283 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5284 (inet_ntop, inet_pton): Change portability warning's wording.
5285 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5286 Invoke gl_CHECK_NEXT_HEADERS.
5287 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5288 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5290 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5291 * modules/arpa_inet (Description): No longer only for systems that
5293 (Depends-on): Add include_next.
5294 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5297 2008-04-29 Jim Meyering <meyering@redhat.com>
5299 * modules/mkdir (License): Re-license as LGPLv2+.
5301 2008-04-29 Bruno Haible <bruno@clisp.org>
5303 * modules/rawmemchr (Maintainer): Set to Eric.
5304 * modules/strchrnul (Maintainer): Likewise.
5306 2008-04-29 Simon Josefsson <simon@josefsson.org>
5308 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5309 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5311 * modules/arpa_inet (arpa/inet.h): Use them.
5313 2008-04-28 Eric Blake <ebb9@byu.net>
5316 * modules/getndelim2-tests: New file.
5317 * tests/test-getndelim2.c: Likewise.
5318 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
5320 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5322 * MODULES.html.sh: Document new module.
5324 2008-04-20 Bruno Haible <bruno@clisp.org>
5326 * lib/c-stack.c (die): Use raise.
5327 * modules/c-stack (Depends-on): Add raise.
5329 2008-04-28 Bruno Haible <bruno@clisp.org>
5331 Expect rpmatch to be declared.
5332 * lib/yesno.c (rpmatch): Remove declaration.
5335 * lib/stdlib.in.h (rpmatch): New declaration.
5336 * lib/rpmatch.c: Include <stdlib.h> first.
5337 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5338 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5339 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5341 * modules/rpmatch (Depends-on): Add stdlib, extensions.
5342 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5343 (Include): Set to <stdlib.h>.
5344 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5346 * NEWS: Document the change.
5348 2008-04-28 Bruno Haible <bruno@clisp.org>
5350 Change rpmatch to use nl_langinfo when appropriate.
5351 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5353 (localized_pattern): New function/macro.
5354 (try): Remove match, nomatch arguments. Copy the pattern into safe
5355 memory before caching it.
5356 (rpmatch): Use localized_pattern. Add translator comments.
5357 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5358 Suggested by Eric Blake.
5359 * modules/rpmatch (Depends-on): Add stdbool.
5361 2008-04-28 Eric Blake <ebb9@byu.net>
5363 Add rawmemchr module, matching glibc.
5364 * modules/string (Makefile.am): New indicator.
5365 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5366 * lib/string.in.h (rawmemchr): Declare when appropriate.
5367 * modules/rawmemchr: New file.
5368 * m4/rawmemchr.m4: Likewise.
5369 * lib/rawmemchr.c: Likewise.
5370 * modules/rawmemchr-tests: Likewise.
5371 * tests/test-rawmemchr.c: Likewise.
5372 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5374 * modules/strchrnul (Depends-on): Add rawmemchr.
5375 * lib/strchrnul.c (strchrnul): Optimize a corner case.
5378 * tests/test-strchrnul.c: Reindent.
5379 * lib/strchrnul.c: Likewise.
5381 Optimize and test strchrnul.
5382 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5383 * modules/strchrnul-tests: New file.
5384 * tests/test-strchrnul.c: Likewise.
5386 Remove intprops dependency.
5387 * modules/memchr (Depends-on): Remove intprops.
5388 * modules/memrchr (Depends-on): Likewise.
5389 * modules/memchr2 (Depends-on): Likewise.
5390 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5391 * lib/memrchr.c (__memrchr): Likewise.
5392 * lib/memrchr2.c (memchr2): Likewise.
5393 Reported by Simon Josefsson.
5395 2008-04-28 Simon Josefsson <simon@josefsson.org>
5397 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5398 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5400 2008-04-28 Simon Josefsson <simon@josefsson.org>
5402 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5404 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5406 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5408 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5410 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5412 * m4/inet_pton.m4: Don't check for header files.
5414 * m4/inet_ntop.m4: Don't check for header files.
5416 2008-04-28 Simon Josefsson <simon@josefsson.org>
5418 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5419 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5420 trigger for cygwin).
5421 Reported by Bruno Haible <bruno@clisp.org>.
5423 2008-04-28 Bruno Haible <bruno@clisp.org>
5425 * doc/posix-functions/strdup.texi: Mention mingw problem.
5427 2008-04-27 Bruno Haible <bruno@clisp.org>
5429 * modules/stat-time-tests (Depends-on): Add sleep.
5430 * tests/test-stat-time.c (force_unlink): New function.
5432 (test_mtime): Remove the ctime related tests.
5433 (test_ctime): New function, containing the ctime related tests.
5434 (main): Call test_ctime, except on native Windows platforms.
5436 2008-04-27 Bruno Haible <bruno@clisp.org>
5438 * lib/rpmatch.c (rpmatch): Add some comments.
5439 Reported by James Youngman <jay@gnu.org>.
5441 2008-04-27 Bruno Haible <bruno@clisp.org>
5443 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5446 2008-04-27 Bruno Haible <bruno@clisp.org>
5448 Make test-yesno.sh work on mingw.
5449 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5450 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5451 (main): Set stdin to binary mode.
5452 * modules/yesno-tests (Depends-on): Add binary-io.
5454 2008-04-27 Bruno Haible <bruno@clisp.org>
5456 Fix 'isfinite' on x86, x86_64, ia64 platforms.
5457 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5458 argument that lie outside the IEEE 854 domain.
5459 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5460 (gl_ISFINITE): Use it.
5461 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5463 2008-04-27 Bruno Haible <bruno@clisp.org>
5465 Allow local renaming in config.h.
5466 * lib/memrchr.c (memrchr): Don't undefine outside libc.
5468 2008-04-27 Bruno Haible <bruno@clisp.org>
5470 * lib/memchr.c (__memchr): Change type of 'i'.
5471 * lib/memchr2.c (memchr2): Likewise.
5473 2008-04-26 Eric Blake <ebb9@byu.net>
5474 and Bruno Haible <bruno@clisp.org>
5476 Optimize and test memrchr.
5477 * modules/memrchr (Depends-on): Add intprops.
5478 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5479 * modules/memrchr-tests: New file.
5480 * tests/test-memrchr.c: New file.
5482 2008-04-26 Bruno Haible <bruno@clisp.org>
5484 Add tentative support for DragonFly BSD.
5485 * lib/stdio-impl.h: Add macros for DragonFly BSD.
5486 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5488 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5489 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5490 * lib/fpurge.c (fpurge): Likewise.
5491 * lib/freadable.c (freaadable): Likewise.
5492 * lib/freadahead.c (freadahead): Likewise.
5493 * lib/freading.c (freading): Likewise.
5494 * lib/freadptr.c (freadptr): Likewise.
5495 * lib/freadseek.c (freadptrinc): Likewise.
5496 * lib/fseeko.c (fseeko): Likewise.
5497 * lib/fseterr.c (fseterr): Likewise.
5498 * lib/fwritable.c (fwritable): Likewise.
5499 * lib/fwriting.c (fwriting): Likewise.
5501 2008-04-26 Bruno Haible <bruno@clisp.org>
5503 * lib/stdio-impl.h: New file.
5504 * lib/fbufmode.c: Include stdio-impl.h.
5505 (fbufmode): Use fp_, remove redundant #defines.
5506 * lib/fflush.c: Include stdio-impl.h.
5507 (clear_ungetc_buffer): Remove redundant #defines.
5508 * lib/fpurge.c: Include stdio-impl.h.
5509 (fpurge): Remove redundant #defines.
5510 * lib/freadable.c: Include stdio-impl.h.
5511 (freadable): Remove redundant #defines.
5512 * lib/freadahead.c: Include stdio-impl.h.
5513 (freadahead): Remove redundant #defines.
5514 * lib/freading.c: Include stdio-impl.h.
5515 (freading): Remove redundant #defines.
5516 * lib/freadptr.c: Include stdio-impl.h.
5517 (freadptr): Remove redundant #defines.
5518 * lib/freadseek.c: Include stdio-impl.h.
5519 (freadptrinc): Remove redundant #defines.
5520 * lib/fseeko.c: Include stdio-impl.h.
5521 (rpl_fseeko): Remove redundant #defines.
5522 * lib/fseterr.c: Include stdio-impl.h.
5523 (fseterr): Remove redundant #defines.
5524 * lib/fwritable.c: Include stdio-impl.h.
5525 (fwritable: Remove redundant #defines.
5526 * lib/fwriting.c: Include stdio-impl.h.
5527 (fwriting): Remove redundant #defines.
5528 * modules/fbufmode (Files): Add lib/stdio-impl.h.
5529 * modules/fflush (Files): Likewise.
5530 * modules/fpurge (Files): Likewise.
5531 * modules/freadable (Files): Likewise.
5532 * modules/freadahead (Files): Likewise.
5533 * modules/freading (Files): Likewise.
5534 * modules/freadptr (Files): Likewise.
5535 * modules/freadseek (Files): Likewise.
5536 * modules/fseeko (Files): Likewise.
5537 * modules/fseterr (Files): Likewise.
5538 * modules/fwritable (Files): Likewise.
5539 * modules/fwriting (Files): Likewise.
5541 2008-04-26 Bruno Haible <bruno@clisp.org>
5543 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5544 restore_seek_optimization, update_fpos_cache): New functions, extracted
5546 (rpl_fflush): Use them.
5547 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5548 (gl_REPLACE_FFLUSH): Use it.
5550 2008-04-26 Bruno Haible <bruno@clisp.org>
5552 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5554 * tests/test-xstrtoimax.sh: Likewise.
5555 * tests/test-xstrtoumax.sh: Likewise.
5556 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5558 2008-04-26 Bruno Haible <bruno@clisp.org>
5560 * modules/memchr-tests: New file.
5561 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5563 2008-04-26 Eric Blake <ebb9@byu.net>
5564 Bruno Haible <bruno@clisp.org>
5566 * lib/memchr.c: Include intprops.h.
5567 (__memchr): Optimize parallel detection of matching bytes. Rename local
5568 variables. Add explanatory comments.
5570 2008-04-26 Bruno Haible <bruno@clisp.org>
5572 Fix module 'memchr', broken since 2000-10-28.
5573 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5575 2008-04-26 Bruno Haible <bruno@clisp.org>
5577 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5580 2008-04-25 Eric Blake <ebb9@byu.net>
5582 Use native fstatat on cygwin 1.7.0.
5583 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5586 2008-04-23 Eric Blake <ebb9@byu.net>
5588 Improve memchr2 performance.
5589 * lib/memchr2.c (memchr2): Further optimize parallel detection of
5591 * modules/memchr2 (Depends-on): Use intprops.h.
5593 2008-04-23 Simon Josefsson <simon@josefsson.org>
5595 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5596 an inline function instead of a CPP macro. Patch by Ben Pfaff
5597 <blp@cs.stanford.edu>.
5599 2008-04-23 Simon Josefsson <simon@josefsson.org>
5601 * lib/arpa_inet.in.h: New file.
5603 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5604 (Makefile.am): Sed in substitute header file.
5606 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5607 gl_ARPA_INET_MODULE_INDICATOR. Use them.
5609 * modules/inet_ntop (configure.ac): Use
5610 gl_ARPA_INET_MODULE_INDICATOR.
5612 * modules/inet_pton (configure.ac): Use
5613 gl_ARPA_INET_MODULE_INDICATOR.
5615 2008-04-22 Jim Meyering <meyering@redhat.com>
5617 * modules/verify (License): Re-license as LGPLv2+.
5619 2008-04-22 Simon Josefsson <simon@josefsson.org>
5621 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5622 parameter to void* as per POSIX standard (MinGW uses char*).
5624 2008-04-21 Bruno Haible <bruno@clisp.org>
5626 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5627 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5628 Define to replacements if REPLACE_ISWCNTRL is 1.
5629 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5630 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5631 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5632 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5634 * doc/posix-functions/iswalpha.texi: Likewise.
5635 * doc/posix-functions/iswblank.texi: Likewise.
5636 * doc/posix-functions/iswcntrl.texi: Likewise.
5637 * doc/posix-functions/iswdigit.texi: Likewise.
5638 * doc/posix-functions/iswgraph.texi: Likewise.
5639 * doc/posix-functions/iswlower.texi: Likewise.
5640 * doc/posix-functions/iswprint.texi: Likewise.
5641 * doc/posix-functions/iswpunct.texi: Likewise.
5642 * doc/posix-functions/iswspace.texi: Likewise.
5643 * doc/posix-functions/iswupper.texi: Likewise.
5644 * doc/posix-functions/iswxdigit.texi: Likewise.
5645 Reported by Alain Guibert.
5647 2008-04-21 Bruno Haible <bruno@clisp.org>
5649 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5650 Patch by Alain Guibert.
5652 2008-04-21 Bruno Haible <bruno@clisp.org>
5654 Fix test failures on mingw.
5655 * tests/test-xstrtol.c (print_no_progname): New function.
5656 (main): Install it in error_print_progname hook.
5657 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5658 * tests/test-xstrtoimax.sh: Likewise.
5659 * tests/test-xstrtoumax.sh: Likewise.
5661 2008-04-21 Bruno Haible <bruno@clisp.org>
5663 Fix test failure on mingw.
5664 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5666 2008-04-21 Bruno Haible <bruno@clisp.org>
5668 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5669 Actually assign a value.
5671 2008-04-20 Bruno Haible <bruno@clisp.org>
5673 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5675 * lib/canonicalize.c (canonicalize_file_name): Elide if the
5676 'canonicalize-lgpl' module is also used.
5677 * lib/canonicalize-lgpl.c: Undo last change.
5678 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5680 2008-04-20 Bruno Haible <bruno@clisp.org>
5682 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5683 config.h. Provide _mkdir based fallback for mingw.
5684 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5685 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5686 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5687 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5688 rather than defining mkdir in config.h.
5689 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5690 (gl_SYS_STAT_H_DEFAULTS): New macro.
5691 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5693 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5694 HAVE_DECL_MKDIR and HAVE_IO_H.
5696 2008-04-20 Bruno Haible <bruno@clisp.org>
5698 * lib/isapipe.c: Port to native Windows platforms.
5700 2008-04-20 Bruno Haible <bruno@clisp.org>
5702 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5704 2008-04-21 Eric Blake <ebb9@byu.net>
5706 Work around preprocessors that don't handle UINTMAX_MAX.
5707 * lib/memchr2.c (memchr2): Avoid embedded #if.
5708 Reported by Alain Guibert, fix suggested by Bruno Haible.
5710 2008-04-21 Simon Josefsson <simon@josefsson.org>
5712 * doc/posix-functions/strftime.texi (strftime): Explain better
5713 Windows incompatibility. Suggested by Micah Cowan
5716 2008-04-20 Bruno Haible <bruno@clisp.org>
5718 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5721 2008-04-20 Bruno Haible <bruno@clisp.org>
5723 Fix test failure on platforms with non-GNU iconv.
5724 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5725 (U_TO_U8): Use it, rather than u16_to_u8.
5726 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5727 units at the end of the input string.
5728 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5730 2008-04-20 Bruno Haible <bruno@clisp.org>
5732 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5733 when the resulting length is 0.
5734 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5736 2008-04-20 Bruno Haible <bruno@clisp.org>
5738 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5740 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5742 2008-04-20 Bruno Haible <bruno@clisp.org>
5744 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5745 * modules/tsearch-tests (configure.ac): Test for initstate function.
5747 2008-04-20 Bruno Haible <bruno@clisp.org>
5749 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5750 for nlink_t if missing.
5751 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5753 2008-04-19 Bruno Haible <bruno@clisp.org>
5755 Work around snprintf bug on Linux libc5.
5756 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5757 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5759 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5760 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5762 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5763 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5764 * modules/snprintf (Files): Add m4/printf.m4.
5765 * modules/vsnprintf (Files): Likewise.
5766 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5767 * doc/posix-functions/vsnprintf.texi: Likewise.
5769 2008-04-19 Bruno Haible <bruno@clisp.org>
5771 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5772 from 0.0058 to less than 10^-7.
5774 2008-04-19 Bruno Haible <bruno@clisp.org>
5776 Fix rounding when a precision is given.
5777 * lib/vasnprintf.c (is_borderline): New function.
5778 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5780 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5782 * tests/test-vasprintf-posix.c (test_function): Likewise.
5783 * tests/test-snprintf-posix.h (test_function): Likewise.
5784 * tests/test-sprintf-posix.h (test_function): Likewise.
5785 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5786 * tests/test-printf-posix.h (test_function): Likewise.
5787 * tests/test-printf-posix.output: Update.
5788 Reported by John Darrington <john@darrington.wattle.id.au> via
5789 Ben Pfaff <blp@cs.stanford.edu>.
5791 2008-04-18 Simon Josefsson <simon@josefsson.org>
5793 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5794 Suggested by Bruno Haible <bruno@clisp.org>.
5796 2008-04-17 Bruno Haible <bruno@clisp.org>
5798 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5799 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5801 Patch by Bruce Merry <bmerry@gmail.com>.
5803 2008-04-17 Simon Josefsson <simon@josefsson.org>
5805 * doc/posix-functions/strftime.texi (strftime): Mention that %e
5806 doesn't work under Windows.
5808 2008-04-16 Bruno Haible <bruno@clisp.org>
5810 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5812 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5813 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5814 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5815 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5816 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5817 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5818 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5820 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5821 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5822 Northern Sotho, Uighur.
5824 2008-04-16 Bruno Haible <bruno@clisp.org>
5826 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5827 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5828 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5829 Reported by Daniel Bergström <daniel@octocode.com>.
5831 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
5832 Bruno Haible <bruno@clisp.org>
5834 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5836 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5837 New functions, mostly extracted from gl_locale_name_default.
5838 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5840 2008-04-16 Eric Blake <ebb9@byu.net>
5842 Adjust strtod detection to catch glibc 2.7 bug.
5843 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5844 Reported by John Gatewood Ham.
5846 2008-04-16 Bruno Haible <bruno@clisp.org>
5848 Add tentative support for Linux libc5.
5849 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5850 * lib/fpurge.c (fpurge): Likewise.
5851 * lib/freadable.c (freadable): Likewise.
5852 * lib/freadahead.c (freadahead): Likewise.
5853 * lib/freading.c (freading): Likewise.
5854 * lib/freadptr.c (freadptr): Likewise.
5855 * lib/freadseek.c (freadptrinc): Likewise.
5856 * lib/fseeko.c (rpl_fseeko): Likewise.
5857 * lib/fseterr.c (fseterr): Likewise.
5858 * lib/fwritable.c (fwritable): Likewise.
5859 * lib/fwriting.c (fwriting): Likewise.
5860 Reported by Alain Guibert <alguibert+bts@free.fr>.
5862 2008-04-15 Bruno Haible <bruno@clisp.org>
5864 * modules/mathl (configure.ac): Define module indicator.
5866 2008-04-15 Bruno Haible <bruno@clisp.org>
5868 * lib/logl.c (logl): Remove unused variables.
5870 2008-04-15 Bruno Haible <bruno@clisp.org>
5872 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5875 2008-04-15 Bruno Haible <bruno@clisp.org>
5877 * lib/trim.c (trim2): Fix argument of isspace() macro.
5879 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
5881 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5883 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5885 2008-04-14 Bruno Haible <bruno@clisp.org>
5887 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5888 AC_LANG_PROGRAM argument.
5889 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5890 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5891 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5892 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5893 * m4/math_h.m4 (gl_MATH_H): Likewise.
5894 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5895 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5896 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5897 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5898 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5899 * m4/regex.m4 (gl_REGEX): Likewise.
5900 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5901 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5902 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5903 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5904 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5905 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5906 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5907 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5909 2008-04-14 Jim Meyering <meyering@redhat.com>
5911 test-strtod: fix typos: s/abs/fabs/
5912 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5914 2008-04-13 Bruno Haible <bruno@clisp.org>
5916 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5917 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5918 module is also used and while not building the reloc-wrapper.
5920 2008-04-13 Bruno Haible <bruno@clisp.org>
5922 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5924 2008-04-13 Bruno Haible <bruno@clisp.org>
5926 Fix AIX compilation failure introduced on 2008-04-02.
5927 * tests/test-frexp.c (exp): Undefine before redefining.
5928 * tests/test-frexpl.c (exp): Likewise.
5930 2008-04-13 Bruno Haible <bruno@clisp.org>
5932 Work around a HP-UX stdio bug.
5933 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5934 * tests/test-ftello.c (main): Likewise.
5935 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5936 * doc/posix-functions/ftello.texi: Likewise.
5938 2008-04-13 Bruno Haible <bruno@clisp.org>
5940 Make test-signbit pass on HP-UX/hppa.
5941 * tests/test-signbit.c (minus_zerol): New variable.
5942 (test_signbitl): Use it.
5944 2008-04-13 Bruno Haible <bruno@clisp.org>
5946 Make truncl work on OSF/1 4.0.
5947 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5948 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5949 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5950 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5952 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5954 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5956 2008-04-13 Bruno Haible <bruno@clisp.org>
5958 * lib/unictype.h: Remove trailing comma from enumeration definitions.
5960 2008-04-13 Bruno Haible <bruno@clisp.org>
5962 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5963 expression, so as to avoid HP-UX 11 cc compiler bug.
5965 2008-04-13 Bruno Haible <bruno@clisp.org>
5967 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5969 2008-04-13 Bruno Haible <bruno@clisp.org>
5971 * lib/git-merge-changelog.c: Remove empty declaration outside of
5974 2008-04-13 Bruno Haible <bruno@clisp.org>
5976 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5978 2008-04-13 Bruno Haible <bruno@clisp.org>
5980 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5981 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5982 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5983 also if it exists but lacks definitions of the SHUT_* macros.
5984 * modules/sys_socket (Description): Update.
5985 Reported by Elbert Pol <e.pol@chello.nl>.
5987 2008-04-13 Bruno Haible <bruno@clisp.org>
5989 * lib/localcharset.c (OS2): Don't redefine if already defined.
5990 Reported by Elbert Pol <e.pol@chello.nl>.
5992 2008-04-13 Bruno Haible <bruno@clisp.org>
5994 * lib/binary-io.h [__EMX__]: Include <io.h>.
5995 Reported by Elbert Pol <e.pol@chello.nl>.
5997 2008-04-12 Bruno Haible <bruno@clisp.org>
5999 * lib/fpucw.h: Enable the definitions also for x86_64.
6000 Needed for NetBSD/x86_64.
6001 Reported by Thomas Klausner <tk@giga.or.at>.
6003 2008-04-12 Bruno Haible <bruno@clisp.org>
6005 * tests/test-strtod.c: Include isnand.h.
6006 (main): Use isnand instead of isnan.
6007 Reported by Jim Meyering.
6009 2008-04-12 Bruno Haible <bruno@clisp.org>
6011 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6012 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6014 2008-04-12 Jim Meyering <meyering@redhat.com>
6016 * m4/math_h.m4 (gl_MATH_H): Fix typos.
6018 2008-04-12 Bruno Haible <bruno@clisp.org>
6020 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6021 Reported by Elbert Pol <e.pol@chello.nl>.
6023 2008-04-12 Eric Blake <ebb9@byu.net>
6025 Work around Solaris 10 math.h bug.
6026 * m4/math_h.m4 (gl_MATH_H): Check for bug.
6027 (gl_MATH_H_DEFAULTS): Set up default.
6028 * modules/math (Makefile.am): Replace new indicators.
6029 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6030 * tests/test-math.c (main): Test this.
6031 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6032 * doc/posix-headers/math.texi (math.h): Mention bug.
6033 Reported by Nelson H. F. Beebe and Jim Meyering.
6035 2008-04-11 Bruno Haible <bruno@clisp.org>
6037 Adapt to future versions of Apple GCC.
6038 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6039 Reported by Peter O'Gorman <peter@pogma.com>.
6041 2008-04-11 Bruno Haible <bruno@clisp.org>
6043 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6045 2008-04-11 Bruno Haible <bruno@clisp.org>
6047 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6049 * modules/getaddrinfo-tests (Makefile.am): Define
6050 test_getaddrinfo_LDADD.
6052 2008-04-11 Bruno Haible <bruno@clisp.org>
6054 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6055 (init): Fix syntax error.
6056 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6059 2008-04-11 Bruno Haible <bruno@clisp.org>
6061 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6062 * modules/glob (Depends-on): Add stdbool.
6064 2008-04-11 Bruno Haible <bruno@clisp.org>
6066 * lib/trim.c: Include <string.h>.
6068 2008-04-11 Eric Blake <ebb9@byu.net>
6070 Avoid compile failure on OS/2.
6071 * lib/regex_internal.h (internal_function): Disable optimization
6072 on OS/2 (__EMX__), where it caused compiler error.
6073 Reported by Elbert Pol.
6075 2008-04-11 Bruno Haible <bruno@clisp.org>
6077 Flush the standard error stream before aborting. Needed on mingw.
6078 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6079 * tests/test-array_list.c (ASSERT): Likewise.
6080 * tests/test-array_oset.c (ASSERT): Likewise.
6081 * tests/test-avltree_list.c (ASSERT): Likewise.
6082 * tests/test-avltree_oset.c (ASSERT): Likewise.
6083 * tests/test-avltreehash_list.c (ASSERT): Likewise.
6084 * tests/test-binary-io.c (ASSERT): Likewise.
6085 * tests/test-byteswap.c (ASSERT): Likewise.
6086 * tests/test-c-ctype.c (ASSERT): Likewise.
6087 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6088 * tests/test-c-strcasestr.c (ASSERT): Likewise.
6089 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6090 * tests/test-c-strstr.c (ASSERT): Likewise.
6091 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6092 * tests/test-canonicalize.c (ASSERT): Likewise.
6093 * tests/test-carray_list.c (ASSERT): Likewise.
6094 * tests/test-ceilf1.c (ASSERT): Likewise.
6095 * tests/test-ceilf2.c (ASSERT): Likewise.
6096 * tests/test-ceill.c (ASSERT): Likewise.
6097 * tests/test-count-one-bits.c (ASSERT): Likewise.
6098 * tests/test-fbufmode.c (ASSERT): Likewise.
6099 * tests/test-fflush2.c (ASSERT): Likewise.
6100 * tests/test-floorf1.c (ASSERT): Likewise.
6101 * tests/test-floorf2.c (ASSERT): Likewise.
6102 * tests/test-floorl.c (ASSERT): Likewise.
6103 * tests/test-fopen.c (ASSERT): Likewise.
6104 * tests/test-fpending.c (ASSERT): Likewise.
6105 * tests/test-fprintf-posix.c (ASSERT): Likewise.
6106 * tests/test-fpurge.c (ASSERT): Likewise.
6107 * tests/test-freadable.c (ASSERT): Likewise.
6108 * tests/test-freadahead.c (ASSERT): Likewise.
6109 * tests/test-freading.c (ASSERT): Likewise.
6110 * tests/test-freadptr.c (ASSERT): Likewise.
6111 * tests/test-freadptr2.c (ASSERT): Likewise.
6112 * tests/test-freadseek.c (ASSERT): Likewise.
6113 * tests/test-freopen.c (ASSERT): Likewise.
6114 * tests/test-frexp.c (ASSERT): Likewise.
6115 * tests/test-frexpl.c (ASSERT): Likewise.
6116 * tests/test-fseek.c (ASSERT): Likewise.
6117 * tests/test-fseeko.c (ASSERT): Likewise.
6118 * tests/test-fstrcmp.c (ASSERT): Likewise.
6119 * tests/test-ftell.c (ASSERT): Likewise.
6120 * tests/test-ftello.c (ASSERT): Likewise.
6121 * tests/test-func.c (ASSERT): Likewise.
6122 * tests/test-fwritable.c (ASSERT): Likewise.
6123 * tests/test-fwriting.c (ASSERT): Likewise.
6124 * tests/test-getdelim.c (ASSERT): Likewise.
6125 * tests/test-getline.c (ASSERT): Likewise.
6126 * tests/test-i-ring.c (ASSERT): Likewise.
6127 * tests/test-iconv-utf.c (ASSERT): Likewise.
6128 * tests/test-iconv.c (ASSERT): Likewise.
6129 * tests/test-isfinite.c (ASSERT): Likewise.
6130 * tests/test-isnand.c (ASSERT): Likewise.
6131 * tests/test-isnanf.c (ASSERT): Likewise.
6132 * tests/test-isnanl.h (ASSERT): Likewise.
6133 * tests/test-ldexpl.c (ASSERT): Likewise.
6134 * tests/test-linked_list.c (ASSERT): Likewise.
6135 * tests/test-linkedhash_list.c (ASSERT): Likewise.
6136 * tests/test-localename.c (ASSERT): Likewise.
6137 * tests/test-lseek.c (ASSERT): Likewise.
6138 * tests/test-mbscasecmp.c (ASSERT): Likewise.
6139 * tests/test-mbscasestr1.c (ASSERT): Likewise.
6140 * tests/test-mbscasestr2.c (ASSERT): Likewise.
6141 * tests/test-mbscasestr3.c (ASSERT): Likewise.
6142 * tests/test-mbscasestr4.c (ASSERT): Likewise.
6143 * tests/test-mbschr.c (ASSERT): Likewise.
6144 * tests/test-mbscspn.c (ASSERT): Likewise.
6145 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6146 * tests/test-mbspbrk.c (ASSERT): Likewise.
6147 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6148 * tests/test-mbsrchr.c (ASSERT): Likewise.
6149 * tests/test-mbsspn.c (ASSERT): Likewise.
6150 * tests/test-mbsstr1.c (ASSERT): Likewise.
6151 * tests/test-mbsstr2.c (ASSERT): Likewise.
6152 * tests/test-mbsstr3.c (ASSERT): Likewise.
6153 * tests/test-memchr2.c (ASSERT): Likewise.
6154 * tests/test-memmem.c (ASSERT): Likewise.
6155 * tests/test-open.c (ASSERT): Likewise.
6156 * tests/test-printf-frexp.c (ASSERT): Likewise.
6157 * tests/test-printf-frexpl.c (ASSERT): Likewise.
6158 * tests/test-printf-posix.c (ASSERT): Likewise.
6159 * tests/test-quotearg.c (ASSERT): Likewise.
6160 * tests/test-rbtree_list.c (ASSERT): Likewise.
6161 * tests/test-rbtree_oset.c (ASSERT): Likewise.
6162 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6163 * tests/test-round1.c (ASSERT): Likewise.
6164 * tests/test-roundf1.c (ASSERT): Likewise.
6165 * tests/test-roundl.c (ASSERT): Likewise.
6166 * tests/test-signbit.c (ASSERT): Likewise.
6167 * tests/test-sleep.c (ASSERT): Likewise.
6168 * tests/test-snprintf-posix.c (ASSERT): Likewise.
6169 * tests/test-snprintf.c (ASSERT): Likewise.
6170 * tests/test-sprintf-posix.c (ASSERT): Likewise.
6171 * tests/test-stat-time.c (ASSERT): Likewise.
6172 * tests/test-strcasestr.c (ASSERT): Likewise.
6173 * tests/test-strerror.c (ASSERT): Likewise.
6174 * tests/test-striconv.c (ASSERT): Likewise.
6175 * tests/test-striconveh.c (ASSERT): Likewise.
6176 * tests/test-striconveha.c (ASSERT): Likewise.
6177 * tests/test-strsignal.c (ASSERT): Likewise.
6178 * tests/test-strstr.c (ASSERT): Likewise.
6179 * tests/test-strtod.c (ASSERT): Likewise.
6180 * tests/test-trunc1.c (ASSERT): Likewise.
6181 * tests/test-trunc2.c (ASSERT): Likewise.
6182 * tests/test-truncf1.c (ASSERT): Likewise.
6183 * tests/test-truncf2.c (ASSERT): Likewise.
6184 * tests/test-truncl.c (ASSERT): Likewise.
6185 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6186 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6187 * tests/test-vasnprintf.c (ASSERT): Likewise.
6188 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6189 * tests/test-vasprintf.c (ASSERT): Likewise.
6190 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6191 * tests/test-vprintf-posix.c (ASSERT): Likewise.
6192 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6193 * tests/test-vsnprintf.c (ASSERT): Likewise.
6194 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6195 * tests/test-wcwidth.c (ASSERT): Likewise.
6196 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6197 * tests/test-xprintf-posix.c (ASSERT): Likewise.
6198 * tests/test-xvasprintf.c (ASSERT): Likewise.
6199 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6200 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6201 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6202 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6203 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6204 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6205 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6206 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6207 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6208 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6209 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6210 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6211 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6212 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6213 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6214 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6215 * tests/unictype/test-block_list.c (ASSERT): Likewise.
6216 * tests/unictype/test-block_of.c (ASSERT): Likewise.
6217 * tests/unictype/test-block_test.c (ASSERT): Likewise.
6218 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6219 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6220 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6221 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6222 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6223 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6224 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6225 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6226 * tests/unictype/test-combining.c (ASSERT): Likewise.
6227 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6228 * tests/unictype/test-digit.c (ASSERT): Likewise.
6229 * tests/unictype/test-mirror.c (ASSERT): Likewise.
6230 * tests/unictype/test-numeric.c (ASSERT): Likewise.
6231 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6232 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6233 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6234 * tests/unictype/test-scripts.c (ASSERT): Likewise.
6235 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6236 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6237 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6238 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6239 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6240 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6241 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6242 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6243 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6244 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6245 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6246 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6247 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6248 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6249 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6250 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6251 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6252 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6253 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6254 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6255 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6256 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6257 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6258 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6259 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6260 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6261 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6262 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6263 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6264 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6265 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6266 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6267 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6268 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6269 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6270 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6271 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6272 Reported by Eric Blake.
6274 2008-04-11 Bruno Haible <bruno@clisp.org>
6276 * lib/wchar.in.h: Tweak comment.
6278 2008-04-11 Bruno Haible <bruno@clisp.org>
6280 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6281 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6283 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6285 2008-04-11 Bruno Haible <bruno@clisp.org>
6287 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6289 2008-04-11 Simon Josefsson <simon@josefsson.org>
6291 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6292 of attempting to use non-existing /dev/*random. Based on patch
6293 from Adam Strzelecki <ono@java.pl> in
6294 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6296 2008-04-08 Bruno Haible <bruno@clisp.org>
6298 Add tentative support for emx+gcc.
6299 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6300 * lib/fpurge.c (fpurge): Likewise.
6301 * lib/freadable.c (freadable): Likewise.
6302 * lib/freadahead.c (freadahead): Likewise.
6303 * lib/freading.c (freading): Likewise.
6304 * lib/freadptr.c (freadptr): Likewise.
6305 * lib/freadseek.c (freadptrinc): Likewise.
6306 * lib/fseeko.c (rpl_fseeko): Likewise.
6307 * lib/fseterr.c (fseterr): Likewise.
6308 * lib/fwritable.c (fwritable): Likewise.
6309 * lib/fwriting.c (fwriting): Likewise.
6310 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6312 2008-04-09 Eric Blake <ebb9@byu.net>
6314 Avoid some autoconf warnings.
6315 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6316 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6317 * m4/afs.m4 (gl_AFS): Likewise.
6318 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6319 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6320 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6321 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6322 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6323 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6324 (AC_CHECK_DECLS_ONCE): Likewise.
6326 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6327 gnulib-tool requires autoconf 2.59 or better.
6328 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6330 2008-04-08 Eric Blake <ebb9@byu.net>
6332 Use 'git describe --match' if present (added in git 1.5.5).
6333 * build-aux/git-version-gen: Limit result to tags that match 'v*'
6336 2008-04-08 Bruno Haible <bruno@clisp.org>
6338 Add tentative support for OpenServer.
6339 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6341 * lib/fpurge.c (fpurge): Likewise.
6342 * lib/freadable.c (freadable): Likewise.
6343 * lib/freadahead.c (freadahead): Likewise.
6344 * lib/freading.c (freading): Likewise.
6345 * lib/freadptr.c (freadptr): Likewise.
6346 * lib/freadseek.c (freadptrinc): Likewise.
6347 * lib/fseeko.c (rpl_fseeko): Likewise.
6348 * lib/fseterr.c (fseterr): Likewise.
6349 * lib/fwritable.c (fwritable): Likewise.
6350 * lib/fwriting.c (fwriting): Likewise.
6351 Reported by Roger Cornelius <rac@tenzing.org> and
6352 Brian K. White <brian@aljex.com>.
6354 2008-04-06 Jim Meyering <meyering@redhat.com>
6356 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6358 2008-04-06 Bruno Haible <bruno@clisp.org>
6360 Avoid possible error with non-ASCII bytes in UTF-8 locales.
6361 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6362 * tests/test-printf-posix.sh: Likewise.
6363 * tests/test-vfprintf-posix.sh: Likewise.
6364 * tests/test-vprintf-posix.sh: Likewise.
6365 * tests/test-xprintf-posix.sh: Likewise.
6367 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6369 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6370 hide error from 'ls', needed on OS/2.
6371 Report by Elbert Pol <elbert.pol@gmail.com>.
6373 2008-04-04 Eric Blake <ebb9@byu.net>
6375 Make test-fseeko.c failures meaningful.
6376 * tests/test-fseeko.c: Print line number on failure.
6377 * tests/test-fseek.c: Likewise.
6378 Reported by Nelson H. F. Beebe.
6380 Improve strtod bug detection check.
6381 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6382 required for Solaris 10.
6383 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6385 2008-04-04 Bruno Haible <bruno@clisp.org>
6387 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6390 2008-04-03 Eric Blake <ebb9@byu.net>
6392 Ensure sane .version contents.
6393 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6395 * build-aux/git-version-gen: Improve documentation.
6397 Make GNU make output nicer.
6398 * top/GNUmakefile [!_have-Makefile]: Add dependency on
6399 MAKECMDGOALS to enforce message for all command line targets. Set
6400 srcdir for use in maint.mk.
6402 Another maintainer tweak.
6403 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6404 a target that regenerates version.
6406 2008-04-03 Jim Meyering <meyering@redhat.com>
6408 vc-list-files: don't cause coreutils "make po-check" failure
6409 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6411 2008-04-03 Eric Blake <ebb9@byu.net>
6413 Allow VPATH usage of vc-list-files.
6414 * build-aux/vc-list-files (scriptversion): Add timestamp.
6415 (options): Add --help, --version, -C.
6416 (CVS): Support installed cvsu.
6418 2008-04-02 Bruno Haible <bruno@clisp.org>
6420 Avoid some "statement with no effect" warnings from gcc.
6421 * tests/test-wctype.c (main): Explicitly ignore unused values.
6422 Reported by Jim Meyering.
6424 2008-04-02 Jim Meyering <meyering@redhat.com>
6426 Avoid some warnings from "gcc -Wshadow".
6427 * tests/test-frexp.c (exp): Define to a different identifier.
6428 * tests/test-frexpl.c (exp): Likewise.
6430 2008-04-03 Jim Meyering <meyering@redhat.com>
6432 bootstrap: remove dangling *.[ch] symlinks from lib
6433 * build-aux/bootstrap [dangling symlink removal]: Move find's
6434 -depth option to precede all others, to avoid a warning.
6435 Remove *.[ch] files too, and from "$source_base" (usually lib/).
6437 2008-04-02 Bruno Haible <bruno@clisp.org>
6439 Avoid some warnings from "gcc -Wshadow".
6440 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6441 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6442 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6443 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6444 Reported by Jim Meyering.
6446 2008-04-01 Bruno Haible <bruno@clisp.org>
6448 Fix test to work on IRIX 6.5 with cc.
6449 * tests/test-math.c (numeric_equal): New function.
6452 2008-04-01 Bruno Haible <bruno@clisp.org>
6454 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6456 2008-04-01 Bruno Haible <bruno@clisp.org>
6458 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6459 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6460 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6461 (Depends-on): Remove math.
6463 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6464 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6465 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6466 (Depends-on): Remove math.
6468 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6469 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6470 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6471 (Depends-on): Remove math.
6472 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6473 (Depends-on): Remove math.
6475 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6476 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6477 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6478 (Depends-on): Remove math.
6479 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6480 (Depends-on): Remove math.
6482 * tests/test-round1.c: Include nan.h.
6483 (main): Use NaNd instead of NAN.
6484 * modules/round-tests (Files): Add tests/nan.h.
6486 * tests/test-trunc1.c: Include nan.h.
6487 (main): Use NaNd instead of NAN.
6488 * modules/trunc-tests (Files): Add tests/nan.h.
6490 * tests/test-roundf1.c: Include nan.h.
6491 (main): Use NaNf instead of NAN.
6492 * modules/roundf-tests (Files): Add tests/nan.h.
6494 * tests/test-truncf1.c: Include nan.h.
6495 (main): Use NaNf instead of NAN.
6496 * modules/truncf-tests (Files): Add tests/nan.h.
6498 * tests/test-ceilf1.c: Include nan.h.
6499 (main): Use NaNf instead of NAN.
6500 * modules/ceilf-tests (Files): Add tests/nan.h.
6502 * tests/test-floorf1.c: Include nan.h.
6503 (main): Use NaNf instead of NAN.
6504 * modules/floorf-tests (Files): Add tests/nan.h.
6506 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6507 (main): Use NaNf instead of NAN.
6508 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6510 * tests/test-isnand.c: Include nan.h instead of <math.h>.
6511 (main): Use NaNd instead of NAN.
6512 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6514 * tests/test-frexp.c: Include nan.h.
6515 (main): Use NaNd instead of NAN.
6516 * modules/frexp-tests (Files): Add tests/nan.h.
6518 * lib/isnan.c: Don't include <math.h>.
6519 (FUNC): Don't use NAN macro.
6520 * modules/isnand-nolibm (Depends-on): Remove math.
6521 * modules/isnanf-nolibm (Depends-on): Remove math.
6522 * modules/isnanl (Depends-on): Remove math.
6523 * modules/isnanl-nolibm (Depends-on): Remove math.
6525 * tests/nan.h: New file.
6527 2008-04-01 Eric Blake <ebb9@byu.net>
6530 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6531 values to be the right type.
6533 For now, cater to gnulib strtod inaccuracies.
6534 * tests/test-strtod.c (main): Allow 1-ulp error on expected
6535 fractional results. While not as nice from a QoI perspective, it
6536 is a quicker patch than correctly implementing decimal to binary
6539 2008-03-31 Eric Blake <ebb9@byu.net>
6541 Guarantee a definition of NAN.
6542 * lib/math.in.h (NAN): Define if missing.
6543 * tests/test-math.c (main): Test it.
6544 * doc/posix-headers/math.texi (math.h): Document this.
6545 * lib/isnan.c (rpl_isnand): Use it.
6546 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6547 * tests/test-floorf1.c (NaN): Likewise.
6548 * tests/test-frexp.c (NaN): Likewise.
6549 * tests/test-isnand.c (NaN): Likewise.
6550 * tests/test-isnanf.c (NaN): Likewise.
6551 * tests/test-round1.c (NaN): Likewise.
6552 * tests/test-roundf1.c (NaN): Likewise.
6553 * tests/test-snprintf-posix.h (NaN): Likewise.
6554 * tests/test-sprintf-posix.h (NaN): Likewise.
6555 * tests/test-trunc1.c (NaN): Likewise.
6556 * tests/test-truncf1.c (NaN): Likewise.
6557 * tests/test-vasnprintf-posix.c (NaN): Likewise.
6558 * tests/test-vasprintf-posix.c (NaN): Likewise.
6559 * modules/isnand-nolibm (Depends-on): Add math.
6560 * modules/isnanf-nolibm (Depends-on): Likewise.
6561 * modules/isnanl (Depends-on): Likewise.
6562 * modules/isnanl-nolibm (Depends-on): Likewise.
6563 * modules/snprintf-posix-tests (Depends-on): Likewise.
6564 * modules/sprintf-posix-tests (Depends-on): Likewise.
6565 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6566 * modules/vsprintf-posix-tests (Depends-on): Likewise.
6567 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6568 * modules/vasprintf-posix-tests (Depends-on): Likewise.
6570 2008-03-31 Bruno Haible <bruno@clisp.org>
6572 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6573 * doc/posix-functions/strtod.texi: Likewise.
6575 2008-03-31 Bruno Haible <bruno@clisp.org>
6577 * tests/test-strtod.c (main): Don't use C99 syntax.
6579 2008-03-31 Bruno Haible <bruno@clisp.org>
6581 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6582 Reported by Eric Blake.
6584 2008-03-31 Jim Meyering <meyering@redhat.com>
6586 Don't compare actual signbit return values.
6587 * tests/test-strtod.c (main): Rather, compare only their
6588 zero/non-zero nature.
6590 2008-03-31 Eric Blake <ebb9@byu.net>
6592 More strtod documentation.
6593 * doc/posix-functions/strtod.texi (strtod): Interpret more test
6594 failures as distinct bugs.
6596 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
6598 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6599 Problem reported by Erik Benada in
6600 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6602 2008-03-30 Bruno Haible <bruno@clisp.org>
6604 * tests/test-strtod.c: Add comments about which assertion fails on which
6606 * doc/posix-functions/strtod.texi: Add info about many more platforms.
6608 2008-03-30 Eric Blake <ebb9@byu.net>
6610 Test signbit behavior on zeros.
6611 * tests/test-signbit.c (test_signbitf): Add tests for zero.
6612 (test_signbitd, test_signbitl): Likewise.
6614 More strtod touchups.
6615 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6616 sign of negative underflow, for now. Use .5, not .1.
6617 * doc/posix-functions/strtod.texi (strtod): Mention these
6619 Reported by Jim Meyering.
6621 2008-03-30 Bruno Haible <bruno@clisp.org>
6623 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6624 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6626 2008-03-30 Bruno Haible <bruno@clisp.org>
6628 Avoid failure when attempting to return empty iconv results on some
6630 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6631 allocation, don't report ENOMEM when the resulting string is empty.
6633 2008-03-30 Bruno Haible <bruno@clisp.org>
6636 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6637 Don't consider the width for tmp_length. Check count against tmp_length
6638 before doing the padding. Ensure enough allocation during padding.
6640 2008-03-30 Eric Blake <ebb9@byu.net>
6643 * lib/strtod.c (strtod): Avoid compiler warnings.
6644 Reported by Jim Meyering.
6646 2008-03-30 Bruno Haible <bruno@clisp.org>
6648 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6649 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6650 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6651 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6652 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6653 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6654 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6655 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6657 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6658 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6659 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6660 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6661 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6662 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6663 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6664 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6666 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6667 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6668 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6669 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6670 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6671 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6672 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6673 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6675 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6676 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6678 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6679 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6681 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6682 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6684 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6685 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6686 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6688 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6689 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6690 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6692 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6693 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6694 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6696 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6697 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6698 * modules/vasprintf (Depends-on): Add EOVERFLOW.
6700 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6701 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6702 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6703 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6704 (Depends-on): Add EOVERFLOW.
6705 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6706 (Depends-on): Add EOVERFLOW.
6707 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6708 (Depends-on): Add EOVERFLOW.
6709 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6710 (Depends-on): Add EOVERFLOW.
6711 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6712 (Depends-on): Add EOVERFLOW.
6713 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6714 (Depends-on): Add EOVERFLOW.
6715 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6716 (Depends-on): Add EOVERFLOW.
6717 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6718 (Depends-on): Add EOVERFLOW.
6720 * lib/sprintf.c (EOVERFLOW): Remove fallback.
6721 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6722 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6724 * lib/snprintf.c (EOVERFLOW): Remove fallback.
6725 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6726 * modules/snprintf (Depends-on): Add EOVERFLOW.
6728 * lib/poll.c (EOVERFLOW): Remove fallback.
6729 * modules/poll (Depends-on): Add EOVERFLOW.
6731 * lib/getugroups.c (EOVERFLOW): Remove fallback.
6732 * modules/getugroups (Depends-on): Add EOVERFLOW.
6734 * lib/getdelim.c (EOVERFLOW): Remove fallback.
6735 * modules/getdelim (Depends-on): Add EOVERFLOW.
6737 * lib/ftell.c (EOVERFLOW): Remove fallback.
6738 * modules/ftell (Depends-on): Add EOVERFLOW.
6740 * lib/fprintf.c (EOVERFLOW): Remove fallback.
6741 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6742 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6744 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6746 * modules/EOVERFLOW-tests: New file.
6747 * tests/test-EOVERFLOW.c: New file.
6749 * modules/EOVERFLOW: New file.
6750 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6752 2008-03-30 Bruno Haible <bruno@clisp.org>
6754 Fix bug introduced on 2007-06-10.
6755 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6756 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6758 2008-03-30 Bruno Haible <bruno@clisp.org>
6760 Improve freadseek's efficiency after ungetc.
6761 * lib/freadseek.c: Include freadahead.h.
6762 (freadptrinc): New function, extracted from freadseek.
6763 (freadseek): Use it in a loop. Use freadahead to determine the number
6765 * modules/freadseek (Depends-on): Add freadahead.
6766 (configure.ac): Require AC_C_INLINE.
6768 2008-03-30 Bruno Haible <bruno@clisp.org>
6770 * lib/freadseek.c (freadseek): Don't ignore the return value of
6773 2008-03-29 Eric Blake <ebb9@byu.net>
6775 Add hex float support.
6776 * modules/strtod (Depends-on): Add c-ctype.
6777 (Link): Mention POW_LIB.
6778 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
6779 whitespace between 'e' and exponent.
6780 * tests/test-strtod.c (main): Enable hex float tests.
6781 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6784 Document various strtod bugs, with some fixes.
6785 * doc/posix-functions/strtod.texi (strtod): Document bugs with
6786 "-0x", "inf", "nan", and hex constants.
6787 * doc/posix-functions/atof.texi (atof): Likewise.
6788 * modules/stdlib (Makefile.am): Support strtod.
6789 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6790 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6791 detect additional strtod bugs.
6792 * lib/stdlib.in.h (rpl_strtod): Add declarations.
6793 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
6794 bool where appropriate. Parse 'inf' and 'nan'.
6795 * tests/test-strtod.c: New file.
6796 * modules/strtod (Depends-on): Add stdbool, stdlib.
6797 (configure.ac): Turn on module indicator.
6798 * modules/strtod-tests: New module.
6800 2008-03-29 Eric Blake <ebb9@byu.net>
6803 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6804 * modules/ftell-tests (Depends-on): Add binary-io.
6805 * modules/ftello-tests (Depends-on): Likewise.
6806 * tests/test-ftell.c (main): Enhance test to cover behavior after
6807 ungetc. Enforce binary mode.
6808 * tests/test-ftello.c (main): Likewise.
6810 Pass test-freadseek on cygwin.
6811 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6812 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6815 * tests/test-fflush2.c (main): Fix typo.
6817 2008-03-29 Bruno Haible <bruno@clisp.org>
6819 * tests/test-fflush2.c (main): Temporarily disable the contents of
6821 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6822 Reported by Eric Blake.
6824 2008-03-28 Simon Josefsson <simon@josefsson.org>
6826 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6827 (GC_SHA224_DIGEST_SIZE): Add.
6829 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6830 (gc_hash_digest_length): Likewise.
6831 (gc_hash_buffer): Likewise.
6833 2008-03-25 Bruno Haible <bruno@clisp.org>
6835 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6836 detail which gettext release to use.
6837 Reported by Simon Josefsson.
6839 2008-03-26 Jim Meyering <meyering@redhat.com>
6841 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6842 * modules/gnumakefile (clean-GNUmakefile): Also, use
6843 test ... && ... || : syntax rather than if-then ... fi.
6845 gnumakefile: Don't double-quote-expand $(VPATH) value.
6846 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6848 2008-03-24 Eric Blake <ebb9@byu.net>
6850 Alter GNUmakefile to install into top directory.
6851 * modules/maintainer-makefile: Split, and add dependency...
6852 * modules/gnumakefile: to this new module.
6853 * build-aux/GNUmakefile: Move...
6854 * top/GNUmakefile: ...here.
6855 * build-aux/maint.mk: Move...
6856 * top/maint.mk: ...here.
6857 * MODULES.html.sh (Support for maintaining...): Document new
6860 2008-03-23 Bruno Haible <bruno@clisp.org>
6862 * gnulib-tool: New options --vc-files, --no-vc-files.
6863 (func_usage): Document them.
6864 (vc_files): New variable.
6865 (func_import): Consider vc_files.
6866 (func_create_testdir): Set vc_files to empty.
6867 Suggested by Jim Meyering and Karl Berry.
6869 2008-03-23 Bruno Haible <bruno@clisp.org>
6871 Fix regex compilation error on HP-UX 11.
6872 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6873 * modules/regex (Files): Add m4/mbstate_t.m4.
6874 Reported by Ton Voon <ton.voon@altinity.com>.
6876 2008-03-23 Bruno Haible <bruno@clisp.org>
6878 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6880 2008-03-23 Eric Blake <ebb9@byu.net>
6881 Bruno Haible <bruno@clisp.org>
6883 Install files from top/ in the destination directory.
6884 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6885 augmentation also for the files from top/.
6886 (func_import, func_create_testdir): Rewrite file names:
6887 top/filename -> filename.
6889 2008-03-23 Bruno Haible <bruno@clisp.org>
6891 Tweak "gnulib --version" output.
6892 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6894 2008-03-23 Bruno Haible <bruno@clisp.org>
6896 Tweak "gnulib --version" output.
6897 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6898 rather than contents of ChangeLog, when possible.
6900 2008-03-21 Eric Blake <ebb9@byu.net>
6902 More --version tweaks.
6903 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
6904 date of last ChangeLog entry.
6906 2008-03-21 Jim Meyering <meyering@redhat.com>
6908 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6910 2008-03-20 Eric Blake <ebb9@byu.net>
6913 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6915 2008-03-20 Simon Josefsson <simon@josefsson.org>
6917 * build-aux/GNUmakefile: Make git-version-gen optional. Add
6918 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
6920 2008-03-20 Eric Blake <ebb9@byu.net>
6922 Sync GNUmakefile with coreutils.
6923 * build-aux/GNUmakefile (have-Makefile): Rename...
6924 (_have-Makefile): ...to this, for namespace consideration.
6925 (GNUmakefile.cfg): Include, if present.
6926 (_autoreconf): Define a default.
6927 (_is-dist-target): New rule for rebuilds to pick up intra-release
6929 (maint-cfg.mk): Rename...
6930 (cfg.mk): ...to this.
6932 2008-03-18 Jim Meyering <meyering@redhat.com>
6934 New script and module: mktempd
6935 * MODULES.html.sh (maint+release support): Add mktempd.
6936 * build-aux/mktempd: New file.
6937 * modules/mktempd: New file.
6939 2008-03-15 Jim Meyering <meyering@redhat.com>
6942 * lib/sha1.c, lib/md5.c: 63 != ~63.
6943 Reported by Andreas Schwab.
6945 sha1.c, md5.c: Hoist a redundant expression.
6946 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6947 "ctx->buflen" only once, before calling *_process_block.
6948 * lib/md5.c (md5_process_bytes): Likewise.
6950 2008-03-14 Eric Blake <ebb9@byu.net>
6952 Bump copyright year in files generated by gnulib-tool.
6953 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6954 gnulib-tool, rather than hard-coding it.
6956 Fix 'gnulib-tool --version' output to work with git.
6957 * gnulib-tool (func_gnulib_dir): New function, extracted from...
6959 (func_version): Use it to invoke git-version-gen, rather than
6960 relying on CVS keyword expansion. Modernize wording.
6961 (cvsdatestamp, last_checkin_date, version): Kill unused
6964 2008-03-12 Jim Meyering <meyering@redhat.com>
6966 Recognize optional cast of the argument to free.
6967 * build-aux/useless-if-before-free: Update regexps.
6969 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6971 2008-03-11 Bruno Haible <bruno@clisp.org>
6973 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6974 by a single package.
6975 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6976 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6977 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6978 Reported by Sam Steingold <sds@gnu.org>.
6980 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
6982 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6985 2008-03-11 Bruno Haible <bruno@clisp.org>
6987 Avoid conflicts between local macro definitions.
6988 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6989 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6991 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
6992 Bruno Haible <bruno@clisp.org>
6994 Make va_copy work with some version of xlc on AIX 5.1.
6995 * lib/stdarg.in.h: New file.
6996 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6997 On AIX, use a <stdarg.h> file substitute.
6998 * modules/stdarg (Files): Add lib/stdarg.in.h.
6999 (Depends-on): Add include_next.
7000 (Makefile.am): Build a stdarg.h substitute if requested.
7001 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7003 2008-03-10 Bruno Haible <bruno@clisp.org>
7005 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7006 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7007 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7009 2008-03-10 Bruno Haible <bruno@clisp.org>
7011 * modules/stdlib (Depends-on): Add include_next, remove
7014 2008-03-09 Bruno Haible <bruno@clisp.org>
7016 * lib/freadahead.h (freadahead): Document more precisely.
7017 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7018 the sum of both buffer sizes.
7019 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7020 * NEWS: Document the change.
7022 2008-03-09 Bruno Haible <bruno@clisp.org>
7024 Extend freadptr to return also the buffer size.
7025 * lib/freadptr.h (freadptr): Add sizep argument.
7026 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7027 (freadptr): Add sizep argument. Determine buffer size like freadahead
7029 * tests/test-freadptr.c: Don't include freadahead.h.
7030 (main): Adapt for new calling convention of freadptr.
7031 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7032 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7033 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7034 tests/test-freadptr2.sh.
7035 (Depends): Remove freadahead.
7036 (TESTS): Add test-freadptr2.sh.
7037 (check_PROGRAMS): Add test-freadptr2.
7039 2008-03-09 Bruno Haible <bruno@clisp.org>
7041 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7042 Report and solution by Simon Josefsson.
7044 2008-03-06 Bruno Haible <bruno@clisp.org>
7046 Make fflush after ungetc work on BSD platforms.
7047 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7048 * tests/test-fflush2.c: New file.
7049 * tests/test-fflush2.sh: New file.
7050 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7051 tests/test-fflush2.c.
7052 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7053 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7055 2008-03-06 Eric Blake <ebb9@byu.net>
7057 Likewise for ftello.
7058 * modules/ftello (Dependencies): Add extensions.
7059 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7061 2008-03-06 Bruno Haible <bruno@clisp.org>
7063 * modules/fseeko (Dependencies): Add extensions.
7064 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7065 Needed on glibc systems.
7067 2008-03-06 Bruno Haible <bruno@clisp.org>
7069 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7071 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7073 2008-03-06 Bruno Haible <bruno@clisp.org>
7075 * users.txt: Add libgnupdf.
7077 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
7079 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7080 (Header File Substitutes, Function Substitutes,
7081 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7082 (Build robot for gnulib): Fix typo.
7084 2008-03-06 Bruno Haible <bruno@clisp.org>
7086 * doc/gnulib-tool.texi (VCS Issues): Small updates.
7087 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7089 2008-03-06 Bruno Haible <bruno@clisp.org>
7091 * doc/func.texi: New file, extracted from doc/gnulib.texi.
7092 * doc/gnulib.texi: Include it.
7094 2008-03-06 Simon Josefsson <simon@josefsson.org>
7096 * modules/func (License): Change license to unlimited; there was
7097 no LGPL parts in the module anyway.
7099 2008-03-06 Simon Josefsson <simon@josefsson.org>
7101 * modules/__func__: Renamed to modules/func.
7102 * modules/__func__-tests: Renamed to modules/func-tests.
7103 * tests/test-__func__.c: Renamed to tests/test-func.c.
7104 * m4/__func__.m4: Renamed to m4/func.m4.
7105 * doc/gnulib.texi (__func__): Section renamed to func.
7106 Suggested by Eric Blake <ebb9@byu.net>.
7108 2008-03-06 Simon Josefsson <simon@josefsson.org>
7110 * doc/gnulib.texi (__func__): Use C99 terminology when talking
7111 about __func__. Make example self-contained. Suggested by Eric
7112 Blake <ebb9@byu.net>.
7114 * tests/test-__func__.c (main): Avoid extraneous () around __func.
7115 Suggested by Eric Blake <ebb9@byu.net>.
7117 2008-03-06 Simon Josefsson <simon@josefsson.org>
7119 * modules/__func__: New file.
7120 * modules/__func__-tests: New file.
7121 * tests/test-__func__.c: New file.
7122 * m4/__func__.m4: New file.
7123 * doc/gnulib.texi (__func__): Document __func__ module.
7125 2008-03-05 Simon Josefsson <simon@josefsson.org>
7127 * modules/byteswap (License): Re-license as LGPLv2+.
7129 2008-03-05 Simon Josefsson <simon@josefsson.org>
7131 * doc/Makefile: Add pdf target.
7133 2008-03-05 Simon Josefsson <simon@josefsson.org>
7135 * modules/inline (License): Use 'unlimited', since there are only
7136 *.m4 files in this module.
7138 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
7139 Bruno Haible <bruno@clisp.org>
7141 Add support for HP C 7.1 on OpenVMS 8.3.
7142 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7144 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
7146 Update VMS specifics.
7147 * lib/getopt.c [VMS]: Remove include of unixlib.h.
7149 2008-03-02 Jim Meyering <meyering@redhat.com>
7151 Remove the last dependency on the "free" module.
7152 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7153 Reported by Bob Proulx.
7155 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7157 Remove useless "if" tests before free. Deprecate "free" module.
7158 * doc/posix-functions/free.texi: Mention that this
7159 module is no longer useful.
7160 * modules/free (Notice): Say this module is obsolete.
7161 * modules/readutmp (Depends-on): Remove free.
7162 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7163 * lib/putenv.c (putenv): Likewise.
7164 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7165 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7166 * tests/test-c-strcasestr.c (main): Likewise.
7167 * tests/test-c-strstr.c (main): Likewise.
7168 * tests/test-mbscasestr1.c (main): Likewise.
7169 * tests/test-mbscasestr2.c (main): Likewise.
7170 * tests/test-mbsstr1.c (main): Likewise.
7171 * tests/test-mbsstr2.c (main): Likewise.
7172 * tests/test-memmem.c (main): Likewise.
7173 * tests/test-strcasestr.c (main): Likewise.
7174 * tests/test-striconv.c (main): Likewise.
7175 * tests/test-striconveh.c (main): Likewise.
7176 * tests/test-striconveha.c (main): Likewise.
7177 * tests/test-strstr.c (main): Likewise.
7179 * build-aux/git-version-gen: Adjust a comment and the Usage string.
7181 bootstrap: sync from coreutils again
7182 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7184 2008-03-01 Jim Meyering <meyering@redhat.com>
7186 bootstrap: sync from coreutils
7187 * build-aux/bootstrap (update_po_files): Copy a .po file into place
7188 also when the target doesn't exist.
7190 2008-03-01 Eric Blake <ebb9@byu.net>
7192 Fix bugs in last patch.
7193 * lib/memchr2.c (memchr2): Fix typo.
7194 * tests/test-memchr2.c: Test previous bug, and don't use GNU
7196 Reported by Bruce Korb.
7198 New module 'memchr2'.
7199 * modules/memchr2: New file.
7200 * modules/memchr2-tests: Likewise.
7201 * lib/memchr2.h: Likewise.
7202 * lib/memchr2.c: Likewise, based on memchr.c.
7203 * tests/test-memchr2.c: New test.
7204 * MODULES.html.sh (String handling): Add memchr2.
7206 2008-02-29 Bruno Haible <bruno@clisp.org>
7208 * modules/freadseek-tests: New file.
7209 * tests/test-freadseek.sh: New file.
7210 * tests/test-freadseek.c: New file.
7212 New module 'freadseek'.
7213 * modules/freadseek: New file.
7214 * lib/freadseek.h: New file.
7215 * lib/freadseek.c: New file.
7216 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7218 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
7220 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7223 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7224 program_invocation_name and program_invocation_short_name are
7227 2008-02-28 Bruno Haible <bruno@clisp.org>
7229 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7230 * tests/test-freadptr.sh: Also test non-seekable stdin.
7232 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
7234 * build-aux/bootstrap (source_base, m4_base)
7235 (doc_base, tests_base): New variables.
7236 (gnulib_tool_options): Do not hardcode base directories, use
7237 the above variables instead.
7239 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
7241 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7243 2008-02-28 Bruno Haible <bruno@clisp.org>
7245 * modules/freadptr-tests: New file.
7246 * tests/test-freadptr.sh: New file.
7247 * tests/test-freadptr.c: New file.
7249 New module 'freadptr'.
7250 * modules/freadptr: New file.
7251 * lib/freadptr.h: New file.
7252 * lib/freadptr.c: New file.
7253 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7255 2008-02-26 Karl Berry <karl@freefriends.org>
7258 * libltdl/argz.c (argz_add, argz_count): New functions.
7259 * libltdl/argz.in.h: Declare them.
7260 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7262 2008-02-22 Bruno Haible <bruno@clisp.org>
7264 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7265 is a pointer type. Needed for HP-UX 10.
7266 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7267 * doc/posix-functions/gmtime_r.texi: Likewise.
7268 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7270 2008-02-24 Bruno Haible <bruno@clisp.org>
7272 * modules/environ-tests: New file.
7273 * tests/test-environ.c: New file.
7275 New module 'environ'.
7276 * modules/environ: New file.
7277 * lib/unistd.in.h (environ): New declaration.
7278 * m4/environ.m4: New file.
7279 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7281 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7283 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7285 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7286 wrong claim that 'environ' is missing on some systems.
7287 * modules/execute (Depends-on): Add environ.
7288 * lib/execute.c (environ): Remove fallback declaration.
7289 * modules/pipe (Depends-on): Add environ.
7290 * lib/pipe.c (environ): Remove fallback declaration.
7291 * modules/setenv (Depends-on): Add environ.
7292 * lib/setenv.c (environ): Remove fallback declaration.
7293 * modules/unsetenv (Depends-on): Add environ.
7294 * lib/unsetenv.c (environ): Remove fallback declaration.
7295 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7297 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7298 (gl_PREREQ_UNSETENV): Likewise.
7300 2008-02-24 Bruno Haible <bruno@clisp.org>
7302 * doc/posix-functions/environ.texi: Document the MacOS X problem.
7304 2008-02-20 Bob Proulx <bob@proulx.com>
7306 Enable use of older two part flavor 'git describe'.
7307 * build-aux/git-version-gen: If using the older two part flavor of
7308 git version then recreate the third part now present in the
7309 newer three part flavor of git describe.
7311 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
7313 * lib/fts.c (fts_build): Typo correction to comment.
7315 2008-02-17 Bruno Haible <bruno@clisp.org>
7317 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7318 generating no-op conflicts.
7320 2008-02-17 Bruno Haible <bruno@clisp.org>
7323 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7324 result_entries, rather than an index-based loop.
7326 2008-02-17 Bruno Haible <bruno@clisp.org>
7329 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7331 (entry_create): New function.
7332 (entry_hashcode): Use the cached hashcode if possible.
7333 (read_changelog_file, try_split_merged_entry): Use entry_create.
7335 2008-02-17 Bruno Haible <bruno@clisp.org>
7337 Speed up from O(n^2) to O(n) for long ChangeLog files.
7338 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7339 (read_changelog_file): Change implementation of entries_reversed list
7341 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7343 2008-02-17 Bruno Haible <bruno@clisp.org>
7345 New option --split-merged-entry.
7346 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7347 (find_paragraph_end, try_split_merged_entry): New functions.
7348 (long_options): Add option --split-merged-entry.
7349 (usage): Document option --split-merged-entry.
7350 (main): Implement option --split-merged-entry.
7351 Reported by Eric Blake.
7353 2008-02-17 Bruno Haible <bruno@clisp.org>
7355 * lib/git-merge-changelog.c: Include c-strstr.h.
7356 (main): Support the "git pull --rebase" situation.
7357 * modules/git-merge-changelog (Depends-on): Add c-strstr.
7358 Reported by Eric Blake.
7360 2008-02-16 Eric Blake <ebb9@byu.net>
7362 Avoid doubling \ in common case of "c-maybe" quoting style.
7363 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7364 eliding outer quotes.
7365 * lib/quotearg.h: Document this.
7366 * tests/test-quotearg.c (result_strings, inputs, results_g)
7367 (flag_results, locale_results): Test it by adding a new string to
7369 (compare_strings): Test new string.
7371 2008-02-13 Eric Blake <ebb9@byu.net>
7373 Avoid trigraph quoting in default output.
7374 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7375 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7376 unless explicitly requested.
7377 * tests/test-quotearg.c (flag_results, main): Add additional tests.
7379 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
7381 Don't rely on signed integer overflowing to negative value.
7382 * lib/getugroups.c (getugroups): Include <limits.h>.
7383 Instead, compare against INT_MAX, and increment only if the test passes.
7385 2008-02-13 Jim Meyering <meyering@redhat.com>
7386 and Eric Blake <ebb9@byu.net>
7388 Avoid shadowing warning and compile errors on Linux.
7389 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7390 forwarding macros on Linux.
7391 (dcgettext): Define a stub, for Linux.
7392 (results_g, main): Avoid warnings.
7394 2008-02-12 Eric Blake <ebb9@byu.net>
7396 Silence warning in last patch.
7397 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7399 Quotearg part 4: add tests, fix c-maybe colon quoting.
7400 * lib/quotearg.h: Improve documentation.
7401 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7402 escapes when adding outer quotes. When quoting trigraphs, use
7403 valid C notation. When quoting NUL, omit extra characters if next
7404 character is not digit. Alter prototype.
7405 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7407 * modules/quotearg-tests: New module.
7408 * tests/test-quotearg.c: New test.
7410 2008-02-07 Eric Blake <ebb9@byu.net>
7412 Quotearg part 3: add flag to control outer quote elision.
7413 * lib/quotearg.h (c_maybe_quoting_style): New style.
7414 (enum quoting_flags): Better documentation of flags.
7415 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7417 (quotearg_buffer_restyled): Handle new flag to elide outer
7420 Quotearg part 2: add flag that can control NUL elision.
7421 * lib/quotearg.h (set_quoting_flags): New prototype.
7422 * lib/quotearg.c (struct quoting_options): Add flag field.
7423 (set_quoting_flags): New function.
7424 (quotearg_buffer_restyled): Add flags parameter.
7425 (quotearg_alloc_mem): Set the flag if length cannot be returned.
7426 (quotearg_n_options): Set the flag, since length cannot be
7428 (quoting_options_from_style): Default flags correctly.
7430 Quotearg part 1: more wrappers, restore quotearg_char state.
7431 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7432 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7433 (quotearg_colon_mem): New wrappers.
7434 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7435 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7437 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7438 (quotearg_colon_mem): New functions.
7440 2008-02-11 Bruno Haible <bruno@clisp.org>
7442 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7443 library in the current directory: it does not work with parallel make.
7444 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7446 2008-02-11 Bruno Haible <bruno@clisp.org>
7448 * .gitattributes: New file.
7450 2008-02-11 Jim Meyering <meyering@redhat.com>
7452 useless-if-before-free: Fix reversed exit values.
7453 * build-aux/useless-if-before-free: Use correct values
7454 for EXIT_MATCH and EXIT_NO_MATCH.
7456 * build-aux/useless-if-before-free: Close stdout carefully.
7458 2008-02-10 Bruno Haible <bruno@clisp.org>
7460 New module 'git-merge-changelog'.
7461 * modules/git-merge-changelog: New file.
7462 * lib/git-merge-changelog.c: New file.
7464 2008-02-10 Jim Meyering <meyering@redhat.com>
7466 useless-if-before-free: New option: --list (-l).
7468 useless-if-before-free: Don't exit immediately upon open failure.
7469 * build-aux/useless-if-before-free: Exit 2 for errors.
7470 Upon failure to open a file, don't exit immediately.
7471 Rather, just warn and continue with any remaining files.
7473 2008-02-10 Bruno Haible <bruno@clisp.org>
7475 New abstract list operation 'node_set_value'.
7476 * lib/gl_list.h (gl_list_node_set_value): New function.
7477 (struct gl_list_implementation): New field node_set_value.
7478 * lib/gl_list.c (gl_list_node_set_value): New function.
7479 * lib/gl_array_list.c (gl_array_node_set_value): New function.
7480 (gl_array_list_implementation): Update.
7481 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7482 (gl_carray_list_implementation): Update.
7483 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7484 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7485 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7486 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7487 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7488 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7489 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7491 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7492 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7493 (gl_sublist_list_implementation): Update.
7495 2008-02-10 Bruno Haible <bruno@clisp.org>
7497 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7498 Needed when ELEMENT is #defined to 'some_type *'.
7500 2008-02-10 Jim Meyering <meyering@redhat.com>
7502 New script and module: useless-if-before-free
7503 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7504 * build-aux/useless-if-before-free: New file.
7505 * modules/useless-if-before-free: New file.
7507 * build-aux/gitlog-to-changelog: Use committer date, not author date.
7509 xstrtol_error: Fix typo.
7510 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7511 s/exit_failure/exit_status/.
7513 2008-02-09 Jim Meyering <meyering@redhat.com>
7515 New script and module: gitlog-to-changelog
7516 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7517 * modules/gitlog-to-changelog: New file.
7518 * build-aux/gitlog-to-changelog: New file.
7520 2008-02-08 Jim Meyering <meyering@redhat.com>
7522 Avoid two "parameter unused" warnings.
7523 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7526 Use "git COMMAND", not "git-COMMAND".
7527 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7528 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7529 * build-aux/git-version-gen: Use "git status", not "git-status".
7531 2008-02-07 Bruno Haible <bruno@clisp.org>
7533 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7534 Avoids a crash on Windows Vista.
7535 Reported by Adam Strzelecki <ono@java.pl> via
7536 Simon Josefsson <simon@josefsson.org>.
7538 2008-02-06 Bruno Haible <bruno@clisp.org>
7540 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7541 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7542 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7543 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7544 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7545 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7546 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7547 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7548 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7549 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7550 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7551 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7552 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7553 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7554 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7555 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7557 * tests/test-snprintf-posix.h (test_function): Likewise.
7558 * tests/test-sprintf-posix.h (test_function): Likewise.
7559 * tests/test-vasprintf-posix.c (test_function): Likewise.
7560 * doc/posix-functions/fprintf.texi: Update.
7561 * doc/posix-functions/printf.texi: Update.
7562 * doc/posix-functions/snprintf.texi: Update.
7563 * doc/posix-functions/sprintf.texi: Update.
7564 * doc/posix-functions/vfprintf.texi: Update.
7565 * doc/posix-functions/vprintf.texi: Update.
7566 * doc/posix-functions/vsnprintf.texi: Update.
7567 * doc/posix-functions/vsprintf.texi: Update.
7568 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7570 2008-02-06 Bruno Haible <bruno@clisp.org>
7572 Fix bug introduced on 2008-01-26.
7573 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7575 2008-02-06 Bruno Haible <bruno@clisp.org>
7577 Fix bug introduced on 2007-06-10.
7578 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7579 !NEED_PRINTF_FLAG_ZERO.
7581 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
7583 getloadavg: use libperfstat on AIX5
7584 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7586 2008-02-03 Bruno Haible <bruno@clisp.org>
7588 * lib/diffseq.h: Add comments about required #includes.
7589 Reported by Michael Biggs <gnulib@doubleplum.net>.
7591 2008-02-01 Bruno Haible <bruno@clisp.org>
7593 * users.txt: Add gnuit.
7595 2008-01-31 Bruno Haible <bruno@clisp.org>
7597 * lib/md4.c (set_uint32): Mark as inline.
7598 * lib/md5.c (set_uint32): Likewise.
7599 * lib/sha1.c (set_uint32): Likewise.
7600 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7601 * m4/md5.m4 (gl_MD5): Likewise.
7602 * m4/sha1.m4 (gl_SHA1): Likewise.
7604 2008-01-31 Jim Meyering <meyering@redhat.com>
7606 Use "sizeof VAR", rather than a literal "4".
7607 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7608 * lib/md4.c (md4_read_ctx): Likewise.
7609 * lib/sha1.c (sha1_read_ctx): Likewise.
7611 2008-01-31 Simon Josefsson <simon@josefsson.org>
7613 * tests/test-sha1.c: New file, based on test-md5.c.
7615 * modules/crypto/sha1-tests: New file.
7617 2008-01-31 Simon Josefsson <simon@josefsson.org>
7619 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7621 2008-01-31 Jim Meyering <meyering@redhat.com>
7623 Prefer "sizeof v" over the equivalent "4".
7624 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7625 * lib/md5.c (set_uint32): Likewise.
7626 * lib/sha1.c (set_uint32): Likewise.
7628 2008-01-31 Simon Josefsson <simon@josefsson.org>
7630 * lib/sha1.c (set_uint32): Mark function as static.
7632 2008-01-31 Simon Josefsson <simon@josefsson.org>
7634 md2: clarify comments to say that alignment is not required.
7635 * lib/md2.h: Remove warning about alignment in comment.
7636 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7637 never been required.
7639 2008-01-31 Simon Josefsson <simon@josefsson.org>
7641 md4: adapt alignment constraint fix from sha1.
7642 * lib/md4.c (set_uint32): New function, from sha1.c
7643 (md4_read_ctx): Use it.
7644 (md4_finish_ctx): Doc fix.
7645 * lib/md4.h: Doc fix.
7647 2008-01-31 Simon Josefsson <simon@josefsson.org>
7649 md5: adapt alignment constraint fix from sha1.
7650 * lib/md5.c (set_uint32): New function, from sha1.c
7651 (md5_read_ctx): Use it.
7652 (md5_finish_ctx): Doc fix.
7653 * lib/md5.h: Doc fix.
7655 2008-01-30 Peter Palfrader <weasel@debian.org>
7657 sha1: remove the result buffer alignment constraint
7658 * lib/sha1.c (set_uint32): New function.
7659 (sha1_read_ctx): Rewrite to remove the result buffer alignment
7661 (sha1_finish_ctx): Remove comment warning about alignment constraint.
7662 * lib/sha1.h: Likewise.
7664 2008-01-30 Andreas Schwab <schwab@suse.de>
7665 Bruno Haible <bruno@clisp.org>
7667 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7668 correct definition of LDBL_MIN_EXP.
7670 2008-01-30 Karl Berry <karl@gnu.org>
7672 * config/srclist-update: try to preserve x bit on updates.
7673 * config/srclistvars.sh: update for karl.
7675 2008-01-29 Jim Meyering <meyering@redhat.com>
7677 vasnprintf.c: Avoid warning about unused label
7678 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7679 "overflow" label definition and associated code with the
7680 same cpp condition that guards the sole use of that label.
7682 2008-01-26 Bruno Haible <bruno@clisp.org>
7684 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7685 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7686 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7687 * lib/isnanl-nolibm.h (isnanl): Likewise.
7688 Reported by Paul Eggert <eggert@cs.ucla.edu>.
7690 2008-01-26 Bruno Haible <bruno@clisp.org>
7692 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7693 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7695 2008-01-26 Bruno Haible <bruno@clisp.org>
7697 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7698 GCC >= 4.0 built-in.
7699 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7701 2008-01-26 Bruno Haible <bruno@clisp.org>
7703 Rename isnan, applicable to 'double' only, to isnand.
7704 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7705 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7706 (configure.ac): Update.
7707 (Include): Replace "isnan.h" with "isnand.h".
7708 * m4/isnand.m4: Renamed from m4/isnan.m4.
7709 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7710 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7712 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7713 instead of HAVE_ISNAN_IN_LIBC.
7714 (isnand): Renamed from isnan.
7715 * lib/isnand.c: New file.
7716 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7717 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7718 (Makefile.am): Update.
7719 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7720 Include isnand.h instead of isnan.h.
7721 (main): Test isnand instead of isnan.
7722 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7724 * modules/frexp (Depends-on): Likewise.
7725 * modules/frexp-tests (Depends-on): Likewise.
7726 * modules/frexp-nolibm (Depends-on): Likewise.
7727 * modules/frexp-nolibm-tests (Depends-on): Likewise.
7728 * modules/isfinite (Depends-on): Likewise.
7729 * modules/round-tests (Depends-on): Likewise.
7730 * modules/signbit (Depends-on): Likewise.
7731 * modules/signbit-tests (Depends-on): Likewise.
7732 * modules/snprintf-posix (Depends-on): Likewise.
7733 * modules/sprintf-posix (Depends-on): Likewise.
7734 * modules/trunc-tests (Depends-on): Likewise.
7735 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7736 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7737 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7738 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7739 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7740 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7741 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7742 * modules/vasnprintf-posix (Depends-on): Likewise.
7743 * modules/vasprintf-posix (Depends-on): Likewise.
7744 * modules/vfprintf-posix (Depends-on): Likewise.
7745 * modules/vsnprintf-posix (Depends-on): Likewise.
7746 * modules/vsprintf-posix (Depends-on): Likewise.
7747 * lib/frexp.c: Include isnand.h instead of isnan.h.
7748 (ISNAN): Set to isnand instead of isnan.
7749 * lib/isfinite.c: Include isnand.h instead of isnan.h.
7750 (gl_isfinited): Use isnand instead of isnan.
7751 * lib/signbitd.c: Include isnand.h instead of isnan.h.
7752 (gl_signbitd): Use isnand instead of isnan.
7753 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7754 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7755 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7756 (main): Use isnand instead of isnan.
7757 * tests/test-round1.c: Include isnand.h.
7758 (main): Use isnand instead of isnan.
7759 * tests/test-round2.c: Include isnand.h instead of isnan.h.
7760 (ISNAN): Set to isnand instead of isnan.
7761 * tests/test-trunc1.c: Include isnand.h.
7762 (main): Use isnand instead of isnan.
7763 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7764 (equal): Use isnand instead of isnan.
7765 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7767 * NEWS: Mention the change.
7769 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
7770 Bruno Haible <bruno@clisp.org>
7772 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7773 the GCC builtins for signbits are present and set
7774 REPLACE_SIGNBIT_USING_GCC if so.
7775 * lib/math.in.h (signbit): Define using GCC builtins if
7776 REPLACE_SIGNBIT_USING_GCC is set.
7777 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7778 REPLACE_SIGNBIT_USING_GCC.
7779 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7781 2008-01-25 Jim Meyering <meyering@redhat.com>
7783 Prefer <config.h> over "config.h". See autoconf doc for explanation.
7784 * lib/poll.c: Include <config.h>, not "config.h".
7785 * tests/test-getaddrinfo.c: Likewise.
7787 2008-01-25 Simon Josefsson <simon@josefsson.org>
7789 * modules/sockets-tests: New file.
7791 2008-01-24 Simon Josefsson <simon@josefsson.org>
7793 * modules/sockets: New module, can be used to call WSA_Startup and
7794 WSA_Cleanup when needed.
7796 * lib/sockets.h, lib/sockets.c: New files.
7798 * m4/sockets.m4: New file.
7800 * tests/test-sockets.c: New file.
7802 2008-01-19 Bruno Haible <bruno@clisp.org>
7804 * doc/posix-headers: Renamed from doc/headers.
7805 * doc/posix-functions: Renamed from doc/functions.
7806 * doc/gnulib.texi: Update.
7808 2008-01-19 Bruno Haible <bruno@clisp.org>
7810 * doc/glibc-functions/strcasestr.texi: Include contents of
7811 doc/functions/strcasestr.texi, fixing the list of platforms.
7812 * doc/functions/strcasestr.texi: Remove file.
7814 2008-01-19 Bruno Haible <bruno@clisp.org>
7816 * doc/glibc-functions/memmem.texi: Include contents of
7817 doc/functions/memmem.texi.
7818 * doc/functions/memmem.texi: Remove file.
7820 2008-01-18 Bruno Haible <bruno@clisp.org>
7822 * doc/glibc-functions/*.texi: New files.
7823 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7824 to use the new files.
7826 2008-01-17 Bruno Haible <bruno@clisp.org>
7828 * tests/test-gethostname.c (main): Fix printf statement.
7830 2008-01-17 Simon Josefsson <simon@josefsson.org>
7832 * modules/gethostname-tests: New file.
7834 * tests/test-gethostname.c: New file.
7836 2008-01-17 Simon Josefsson <simon@josefsson.org>
7838 * lib/gethostname.c: Include string.h unconditionally, strncpy is
7839 used by the UNAME case. Reported by Bruno Haible
7842 2008-01-17 Eric Blake <ebb9@byu.net>
7844 Convert c-strcasestr to be more efficient.
7845 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7846 (Depends-on): Add c-strcase, remove malloca, strnlen.
7847 * tests/test-c-strcasestr.c (main): Enhance test.
7848 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7850 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7852 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7853 Use it in creating po/Makevars.
7855 2008-01-15 Simon Josefsson <simon@josefsson.org>
7857 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7858 Applications that requires it should initialize libgcrypt
7861 2008-01-16 Simon Josefsson <simon@josefsson.org>
7863 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7865 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
7867 Fix problem with getdate on mingw32 reported by Simon Josefsson
7868 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7869 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7870 tzname", when deciding whether to declare tzname.
7871 * lib/strftime.c (tzname): Likewise.
7873 2008-01-15 Bruno Haible <bruno@clisp.org>
7875 Work around a MacOS X 10.5 bug in frexpl().
7876 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7877 * doc/functions/frexpl.texi: Document the bug.
7878 Reported by Elias Pipping <pipping@gentoo.org>.
7880 2008-01-14 Eric Blake <ebb9@byu.net>
7882 Touch up previous patch.
7883 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7884 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7886 Convert strcasestr module to use Two-Way algorithm.
7887 * modules/strcasestr-simple: New module, based on the old
7888 strcasestr, but with Two-Way rather than KMP.
7889 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7890 * lib/string.in.h (rpl_strcasestr): Declare.
7891 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7893 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7894 * modules/string (Makefile.am): Support strcasestr.
7895 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7896 * modules/strcasestr-tests (Depends-on): Check for alarm.
7897 * tests/test-strcasestr.c: Augment test.
7898 * lib/str-two-way.h: Clean up stray macro.
7899 * NEWS: Document new module.
7900 * MODULES.html.sh (string handling): Likewise.
7901 * doc/functions/strcasestr.texi: New file.
7902 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
7903 here, since it is not a POSIX function.
7905 2008-01-14 Colin Watson <cjwatson@debian.org>
7906 Bruno Haible <bruno@clisp.org>
7908 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7909 works fine; if not, set REPLACE_STRSIGNAL.
7910 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7911 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7913 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7914 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7915 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7917 2008-01-14 Bruno Haible <bruno@clisp.org>
7919 * modules/strsignal (Include): Change to <string.h>.
7921 2008-01-14 Colin Watson <cjwatson@debian.org>
7923 * modules/argp (Notice): Add a notice recommending to change
7925 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7927 2008-01-13 Colin Watson <cjwatson@debian.org>
7929 * modules/strsignal-tests: New file.
7930 * tests/test-strsignal.c: New file.
7932 * lib/strsignal.c: New file, from glibc with modifications.
7933 * lib/siglist.h: New file, from glibc with modifications.
7934 * lib/string.in.h (strsignal): New declaration.
7935 * m4/strsignal.m4: New file.
7936 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7937 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7938 * modules/strsignal: New file.
7939 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7940 HAVE_DECL_STRSIGNAL.
7942 2008-01-13 Bruno Haible <bruno@clisp.org>
7944 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7945 locale encoding is not ASCII. Needed for OpenBSD 4.0.
7946 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7947 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7949 2008-01-13 Bruno Haible <bruno@clisp.org>
7951 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7952 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7953 * lib/argp.h (__attribute__): Likewise.
7954 * lib/c-stack.c (__attribute__): Likewise.
7955 * lib/error.h (__attribute__): Likewise.
7956 * lib/fts.c (__attribute__): Likewise.
7957 * lib/openat.h (__attribute__): Likewise.
7958 * lib/stdio.in.h (__attribute__): Likewise.
7959 * lib/string.in.h (__attribute__): Likewise.
7960 * lib/utimens.c (__attribute__): Likewise.
7961 * lib/vasnprintf.h (__attribute__): Likewise.
7962 * lib/xalloc.h (__attribute__): Likewise.
7963 * lib/xprintf.h (__attribute__): Likewise.
7964 * lib/xstrtol.h (__attribute__): Likewise.
7965 * lib/xvasprintf.h (__attribute__): Likewise.
7967 2008-01-12 Bruno Haible <bruno@clisp.org>
7969 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7970 * doc/glibc-headers/a.out.texi: New file.
7971 * doc/glibc-headers/aliases.texi: New file.
7972 * doc/glibc-headers/alloca.texi: New file.
7973 * doc/glibc-headers/ar.texi: New file.
7974 * doc/glibc-headers/argp.texi: New file.
7975 * doc/glibc-headers/argz.texi: New file.
7976 * doc/glibc-headers/byteswap.texi: New file.
7977 * doc/glibc-headers/crypt.texi: New file.
7978 * doc/glibc-headers/endian.texi: New file.
7979 * doc/glibc-headers/envz.texi: New file.
7980 * doc/glibc-headers/err.texi: New file.
7981 * doc/glibc-headers/error.texi: New file.
7982 * doc/glibc-headers/execinfo.texi: New file.
7983 * doc/glibc-headers/fpu_control.texi: New file.
7984 * doc/glibc-headers/fstab.texi: New file.
7985 * doc/glibc-headers/fts.texi: New file.
7986 * doc/glibc-headers/getopt.texi: New file.
7987 * doc/glibc-headers/ieee754.texi: New file.
7988 * doc/glibc-headers/ifaddrs.texi: New file.
7989 * doc/glibc-headers/libintl.texi: New file.
7990 * doc/glibc-headers/mcheck.texi: New file.
7991 * doc/glibc-headers/mntent.texi: New file.
7992 * doc/glibc-headers/obstack.texi: New file.
7993 * doc/glibc-headers/paths.texi: New file.
7994 * doc/glibc-headers/printf.texi: New file.
7995 * doc/glibc-headers/pty.texi: New file.
7996 * doc/glibc-headers/resolv.texi: New file.
7997 * doc/glibc-headers/shadow.texi: New file.
7998 * doc/glibc-headers/sysexits.texi: New file.
7999 * doc/glibc-headers/ttyent.texi: New file.
8001 2008-01-12 Jim Meyering <meyering@redhat.com>
8003 announce-gen: emit Gnulib's git-based version string.
8004 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8005 New option --gnulib-version=V, where V is expected to be
8006 the output of running git describe in the gnulib directory.
8007 (get_tool_versions): Request feedback on xdelta. I suspect it's
8008 not useful, and plan to stop publishing an xdelta file with each
8011 * build-aux/announce-gen: Also check for lzma-compressed files.
8013 2008-01-11 Bruno Haible <bruno@clisp.org>
8015 * tests/test-memmem.c (main): Increase maximum allowed time.
8016 * tests/test-strstr.c (main): Likewise.
8018 2008-01-11 Bruno Haible <bruno@clisp.org>
8020 * doc/functions/memmem.texi: Add more precisions about platforms.
8021 * doc/functions/strstr.texi: Likewise.
8023 2008-01-10 Eric Blake <ebb9@byu.net>
8025 * m4/strstr.m4: Delete cruft from copy-n-paste.
8026 Reported by Bruno Haible.
8028 2008-01-10 Bruno Haible <bruno@clisp.org>
8030 Make c-strstr rely on strstr.
8031 * lib/c-strstr.c: Don't include str-kmp.h.
8032 (c_strstr): Define in terms of strstr.
8033 * modules/c-strstr (Files): Remove lib/str-kmp.h.
8034 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8036 2008-01-10 Bruno Haible <bruno@clisp.org>
8038 * doc/gnulib.texi (String Functions in C Locale): New section.
8039 * doc/c-ctype.texi: New file.
8040 * doc/c-strcase.texi: New file.
8041 * doc/c-strcaseeq.texi: New file.
8042 * doc/c-strcasestr.texi: New file.
8043 * doc/c-strstr.texi: New file.
8044 * doc/c-strtod.texi: New file.
8045 * doc/c-strtold.texi: New file.
8047 2008-01-10 Eric Blake <ebb9@byu.net>
8049 * lib/relocatable.h: Fix a comment.
8051 2008-01-10 Eric Blake <ebb9@byu.net>
8053 Share two-way algorithm.
8054 * lib/str-two-way.h: New file, merged from...
8055 * lib/memmem.c: ...here...
8056 * lib/strstr.c: ...and here.
8057 * modules/memmem (Files): Use it.
8058 * modules/strstr (Files): Likewise.
8060 Avoid quadratic strstr implementations.
8061 * lib/strstr.c: New file.
8062 * m4/strstr.m4: Likewise.
8063 * modules/strstr: Likewise.
8064 * modules/strstr-tests: Likewise.
8065 * tests/test-strstr.c: Likewise.
8066 * lib/string.in.h (rpl_strstr): Declare.
8067 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8068 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8069 * modules/string (Makefile.am): Likewise.
8070 * MODULES.html.sh (string handling): Mention new module.
8071 * doc/functions/strstr.texi (strstr): Document the bug.
8073 2008-01-10 Bruno Haible <bruno@clisp.org>
8075 * lib/relocatable.h (relocate): State whether result is freshly
8077 * lib/relocatable.c (relocate): Return a freshly allocated string
8078 instead of a pointer to a privately held string.
8079 Reported by Sylvain Beucler <beuc@gnu.org>.
8081 2008-01-10 Colin Watson <cjwatson@debian.org>
8083 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8086 2008-01-09 Bruno Haible <bruno@clisp.org>
8088 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8090 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8091 if it's only a guess.
8092 * modules/memmem: Simplify by depending on memmem-simple.
8094 2008-01-09 Bruno Haible <bruno@clisp.org>
8096 Work around OpenBSD 4.0 tdelete() bug.
8097 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8098 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8099 macros and don't redefine the enum values.
8100 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8101 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8102 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8104 2008-01-09 Bruno Haible <bruno@clisp.org>
8106 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8107 (main): Don't perform the tests if setlocale did not install a UTF-8
8108 locale. Needed on OpenBSD 4.0.
8109 * modules/wcwidth-tests (Depends-on): Add localcharset.
8111 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
8113 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8114 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8115 * NEWS: announce this.
8116 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8118 2008-01-09 Simon Josefsson <simon@josefsson.org>
8119 and Eric Blake <ebb9@byu.net>
8121 Add memmem-simple module.
8122 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8123 (gl_FUNC_MEMMEM): Separate performance from presence checks.
8124 * modules/memmem-simple: New file.
8125 * modules/memmem (Description): Tweak.
8126 * MODULES.html.sh (string handling): Mention new module.
8127 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8128 addressed by memmem-simple.
8129 * NEWS: Document the difference.
8131 2008-01-09 Eric Blake <ebb9@byu.net>
8133 Give gcc some memmem optimization hints.
8134 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8135 (strcasestr): Declare as pure.
8136 * modules/memmem (Maintainer): Claim my implementation.
8138 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8140 Support AIX 6.1 and higher.
8141 * build-aux/config.libpath: Likewise.
8142 * build-aux/config.rpath: Likewise.
8144 2008-01-08 Jim Meyering <meyering@redhat.com>
8145 Bruno Haible <bruno@clisp.org>
8147 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8148 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8149 Reported by Peter Fales in
8150 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8152 2008-01-08 Bruno Haible <bruno@clisp.org>
8154 * modules/unictype/category-of (Depends-on): Add
8155 unictype/category-none.
8156 * modules/unictype/category-and-tests (Depends-on): Add
8157 unictype/category-{L,N,Lu,Nd}.
8158 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8159 * modules/unictype/category-or-tests (Depends-on): Add
8160 unictype/category-{L,N}.
8161 * modules/unictype/category-name-tests (Depends-on): Add
8162 unictype/category-{Z,Nl}.
8163 Reported by Simon Josefsson.
8165 2008-01-08 Bruno Haible <bruno@clisp.org>
8167 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8169 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8170 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8171 Reported by Peter Miller <millerp@canb.auug.org.au>.
8173 2008-01-08 Eric Blake <ebb9@byu.net>
8175 Rewrite memmem to guarantee linear complexity without malloc.
8176 * lib/memmem.c (memmem): Use Two-Way rather than
8177 Knuth-Morris-Pratt, to allow O(1) space usage.
8178 (critical_factorization, two_way_short_needle)
8179 (two_way_long_needle): New functions.
8180 (knuth_morris_pratt): Delete.
8181 * modules/memmem (Depends-on): No longer need malloca or stdbool.
8183 * tests/test-memmem.c (main): Add tests for periodic needle and
8184 sublinear performance.
8185 * doc/functions/memmem.texi (memmem): Document other deficiencies
8186 in cygwin and older glibc.
8188 2008-01-08 Bruno Haible <bruno@clisp.org>
8190 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8193 2008-01-08 Mike Frysinger <vapier@gentoo.org>
8195 Add a configure time option: --disable-acl.
8196 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8199 2008-01-06 Simon Josefsson <simon@josefsson.org>
8201 * tests/test-localename.c: Don't include obsolete "setenv.h".
8203 * modules/localename-tests (Depends-on): Need unsetenv.
8205 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8207 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8209 2008-01-06 Colin Watson <cjwatson@debian.org>
8211 * users.txt: Add man-db.
8213 2008-01-07 Bruno Haible <bruno@clisp.org>
8215 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8216 previous section name.
8218 2008-01-07 Bruno Haible <bruno@clisp.org>
8220 * lib/progname.c (set_program_name): Don't strip off a leading
8221 "lt-" prefix outside a .libs directory.
8222 Suggested by Paul Eggert.
8224 2008-01-01 Sylvain Beucler <beuc@gnu.org>
8225 Bruno Haible <bruno@clisp.org>
8227 Improve memory cleanup in 'relocatable' module.
8228 * lib/relocatable.h (compute_curr_prefix): Change return type to
8230 * lib/relocatable.c (compute_curr_prefix): Change return type to
8231 'char *'. Free curr_installdir after use.
8232 (relocate): Free curr_prefix_better after use.
8233 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8235 2008-01-01 Bruno Haible <bruno@clisp.org>
8237 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8238 failure on older glibc systems.
8239 Reported by Peter Fales <psfales@alcatel-lucent.com>.
8241 2008-01-05 Eric Blake <ebb9@byu.net>
8243 Avoid quadratic system memmem.
8244 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8245 Reported by Ralf Wildenhues.
8247 Fix memmem test for mingw.
8248 * modules/memmem-tests (configure.ac): Check for alarm.
8249 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8251 * doc/functions/memmem.texi: New file.
8252 * doc/gnulib.texi (Function Substitutes): Add memmem.
8253 Reported by Bruno Haible.
8255 2008-01-04 Bruno Haible <bruno@clisp.org>
8257 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8258 Require gl_HEADER_STRINGS_H_DEFAULTS, not
8259 gl_HEADER_STRING_H_DEFAULTS.
8261 2008-01-04 Eric Blake <ebb9@byu.net>
8263 Shorten duration of memmem test.
8264 * tests/test-memmem.c (main): Use alarm to declare failure if test
8266 Reported by Ralf Wildenhues.
8268 2007-12-21 Simon Josefsson <simon@josefsson.org>
8270 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8271 string, needed by strerror.
8273 2008-01-03 Colin Watson <cjwatson@debian.org>
8274 Bruno Haible <bruno@clisp.org>
8276 * doc/gnulib-tool.texi (Localization): New section.
8278 2008-01-02 Bruno Haible <bruno@clisp.org>
8280 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8281 variables to 'unsigned char *' type.
8282 Reported by Paul Eggert.
8284 2008-01-02 Jim Meyering <jim@meyering.net>
8286 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8288 2007-12-31 Jim Meyering <jim@meyering.net>
8290 Avoid use of private FTS type name.
8291 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8293 2007-12-30 Karl Berry <karl@gnu.org>
8295 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8296 work around defect in Texinfo and/or the standalone Info browser.
8298 2007-12-30 Bruno Haible <bruno@clisp.org>
8300 Unify 5 copies of the KMP code.
8301 * lib/str-kmp.h: New file.
8302 * lib/c-strcasestr.c: Include str-kmp.h.
8303 (knuth_morris_pratt): Remove function.
8304 (c_strcasestr): Update.
8305 * lib/c-strstr.c: Include str-kmp.h.
8306 (knuth_morris_pratt): Remove function.
8307 (c_strcasestr): Update.
8308 * lib/mbscasestr.c: Include str-kmp.h.
8309 (knuth_morris_pratt_unibyte): Remove function.
8310 * lib/mbsstr.c: Include str-kmp.h.
8311 (knuth_morris_pratt_unibyte): Remove function.
8312 * lib/strcasestr.c: Include str-kmp.h.
8313 (knuth_morris_pratt): Remove function.
8314 (strcasestr): Update.
8315 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8316 * modules/c-strstr (Files): Likewise.
8317 * modules/mbscasestr (Files): Likewise.
8318 * modules/mbsstr (Files): Likewise.
8319 * modules/strcasestr (Files): Likewise.
8320 Suggested by Paul Eggert.
8322 2007-12-30 Bruno Haible <bruno@clisp.org>
8324 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8327 2007-12-30 Bruno Haible <bruno@clisp.org>
8329 * lib/xmalloca.h: Include xalloc.h.
8330 (xnmalloca): New macro.
8332 2007-12-30 Bruno Haible <bruno@clisp.org>
8334 * lib/malloca.h (nmalloca): New macro.
8335 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8336 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8337 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8338 knuth_morris_pratt_multibyte): Likewise.
8339 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8340 knuth_morris_pratt_multibyte): Likewise.
8341 * lib/memmem.c (knuth_morris_pratt): Likewise.
8342 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8344 2007-12-25 Bruno Haible <bruno@clisp.org>
8346 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8347 * lib/glob.c: Don't include openat.h.
8348 (link_exists2_p): Add back the code that deals with the
8349 !GLOB_ALTDIRFUNC case.
8350 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8351 let it do the filename concatenation.
8352 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8353 * modules/glob (Depends-on): Remove openat.
8355 2007-12-31 Bruno Haible <bruno@clisp.org>
8357 * modules/dirfd (License): Change to LGPLv2+.
8358 Approved by Jim Meyering.
8360 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
8362 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8363 when multiplying M by sizeof (size_t).
8365 2007-12-10 Martin Lambers <marlam@marlam.de>
8367 Override getpagesize on mingw.
8368 * lib/getpagesize.c: New file.
8369 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8370 * modules/getpagesize (Files): Add lib/getpagesize.c.
8371 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8372 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8373 REPLACE_GETPAGESIZE.
8374 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8376 2007-12-25 Bruno Haible <bruno@clisp.org>
8378 * modules/localcharset (Notice): New field.
8379 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8380 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8382 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
8383 Bruno Haible <bruno@clisp.org>
8385 Avoid using the syntax symbol() in formatted documentation.
8386 * MODULES.html.sh (func_module): When replacing symbol() with a
8387 hyperlink, remove the parentheses. Show an error if some remain.
8388 Recognize and render the '...' syntax.
8389 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8390 Rework. Add paragraph about GCC's inlining.
8391 * doc/alloca.texi: Likewise.
8392 * doc/error.texi: Remove parentheses from symbol reference.
8393 * doc/gnulib-intro.texi: Likewise.
8394 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8395 * modules/fnmatch (Description): Reword to say "the ... function".
8396 * modules/full-read (Description): Likewise.
8397 * modules/full-write (Description): Likewise.
8398 * modules/safe-read (Description): Likewise.
8399 * modules/safe-write (Description): Likewise.
8400 * modules/strchrnul (Description): Likewise.
8401 * modules/trim (Description): Likewise.
8402 * modules/error (Description): Remove parentheses from symbol
8404 * modules/verror (Description): Likewise.
8405 Reported by Karl Berry.
8407 2007-12-25 Bruno Haible <bruno@clisp.org>
8409 Fixup after 2007-10-16 commit.
8410 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8412 2007-12-24 Bruno Haible <bruno@clisp.org>
8414 Make --enable-relocatable work with DESTDIR.
8415 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8416 to compute installdir from destprog.
8417 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8418 also set the RELOC_DESTDIR variable.
8419 Reported by Левашев Иван <octagram@bluebottle.com>.
8421 2007-12-24 Bruno Haible <bruno@clisp.org>
8423 Fix link error due to xalloc_die().
8424 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8426 * lib/relocwrapper.c: Update comments.
8427 * build-aux/install-reloc: Remove xreadlink.c from file list.
8428 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8430 Reported by Левашев Иван <octagram@bluebottle.com>.
8432 2007-12-24 Bruno Haible <bruno@clisp.org>
8434 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8435 * lib/setenv.h: Remove file.
8436 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8438 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8439 (Depends-on): Add stdlib.
8440 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8442 (Include): Replace setenv.h with <stdlib.h>.
8443 * modules/unsetenv: New file.
8444 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8445 * lib/unsetenv.c: Include <stdlib.h> first.
8446 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8447 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8448 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8449 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8450 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8451 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8452 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8453 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8454 * doc/functions/unsetenv.texi: Update.
8455 * modules/xsetenv (Depends-on): Add unsetenv.
8456 * modules/getdate (Depends-on): Likewise.
8457 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8458 * lib/xsetenv.c: Don't include setenv.h.
8459 * lib/getdate.y: Likewise.
8460 * lib/relocwrapper.c: Likewise.
8461 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8462 (Depends-on): Add stdlib.
8463 * NEWS: Mention the changes.
8464 Reported by Левашев Иван <octagram@bluebottle.com>.
8466 2007-12-23 Bruno Haible <bruno@clisp.org>
8468 * lib/memmem.c (memmem): Use lowercase variable names. Tab
8471 2007-12-23 Bruno Haible <bruno@clisp.org>
8473 * lib/c-strcasestr.c: Add more comments.
8474 * lib/c-strstr.c: Likewise.
8475 * lib/mbscasestr.c: Likewise.
8476 * lib/mbsstr.c: Likewise.
8477 * lib/strcasestr.c: Likewise.
8478 * lib/memmem.c: Likewise.
8480 2007-12-23 Bruno Haible <bruno@clisp.org>
8482 * tests/test-memmem.c: Include <string.h> first.
8484 2007-12-22 Bruno Haible <bruno@clisp.org>
8486 * gnulib-tool (func_create_testdir): Change $auxdir while generating
8487 the contents of $testsbase.
8488 Reported by Ralf Wildenhues.
8490 2007-12-22 Bruno Haible <bruno@clisp.org>
8492 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8493 two variables local_ldadd_before, local_ldadd_last.
8495 2007-12-20 Eric Blake <ebb9@byu.net>
8497 Work around circular library issue when cross-compiling.
8498 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8499 that progname.o does not need to pull in rpl_memcmp.
8501 2007-12-19 Eric Blake <ebb9@byu.net>
8503 Fix memmem to avoid O(n^2) worst-case complexity.
8504 * lib/memmem.c (knuth_morris_pratt): New function.
8505 (memmem): Use it if first few naive iterations fail.
8506 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8507 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8508 * modules/memchr (License): Likewise.
8509 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8511 * tests/test-memmem.c: Rewrite, borrowing ideas from
8512 test-mbsstr1.c; the old version wouldn't even compile!
8513 * modules/memmem-tests: New file.
8514 * lib/string.in.h (rpl_memmem): Add declaration.
8515 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8516 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8519 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
8521 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8522 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8523 before any system include files, and undef after them all. This
8524 should fix a problem on VMS reported by John E. Malmberg in
8525 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8527 2007-12-17 Eric Blake <ebb9@byu.net>
8529 Revert addition of verify, for BSD/OS.
8530 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8531 can't handle large files, for the sake of obsolete platforms.
8532 * modules/fseeko (Depends-on): Remove verify.
8533 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8534 * doc/functions/ftello.texi (ftello): Likewise.
8535 * doc/functions/fgetpos.texi (fgetpos): Likewise.
8536 Reported by Larry Jones.
8538 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
8540 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8541 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8543 2007-12-17 Jim Meyering <meyering@redhat.com>
8545 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8546 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8547 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8548 * modules/getcwd (Depends-on): Add openat.
8549 Reported by Petr Salinger.
8551 2007-12-17 Bruno Haible <bruno@clisp.org>
8553 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8554 avoid a segmentation fault of the configure test on x86_64 systems.
8556 2007-12-15 Jim Meyering <meyering@redhat.com>
8558 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8560 2007-12-13 Eric Blake <ebb9@byu.net>
8563 * tests/test-fseek.c (main): Also test ungetc handling.
8564 * tests/test-fseeko.c (main): Likewise.
8565 * modules/fseeko (Depends-on): Add verify.
8566 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8568 Reported by Larry Jones.
8570 Fix fseeko on mingw.
8571 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8574 Beef up fseek tests.
8575 * tests/test-fseek.c (main): Also test eof handling.
8576 * tests/test-fseeko.c (main): Likewise.
8577 Reported by Larry Jones.
8579 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
8581 Fix fseeko on BSD-based platforms.
8582 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8585 2007-12-12 Eric Blake <ebb9@byu.net>
8587 Allow circular dependency of separate libtests.a
8588 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8591 2007-12-11 Eric Blake <ebb9@byu.net>
8593 Fix bug with -0.0L in previous patch.
8594 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8595 * tests/test-isnan.c (main): Also test on zeroes.
8596 * tests/test-isnanf.c (main): Likewise.
8597 * tests/test-isnanl.h (main): Likewise.
8599 Detect pseudo-denormals on x86 even when cross-compiling.
8600 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8601 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8602 invalid bit patterns that happen to satisfy ==.
8604 Avoid link failures with separate libtests.a.
8605 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8606 last, to satisfy circular dependencies.
8608 2007-12-11 Eric Blake <ebb9@byu.net>
8609 and Bruno Haible <bruno@clisp.org>
8611 Fix OpenBSD 4.0 <float.h> handling of long double.
8612 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8613 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8614 * doc/headers/float.texi (float.h): Document OpenBSD bug.
8616 2007-12-11 Jim Meyering <meyering@redhat.com>
8618 * users.txt: Add libvirt.
8620 Support versions of autoconf prior to 2.59c.
8621 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8622 if it is not already defined.
8624 2007-12-09 Bruno Haible <bruno@clisp.org>
8626 Let 'gnulib-tool --import' collect sources needed for the tests in
8627 tests/ rather than in lib/.
8628 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8629 argument. If true, add rules to generate libtests.a, and put libtests.a
8630 into $(LDADD). Consider source files in subdirectories and set
8632 (func_emit_initmacro_start, func_emit_initmacro_end,
8633 func_emit_initmacro_done): Pass all arguments explicitly.
8634 (func_import): Determine two module lists main_modules,
8635 testsrelated_modules. Determine use_libtests. Determine two variables
8636 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8637 instead of just sed_transform_lib_file. Determine two variables
8638 main_files and testsrelated_files. Compute 'files' as the union of
8639 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8640 func_add_or_update. In the generated gnulib-comp.m4, collect the
8641 object files for tests/ in different variables than those for lib/.
8642 Substitute LIBTESTS_LIBDEPS.
8643 (func_create_testdir): Combine the uses_subdirs results from
8644 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8646 2007-12-09 Bruno Haible <bruno@clisp.org>
8648 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8649 the build-aux directory.
8651 2007-12-09 Bruno Haible <bruno@clisp.org>
8653 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8654 introduced on 2006-09-09.
8656 2007-12-07 Jim Meyering <meyering@redhat.com>
8658 Let these macros work also with autoconf-2.59.
8659 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
8660 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8661 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8663 2007-12-06 Jim Meyering <meyering@redhat.com>
8665 Avoid a configure-time syntax error in gl_FUNC_ACL.
8666 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8667 function in each branch, before testing the cache variable.
8669 2007-12-04 Eric Blake <ebb9@byu.net>
8671 Make scripts executable.
8672 * build-aux/config.guess: Add execute permissions.
8673 * build-aux/config.sub: Likewise.
8674 * build-aux/gendocs.sh: Likewise.
8677 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8679 * doc/functions/frexp.texi (frexp): Document the bug.
8681 Make cygwin fseeko check more reliable.
8682 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8683 version numbers, rather than unrelated feature check.
8684 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8685 * doc/functions/ftello.texi (ftello): Likewise.
8686 Reported by Bruno Haible.
8688 * m4/strerror.m4: Bump version number.
8690 2007-12-03 Bruno Haible <bruno@clisp.org>
8692 * doc/functions/mprotect.texi: Mention the mingw problem.
8694 2007-12-03 Eric Blake <ebb9@byu.net>
8696 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8697 REPLACE_STRERROR is initialized before this macro.
8699 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
8701 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
8702 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8703 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
8704 put -lsec in even for programs other than 'ls'. This fixes a problem
8705 for gettext reported by Bruno Haible in
8706 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8707 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8708 Add support for Solaris 10. This isn't efficient, but should get the
8711 2007-12-03 James Youngman <jay@gnu.org>
8713 * doc/regexprops-generic.texi: change "an close-group" to "a
8714 close-group" and "illegal" to "not allowed".
8716 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8718 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8719 pr_byname.h. Needed for the rare case when the maintainer has done
8720 "make maintainer-clean" in the source directory and then attempts a
8721 build outside the source directory.
8722 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8725 2007-12-02 Martin Lambers <marlam@marlam.de>
8726 Bruno Haible <bruno@clisp.org>
8728 * lib/getpagesize.h: Remove file.
8729 * lib/unistd.in.h: Include declaration of getpagesize here.
8730 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8731 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8733 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8734 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8735 * modules/getpagesize (Files): Remove lib/getpagesize.h.
8736 (Depends-on): Add unistd.
8737 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8738 (Include): Use <unistd.h> instead of getpagesize.h.
8739 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8740 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8741 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8742 gl_GETPAGESIZE invocation, already handled by module dependency.
8743 * lib/pagealign_alloc.c: Don't include getpagesize.h.
8745 2007-12-02 Bruno Haible <bruno@clisp.org>
8747 * modules/strings-tests: New file.
8748 * tests/test-strings.c: New file.
8750 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8751 * lib/strings.in.h: New file.
8752 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8753 * m4/strings_h.m4: New file.
8754 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8755 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8756 * modules/strings: New file.
8757 * modules/string (Makefile.am): Update.
8758 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8759 Reported by Karl Berry.
8761 2007-12-01 Eric Blake <ebb9@byu.net>
8763 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8764 accomodate fix in cygwin 1.5.25.
8766 2007-12-01 Jim Meyering <meyering@redhat.com>
8768 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8769 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8770 that would inhibit utf8-optimization of a regexp containing line-
8771 or buffer-anchors, e.g., `^', `$'.
8773 2007-11-30 Bruno Haible <bruno@clisp.org>
8775 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8776 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8777 glthread_recursive_lock_init.
8778 * lib/lock.c (glthread_recursive_lock_init)
8779 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8780 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8782 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
8784 New function qset_acl, like set_acl but with syscall semantics.
8785 * lib/acl.h (qset_acl): New decl.
8786 * lib/acl.c (qset_acl): New function.
8787 (set_acl): Use new function. Use more-consistent diagnostics.
8789 2007-11-28 Jim Meyering <meyering@redhat.com>
8791 * modules/physmem (License): Change from GPL to LGPLv2+.
8793 2007-11-26 Bruno Haible <bruno@clisp.org>
8795 * lib/vasnprintf.c (decode_long_double): Don't abort if the
8796 'long double' type has excess precision.
8797 Reported by Jim Meyering in
8798 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8800 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8802 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8803 Sync from <http://gnu.org/licenses>.
8804 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8805 with license text from same location.
8806 * doc/maintain.texi, doc/standards.texi: Sync from
8807 <http://savannah.gnu.org/projects/gnustandards>.
8809 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
8810 and Jim Meyering <meyering@redhat.com>
8812 Adjust getdate' grammar to accept a slightly more regular language.
8813 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8814 Before, the former was rejected.
8815 * lib/getdate.y (digits_to_date_time): New function, factored
8817 (number): ...here. Just call digits_to_date_time.
8818 (hybrid): New non-terminal to handle an <unsigned number,
8819 signed relative offset> sequence consistently.
8821 2007-11-18 Jim Meyering <meyering@redhat.com>
8823 Pull my changes from coreutils:
8824 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8825 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8826 use of $gnulib_tool_option_extras, so that it's separated from the
8829 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8830 * build-aux/bootstrap (cp_mark_as_generated): Create any required
8831 parent destination directories before copying a file into place.
8833 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
8835 bootstrap: work also with 4-argument variant of AC_INIT
8836 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8838 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
8840 Port test-getaddrinfo to Solaris.
8841 Problem reported by Bruno Haible in
8842 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8843 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8844 explanation of setting 'hints'.
8845 Don't reject an implementation merely because it returns EAI_SERVICE.
8846 (EAI_SERVICE): Define to 0 if not defined.
8848 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
8850 The license of gnu-make and posix-shell is now "GPLed build tool".
8851 * modules/gnu-make (License): Likewise.
8852 * modules/posix-shell (License): Likewise.
8854 New module posix-shell, for determining a POSIX shell
8855 or perhaps something that is close enough to a POSIX shell.
8856 * m4/posix-shell.m4: New file.
8857 * modules/posix-shell: New file.
8859 * MODULES.html.sh: Mention new module.
8861 New module gnu-make, for determining whether we're using GNU Make.
8862 * m4/gnu-make.m4: New file.
8863 * modules/gnu-make: New file.
8864 * MODULES.html.sh: Mention new module.
8866 2007-11-14 Jim Meyering <meyering@redhat.com>
8868 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8869 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8870 use this macro to create a function _definition_.
8871 Remove useless "#undef ARGMATCH_DIE".
8873 2007-11-14 Bruno Haible <bruno@clisp.org>
8875 * lib/config.charset: Update for OpenBSD 4.1.
8876 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8878 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
8880 Document 64-bit #if problems in stdint.texi.
8881 * doc/headers/stdint.texi (stdint.h): Mention problems with
8882 64-bit-#if, and how to work around them.
8884 Don't insist on 'long long int' support in the preprocessor. It
8885 breaks too many things. For example, PRIdMAX still uses a 'long
8886 long int' format with the latest Sun compiler, even though
8887 HAVE_LONG_LONG_INT isn't defined due to that compiler's
8888 preprocessor problem. This causes the latest coreutils to dump
8889 core on Solaris 10 sparc with the Sun C compiler.
8890 Instead, fix the 2007-10-16 problem in a different way, by evaluating
8891 the troublesome expressions at configure-time, not at #if-time.
8892 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8894 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8895 compile-time C checks, done at 'configure'-time.
8896 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8897 * modules/inttypes (Makefile): Substitute the new symbols that
8898 gl_INTTYPES_H now generates.
8899 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8901 2007-11-12 Bruno Haible <bruno@clisp.org>
8903 Tests for Unicode character classification functions.
8905 * modules/unictype/bidicategory-byname-tests: New file.
8906 * modules/unictype/bidicategory-name-tests: New file.
8907 * modules/unictype/bidicategory-of-tests: New file.
8908 * modules/unictype/bidicategory-test-tests: New file.
8909 * modules/unictype/block-list-tests: New file.
8910 * modules/unictype/block-of-tests: New file.
8911 * modules/unictype/block-test-tests: New file.
8912 * modules/unictype/category-C-tests: New file.
8913 * modules/unictype/category-Cc-tests: New file.
8914 * modules/unictype/category-Cf-tests: New file.
8915 * modules/unictype/category-Cn-tests: New file.
8916 * modules/unictype/category-Co-tests: New file.
8917 * modules/unictype/category-Cs-tests: New file.
8918 * modules/unictype/category-L-tests: New file.
8919 * modules/unictype/category-Ll-tests: New file.
8920 * modules/unictype/category-Lm-tests: New file.
8921 * modules/unictype/category-Lo-tests: New file.
8922 * modules/unictype/category-Lt-tests: New file.
8923 * modules/unictype/category-Lu-tests: New file.
8924 * modules/unictype/category-M-tests: New file.
8925 * modules/unictype/category-Mc-tests: New file.
8926 * modules/unictype/category-Me-tests: New file.
8927 * modules/unictype/category-Mn-tests: New file.
8928 * modules/unictype/category-N-tests: New file.
8929 * modules/unictype/category-Nd-tests: New file.
8930 * modules/unictype/category-Nl-tests: New file.
8931 * modules/unictype/category-No-tests: New file.
8932 * modules/unictype/category-P-tests: New file.
8933 * modules/unictype/category-Pc-tests: New file.
8934 * modules/unictype/category-Pd-tests: New file.
8935 * modules/unictype/category-Pe-tests: New file.
8936 * modules/unictype/category-Pf-tests: New file.
8937 * modules/unictype/category-Pi-tests: New file.
8938 * modules/unictype/category-Po-tests: New file.
8939 * modules/unictype/category-Ps-tests: New file.
8940 * modules/unictype/category-S-tests: New file.
8941 * modules/unictype/category-Sc-tests: New file.
8942 * modules/unictype/category-Sk-tests: New file.
8943 * modules/unictype/category-Sm-tests: New file.
8944 * modules/unictype/category-So-tests: New file.
8945 * modules/unictype/category-Z-tests: New file.
8946 * modules/unictype/category-Zl-tests: New file.
8947 * modules/unictype/category-Zp-tests: New file.
8948 * modules/unictype/category-Zs-tests: New file.
8949 * modules/unictype/category-and-not-tests: New file.
8950 * modules/unictype/category-and-tests: New file.
8951 * modules/unictype/category-byname-tests: New file.
8952 * modules/unictype/category-name-tests: New file.
8953 * modules/unictype/category-none-tests: New file.
8954 * modules/unictype/category-of-tests: New file.
8955 * modules/unictype/category-or-tests: New file.
8956 * modules/unictype/category-test-withtable-tests: New file.
8957 * modules/unictype/combining-class-tests: New file.
8958 * modules/unictype/ctype-alnum-tests: New file.
8959 * modules/unictype/ctype-alpha-tests: New file.
8960 * modules/unictype/ctype-blank-tests: New file.
8961 * modules/unictype/ctype-cntrl-tests: New file.
8962 * modules/unictype/ctype-digit-tests: New file.
8963 * modules/unictype/ctype-graph-tests: New file.
8964 * modules/unictype/ctype-lower-tests: New file.
8965 * modules/unictype/ctype-print-tests: New file.
8966 * modules/unictype/ctype-punct-tests: New file.
8967 * modules/unictype/ctype-space-tests: New file.
8968 * modules/unictype/ctype-upper-tests: New file.
8969 * modules/unictype/ctype-xdigit-tests: New file.
8970 * modules/unictype/decimal-digit-tests: New file.
8971 * modules/unictype/digit-tests: New file.
8972 * modules/unictype/mirror-tests: New file.
8973 * modules/unictype/numeric-tests: New file.
8974 * modules/unictype/property-alphabetic-tests: New file.
8975 * modules/unictype/property-ascii-hex-digit-tests: New file.
8976 * modules/unictype/property-bidi-arabic-digit-tests: New file.
8977 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8978 * modules/unictype/property-bidi-block-separator-tests: New file.
8979 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8980 * modules/unictype/property-bidi-common-separator-tests: New file.
8981 * modules/unictype/property-bidi-control-tests: New file.
8982 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8983 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8984 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8985 * modules/unictype/property-bidi-european-digit-tests: New file.
8986 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8987 * modules/unictype/property-bidi-left-to-right-tests: New file.
8988 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8989 * modules/unictype/property-bidi-other-neutral-tests: New file.
8990 * modules/unictype/property-bidi-pdf-tests: New file.
8991 * modules/unictype/property-bidi-segment-separator-tests: New file.
8992 * modules/unictype/property-bidi-whitespace-tests: New file.
8993 * modules/unictype/property-byname-tests: New file.
8994 * modules/unictype/property-combining-tests: New file.
8995 * modules/unictype/property-composite-tests: New file.
8996 * modules/unictype/property-currency-symbol-tests: New file.
8997 * modules/unictype/property-dash-tests: New file.
8998 * modules/unictype/property-decimal-digit-tests: New file.
8999 * modules/unictype/property-default-ignorable-code-point-tests: New file.
9000 * modules/unictype/property-deprecated-tests: New file.
9001 * modules/unictype/property-diacritic-tests: New file.
9002 * modules/unictype/property-extender-tests: New file.
9003 * modules/unictype/property-format-control-tests: New file.
9004 * modules/unictype/property-grapheme-base-tests: New file.
9005 * modules/unictype/property-grapheme-extend-tests: New file.
9006 * modules/unictype/property-grapheme-link-tests: New file.
9007 * modules/unictype/property-hex-digit-tests: New file.
9008 * modules/unictype/property-hyphen-tests: New file.
9009 * modules/unictype/property-id-continue-tests: New file.
9010 * modules/unictype/property-id-start-tests: New file.
9011 * modules/unictype/property-ideographic-tests: New file.
9012 * modules/unictype/property-ids-binary-operator-tests: New file.
9013 * modules/unictype/property-ids-trinary-operator-tests: New file.
9014 * modules/unictype/property-ignorable-control-tests: New file.
9015 * modules/unictype/property-iso-control-tests: New file.
9016 * modules/unictype/property-join-control-tests: New file.
9017 * modules/unictype/property-left-of-pair-tests: New file.
9018 * modules/unictype/property-line-separator-tests: New file.
9019 * modules/unictype/property-logical-order-exception-tests: New file.
9020 * modules/unictype/property-lowercase-tests: New file.
9021 * modules/unictype/property-math-tests: New file.
9022 * modules/unictype/property-non-break-tests: New file.
9023 * modules/unictype/property-not-a-character-tests: New file.
9024 * modules/unictype/property-numeric-tests: New file.
9025 * modules/unictype/property-other-alphabetic-tests: New file.
9026 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9027 * modules/unictype/property-other-grapheme-extend-tests: New file.
9028 * modules/unictype/property-other-id-continue-tests: New file.
9029 * modules/unictype/property-other-id-start-tests: New file.
9030 * modules/unictype/property-other-lowercase-tests: New file.
9031 * modules/unictype/property-other-math-tests: New file.
9032 * modules/unictype/property-other-uppercase-tests: New file.
9033 * modules/unictype/property-paired-punctuation-tests: New file.
9034 * modules/unictype/property-paragraph-separator-tests: New file.
9035 * modules/unictype/property-pattern-syntax-tests: New file.
9036 * modules/unictype/property-pattern-white-space-tests: New file.
9037 * modules/unictype/property-private-use-tests: New file.
9038 * modules/unictype/property-punctuation-tests: New file.
9039 * modules/unictype/property-quotation-mark-tests: New file.
9040 * modules/unictype/property-radical-tests: New file.
9041 * modules/unictype/property-sentence-terminal-tests: New file.
9042 * modules/unictype/property-soft-dotted-tests: New file.
9043 * modules/unictype/property-space-tests: New file.
9044 * modules/unictype/property-terminal-punctuation-tests: New file.
9045 * modules/unictype/property-test-tests: New file.
9046 * modules/unictype/property-titlecase-tests: New file.
9047 * modules/unictype/property-unassigned-code-value-tests: New file.
9048 * modules/unictype/property-unified-ideograph-tests: New file.
9049 * modules/unictype/property-uppercase-tests: New file.
9050 * modules/unictype/property-variation-selector-tests: New file.
9051 * modules/unictype/property-white-space-tests: New file.
9052 * modules/unictype/property-xid-continue-tests: New file.
9053 * modules/unictype/property-xid-start-tests: New file.
9054 * modules/unictype/property-zero-width-tests: New file.
9055 * modules/unictype/scripts-tests: New file.
9056 * modules/unictype/syntax-c-ident-tests: New file.
9057 * modules/unictype/syntax-c-whitespace-tests: New file.
9058 * modules/unictype/syntax-java-ident-tests: New file.
9059 * modules/unictype/syntax-java-whitespace-tests: New file.
9060 * tests/unictype/test-bidi_byname.c: New file.
9061 * tests/unictype/test-bidi_name.c: New file.
9062 * tests/unictype/test-bidi_of.c: New file.
9063 * tests/unictype/test-bidi_test.c: New file.
9064 * tests/unictype/test-block_list.c: New file.
9065 * tests/unictype/test-block_of.c: New file.
9066 * tests/unictype/test-block_test.c: New file.
9067 * tests/unictype/test-categ_and.c: New file.
9068 * tests/unictype/test-categ_and_not.c: New file.
9069 * tests/unictype/test-categ_byname.c: New file.
9070 * tests/unictype/test-categ_name.c: New file.
9071 * tests/unictype/test-categ_none.c: New file.
9072 * tests/unictype/test-categ_of.c: New file.
9073 * tests/unictype/test-categ_or.c: New file.
9074 * tests/unictype/test-categ_test_withtable.c: New file.
9075 * tests/unictype/test-combining.c: New file.
9076 * tests/unictype/test-decdigit.c: New file.
9077 * tests/unictype/test-digit.c: New file.
9078 * tests/unictype/test-mirror.c: New file.
9079 * tests/unictype/test-numeric.c: New file.
9080 * tests/unictype/test-pr_byname.c: New file.
9081 * tests/unictype/test-pr_test.c: New file.
9082 * tests/unictype/test-predicate-part1.h: New file.
9083 * tests/unictype/test-predicate-part2.h: New file.
9084 * tests/unictype/test-scripts.c: New file.
9085 * tests/unictype/test-sy_c_ident.c: New file.
9086 * tests/unictype/test-sy_java_ident.c: New file.
9088 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9090 * tests/unictype/test-categ_Cc.c: Likewise.
9091 * tests/unictype/test-categ_Cf.c: Likewise.
9092 * tests/unictype/test-categ_Cn.c: Likewise.
9093 * tests/unictype/test-categ_Co.c: Likewise.
9094 * tests/unictype/test-categ_Cs.c: Likewise.
9095 * tests/unictype/test-categ_L.c: Likewise.
9096 * tests/unictype/test-categ_Ll.c: Likewise.
9097 * tests/unictype/test-categ_Lm.c: Likewise.
9098 * tests/unictype/test-categ_Lo.c: Likewise.
9099 * tests/unictype/test-categ_Lt.c: Likewise.
9100 * tests/unictype/test-categ_Lu.c: Likewise.
9101 * tests/unictype/test-categ_M.c: Likewise.
9102 * tests/unictype/test-categ_Mc.c: Likewise.
9103 * tests/unictype/test-categ_Me.c: Likewise.
9104 * tests/unictype/test-categ_Mn.c: Likewise.
9105 * tests/unictype/test-categ_N.c: Likewise.
9106 * tests/unictype/test-categ_Nd.c: Likewise.
9107 * tests/unictype/test-categ_Nl.c: Likewise.
9108 * tests/unictype/test-categ_No.c: Likewise.
9109 * tests/unictype/test-categ_P.c: Likewise.
9110 * tests/unictype/test-categ_Pc.c: Likewise.
9111 * tests/unictype/test-categ_Pd.c: Likewise.
9112 * tests/unictype/test-categ_Pe.c: Likewise.
9113 * tests/unictype/test-categ_Pf.c: Likewise.
9114 * tests/unictype/test-categ_Pi.c: Likewise.
9115 * tests/unictype/test-categ_Po.c: Likewise.
9116 * tests/unictype/test-categ_Ps.c: Likewise.
9117 * tests/unictype/test-categ_S.c: Likewise.
9118 * tests/unictype/test-categ_Sc.c: Likewise.
9119 * tests/unictype/test-categ_Sk.c: Likewise.
9120 * tests/unictype/test-categ_Sm.c: Likewise.
9121 * tests/unictype/test-categ_So.c: Likewise.
9122 * tests/unictype/test-categ_Z.c: Likewise.
9123 * tests/unictype/test-categ_Zl.c: Likewise.
9124 * tests/unictype/test-categ_Zp.c: Likewise.
9125 * tests/unictype/test-categ_Zs.c: Likewise.
9126 * tests/unictype/test-ctype_alnum.c: Likewise.
9127 * tests/unictype/test-ctype_alpha.c: Likewise.
9128 * tests/unictype/test-ctype_blank.c: Likewise.
9129 * tests/unictype/test-ctype_cntrl.c: Likewise.
9130 * tests/unictype/test-ctype_digit.c: Likewise.
9131 * tests/unictype/test-ctype_graph.c: Likewise.
9132 * tests/unictype/test-ctype_lower.c: Likewise.
9133 * tests/unictype/test-ctype_print.c: Likewise.
9134 * tests/unictype/test-ctype_punct.c: Likewise.
9135 * tests/unictype/test-ctype_space.c: Likewise.
9136 * tests/unictype/test-ctype_upper.c: Likewise.
9137 * tests/unictype/test-ctype_xdigit.c: Likewise.
9138 * tests/unictype/test-decdigit.h: Likewise.
9139 * tests/unictype/test-digit.h: Likewise.
9140 * tests/unictype/test-numeric.h: Likewise.
9141 * tests/unictype/test-pr_alphabetic.c: Likewise.
9142 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9143 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9144 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9145 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9146 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9147 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9148 * tests/unictype/test-pr_bidi_control.c: Likewise.
9149 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9150 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9151 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9152 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9153 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9154 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9155 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9156 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9157 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9158 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9159 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9160 * tests/unictype/test-pr_combining.c: Likewise.
9161 * tests/unictype/test-pr_composite.c: Likewise.
9162 * tests/unictype/test-pr_currency_symbol.c: Likewise.
9163 * tests/unictype/test-pr_dash.c: Likewise.
9164 * tests/unictype/test-pr_decimal_digit.c: Likewise.
9165 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9166 * tests/unictype/test-pr_deprecated.c: Likewise.
9167 * tests/unictype/test-pr_diacritic.c: Likewise.
9168 * tests/unictype/test-pr_extender.c: Likewise.
9169 * tests/unictype/test-pr_format_control.c: Likewise.
9170 * tests/unictype/test-pr_grapheme_base.c: Likewise.
9171 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9172 * tests/unictype/test-pr_grapheme_link.c: Likewise.
9173 * tests/unictype/test-pr_hex_digit.c: Likewise.
9174 * tests/unictype/test-pr_hyphen.c: Likewise.
9175 * tests/unictype/test-pr_id_continue.c: Likewise.
9176 * tests/unictype/test-pr_id_start.c: Likewise.
9177 * tests/unictype/test-pr_ideographic.c: Likewise.
9178 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9179 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9180 * tests/unictype/test-pr_ignorable_control.c: Likewise.
9181 * tests/unictype/test-pr_iso_control.c: Likewise.
9182 * tests/unictype/test-pr_join_control.c: Likewise.
9183 * tests/unictype/test-pr_left_of_pair.c: Likewise.
9184 * tests/unictype/test-pr_line_separator.c: Likewise.
9185 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9186 * tests/unictype/test-pr_lowercase.c: Likewise.
9187 * tests/unictype/test-pr_math.c: Likewise.
9188 * tests/unictype/test-pr_non_break.c: Likewise.
9189 * tests/unictype/test-pr_not_a_character.c: Likewise.
9190 * tests/unictype/test-pr_numeric.c: Likewise.
9191 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9192 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9193 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9194 * tests/unictype/test-pr_other_id_continue.c: Likewise.
9195 * tests/unictype/test-pr_other_id_start.c: Likewise.
9196 * tests/unictype/test-pr_other_lowercase.c: Likewise.
9197 * tests/unictype/test-pr_other_math.c: Likewise.
9198 * tests/unictype/test-pr_other_uppercase.c: Likewise.
9199 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9200 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9201 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9202 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9203 * tests/unictype/test-pr_private_use.c: Likewise.
9204 * tests/unictype/test-pr_punctuation.c: Likewise.
9205 * tests/unictype/test-pr_quotation_mark.c: Likewise.
9206 * tests/unictype/test-pr_radical.c: Likewise.
9207 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9208 * tests/unictype/test-pr_soft_dotted.c: Likewise.
9209 * tests/unictype/test-pr_space.c: Likewise.
9210 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9211 * tests/unictype/test-pr_titlecase.c: Likewise.
9212 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9213 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9214 * tests/unictype/test-pr_uppercase.c: Likewise.
9215 * tests/unictype/test-pr_variation_selector.c: Likewise.
9216 * tests/unictype/test-pr_white_space.c: Likewise.
9217 * tests/unictype/test-pr_xid_continue.c: Likewise.
9218 * tests/unictype/test-pr_xid_start.c: Likewise.
9219 * tests/unictype/test-pr_zero_width.c: Likewise.
9220 * tests/unictype/test-sy_c_whitespace.c: Likewise.
9221 * tests/unictype/test-sy_java_whitespace.c: Likewise.
9223 2007-11-12 Bruno Haible <bruno@clisp.org>
9225 Unicode character classification functions.
9226 * lib/unictype.h: New file.
9227 * modules/unictype/base: New file.
9228 * modules/unictype/category-L: New file.
9229 * modules/unictype/category-Lu: New file.
9230 * modules/unictype/category-Ll: New file.
9231 * modules/unictype/category-Lt: New file.
9232 * modules/unictype/category-Lm: New file.
9233 * modules/unictype/category-Lo: New file.
9234 * modules/unictype/category-M: New file.
9235 * modules/unictype/category-Mn: New file.
9236 * modules/unictype/category-Mc: New file.
9237 * modules/unictype/category-Me: New file.
9238 * modules/unictype/category-N: New file.
9239 * modules/unictype/category-Nd: New file.
9240 * modules/unictype/category-Nl: New file.
9241 * modules/unictype/category-No: New file.
9242 * modules/unictype/category-P: New file.
9243 * modules/unictype/category-Pc: New file.
9244 * modules/unictype/category-Pd: New file.
9245 * modules/unictype/category-Ps: New file.
9246 * modules/unictype/category-Pe: New file.
9247 * modules/unictype/category-Pi: New file.
9248 * modules/unictype/category-Pf: New file.
9249 * modules/unictype/category-Po: New file.
9250 * modules/unictype/category-S: New file.
9251 * modules/unictype/category-Sm: New file.
9252 * modules/unictype/category-Sc: New file.
9253 * modules/unictype/category-Sk: New file.
9254 * modules/unictype/category-So: New file.
9255 * modules/unictype/category-Z: New file.
9256 * modules/unictype/category-Zs: New file.
9257 * modules/unictype/category-Zl: New file.
9258 * modules/unictype/category-Zp: New file.
9259 * modules/unictype/category-C: New file.
9260 * modules/unictype/category-Cc: New file.
9261 * modules/unictype/category-Cf: New file.
9262 * modules/unictype/category-Cs: New file.
9263 * modules/unictype/category-Co: New file.
9264 * modules/unictype/category-Cn: New file.
9265 * modules/unictype/category-or: New file.
9266 * modules/unictype/category-of: New file.
9267 * modules/unictype/category-test: New file.
9268 * modules/unictype/category-test-withtable: New file.
9269 * modules/unictype/category-byname: New file.
9270 * modules/unictype/category-none: New file.
9271 * modules/unictype/category-and: New file.
9272 * modules/unictype/category-and-not: New file.
9273 * modules/unictype/category-name: New file.
9274 * modules/unictype/combining-class: New file.
9275 * modules/unictype/category-all: New file.
9276 * modules/unictype/bidicategory-all: New file.
9277 * modules/unictype/bidicategory-byname: New file.
9278 * modules/unictype/bidicategory-name: New file.
9279 * modules/unictype/bidicategory-of: New file.
9280 * modules/unictype/bidicategory-test: New file.
9281 * modules/unictype/decimal-digit: New file.
9282 * modules/unictype/digit: New file.
9283 * modules/unictype/numeric: New file.
9284 * modules/unictype/mirror: New file.
9285 * modules/unictype/property-white-space: New file.
9286 * modules/unictype/property-alphabetic: New file.
9287 * modules/unictype/property-other-alphabetic: New file.
9288 * modules/unictype/property-not-a-character: New file.
9289 * modules/unictype/property-default-ignorable-code-point: New file.
9290 * modules/unictype/property-other-default-ignorable-code-point: New
9292 * modules/unictype/property-deprecated: New file.
9293 * modules/unictype/property-logical-order-exception: New file.
9294 * modules/unictype/property-variation-selector: New file.
9295 * modules/unictype/property-private-use: New file.
9296 * modules/unictype/property-unassigned-code-value: New file.
9297 * modules/unictype/property-uppercase: New file.
9298 * modules/unictype/property-other-uppercase: New file.
9299 * modules/unictype/property-lowercase: New file.
9300 * modules/unictype/property-other-lowercase: New file.
9301 * modules/unictype/property-titlecase: New file.
9302 * modules/unictype/property-soft-dotted: New file.
9303 * modules/unictype/property-id-start: New file.
9304 * modules/unictype/property-other-id-start: New file.
9305 * modules/unictype/property-id-continue: New file.
9306 * modules/unictype/property-other-id-continue: New file.
9307 * modules/unictype/property-xid-start: New file.
9308 * modules/unictype/property-xid-continue: New file.
9309 * modules/unictype/property-pattern-white-space: New file.
9310 * modules/unictype/property-pattern-syntax: New file.
9311 * modules/unictype/property-join-control: New file.
9312 * modules/unictype/property-grapheme-base: New file.
9313 * modules/unictype/property-grapheme-extend: New file.
9314 * modules/unictype/property-other-grapheme-extend: New file.
9315 * modules/unictype/property-grapheme-link: New file.
9316 * modules/unictype/property-bidi-control: New file.
9317 * modules/unictype/property-bidi-left-to-right: New file.
9318 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9319 * modules/unictype/property-bidi-arabic-right-to-left: New file.
9320 * modules/unictype/property-bidi-european-digit: New file.
9321 * modules/unictype/property-bidi-eur-num-separator: New file.
9322 * modules/unictype/property-bidi-eur-num-terminator: New file.
9323 * modules/unictype/property-bidi-arabic-digit: New file.
9324 * modules/unictype/property-bidi-common-separator: New file.
9325 * modules/unictype/property-bidi-block-separator: New file.
9326 * modules/unictype/property-bidi-segment-separator: New file.
9327 * modules/unictype/property-bidi-whitespace: New file.
9328 * modules/unictype/property-bidi-non-spacing-mark: New file.
9329 * modules/unictype/property-bidi-boundary-neutral: New file.
9330 * modules/unictype/property-bidi-pdf: New file.
9331 * modules/unictype/property-bidi-embedding-or-override: New file.
9332 * modules/unictype/property-bidi-other-neutral: New file.
9333 * modules/unictype/property-hex-digit: New file.
9334 * modules/unictype/property-ascii-hex-digit: New file.
9335 * modules/unictype/property-ideographic: New file.
9336 * modules/unictype/property-unified-ideograph: New file.
9337 * modules/unictype/property-radical: New file.
9338 * modules/unictype/property-ids-binary-operator: New file.
9339 * modules/unictype/property-ids-trinary-operator: New file.
9340 * modules/unictype/property-zero-width: New file.
9341 * modules/unictype/property-space: New file.
9342 * modules/unictype/property-non-break: New file.
9343 * modules/unictype/property-iso-control: New file.
9344 * modules/unictype/property-format-control: New file.
9345 * modules/unictype/property-dash: New file.
9346 * modules/unictype/property-hyphen: New file.
9347 * modules/unictype/property-punctuation: New file.
9348 * modules/unictype/property-line-separator: New file.
9349 * modules/unictype/property-paragraph-separator: New file.
9350 * modules/unictype/property-quotation-mark: New file.
9351 * modules/unictype/property-sentence-terminal: New file.
9352 * modules/unictype/property-terminal-punctuation: New file.
9353 * modules/unictype/property-currency-symbol: New file.
9354 * modules/unictype/property-math: New file.
9355 * modules/unictype/property-other-math: New file.
9356 * modules/unictype/property-paired-punctuation: New file.
9357 * modules/unictype/property-left-of-pair: New file.
9358 * modules/unictype/property-combining: New file.
9359 * modules/unictype/property-composite: New file.
9360 * modules/unictype/property-decimal-digit: New file.
9361 * modules/unictype/property-numeric: New file.
9362 * modules/unictype/property-diacritic: New file.
9363 * modules/unictype/property-extender: New file.
9364 * modules/unictype/property-ignorable-control: New file.
9365 * modules/unictype/property-test: New file.
9366 * modules/unictype/property-byname: New file.
9367 * modules/unictype/property-all: New file.
9368 * modules/unictype/scripts: New file.
9369 * modules/unictype/scripts-all: New file.
9370 * modules/unictype/block-of: New file.
9371 * modules/unictype/block-test: New file.
9372 * modules/unictype/block-list: New file.
9373 * modules/unictype/block-all: New file.
9374 * modules/unictype/syntax-c-whitespace: New file.
9375 * modules/unictype/syntax-java-whitespace: New file.
9376 * modules/unictype/syntax-c-ident: New file.
9377 * modules/unictype/syntax-java-ident: New file.
9378 * modules/unictype/ctype-alnum: New file.
9379 * modules/unictype/ctype-alpha: New file.
9380 * modules/unictype/ctype-cntrl: New file.
9381 * modules/unictype/ctype-digit: New file.
9382 * modules/unictype/ctype-graph: New file.
9383 * modules/unictype/ctype-lower: New file.
9384 * modules/unictype/ctype-print: New file.
9385 * modules/unictype/ctype-punct: New file.
9386 * modules/unictype/ctype-space: New file.
9387 * modules/unictype/ctype-upper: New file.
9388 * modules/unictype/ctype-xdigit: New file.
9389 * modules/unictype/ctype-blank: New file.
9390 * lib/unictype/bidi_byname.c: New file.
9391 * lib/unictype/bidi_name.c: New file.
9392 * lib/unictype/bidi_of.c: New file.
9393 * lib/unictype/bidi_test.c: New file.
9394 * lib/unictype/bitmap.h: New file.
9395 * lib/unictype/block_test.c: New file.
9396 * lib/unictype/blocks.c: New file.
9397 * lib/unictype/categ_C.c: New file.
9398 * lib/unictype/categ_Cc.c: New file.
9399 * lib/unictype/categ_Cf.c: New file.
9400 * lib/unictype/categ_Cn.c: New file.
9401 * lib/unictype/categ_Co.c: New file.
9402 * lib/unictype/categ_Cs.c: New file.
9403 * lib/unictype/categ_L.c: New file.
9404 * lib/unictype/categ_Ll.c: New file.
9405 * lib/unictype/categ_Lm.c: New file.
9406 * lib/unictype/categ_Lo.c: New file.
9407 * lib/unictype/categ_Lt.c: New file.
9408 * lib/unictype/categ_Lu.c: New file.
9409 * lib/unictype/categ_M.c: New file.
9410 * lib/unictype/categ_Mc.c: New file.
9411 * lib/unictype/categ_Me.c: New file.
9412 * lib/unictype/categ_Mn.c: New file.
9413 * lib/unictype/categ_N.c: New file.
9414 * lib/unictype/categ_Nd.c: New file.
9415 * lib/unictype/categ_Nl.c: New file.
9416 * lib/unictype/categ_No.c: New file.
9417 * lib/unictype/categ_P.c: New file.
9418 * lib/unictype/categ_Pc.c: New file.
9419 * lib/unictype/categ_Pd.c: New file.
9420 * lib/unictype/categ_Pe.c: New file.
9421 * lib/unictype/categ_Pf.c: New file.
9422 * lib/unictype/categ_Pi.c: New file.
9423 * lib/unictype/categ_Po.c: New file.
9424 * lib/unictype/categ_Ps.c: New file.
9425 * lib/unictype/categ_S.c: New file.
9426 * lib/unictype/categ_Sc.c: New file.
9427 * lib/unictype/categ_Sk.c: New file.
9428 * lib/unictype/categ_Sm.c: New file.
9429 * lib/unictype/categ_So.c: New file.
9430 * lib/unictype/categ_Z.c: New file.
9431 * lib/unictype/categ_Zl.c: New file.
9432 * lib/unictype/categ_Zp.c: New file.
9433 * lib/unictype/categ_Zs.c: New file.
9434 * lib/unictype/categ_and.c: New file.
9435 * lib/unictype/categ_and_not.c: New file.
9436 * lib/unictype/categ_byname.c: New file.
9437 * lib/unictype/categ_name.c: New file.
9438 * lib/unictype/categ_none.c: New file.
9439 * lib/unictype/categ_of.c: New file.
9440 * lib/unictype/categ_or.c: New file.
9441 * lib/unictype/categ_test.c: New file.
9442 * lib/unictype/combining.c: New file.
9443 * lib/unictype/ctype_alnum.c: New file.
9444 * lib/unictype/ctype_alpha.c: New file.
9445 * lib/unictype/ctype_blank.c: New file.
9446 * lib/unictype/ctype_cntrl.c: New file.
9447 * lib/unictype/ctype_digit.c: New file.
9448 * lib/unictype/ctype_graph.c: New file.
9449 * lib/unictype/ctype_lower.c: New file.
9450 * lib/unictype/ctype_print.c: New file.
9451 * lib/unictype/ctype_punct.c: New file.
9452 * lib/unictype/ctype_space.c: New file.
9453 * lib/unictype/ctype_upper.c: New file.
9454 * lib/unictype/ctype_xdigit.c: New file.
9455 * lib/unictype/decdigit.c: New file.
9456 * lib/unictype/digit.c: New file.
9457 * lib/unictype/identsyntaxmap.h: New file.
9458 * lib/unictype/mirror.c: New file.
9459 * lib/unictype/numeric.c: New file.
9460 * lib/unictype/pr_alphabetic.c: New file.
9461 * lib/unictype/pr_ascii_hex_digit.c: New file.
9462 * lib/unictype/pr_bidi_arabic_digit.c: New file.
9463 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9464 * lib/unictype/pr_bidi_block_separator.c: New file.
9465 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9466 * lib/unictype/pr_bidi_common_separator.c: New file.
9467 * lib/unictype/pr_bidi_control.c: New file.
9468 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9469 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9470 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9471 * lib/unictype/pr_bidi_european_digit.c: New file.
9472 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9473 * lib/unictype/pr_bidi_left_to_right.c: New file.
9474 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9475 * lib/unictype/pr_bidi_other_neutral.c: New file.
9476 * lib/unictype/pr_bidi_pdf.c: New file.
9477 * lib/unictype/pr_bidi_segment_separator.c: New file.
9478 * lib/unictype/pr_bidi_whitespace.c: New file.
9479 * lib/unictype/pr_byname.c: New file.
9480 * lib/unictype/pr_byname.gperf: New file.
9481 * lib/unictype/pr_combining.c: New file.
9482 * lib/unictype/pr_composite.c: New file.
9483 * lib/unictype/pr_currency_symbol.c: New file.
9484 * lib/unictype/pr_dash.c: New file.
9485 * lib/unictype/pr_decimal_digit.c: New file.
9486 * lib/unictype/pr_default_ignorable_code_point.c: New file.
9487 * lib/unictype/pr_deprecated.c: New file.
9488 * lib/unictype/pr_diacritic.c: New file.
9489 * lib/unictype/pr_extender.c: New file.
9490 * lib/unictype/pr_format_control.c: New file.
9491 * lib/unictype/pr_grapheme_base.c: New file.
9492 * lib/unictype/pr_grapheme_extend.c: New file.
9493 * lib/unictype/pr_grapheme_link.c: New file.
9494 * lib/unictype/pr_hex_digit.c: New file.
9495 * lib/unictype/pr_hyphen.c: New file.
9496 * lib/unictype/pr_id_continue.c: New file.
9497 * lib/unictype/pr_id_start.c: New file.
9498 * lib/unictype/pr_ideographic.c: New file.
9499 * lib/unictype/pr_ids_binary_operator.c: New file.
9500 * lib/unictype/pr_ids_trinary_operator.c: New file.
9501 * lib/unictype/pr_ignorable_control.c: New file.
9502 * lib/unictype/pr_iso_control.c: New file.
9503 * lib/unictype/pr_join_control.c: New file.
9504 * lib/unictype/pr_left_of_pair.c: New file.
9505 * lib/unictype/pr_line_separator.c: New file.
9506 * lib/unictype/pr_logical_order_exception.c: New file.
9507 * lib/unictype/pr_lowercase.c: New file.
9508 * lib/unictype/pr_math.c: New file.
9509 * lib/unictype/pr_non_break.c: New file.
9510 * lib/unictype/pr_not_a_character.c: New file.
9511 * lib/unictype/pr_numeric.c: New file.
9512 * lib/unictype/pr_other_alphabetic.c: New file.
9513 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9514 * lib/unictype/pr_other_grapheme_extend.c: New file.
9515 * lib/unictype/pr_other_id_continue.c: New file.
9516 * lib/unictype/pr_other_id_start.c: New file.
9517 * lib/unictype/pr_other_lowercase.c: New file.
9518 * lib/unictype/pr_other_math.c: New file.
9519 * lib/unictype/pr_other_uppercase.c: New file.
9520 * lib/unictype/pr_paired_punctuation.c: New file.
9521 * lib/unictype/pr_paragraph_separator.c: New file.
9522 * lib/unictype/pr_pattern_syntax.c: New file.
9523 * lib/unictype/pr_pattern_white_space.c: New file.
9524 * lib/unictype/pr_private_use.c: New file.
9525 * lib/unictype/pr_punctuation.c: New file.
9526 * lib/unictype/pr_quotation_mark.c: New file.
9527 * lib/unictype/pr_radical.c: New file.
9528 * lib/unictype/pr_sentence_terminal.c: New file.
9529 * lib/unictype/pr_soft_dotted.c: New file.
9530 * lib/unictype/pr_space.c: New file.
9531 * lib/unictype/pr_terminal_punctuation.c: New file.
9532 * lib/unictype/pr_test.c: New file.
9533 * lib/unictype/pr_titlecase.c: New file.
9534 * lib/unictype/pr_unassigned_code_value.c: New file.
9535 * lib/unictype/pr_unified_ideograph.c: New file.
9536 * lib/unictype/pr_uppercase.c: New file.
9537 * lib/unictype/pr_variation_selector.c: New file.
9538 * lib/unictype/pr_white_space.c: New file.
9539 * lib/unictype/pr_xid_continue.c: New file.
9540 * lib/unictype/pr_xid_start.c: New file.
9541 * lib/unictype/pr_zero_width.c: New file.
9542 * lib/unictype/scripts.c: New file.
9543 * lib/unictype/sy_c_ident.c: New file.
9544 * lib/unictype/sy_c_whitespace.c: New file.
9545 * lib/unictype/sy_java_ident.c: New file.
9546 * lib/unictype/sy_java_whitespace.c: New file.
9548 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9550 * lib/unictype/blocks.h: Likewise.
9551 * lib/unictype/categ_C.h: Likewise.
9552 * lib/unictype/categ_Cc.h: Likewise.
9553 * lib/unictype/categ_Cf.h: Likewise.
9554 * lib/unictype/categ_Cn.h: Likewise.
9555 * lib/unictype/categ_Co.h: Likewise.
9556 * lib/unictype/categ_Cs.h: Likewise.
9557 * lib/unictype/categ_L.h: Likewise.
9558 * lib/unictype/categ_Ll.h: Likewise.
9559 * lib/unictype/categ_Lm.h: Likewise.
9560 * lib/unictype/categ_Lo.h: Likewise.
9561 * lib/unictype/categ_Lt.h: Likewise.
9562 * lib/unictype/categ_Lu.h: Likewise.
9563 * lib/unictype/categ_M.h: Likewise.
9564 * lib/unictype/categ_Mc.h: Likewise.
9565 * lib/unictype/categ_Me.h: Likewise.
9566 * lib/unictype/categ_Mn.h: Likewise.
9567 * lib/unictype/categ_N.h: Likewise.
9568 * lib/unictype/categ_Nd.h: Likewise.
9569 * lib/unictype/categ_Nl.h: Likewise.
9570 * lib/unictype/categ_No.h: Likewise.
9571 * lib/unictype/categ_P.h: Likewise.
9572 * lib/unictype/categ_Pc.h: Likewise.
9573 * lib/unictype/categ_Pd.h: Likewise.
9574 * lib/unictype/categ_Pe.h: Likewise.
9575 * lib/unictype/categ_Pf.h: Likewise.
9576 * lib/unictype/categ_Pi.h: Likewise.
9577 * lib/unictype/categ_Po.h: Likewise.
9578 * lib/unictype/categ_Ps.h: Likewise.
9579 * lib/unictype/categ_S.h: Likewise.
9580 * lib/unictype/categ_Sc.h: Likewise.
9581 * lib/unictype/categ_Sk.h: Likewise.
9582 * lib/unictype/categ_Sm.h: Likewise.
9583 * lib/unictype/categ_So.h: Likewise.
9584 * lib/unictype/categ_Z.h: Likewise.
9585 * lib/unictype/categ_Zl.h: Likewise.
9586 * lib/unictype/categ_Zp.h: Likewise.
9587 * lib/unictype/categ_Zs.h: Likewise.
9588 * lib/unictype/categ_of.h: Likewise.
9589 * lib/unictype/combining.h: Likewise.
9590 * lib/unictype/ctype_alnum.h: Likewise.
9591 * lib/unictype/ctype_alpha.h: Likewise.
9592 * lib/unictype/ctype_blank.h: Likewise.
9593 * lib/unictype/ctype_cntrl.h: Likewise.
9594 * lib/unictype/ctype_digit.h: Likewise.
9595 * lib/unictype/ctype_graph.h: Likewise.
9596 * lib/unictype/ctype_lower.h: Likewise.
9597 * lib/unictype/ctype_print.h: Likewise.
9598 * lib/unictype/ctype_punct.h: Likewise.
9599 * lib/unictype/ctype_space.h: Likewise.
9600 * lib/unictype/ctype_upper.h: Likewise.
9601 * lib/unictype/ctype_xdigit.h: Likewise.
9602 * lib/unictype/decdigit.h: Likewise.
9603 * lib/unictype/digit.h: Likewise.
9604 * lib/unictype/mirror.h: Likewise.
9605 * lib/unictype/numeric.h: Likewise.
9606 * lib/unictype/pr_alphabetic.h: Likewise.
9607 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9608 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9609 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9610 * lib/unictype/pr_bidi_block_separator.h: Likewise.
9611 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9612 * lib/unictype/pr_bidi_common_separator.h: Likewise.
9613 * lib/unictype/pr_bidi_control.h: Likewise.
9614 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9615 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9616 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9617 * lib/unictype/pr_bidi_european_digit.h: Likewise.
9618 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9619 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9620 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9621 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9622 * lib/unictype/pr_bidi_pdf.h: Likewise.
9623 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9624 * lib/unictype/pr_bidi_whitespace.h: Likewise.
9625 * lib/unictype/pr_combining.h: Likewise.
9626 * lib/unictype/pr_composite.h: Likewise.
9627 * lib/unictype/pr_currency_symbol.h: Likewise.
9628 * lib/unictype/pr_dash.h: Likewise.
9629 * lib/unictype/pr_decimal_digit.h: Likewise.
9630 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9631 * lib/unictype/pr_deprecated.h: Likewise.
9632 * lib/unictype/pr_diacritic.h: Likewise.
9633 * lib/unictype/pr_extender.h: Likewise.
9634 * lib/unictype/pr_format_control.h: Likewise.
9635 * lib/unictype/pr_grapheme_base.h: Likewise.
9636 * lib/unictype/pr_grapheme_extend.h: Likewise.
9637 * lib/unictype/pr_grapheme_link.h: Likewise.
9638 * lib/unictype/pr_hex_digit.h: Likewise.
9639 * lib/unictype/pr_hyphen.h: Likewise.
9640 * lib/unictype/pr_id_continue.h: Likewise.
9641 * lib/unictype/pr_id_start.h: Likewise.
9642 * lib/unictype/pr_ideographic.h: Likewise.
9643 * lib/unictype/pr_ids_binary_operator.h: Likewise.
9644 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9645 * lib/unictype/pr_ignorable_control.h: Likewise.
9646 * lib/unictype/pr_iso_control.h: Likewise.
9647 * lib/unictype/pr_join_control.h: Likewise.
9648 * lib/unictype/pr_left_of_pair.h: Likewise.
9649 * lib/unictype/pr_line_separator.h: Likewise.
9650 * lib/unictype/pr_logical_order_exception.h: Likewise.
9651 * lib/unictype/pr_lowercase.h: Likewise.
9652 * lib/unictype/pr_math.h: Likewise.
9653 * lib/unictype/pr_non_break.h: Likewise.
9654 * lib/unictype/pr_not_a_character.h: Likewise.
9655 * lib/unictype/pr_numeric.h: Likewise.
9656 * lib/unictype/pr_other_alphabetic.h: Likewise.
9657 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9658 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9659 * lib/unictype/pr_other_id_continue.h: Likewise.
9660 * lib/unictype/pr_other_id_start.h: Likewise.
9661 * lib/unictype/pr_other_lowercase.h: Likewise.
9662 * lib/unictype/pr_other_math.h: Likewise.
9663 * lib/unictype/pr_other_uppercase.h: Likewise.
9664 * lib/unictype/pr_paired_punctuation.h: Likewise.
9665 * lib/unictype/pr_paragraph_separator.h: Likewise.
9666 * lib/unictype/pr_pattern_syntax.h: Likewise.
9667 * lib/unictype/pr_pattern_white_space.h: Likewise.
9668 * lib/unictype/pr_private_use.h: Likewise.
9669 * lib/unictype/pr_punctuation.h: Likewise.
9670 * lib/unictype/pr_quotation_mark.h: Likewise.
9671 * lib/unictype/pr_radical.h: Likewise.
9672 * lib/unictype/pr_sentence_terminal.h: Likewise.
9673 * lib/unictype/pr_soft_dotted.h: Likewise.
9674 * lib/unictype/pr_space.h: Likewise.
9675 * lib/unictype/pr_terminal_punctuation.h: Likewise.
9676 * lib/unictype/pr_titlecase.h: Likewise.
9677 * lib/unictype/pr_unassigned_code_value.h: Likewise.
9678 * lib/unictype/pr_unified_ideograph.h: Likewise.
9679 * lib/unictype/pr_uppercase.h: Likewise.
9680 * lib/unictype/pr_variation_selector.h: Likewise.
9681 * lib/unictype/pr_white_space.h: Likewise.
9682 * lib/unictype/pr_xid_continue.h: Likewise.
9683 * lib/unictype/pr_xid_start.h: Likewise.
9684 * lib/unictype/pr_zero_width.h: Likewise.
9685 * lib/unictype/scripts.h: Likewise.
9686 * lib/unictype/scripts_byname.gperf: Likewise.
9687 * lib/unictype/sy_c_ident.h: Likewise.
9688 * lib/unictype/sy_c_whitespace.h: Likewise.
9689 * lib/unictype/sy_java_ident.h: Likewise.
9690 * lib/unictype/sy_java_whitespace.h: Likewise.
9692 * lib/unictype/Makefile: New file.
9693 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9695 * lib/unictype/3level.h: New file, copied from glibc.
9696 * lib/unictype/3levelbit.h: New file.
9698 2007-11-11 Bruno Haible <bruno@clisp.org>
9700 * modules/gperf: New file.
9701 * modules/iconv_open (Depends-on): Add it.
9702 (Makefile.am): Remove the GPERF definition.
9704 2007-11-11 Bruno Haible <bruno@clisp.org>
9706 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9707 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9709 2007-11-11 Bruno Haible <bruno@clisp.org>
9711 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9712 (usage): Remove function.
9714 2007-11-11 Bruno Haible <bruno@clisp.org>
9716 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9718 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9720 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9722 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9723 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9724 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9726 2007-11-11 Bruno Haible <bruno@clisp.org>
9728 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9729 roundf were declared but do not exist on functions.
9730 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9731 roundl were declared but do not exist on functions.
9732 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9733 HAVE_FLOORL_AND_CEILL, respectively.
9734 Needed for Sun C on Solaris 10.
9736 2007-11-11 Bruno Haible <bruno@clisp.org>
9738 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9739 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9740 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9741 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9742 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9743 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9744 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9746 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9747 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9748 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9749 of HAVE_DECL_ROUND*.
9750 * modules/math (Makefile.am): Update.
9752 2007-11-10 Bruno Haible <bruno@clisp.org>
9754 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9755 ptrdiff_t as m4/intl.m4.
9757 2007-11-10 Jim Meyering <meyering@redhat.com>
9759 Avoid link failure for the argmatch test.
9760 * tests/test-argmatch.c (usage): Define function to avoid a link
9761 failure: argmatch_die requires a usage function.
9763 2007-11-09 Bruno Haible <bruno@clisp.org>
9765 * doc/functions/snprintf.texi: Mention BeOS deficiency.
9766 * doc/functions/vsnprintf.texi: Likewise.
9767 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9768 with a size argument < 2.
9770 2007-11-09 Bruno Haible <bruno@clisp.org>
9772 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9773 buffer. Fixes an inefficiency introduced on 2007-11-03.
9775 2007-11-09 Bruno Haible <bruno@clisp.org>
9777 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9778 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9780 2007-11-08 Jim Meyering <meyering@redhat.com>
9782 Change cache variable name prefix "jm_" to "gl_" everywhere.
9783 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9784 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9785 * m4/uptime.m4: s/gl_/jm_/
9787 2007-11-07 Bruno Haible <bruno@clisp.org>
9789 Update to GNU gettext 0.17.
9790 * m4/intl.m4: Update to GNU gettext 0.17.
9791 * m4/po.m4: Likewise.
9792 * modules/gettext (Files): Remove m4/ulonglong.m4.
9793 (configure.ac): Require gettext infrastructure from version 0.17.
9795 2007-11-06 Bruno Haible <bruno@clisp.org>
9797 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9798 symbolic values are not defined in a public header.
9799 * lib/freadable.c (freadable) [QNX]: Likewise.
9800 * lib/freadahead.c (freadahead) [QNX]: Likewise.
9801 * lib/freading.c (freading) [QNX]: Likewise.
9802 * lib/fseterr.c (fseterr) [QNX]: Likewise.
9803 * lib/fwritable.c (fwritable) [QNX]: Likewise.
9804 * lib/fwriting.c (fwriting) [QNX]: Likewise.
9805 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9806 Reported by Alain Magloire.
9808 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9810 2007-11-05 Bruno Haible <bruno@clisp.org>
9812 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9813 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9814 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9815 Reported by Eric Blake.
9817 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9818 Bruno Haible <bruno@clisp.org>
9820 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9821 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9822 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9823 (malloc): Undefine also before including <stdlib.h>.
9824 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9825 Needed on OSF/1 4.0.
9827 2007-11-05 Jim Meyering <meyering@redhat.com>
9829 git-version-gen: sync from coreutils.
9830 * build-aux/git-version-gen: Add comments.
9831 Change the first '-' to '.' in the snapshot version string,
9832 e.g., 6.9-377-08144 -> 6.9.377-08144
9833 Remove first parameter.
9834 Don't declare a version "-dirty" merely because a time
9837 2007-11-04 Bruno Haible <bruno@clisp.org>
9839 * lib/lock.h: Protect all macro definitions containing an 'if'
9840 statement through a "do { ... } while (0)".
9841 * lib/tls.h: Likewise.
9843 2007-11-04 Bruno Haible <bruno@clisp.org>
9845 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9847 2007-11-04 Bruno Haible <bruno@clisp.org>
9849 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9850 * modules/fprintf-posix (Depends-on): Add nocrash.
9851 * modules/snprintf-posix (Depends-on): Likewise.
9852 * modules/sprintf-posix (Depends-on): Likewise.
9853 * modules/vasnprintf-posix (Depends-on): Likewise.
9854 * modules/vasprintf-posix (Depends-on): Likewise.
9855 * modules/vfprintf-posix (Depends-on): Likewise.
9856 * modules/vsnprintf-posix (Depends-on): Likewise.
9857 * modules/vsprintf-posix (Depends-on): Likewise.
9858 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9859 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9860 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9861 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9862 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9863 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9864 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9866 2007-11-04 Bruno Haible <bruno@clisp.org>
9868 * modules/nocrash: New file.
9869 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9870 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9872 2007-11-04 Bruno Haible <bruno@clisp.org>
9874 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9876 * tests/test-vasprintf-posix.c (test_function): Likewise.
9877 * tests/test-snprintf-posix.h (test_function): Likewise.
9878 * tests/test-sprintf-posix.h (test_function): Likewise.
9880 Fix *printf behaviour for large precisions on mingw and BeOS.
9881 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9882 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9883 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9884 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9885 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9886 gl_PRINTF_PRECISION and test its result. Invoke
9887 gl_PREREQ_VASNPRINTF_PRECISION.
9888 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9889 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9890 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9891 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9892 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9893 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9894 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9895 * doc/functions/fprintf.texi: Update.
9896 * doc/functions/printf.texi: Update.
9897 * doc/functions/snprintf.texi: Update.
9898 * doc/functions/sprintf.texi: Update.
9899 * doc/functions/vfprintf.texi: Update.
9900 * doc/functions/vprintf.texi: Update.
9901 * doc/functions/vsnprintf.texi: Update.
9902 * doc/functions/vsprintf.texi: Update.
9904 2007-11-04 Bruno Haible <bruno@clisp.org>
9906 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9908 2007-11-04 Bruno Haible <bruno@clisp.org>
9910 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9911 Reported by Sylvain Beucler <beuc@gnu.org>.
9913 2007-11-03 Bruno Haible <bruno@clisp.org>
9915 * tests/test-fprintf-posix2.sh: New file.
9916 * tests/test-fprintf-posix2.c: New file.
9917 * modules/fprintf-posix-tests (Files): Add them.
9918 (TESTS): Add test-fprintf-posix2.sh.
9919 (configure.ac): Check for getrlimit and setrlimit.
9920 (check_PROGRAMS): Add test-fprintf-posix2.
9922 * tests/test-printf-posix2.sh: New file.
9923 * tests/test-printf-posix2.c: New file.
9924 * modules/printf-posix-tests (Files): Add them.
9925 (TESTS): Add test-printf-posix2.sh.
9926 (configure.ac): Check for getrlimit and setrlimit.
9927 (check_PROGRAMS): Add test-printf-posix2.
9929 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9930 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9931 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9932 (decode_double): New function, copied from decode_long_double.
9933 (scale10_round_decimal_decoded): New function, extracted from
9934 scale10_round_decimal_long_double.
9935 (scale10_round_decimal_long_double): Use it.
9936 (scale10_round_decimal_double): New function.
9937 (floorlog10): New function.
9938 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9939 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9940 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9941 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9942 gl_PRINTF_ENOMEM and test its result. Invoke
9943 gl_PREREQ_VASNPRINTF_ENOMEM.
9944 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9945 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9946 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9947 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9948 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9949 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9950 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9951 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9952 * modules/snprintf-posix (Depends-on): Likewise.
9953 * modules/sprintf-posix (Depends-on): Likewise.
9954 * modules/vasnprintf-posix (Depends-on): Likewise.
9955 * modules/vasprintf-posix (Depends-on): Likewise.
9956 * modules/vfprintf-posix (Depends-on): Likewise.
9957 * modules/vsnprintf-posix (Depends-on): Likewise.
9958 * modules/vsprintf-posix (Depends-on): Likewise.
9959 * doc/functions/fprintf.texi: Update.
9960 * doc/functions/printf.texi: Update.
9961 * doc/functions/snprintf.texi: Update.
9962 * doc/functions/sprintf.texi: Update.
9963 * doc/functions/vfprintf.texi: Update.
9964 * doc/functions/vprintf.texi: Update.
9965 * doc/functions/vsnprintf.texi: Update.
9966 * doc/functions/vsprintf.texi: Update.
9968 2007-11-03 Bruno Haible <bruno@clisp.org>
9970 * modules/frexp-nolibm-tests: New file.
9972 * modules/frexp-nolibm: New file.
9973 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9975 2007-11-03 Bruno Haible <bruno@clisp.org>
9977 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9978 value is C99 compliant.
9979 Needed for OSF/1 5.1.
9981 2007-11-03 Bruno Haible <bruno@clisp.org>
9983 Fix out-of-memory handling of vasnprintf.
9984 * lib/printf-parse.c: Include <errno.h>.
9985 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9986 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9989 2007-11-02 Eric Blake <ebb9@byu.net>
9991 Fix tests on cygwin.
9992 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9994 2007-11-01 Bruno Haible <bruno@clisp.org>
9996 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9998 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9999 needed for POSIX compatibility.
10001 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
10003 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10004 for compatibility with GNU.
10006 2007-11-01 Bruno Haible <bruno@clisp.org>
10008 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10009 (putenv): Renamed from rpl_putenv. Change argument type from
10010 'const char *' to 'char *'.
10011 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10012 of defining putenv in config.h, just set REPLACE_PUTENV.
10013 * modules/putenv (Depends-on): Add stdlib.
10014 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10015 (Include): Use <stdlib.h>.
10016 * lib/stdlib.in.h (putenv): New declaration.
10017 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10019 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10021 Needed for MacOS X 10.5.0.
10022 Reported by Peter O'Gorman <peter@pogma.com>.
10024 2007-11-01 Jim Meyering <meyering@redhat.com>
10026 Treat an empty date string exactly like "0".
10027 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10028 if the remaining date string (to be parsed) is empty, use "0".
10029 Reported by Mischa Molhoek and discussed in this thread:
10030 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10032 2007-10-31 Bruno Haible <bruno@clisp.org>
10034 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10035 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10036 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10037 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10038 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10039 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10041 2007-10-31 Bruno Haible <bruno@clisp.org>
10043 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10044 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10045 (AC_TYPE_LONG_LONG_INT): Use it.
10046 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10048 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10050 * modules/stdint (Files): Remove m4/ulonglong.m4.
10051 * modules/strtoull (Files): Use m4/longlong.m4 instead of
10053 * modules/strtoumax (Files): Likewise.
10055 2007-10-30 Bruno Haible <bruno@clisp.org>
10057 * modules/xvasprintf-posix: New file.
10058 Suggested by Eric Blake.
10060 2007-10-30 Bruno Haible <bruno@clisp.org>
10062 * modules/xprintf-posix-tests: New file.
10063 * tests/test-xprintf-posix.sh: New file.
10064 * tests/test-xprintf-posix.c: New file.
10065 * tests/test-xfprintf-posix.c: New file.
10067 * modules/xprintf-posix: New file.
10069 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10071 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10072 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10073 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10075 2007-10-29 Bruno Haible <bruno@clisp.org>
10077 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10078 contain the special marker '_cv_'.
10079 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10080 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10081 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10082 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10083 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10084 Reported by Ralf Wildenhues.
10086 2007-10-29 Bruno Haible <bruno@clisp.org>
10088 * gnulib-tool (func_import): When --lgpl is not specified, set
10089 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10091 Reported by Simon Josefsson.
10093 2007-10-28 Bruno Haible <bruno@clisp.org>
10095 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10096 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10097 HAVE_DECL_ISFINITE.
10098 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10099 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10100 HAVE_DECL_ISFINITE.
10102 2007-10-28 Bruno Haible <bruno@clisp.org>
10104 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10105 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10107 2007-10-28 Bruno Haible <bruno@clisp.org>
10109 Fix link errors with Sun C 5.0 on Solaris 10.
10110 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10111 function is declared but not present in the compiler's libm.
10112 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10113 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10114 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10115 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10116 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10117 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10118 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10119 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10120 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10121 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10122 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10125 2007-10-28 Bruno Haible <bruno@clisp.org>
10127 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10128 gl_FUNC_FLOORL. Cache the result.
10129 (gl_FUNC_FLOORL): Use it.
10130 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10131 gl_FUNC_CEILL. Cache the result.
10132 (gl_FUNC_CEILL): Use it.
10134 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10135 gl_FUNC_FLOOR. Cache the result.
10136 (gl_FUNC_FLOOR): Use it.
10137 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10138 gl_FUNC_CEIL. Cache the result.
10139 (gl_FUNC_CEIL): Use it.
10141 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10142 gl_FUNC_FLOORF. Cache the result.
10143 (gl_FUNC_FLOORF): Use it.
10144 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10145 gl_FUNC_CEILF. Cache the result.
10146 (gl_FUNC_CEILF): Use it.
10148 2007-10-28 Bruno Haible <bruno@clisp.org>
10150 * gnulib-tool: Allow specifying the LGPL version number through
10151 --lgpl=2 or --lgpl=3.
10152 (func_usage): Document --lgpl with argument.
10153 Handle --lgpl=... arguments.
10154 (func_import): Recognize also gl_LGPL calls with an argument. When
10155 --lgpl=2 is used and the module's license is just LGPL, report an
10156 error. Set sed_transform_lib_file according to the lgpl variable. In
10157 the generated files, use --lgpl or gl_LGPL invocations with argument,
10159 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10161 * doc/gnulib-tool.texi (Modified imports): Update explanation of
10164 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10165 Bruno Haible <bruno@clisp.org>
10167 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10168 (u16_uctomb_aux): Likewise.
10169 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10171 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10173 2007-10-28 Bruno Haible <bruno@clisp.org>
10175 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10176 Invoke AM_GETTEXT_OPTION if it exists.
10177 * modules/vasprintf: Likewise.
10178 * modules/verror: Likewise.
10179 * modules/xprintf: Likewise.
10180 * modules/xvasprintf: Likewise.
10182 2007-10-27 Ben Pfaff <blp@gnu.org>
10184 * lib/math.in.h: Define isfinite macro and prototypes for
10185 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10187 * m4/math_h.m4: New substitutions for isfinite module.
10188 * lib/isfinite.c: New file.
10189 * m4/isfinite.m4: New file.
10190 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10191 * modules/isfinite: New file.
10192 * modules/isfinite-tests: New file.
10193 * tests/tests-isfinite.c: New file.
10194 * doc/functions/isfinite.texi: Mention isfinite module.
10195 * MODULES.html.sh: Mention new module.
10197 2007-10-27 Ben Pfaff <blp@gnu.org>
10199 Ralf Wildenhues reported that Tru64 4.0D declares the round
10200 functions but does not have definitions.
10201 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10202 cannot be found in any library, set the output variable to
10203 "missing" instead of "".
10204 * m4/round.m4: Also use our substitute if we cannot find round in
10205 any library, even if it is declared.
10206 * m4/roundf.m4: Likewise for roundf.
10207 * m4/roundl.m4: Likewise for roundl.
10208 * lib/math.in.h: Undefine roundf, round, roundl before defining
10209 their replacements, to allow for hypothetical systems where these
10210 may be defined as macros but not available in libraries.
10212 2007-10-27 Bruno Haible <bruno@clisp.org>
10214 * doc/gnulib.texi: Invoke @firstparagraphindent.
10215 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10217 (Source changes): New section.
10219 2007-10-26 Bruno Haible <bruno@clisp.org>
10221 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10222 borrowed from autoconf.
10224 2007-10-26 Bruno Haible <bruno@clisp.org>
10226 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10227 strerror returned the empty string. Needed on HP-UX 11.00.
10229 2007-10-24 Micah Cowan <micah@cowan.name>
10231 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
10232 * build-aux/bootstrap: Remove support for now-unnecessary option,
10233 --cvs-user, and envvars CVS_USER, CVS_RSH.
10235 2007-10-24 Jim Meyering <meyering@redhat.com>
10237 Avoid diagnostics from sha1sum when there is no cached checksum.
10238 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10239 if the po.s1 file hasn't been created yet.
10241 * build-aux/bootstrap: Sync from coreutils:
10242 2007-10-24 Jim Meyering <meyering@redhat.com>
10243 Get gnulib from the git repository, not from an obsolete cvs one.
10244 * build-aux/bootstrap: Suggestion from Micah Cowan.
10245 2007-10-04 Jim Meyering <jim@meyering.net>
10246 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10247 (update_po_files): Work also when there are no .po files in po/.
10249 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
10251 * README: Append ".git" to git and cg examples.
10252 Problem reported by Benoit Sigoure.
10254 2007-10-23 Micah Cowan <micah@cowan.name>
10256 * users.txt: Add wget.
10258 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10260 Fix linking of some unistdio tests on FreeBSD.
10261 * modules/unistdio/u16-vsnprintf-tests
10262 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10263 * modules/unistdio/u16-vsprintf-tests
10264 (test_u16_vsnprintf1_LDADD): Likewise.
10265 * modules/unistdio/u32-vsnprintf-tests
10266 (test_u32_vsnprintf1_LDADD): Likewise.
10267 * modules/unistdio/u32-vsprintf-tests
10268 (test_u32_vsprintf1_LDADD): Likewise.
10269 * modules/unistdio/u8-vsnprintf-tests
10270 (test_u8_vsnprintf1_LDADD): Likewise.
10271 * modules/unistdio/u8-vsprintf-tests
10272 (test_u8_vsprintf1_LDADD): Likewise.
10273 * modules/unistdio/ulc-vsnprintf-tests
10274 (test_ulc_vsnprintf1_LDADD): Likewise.
10275 * modules/unistdio/ulc-vsprintf-tests
10276 (test_ulc_vsprintf1_LDADD): Likewise.
10278 Fix linking of some uniconv tests on FreeBSD.
10279 * modules/uniconv/u16-conv-from-enc-tests
10280 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10281 * modules/uniconv/u16-conv-to-enc-tests
10282 (test_u16_conv_to_enc_LDADD): Likewise.
10283 * modules/uniconv/u16-strconv-from-enc-tests
10284 (test_u16_strconv_from_enc_LDADD): Likewise.
10285 * modules/uniconv/u16-strconv-to-enc-tests
10286 (test_u16_strconv_to_enc_LDADD): Likewise.
10287 * modules/uniconv/u32-conv-from-enc-tests
10288 (test_u32_conv_from_enc_LDADD): Likewise.
10289 * modules/uniconv/u32-conv-to-enc-tests
10290 (test_u32_conv_to_enc_LDADD): Likewise.
10291 * modules/uniconv/u32-strconv-from-enc-tests
10292 (test_u32_strconv_from_enc_LDADD): Likewise.
10293 * modules/uniconv/u32-strconv-to-enc-tests
10294 (test_u32_strconv_to_enc_LDADD): Likewise.
10295 * modules/uniconv/u8-conv-from-enc-tests
10296 (test_u8_conv_from_enc_LDADD): Likewise.
10297 * modules/uniconv/u8-conv-to-enc-tests
10298 (test_u8_conv_to_enc_LDADD): Likewise.
10299 * modules/uniconv/u8-strconv-from-enc-tests
10300 (test_u8_strconv_from_enc_LDADD): Likewise.
10301 * modules/uniconv/u8-strconv-to-enc-tests
10302 (test_u8_strconv_to_enc_LDADD): Likewise.
10304 2007-10-22 Bruno Haible <bruno@clisp.org>
10306 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10309 2007-10-22 Eric Blake <ebb9@byu.net>
10311 Tweak x*printf documentation.
10312 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10313 variable name and comments.
10314 Suggested by Bruno Haible.
10316 2007-10-22 Bruno Haible <bruno@clisp.org>
10318 * lib/acl.c (copy_acl): Fix file name in comment.
10320 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
10322 Fix Tru64 problem with stdbool.h.
10323 * lib/stdbool.in.h (false, true):
10324 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10325 Don't declare as an enum in this situation; it runs afoul of Tru64.
10326 Problem reported by Steven M. Schweda in
10327 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10329 2007-10-22 Eric Blake <ebb9@byu.net>
10331 Also wrap vf?printf.
10332 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10333 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10334 (xvprintf, xvfprintf): New functions.
10336 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10338 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10339 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10341 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10342 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10344 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
10346 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
10349 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10352 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10353 Undef `sys' after including sys/table.h, for Tru64 4.0D.
10355 * tests/test-i-ring.c: Work for C89.
10357 2007-10-22 Bruno Haible <bruno@clisp.org>
10359 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10360 -1u, in preprocessor expression, so that we don't test for the bug
10361 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
10362 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10364 2007-10-22 Eric Blake <ebb9@byu.net>
10366 * tests/test-yesno.sh: Silence stderr during test.
10368 2007-10-22 Simon Josefsson <simon@josefsson.org>
10370 * modules/crypto/gc-camellia: New file.
10372 * m4/gc-camellia.m4: New file.
10374 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10376 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10378 2007-10-22 Simon Josefsson <simon@josefsson.org>
10380 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10381 --help to stdout. Reported by sms@antinode.org (Steven
10384 2007-10-22 Simon Josefsson <simon@josefsson.org>
10386 * users.txt: Fix link to libksba.
10388 2007-10-21 Ben Pfaff <blp@gnu.org>
10390 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10391 round.c roundf implementation that depends on floorf and ceilf to
10392 be tested unconditionally.
10394 2007-10-21 Ben Pfaff <blp@gnu.org>
10396 * m4/check-libm-func.m4: Removed.
10397 * m4/check-math-lib.m4: New file.
10398 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10399 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10400 definition and lack of AC_LIBOBJ([roundf]).
10401 * m4/roundl.m4: Ditto, and similarly for roundl.
10402 * modules/round: Reference new m4 file.
10403 * modules/roundf: Ditto.
10404 * modules/roundl: Ditto.
10405 * tests/test-round2.c (main): Use ROUND instead of round.
10406 Bug report from Bruno Haible.
10408 2007-10-21 Bruno Haible <bruno@clisp.org>
10410 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10413 2007-10-21 Bruno Haible <bruno@clisp.org>
10415 * tests/test-wcwidth.c (main): Allow negative result for some control
10418 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10419 Needed on OSF/1 5.1.
10421 2007-10-21 Bruno Haible <bruno@clisp.org>
10423 * tests/test-floorf1.c: Include isnanf.h.
10424 (main): Use isnanf() instead of isnan().
10425 * tests/test-ceilf1.c: Include isnanf.h.
10426 (main): Use isnanf() instead of isnan().
10427 * tests/test-truncf1.c: Include isnanf.h.
10428 (main): Use isnanf() instead of isnan().
10429 * tests/test-roundf1.c: Include isnanf.h.
10430 (main): Use isnanf() instead of isnan().
10432 2007-10-21 Eric Blake <ebb9@byu.net>
10434 * users.txt: Update URL for m4.
10436 2007-10-21 Bruno Haible <bruno@clisp.org>
10438 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10440 2007-10-21 Bruno Haible <bruno@clisp.org>
10442 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10443 Git's management files if the CVS files are not present.
10445 2007-10-20 Bruno Haible <bruno@clisp.org>
10447 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10450 2007-10-20 Ben Pfaff <blp@gnu.org>
10452 * lib/math.in.h: Declare round, roundf, roundl if we are providing
10454 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10455 * lib/round.c: New file.
10456 * lib/roundf.c: New file.
10457 * lib/roundl.c: New file.
10458 * m4/round.m4: New file.
10459 * m4/roundf.m4: New file.
10460 * m4/roundl.m4: New file.
10461 * m4/check-libm-func-m4: New file.
10462 * modules/math: Replace round, roundf, roundl related @VARS@ in
10464 * modules/round: New file.
10465 * modules/round-tests: New file.
10466 * modules/roundf: New file.
10467 * modules/roundf-tests: New file.
10468 * modules/roundl: New file.
10469 * modules/roundl-tests: New file.
10470 * tests/test-round1.c: New file.
10471 * tests/test-round2.c: New file.
10472 * tests/test-roundf1.c: New file.
10473 * tests/test-roundf2.c: New file.
10474 * tests/test-roundl.c: New file.
10475 * doc/functions/round.texi: Mention round module.
10476 * doc/functions/roundf.texi: Mention roundf module.
10477 * doc/functions/roundl.texi: Mention roundl module.
10478 * MODULES.html.sh: Mention new modules.
10479 Thanks to Bruno Haible for suggestions.
10481 2007-10-20 Jim Meyering <meyering@redhat.com>
10483 * lib/xprintf.c: Include <config.h> unconditionally.
10485 Change xprintf's license to GPL.
10486 * modules/xprintf (License): s/LGPL/GPL/, since this module
10487 depends on modules (exit and exitfail) which are GPL.
10488 Suggestion from Bruno Haible.
10491 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10492 Use a clearer diagnostic.
10493 Patch from Bruno Haible.
10495 2007-10-20 Bruno Haible <bruno@clisp.org>
10497 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10498 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10499 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10501 2007-10-20 Bruno Haible <bruno@clisp.org>
10503 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10504 precision in the comparison result > x - 1 or similar.
10505 * tests/test-ceilf2.c (correct_result_p): Likewise.
10506 * tests/test-truncf2.c (correct_result_p): Likewise.
10507 * tests/test-trunc2.c (correct_result_p): Likewise.
10508 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10510 2007-10-20 Bruno Haible <bruno@clisp.org>
10512 * modules/ceil: New file.
10513 * m4/ceil.m4: New file.
10514 * doc/functions/ceil.texi: Mention the 'ceil' module.
10516 2007-10-20 Bruno Haible <bruno@clisp.org>
10518 * modules/floor: New file.
10519 * m4/floor.m4: New file.
10520 * doc/functions/floor.texi: Mention the 'floor' module.
10522 2007-10-20 Bruno Haible <bruno@clisp.org>
10524 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10526 * modules/floorf-tests (Depends-on): Likewise.
10527 * modules/truncf-tests (Depends-on): Likewise.
10528 * modules/trunc-tests (Depends-on): Likewise.
10529 Reported by Ben Pfaff.
10531 2007-10-19 Jim Meyering <meyering@redhat.com>
10533 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10534 Don't bother testing specific errno values. Just test ferror.
10536 New module: xprintf
10537 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10539 2007-10-19 Bruno Haible <bruno@clisp.org>
10541 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10543 * modules/javaexec (Makefile.am): Likewise.
10544 * modules/relocatable-prog (Makefile.am): Likewise.
10545 Suggested by Jim Meyering.
10547 2007-10-18 Bruno Haible <bruno@clisp.org>
10549 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10550 Reported by Jim Meyering.
10552 2007-10-18 Eric Blake <ebb9@byu.net>
10554 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10556 2007-10-18 Bruno Haible <bruno@clisp.org>
10558 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10559 the format string into writable memory. Needed in Fortify conditions.
10561 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
10562 Bruno Haible <bruno@clisp.org>
10564 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10565 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10566 * modules/trim (Depends-on): Add mbchar.
10567 (configure.ac): Add gl_FUNC_MBRTOWC.
10568 (Makefile.am): Augment lib_SOURCES.
10570 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
10572 Modify glob.c to use fstatat and dirfd, to simplify it.
10573 Suggested by Eric Blake.
10574 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10575 Don't include <stdbool.h>; not used.
10576 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10577 (link_exists_p): Simplify implementation, since we can now assume
10579 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
10581 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10583 * gnulib-tool (func_get_dependencies): Fix sed script to
10586 2007-10-17 Bruno Haible <bruno@clisp.org>
10588 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10589 allow locale names without encoding suffix.
10590 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10591 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10593 2007-10-16 Bruno Haible <bruno@clisp.org>
10595 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10596 * lib/getgroups.c (getgroups): Likewise.
10597 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10599 2007-10-16 Bruno Haible <bruno@clisp.org>
10601 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10602 * modules/malloc-posix (License): Likewise.
10603 * modules/realloc-posix (License): Likewise.
10604 * modules/calloc-posix (License): Likewise.
10605 * modules/intprops (License): Change from GPL to LGPL, with
10606 Paul Eggert's approval.
10608 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10610 Merge glibc changes into lib/glob.c.
10612 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10613 2007-10-15 04:59:03 UTC. Here are the changes:
10615 2007-10-14 Ulrich Drepper <drepper@redhat.com>
10617 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10619 * lib/glob.c: Add some branch prediction throughout.
10621 2007-10-07 Ulrich Drepper <drepper@redhat.com>
10624 * lib/glob.c (glob): Recognize patterns starting \/.
10626 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10629 * lib/glob.c (attribute_hidden): Define if not defined.
10630 (glob): Unescape dirname, filename or username when needed and not
10631 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10632 is NULL. Handle unescaped [ in pattern without closing ].
10633 Don't pass GLOB_CHECK down to recursive glob for directories.
10634 (__glob_pattern_type): New function.
10635 (__glob_pattern_p): Implement using __glob_pattern_type.
10636 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10637 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10638 Remove unreachable code.
10640 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10642 * lib/glob.c (glob_in_dir): Add some comments and asserts to
10643 explain why there are no leaks.
10645 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10648 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10649 time, rather allocate increasingly bigger arrays of pointers, if
10650 possible with alloca, if too large with malloc.
10652 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10654 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10655 Problem reported by H.Merijn Brand in
10656 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10657 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10658 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10660 2007-10-15 Bruno Haible <bruno@clisp.org>
10662 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10663 with explicit rpl_ prefix.
10664 * lib/fopen.c (fopen): Likewise.
10665 * lib/freopen.c (freopen): Likewise.
10666 * lib/iconv.c (iconv): Likewise.
10667 * lib/iconv_close.c (iconv_close): Likewise.
10669 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10671 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10673 2007-10-15 Bruno Haible <bruno@clisp.org>
10675 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10676 <stddef.h> instead of <stdlib.h> since we only need NULL.
10677 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10679 2007-10-15 Bruno Haible <bruno@clisp.org>
10681 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10682 Replace paragraph talking about LIBOBJS.
10683 Reported by Colin Watson <cjwatson@debian.org>.
10685 2007-10-15 Bruno Haible <bruno@clisp.org>
10687 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10688 <stdlib.h> before using NULL.
10690 2007-10-15 Simon Josefsson <simon@josefsson.org>
10692 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10693 Reported by Albert Chin <china@thewrittenword.com>.
10695 2007-10-14 Bruno Haible <bruno@clisp.org>
10697 * modules/iconv_open-utf-tests: New file.
10698 * tests/test-iconv-utf.c: New file.
10700 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10701 * modules/iconv_open-utf: New file.
10702 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10703 (iconv, iconv_close): New declarations.
10704 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10706 (iconv_open): Add special handling of conversion between UTF-8 and
10707 UTF-{16,32}{BE,LE}.
10708 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10709 * lib/iconv_close.c: New file.
10710 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10711 gl_FUNC_ICONV_OPEN.
10712 (gl_FUNC_ICONV_OPEN): Use it.
10713 (gl_FUNC_ICONV_OPEN_UTF): New macro.
10714 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10715 and REPLACE_ICONV_UTF.
10716 * modules/iconv_open (Depends-on): Add c-strcase.
10717 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10719 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10721 2007-10-13 Albert Chin <china@thewrittenword.com>
10722 Bruno Haible <bruno@clisp.org>
10724 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10725 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10727 2007-10-13 Bruno Haible <bruno@clisp.org>
10729 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10730 defined, use the ISO C99 inline semantics.
10731 * lib/argp.h (ARGP_EI): Likewise.
10733 2007-10-13 Bruno Haible <bruno@clisp.org>
10735 Handle 'inline' change in gcc 4.3.0.
10736 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10737 argp_fmtstream_write, argp_fmtstream_set_lmargin,
10738 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10739 argp_fmtstream_point): Disable 'extern' declaration if the function
10740 definition is going to be provided inline.
10741 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10742 semantics, not the ISO C99 inline semantics.
10743 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10744 'extern' declaration if the function definition is going to be provided
10746 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10747 the GNU C inline semantics, not the ISO C99 inline semantics. With
10748 GCC 4.2, avoid a warning.
10750 2007-10-13 Bruno Haible <bruno@clisp.org>
10752 * lib/freading.h (freading): Enable the use of __freading for
10754 * lib/freading.c (freading): Likewise.
10756 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
10758 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10759 "warning: C99 inline functions are not supported; using GNU89".
10761 2007-10-12 Bruno Haible <bruno@clisp.org>
10763 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10765 * tests/test-ceilf2.c: New file.
10766 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10768 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10769 * modules/ceilf-tests: Update.
10771 2007-10-12 Bruno Haible <bruno@clisp.org>
10773 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10775 * tests/test-floorf2.c: New file.
10776 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10778 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10779 * modules/floorf-tests: Update.
10781 2007-10-12 Bruno Haible <bruno@clisp.org>
10783 * tests/test-trunc2.c: New file.
10784 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10786 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10787 * modules/trunc-tests: Update.
10789 2007-10-12 Bruno Haible <bruno@clisp.org>
10791 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10793 * tests/test-truncf2.c: New file.
10794 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10796 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10797 * modules/truncf-tests: Update.
10799 2007-10-11 Eric Blake <ebb9@byu.net>
10801 Don't claim strerror is broken on Interix.
10802 * doc/functions/strerror.texi (strerror): Known broken systems are
10803 now Solaris 8, and not Interix.
10804 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10805 Interix on cross-compile.
10806 Reported by Martin Koeppe in
10807 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10809 2007-10-11 Bruno Haible <bruno@clisp.org>
10811 * modules/i-ring-tests: New file.
10812 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10815 2007-10-11 Bruno Haible <bruno@clisp.org>
10817 * modules/filenamecat-tests: New file.
10818 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10819 * lib/filenamecat.c: Remove test code.
10821 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
10823 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10825 * lib/strerror.c: Include <string.h> always, to test interface,
10826 and to remove the need for the dummy.
10827 Include intprops.h to compute width instead of doing it ourselves
10828 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10829 (strerror): Define it to return NULL if there's no system strerror.
10830 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10831 Omit !HAVE_STRERROR code. We don't need to worry about supporting
10832 ancient pre-strerror Unix systems well any more. Saying "unknown
10833 system error" is enough.
10834 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10835 simpler strerror.c implementation.
10836 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10837 Simplify the tests to reflect the simpler strerror implementation.
10838 * modules/strerror (Depends-on): Add intprops.
10840 2007-10-09 Eric Blake <ebb9@byu.net>
10842 Silence test-fpending.
10843 * modules/fpending-tests (Files): Add wrapper script.
10844 * tests/test-fpending.sh: New file.
10846 2007-10-09 Bruno Haible <bruno@clisp.org>
10848 * MODULES.html.sh (func_module): Don't create a hyperlink for
10849 function names like 'printf_frexp'.
10850 (Misc): Add crc, memxor.
10851 (Characteristics of floating types): New section.
10852 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10853 isnanf-nolibm, signbit, trunc, truncf, truncl.
10854 (Enhancements for ISO C 99 functions): New subsection Input/output.
10855 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10856 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10857 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10858 (Compatibility checks for POSIX:2001 functions): Add clock-time.
10859 (Enhancements for POSIX:2001 functions): Add chdir-long.
10860 (File system functions): Add areadlink, chdir-safer, read-file.
10861 Remove cycle-check.
10862 (File system as inode set): New section.
10863 (Date and time): Add gethrxtime.
10864 (Multithreading): Add openmp.
10865 (Internationalization functions): Add localename.
10866 (Unicode string functions): Add unistr/u*-mbsnlen.
10867 (Support for maintaining and releasing projects): Add git-version-gen.
10868 (Lone files): Remove directories.
10870 2007-10-08 Ben Pfaff <blp@gnu.org>
10872 * lib/xmalloca.h: Fix typo in comment.
10874 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
10876 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10877 when avoiding problems with integer overflow. Use a portable test
10880 2007-10-08 Simon Josefsson <simon@josefsson.org>
10882 * modules/dummy (License): Change to LGPLv2+.
10883 * modules/float (License): Likewise
10884 * modules/realloc (License): Likewise
10885 * modules/stdlib (License): Likewise
10887 2007-10-07 Bruno Haible <bruno@clisp.org>
10889 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10890 * floor.c (TWO_MANT_DIG): Likewise.
10891 * ceil.c (TWO_MANT_DIG): Likewise.
10892 Reported by Ben Pfaff.
10894 2007-10-07 Bruno Haible <bruno@clisp.org>
10896 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10897 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10898 * lib/frexp.c (FUNC): Likewise.
10899 * lib/printf-frexp.h (printf_frexp): Likewise.
10900 * lib/printf-frexpl.h (printf_frexpl): Likewise.
10901 * lib/printf-frexp.c (FUNC): Likewise.
10902 Suggested by Jim Meyering.
10904 2007-10-07 Jim Meyering <meyering@redhat.com>
10906 Make xnanosleep's integer overflow test more robust.
10907 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10908 so that gcc-4.3.0 doesn't optimize away this test for overflow.
10910 2007-10-07 Bruno Haible <bruno@clisp.org>
10912 * NEWS: Mention the license change.
10914 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10915 abbreviations in the modules files.
10917 Change copyright notice from GPLv2+ to GPLv3+.
10918 * README: Change copyright notice.
10919 * MODULES.html.sh: Likewise.
10920 * build-aux/bootstrap.conf: Likewise.
10921 * build-aux/config.libpath: Likewise.
10922 * build-aux/csharpcomp.sh.in: Likewise.
10923 * build-aux/csharpexec.sh.in: Likewise.
10924 * build-aux/install-reloc: Likewise.
10925 * build-aux/javacomp.sh.in: Likewise.
10926 * build-aux/javaexec.sh.in: Likewise.
10927 * build-aux/ldd.sh.in: Likewise.
10928 * build-aux/reloc-ldflags: Likewise.
10929 * build-aux/relocatable.sh.in: Likewise.
10930 * build-aux/x-to-1.in: Likewise.
10931 * check-module: Likewise.
10932 * config/srclistvars.sh: Likewise.
10933 * gnulib-tool: Likewise.
10934 * lib/acl-internal.h: Likewise.
10935 * lib/acl.c: Likewise.
10936 * lib/acl.h: Likewise.
10937 * lib/acl_entries.c: Likewise.
10938 * lib/areadlink-with-size.c: Likewise.
10939 * lib/areadlink.c: Likewise.
10940 * lib/areadlink.h: Likewise.
10941 * lib/argmatch.c: Likewise.
10942 * lib/argmatch.h: Likewise.
10943 * lib/argp-ba.c: Likewise.
10944 * lib/argp-eexst.c: Likewise.
10945 * lib/argp-fmtstream.c: Likewise.
10946 * lib/argp-fmtstream.h: Likewise.
10947 * lib/argp-fs-xinl.c: Likewise.
10948 * lib/argp-help.c: Likewise.
10949 * lib/argp-namefrob.h: Likewise.
10950 * lib/argp-parse.c: Likewise.
10951 * lib/argp-pin.c: Likewise.
10952 * lib/argp-pv.c: Likewise.
10953 * lib/argp-pvh.c: Likewise.
10954 * lib/argp-xinl.c: Likewise.
10955 * lib/argp.h: Likewise.
10956 * lib/at-func.c: Likewise.
10957 * lib/atanl.c: Likewise.
10958 * lib/backupfile.c: Likewise.
10959 * lib/backupfile.h: Likewise.
10960 * lib/basename.c: Likewise.
10961 * lib/binary-io.h: Likewise.
10962 * lib/byteswap.in.h: Likewise.
10963 * lib/c-stack.c: Likewise.
10964 * lib/c-stack.h: Likewise.
10965 * lib/c-strcasestr.c: Likewise.
10966 * lib/c-strcasestr.h: Likewise.
10967 * lib/c-strstr.c: Likewise.
10968 * lib/c-strstr.h: Likewise.
10969 * lib/c-strtod.c: Likewise.
10970 * lib/calloc.c: Likewise.
10971 * lib/canon-host.c: Likewise.
10972 * lib/canon-host.h: Likewise.
10973 * lib/canonicalize-lgpl.c: Likewise.
10974 * lib/canonicalize.c: Likewise.
10975 * lib/canonicalize.h: Likewise.
10976 * lib/ceil.c: Likewise.
10977 * lib/ceilf.c: Likewise.
10978 * lib/ceill.c: Likewise.
10979 * lib/chdir-long.c: Likewise.
10980 * lib/chdir-long.h: Likewise.
10981 * lib/chdir-safer.c: Likewise.
10982 * lib/chdir-safer.h: Likewise.
10983 * lib/chown.c: Likewise.
10984 * lib/classpath.c: Likewise.
10985 * lib/classpath.h: Likewise.
10986 * lib/clean-temp.c: Likewise.
10987 * lib/clean-temp.h: Likewise.
10988 * lib/cloexec.c: Likewise.
10989 * lib/close-stream.c: Likewise.
10990 * lib/closein.c: Likewise.
10991 * lib/closein.h: Likewise.
10992 * lib/closeout.c: Likewise.
10993 * lib/closeout.h: Likewise.
10994 * lib/concat-filename.c: Likewise.
10995 * lib/copy-file.c: Likewise.
10996 * lib/copy-file.h: Likewise.
10997 * lib/count-one-bits.h: Likewise.
10998 * lib/crc.c: Likewise.
10999 * lib/crc.h: Likewise.
11000 * lib/creat-safer.c: Likewise.
11001 * lib/csharpcomp.c: Likewise.
11002 * lib/csharpcomp.h: Likewise.
11003 * lib/csharpexec.c: Likewise.
11004 * lib/csharpexec.h: Likewise.
11005 * lib/cycle-check.c: Likewise.
11006 * lib/cycle-check.h: Likewise.
11007 * lib/diacrit.c: Likewise.
11008 * lib/diacrit.h: Likewise.
11009 * lib/diffseq.h: Likewise.
11010 * lib/dirchownmod.c: Likewise.
11011 * lib/dirent.in.h: Likewise.
11012 * lib/dirfd.c: Likewise.
11013 * lib/dirfd.h: Likewise.
11014 * lib/dirname.c: Likewise.
11015 * lib/dirname.h: Likewise.
11016 * lib/dummy.c: Likewise.
11017 * lib/dup-safer.c: Likewise.
11018 * lib/dup2.c: Likewise.
11019 * lib/eealloc.h: Likewise.
11020 * lib/error.c: Likewise.
11021 * lib/error.h: Likewise.
11022 * lib/euidaccess.c: Likewise.
11023 * lib/exclude.c: Likewise.
11024 * lib/exclude.h: Likewise.
11025 * lib/execute.c: Likewise.
11026 * lib/execute.h: Likewise.
11027 * lib/exitfail.c: Likewise.
11028 * lib/exitfail.h: Likewise.
11029 * lib/expl.c: Likewise.
11030 * lib/fatal-signal.c: Likewise.
11031 * lib/fatal-signal.h: Likewise.
11032 * lib/fbufmode.c: Likewise.
11033 * lib/fbufmode.h: Likewise.
11034 * lib/fchdir.c: Likewise.
11035 * lib/fchmodat.c: Likewise.
11036 * lib/fchownat.c: Likewise.
11037 * lib/fcntl--.h: Likewise.
11038 * lib/fcntl-safer.h: Likewise.
11039 * lib/fcntl.in.h: Likewise.
11040 * lib/fd-safer.c: Likewise.
11041 * lib/fflush.c: Likewise.
11042 * lib/file-has-acl.c: Likewise.
11043 * lib/file-set.c: Likewise.
11044 * lib/file-type.c: Likewise.
11045 * lib/file-type.h: Likewise.
11046 * lib/fileblocks.c: Likewise.
11047 * lib/filemode.c: Likewise.
11048 * lib/filemode.h: Likewise.
11049 * lib/filename.h: Likewise.
11050 * lib/filenamecat.c: Likewise.
11051 * lib/filenamecat.h: Likewise.
11052 * lib/findprog.c: Likewise.
11053 * lib/findprog.h: Likewise.
11054 * lib/float.in.h: Likewise.
11055 * lib/floor.c: Likewise.
11056 * lib/floorf.c: Likewise.
11057 * lib/floorl.c: Likewise.
11058 * lib/fopen-safer.c: Likewise.
11059 * lib/fopen.c: Likewise.
11060 * lib/fpending.c: Likewise.
11061 * lib/fpending.h: Likewise.
11062 * lib/fprintf.c: Likewise.
11063 * lib/fprintftime.h: Likewise.
11064 * lib/fpucw.h: Likewise.
11065 * lib/fpurge.c: Likewise.
11066 * lib/fpurge.h: Likewise.
11067 * lib/freadable.c: Likewise.
11068 * lib/freadable.h: Likewise.
11069 * lib/freadahead.c: Likewise.
11070 * lib/freadahead.h: Likewise.
11071 * lib/freading.c: Likewise.
11072 * lib/freading.h: Likewise.
11073 * lib/free.c: Likewise.
11074 * lib/freopen.c: Likewise.
11075 * lib/frexp.c: Likewise.
11076 * lib/frexpl.c: Likewise.
11077 * lib/fseek.c: Likewise.
11078 * lib/fseterr.c: Likewise.
11079 * lib/fseterr.h: Likewise.
11080 * lib/fstatat.c: Likewise.
11081 * lib/fstrcmp.c: Likewise.
11082 * lib/fstrcmp.h: Likewise.
11083 * lib/fsusage.c: Likewise.
11084 * lib/fsusage.h: Likewise.
11085 * lib/ftell.c: Likewise.
11086 * lib/ftello.c: Likewise.
11087 * lib/fts-cycle.c: Likewise.
11088 * lib/fts.c: Likewise.
11089 * lib/fts_.h: Likewise.
11090 * lib/full-read.c: Likewise.
11091 * lib/full-read.h: Likewise.
11092 * lib/full-write.c: Likewise.
11093 * lib/full-write.h: Likewise.
11094 * lib/fwritable.c: Likewise.
11095 * lib/fwritable.h: Likewise.
11096 * lib/fwriteerror.c: Likewise.
11097 * lib/fwriteerror.h: Likewise.
11098 * lib/fwriting.c: Likewise.
11099 * lib/fwriting.h: Likewise.
11100 * lib/gcd.c: Likewise.
11101 * lib/gcd.h: Likewise.
11102 * lib/getcwd.c: Likewise.
11103 * lib/getdate.h: Likewise.
11104 * lib/getdate.y: Likewise.
11105 * lib/getdomainname.c: Likewise.
11106 * lib/getdomainname.h: Likewise.
11107 * lib/getgroups.c: Likewise.
11108 * lib/gethostname.c: Likewise.
11109 * lib/gethrxtime.c: Likewise.
11110 * lib/gethrxtime.h: Likewise.
11111 * lib/getloadavg.c: Likewise.
11112 * lib/getndelim2.c: Likewise.
11113 * lib/getndelim2.h: Likewise.
11114 * lib/getnline.c: Likewise.
11115 * lib/getnline.h: Likewise.
11116 * lib/getopt.c: Likewise.
11117 * lib/getopt.in.h: Likewise.
11118 * lib/getopt1.c: Likewise.
11119 * lib/getopt_int.h: Likewise.
11120 * lib/getpagesize.h: Likewise.
11121 * lib/getsubopt.c: Likewise.
11122 * lib/gettime.c: Likewise.
11123 * lib/getugroups.c: Likewise.
11124 * lib/getugroups.h: Likewise.
11125 * lib/getusershell.c: Likewise.
11126 * lib/gl_anyavltree_list1.h: Likewise.
11127 * lib/gl_anyavltree_list2.h: Likewise.
11128 * lib/gl_anyhash_list1.h: Likewise.
11129 * lib/gl_anyhash_list2.h: Likewise.
11130 * lib/gl_anylinked_list1.h: Likewise.
11131 * lib/gl_anylinked_list2.h: Likewise.
11132 * lib/gl_anyrbtree_list1.h: Likewise.
11133 * lib/gl_anyrbtree_list2.h: Likewise.
11134 * lib/gl_anytree_list1.h: Likewise.
11135 * lib/gl_anytree_list2.h: Likewise.
11136 * lib/gl_anytree_oset.h: Likewise.
11137 * lib/gl_anytreehash_list1.h: Likewise.
11138 * lib/gl_anytreehash_list2.h: Likewise.
11139 * lib/gl_array_list.c: Likewise.
11140 * lib/gl_array_list.h: Likewise.
11141 * lib/gl_array_oset.c: Likewise.
11142 * lib/gl_array_oset.h: Likewise.
11143 * lib/gl_avltree_list.c: Likewise.
11144 * lib/gl_avltree_list.h: Likewise.
11145 * lib/gl_avltree_oset.c: Likewise.
11146 * lib/gl_avltree_oset.h: Likewise.
11147 * lib/gl_avltreehash_list.c: Likewise.
11148 * lib/gl_avltreehash_list.h: Likewise.
11149 * lib/gl_carray_list.c: Likewise.
11150 * lib/gl_carray_list.h: Likewise.
11151 * lib/gl_linked_list.c: Likewise.
11152 * lib/gl_linked_list.h: Likewise.
11153 * lib/gl_linkedhash_list.c: Likewise.
11154 * lib/gl_linkedhash_list.h: Likewise.
11155 * lib/gl_list.c: Likewise.
11156 * lib/gl_list.h: Likewise.
11157 * lib/gl_oset.c: Likewise.
11158 * lib/gl_oset.h: Likewise.
11159 * lib/gl_rbtree_list.c: Likewise.
11160 * lib/gl_rbtree_list.h: Likewise.
11161 * lib/gl_rbtree_oset.c: Likewise.
11162 * lib/gl_rbtree_oset.h: Likewise.
11163 * lib/gl_rbtreehash_list.c: Likewise.
11164 * lib/gl_rbtreehash_list.h: Likewise.
11165 * lib/gl_sublist.c: Likewise.
11166 * lib/gl_sublist.h: Likewise.
11167 * lib/group-member.c: Likewise.
11168 * lib/group-member.h: Likewise.
11169 * lib/hard-locale.c: Likewise.
11170 * lib/hard-locale.h: Likewise.
11171 * lib/hash-pjw.c: Likewise.
11172 * lib/hash-pjw.h: Likewise.
11173 * lib/hash-triple.c: Likewise.
11174 * lib/hash.c: Likewise.
11175 * lib/hash.h: Likewise.
11176 * lib/human.c: Likewise.
11177 * lib/human.h: Likewise.
11178 * lib/i-ring.c: Likewise.
11179 * lib/i-ring.h: Likewise.
11180 * lib/idcache.c: Likewise.
11181 * lib/imaxabs.c: Likewise.
11182 * lib/imaxdiv.c: Likewise.
11183 * lib/inet_pton.c: Likewise.
11184 * lib/inet_pton.h: Likewise.
11185 * lib/intprops.h: Likewise.
11186 * lib/inttostr.c: Likewise.
11187 * lib/inttostr.h: Likewise.
11188 * lib/inttypes.in.h: Likewise.
11189 * lib/isapipe.c: Likewise.
11190 * lib/isdir.c: Likewise.
11191 * lib/isnan.c: Likewise.
11192 * lib/isnan.h: Likewise.
11193 * lib/isnanf.c: Likewise.
11194 * lib/isnanf.h: Likewise.
11195 * lib/isnanl-nolibm.h: Likewise.
11196 * lib/isnanl.c: Likewise.
11197 * lib/isnanl.h: Likewise.
11198 * lib/javacomp.c: Likewise.
11199 * lib/javacomp.h: Likewise.
11200 * lib/javaexec.c: Likewise.
11201 * lib/javaexec.h: Likewise.
11202 * lib/javaversion.c: Likewise.
11203 * lib/javaversion.h: Likewise.
11204 * lib/javaversion.java: Likewise.
11205 * lib/lbrkprop.h: Likewise.
11206 * lib/lchmod.h: Likewise.
11207 * lib/lchown.c: Likewise.
11208 * lib/ldexpl.c: Likewise.
11209 * lib/linebreak.c: Likewise.
11210 * lib/linebreak.h: Likewise.
11211 * lib/linebuffer.c: Likewise.
11212 * lib/linebuffer.h: Likewise.
11213 * lib/locale.in.h: Likewise.
11214 * lib/logl.c: Likewise.
11215 * lib/long-options.c: Likewise.
11216 * lib/long-options.h: Likewise.
11217 * lib/lstat.c: Likewise.
11218 * lib/lstat.h: Likewise.
11219 * lib/math.in.h: Likewise.
11220 * lib/mbchar.c: Likewise.
11221 * lib/mbchar.h: Likewise.
11222 * lib/mbfile.h: Likewise.
11223 * lib/mbiter.h: Likewise.
11224 * lib/mbscasecmp.c: Likewise.
11225 * lib/mbscasestr.c: Likewise.
11226 * lib/mbschr.c: Likewise.
11227 * lib/mbscspn.c: Likewise.
11228 * lib/mbslen.c: Likewise.
11229 * lib/mbsncasecmp.c: Likewise.
11230 * lib/mbsnlen.c: Likewise.
11231 * lib/mbspbrk.c: Likewise.
11232 * lib/mbspcasecmp.c: Likewise.
11233 * lib/mbsrchr.c: Likewise.
11234 * lib/mbssep.c: Likewise.
11235 * lib/mbsspn.c: Likewise.
11236 * lib/mbsstr.c: Likewise.
11237 * lib/mbstok_r.c: Likewise.
11238 * lib/mbswidth.c: Likewise.
11239 * lib/mbswidth.h: Likewise.
11240 * lib/mbuiter.h: Likewise.
11241 * lib/memcasecmp.c: Likewise.
11242 * lib/memcasecmp.h: Likewise.
11243 * lib/memchr.c: Likewise.
11244 * lib/memcmp.c: Likewise.
11245 * lib/memcoll.c: Likewise.
11246 * lib/memcoll.h: Likewise.
11247 * lib/memcpy.c: Likewise.
11248 * lib/memrchr.c: Likewise.
11249 * lib/mkancesdirs.c: Likewise.
11250 * lib/mkdir-p.c: Likewise.
11251 * lib/mkdir-p.h: Likewise.
11252 * lib/mkdir.c: Likewise.
11253 * lib/mkdirat.c: Likewise.
11254 * lib/mkdtemp.c: Likewise.
11255 * lib/mkstemp-safer.c: Likewise.
11256 * lib/mkstemp.c: Likewise.
11257 * lib/modechange.c: Likewise.
11258 * lib/modechange.h: Likewise.
11259 * lib/mountlist.c: Likewise.
11260 * lib/mountlist.h: Likewise.
11261 * lib/mpsort.c: Likewise.
11262 * lib/nanosleep.c: Likewise.
11263 * lib/obstack.c: Likewise.
11264 * lib/obstack.h: Likewise.
11265 * lib/open-safer.c: Likewise.
11266 * lib/open.c: Likewise.
11267 * lib/openat-die.c: Likewise.
11268 * lib/openat-priv.h: Likewise.
11269 * lib/openat-proc.c: Likewise.
11270 * lib/openat.c: Likewise.
11271 * lib/openat.h: Likewise.
11272 * lib/pagealign_alloc.c: Likewise.
11273 * lib/pagealign_alloc.h: Likewise.
11274 * lib/physmem.c: Likewise.
11275 * lib/physmem.h: Likewise.
11276 * lib/pipe-safer.c: Likewise.
11277 * lib/pipe.c: Likewise.
11278 * lib/pipe.h: Likewise.
11279 * lib/posixtm.c: Likewise.
11280 * lib/posixtm.h: Likewise.
11281 * lib/posixver.c: Likewise.
11282 * lib/printf-frexp.c: Likewise.
11283 * lib/printf-frexp.h: Likewise.
11284 * lib/printf-frexpl.c: Likewise.
11285 * lib/printf-frexpl.h: Likewise.
11286 * lib/printf.c: Likewise.
11287 * lib/progname.c: Likewise.
11288 * lib/progname.h: Likewise.
11289 * lib/progreloc.c: Likewise.
11290 * lib/putenv.c: Likewise.
11291 * lib/quote.c: Likewise.
11292 * lib/quote.h: Likewise.
11293 * lib/quotearg.c: Likewise.
11294 * lib/quotearg.h: Likewise.
11295 * lib/raise.c: Likewise.
11296 * lib/readline.c: Likewise.
11297 * lib/readline.h: Likewise.
11298 * lib/readlink.c: Likewise.
11299 * lib/readtokens.c: Likewise.
11300 * lib/readtokens.h: Likewise.
11301 * lib/readtokens0.c: Likewise.
11302 * lib/readtokens0.h: Likewise.
11303 * lib/readutmp.c: Likewise.
11304 * lib/readutmp.h: Likewise.
11305 * lib/realloc.c: Likewise.
11306 * lib/relocwrapper.c: Likewise.
11307 * lib/rename-dest-slash.c: Likewise.
11308 * lib/rename.c: Likewise.
11309 * lib/rmdir.c: Likewise.
11310 * lib/rpmatch.c: Likewise.
11311 * lib/safe-read.c: Likewise.
11312 * lib/safe-read.h: Likewise.
11313 * lib/safe-write.c: Likewise.
11314 * lib/safe-write.h: Likewise.
11315 * lib/same-inode.h: Likewise.
11316 * lib/same.c: Likewise.
11317 * lib/same.h: Likewise.
11318 * lib/save-cwd.c: Likewise.
11319 * lib/save-cwd.h: Likewise.
11320 * lib/savedir.c: Likewise.
11321 * lib/savedir.h: Likewise.
11322 * lib/savewd.c: Likewise.
11323 * lib/savewd.h: Likewise.
11324 * lib/search.in.h: Likewise.
11325 * lib/setenv.c: Likewise.
11326 * lib/setenv.h: Likewise.
11327 * lib/settime.c: Likewise.
11328 * lib/sh-quote.c: Likewise.
11329 * lib/sh-quote.h: Likewise.
11330 * lib/sig2str.c: Likewise.
11331 * lib/sig2str.h: Likewise.
11332 * lib/signal.in.h: Likewise.
11333 * lib/signbitd.c: Likewise.
11334 * lib/signbitf.c: Likewise.
11335 * lib/signbitl.c: Likewise.
11336 * lib/sigprocmask.c: Likewise.
11337 * lib/sincosl.c: Likewise.
11338 * lib/sleep.c: Likewise.
11339 * lib/sprintf.c: Likewise.
11340 * lib/sqrtl.c: Likewise.
11341 * lib/stat-time.h: Likewise.
11342 * lib/stdio--.h: Likewise.
11343 * lib/stdio-safer.h: Likewise.
11344 * lib/stdlib--.h: Likewise.
11345 * lib/stdlib-safer.h: Likewise.
11346 * lib/stdlib.in.h: Likewise.
11347 * lib/stpcpy.c: Likewise.
11348 * lib/stpncpy.c: Likewise.
11349 * lib/strchrnul.c: Likewise.
11350 * lib/strcspn.c: Likewise.
11351 * lib/strerror.c: Likewise.
11352 * lib/strftime.c: Likewise.
11353 * lib/strftime.h: Likewise.
11354 * lib/striconveh.c: Likewise.
11355 * lib/striconveh.h: Likewise.
11356 * lib/striconveha.c: Likewise.
11357 * lib/striconveha.h: Likewise.
11358 * lib/stripslash.c: Likewise.
11359 * lib/strnlen1.c: Likewise.
11360 * lib/strnlen1.h: Likewise.
11361 * lib/strtod.c: Likewise.
11362 * lib/strtoimax.c: Likewise.
11363 * lib/strtok_r.c: Likewise.
11364 * lib/strtol.c: Likewise.
11365 * lib/strtoll.c: Likewise.
11366 * lib/strtoul.c: Likewise.
11367 * lib/strtoull.c: Likewise.
11368 * lib/sysexits.in.h: Likewise.
11369 * lib/tempname.c: Likewise.
11370 * lib/tempname.h: Likewise.
11371 * lib/timespec.h: Likewise.
11372 * lib/tls.c: Likewise.
11373 * lib/tls.h: Likewise.
11374 * lib/tmpdir.c: Likewise.
11375 * lib/tmpdir.h: Likewise.
11376 * lib/tmpfile-safer.c: Likewise.
11377 * lib/tmpfile.c: Likewise.
11378 * lib/trigl.c: Likewise.
11379 * lib/trigl.h: Likewise.
11380 * lib/trim.c: Likewise.
11381 * lib/trim.h: Likewise.
11382 * lib/trunc.c: Likewise.
11383 * lib/truncf.c: Likewise.
11384 * lib/truncl.c: Likewise.
11385 * lib/tsearch.c: Likewise.
11386 * lib/unicodeio.c: Likewise.
11387 * lib/unicodeio.h: Likewise.
11388 * lib/unistd--.h: Likewise.
11389 * lib/unistd-safer.h: Likewise.
11390 * lib/unistdio/ulc-fprintf.c: Likewise.
11391 * lib/unistdio/ulc-vfprintf.c: Likewise.
11392 * lib/unlinkdir.c: Likewise.
11393 * lib/unlinkdir.h: Likewise.
11394 * lib/unlocked-io.h: Likewise.
11395 * lib/unsetenv.c: Likewise.
11396 * lib/userspec.c: Likewise.
11397 * lib/utime.c: Likewise.
11398 * lib/utimecmp.c: Likewise.
11399 * lib/utimecmp.h: Likewise.
11400 * lib/utimens.c: Likewise.
11401 * lib/verify.h: Likewise.
11402 * lib/verror.c: Likewise.
11403 * lib/verror.h: Likewise.
11404 * lib/version-etc-fsf.c: Likewise.
11405 * lib/version-etc.c: Likewise.
11406 * lib/version-etc.h: Likewise.
11407 * lib/vfprintf.c: Likewise.
11408 * lib/vprintf.c: Likewise.
11409 * lib/vsprintf.c: Likewise.
11410 * lib/w32spawn.h: Likewise.
11411 * lib/wait-process.c: Likewise.
11412 * lib/wait-process.h: Likewise.
11413 * lib/wcwidth.c: Likewise.
11414 * lib/write-any-file.c: Likewise.
11415 * lib/xalloc-die.c: Likewise.
11416 * lib/xalloc.h: Likewise.
11417 * lib/xasprintf.c: Likewise.
11418 * lib/xgetcwd.c: Likewise.
11419 * lib/xgetcwd.h: Likewise.
11420 * lib/xgetdomainname.c: Likewise.
11421 * lib/xgetdomainname.h: Likewise.
11422 * lib/xgethostname.c: Likewise.
11423 * lib/xmalloc.c: Likewise.
11424 * lib/xmalloca.c: Likewise.
11425 * lib/xmalloca.h: Likewise.
11426 * lib/xmemcoll.c: Likewise.
11427 * lib/xnanosleep.c: Likewise.
11428 * lib/xreadlink.c: Likewise.
11429 * lib/xreadlink.h: Likewise.
11430 * lib/xsetenv.c: Likewise.
11431 * lib/xsetenv.h: Likewise.
11432 * lib/xstriconv.c: Likewise.
11433 * lib/xstriconv.h: Likewise.
11434 * lib/xstrndup.c: Likewise.
11435 * lib/xstrndup.h: Likewise.
11436 * lib/xstrtod.c: Likewise.
11437 * lib/xstrtod.h: Likewise.
11438 * lib/xstrtol-error.c: Likewise.
11439 * lib/xstrtol.c: Likewise.
11440 * lib/xstrtol.h: Likewise.
11441 * lib/xtime.h: Likewise.
11442 * lib/xvasprintf.c: Likewise.
11443 * lib/xvasprintf.h: Likewise.
11444 * lib/yesno.c: Likewise.
11445 * lib/yesno.h: Likewise.
11446 * posix-modules: Likewise.
11447 * tests/test-alloca-opt.c: Likewise.
11448 * tests/test-arcfour.c: Likewise.
11449 * tests/test-arctwo.c: Likewise.
11450 * tests/test-argmatch.c: Likewise.
11451 * tests/test-argp-2.sh: Likewise.
11452 * tests/test-argp.c: Likewise.
11453 * tests/test-arpa_inet.c: Likewise.
11454 * tests/test-array_list.c: Likewise.
11455 * tests/test-array_oset.c: Likewise.
11456 * tests/test-atexit.c: Likewise.
11457 * tests/test-avltree_list.c: Likewise.
11458 * tests/test-avltree_oset.c: Likewise.
11459 * tests/test-avltreehash_list.c: Likewise.
11460 * tests/test-base64.c: Likewise.
11461 * tests/test-binary-io.c: Likewise.
11462 * tests/test-byteswap.c: Likewise.
11463 * tests/test-c-ctype.c: Likewise.
11464 * tests/test-c-strcasecmp.c: Likewise.
11465 * tests/test-c-strcasestr.c: Likewise.
11466 * tests/test-c-strncasecmp.c: Likewise.
11467 * tests/test-c-strstr.c: Likewise.
11468 * tests/test-canonicalize-lgpl.c: Likewise.
11469 * tests/test-canonicalize.c: Likewise.
11470 * tests/test-carray_list.c: Likewise.
11471 * tests/test-ceilf.c: Likewise.
11472 * tests/test-ceill.c: Likewise.
11473 * tests/test-count-one-bits.c: Likewise.
11474 * tests/test-crc.c: Likewise.
11475 * tests/test-dirname.c: Likewise.
11476 * tests/test-fbufmode.c: Likewise.
11477 * tests/test-fcntl.c: Likewise.
11478 * tests/test-fflush.c: Likewise.
11479 * tests/test-floorf.c: Likewise.
11480 * tests/test-floorl.c: Likewise.
11481 * tests/test-fopen.c: Likewise.
11482 * tests/test-fprintf-posix.c: Likewise.
11483 * tests/test-fprintf-posix.h: Likewise.
11484 * tests/test-fpurge.c: Likewise.
11485 * tests/test-freadable.c: Likewise.
11486 * tests/test-freadahead.c: Likewise.
11487 * tests/test-freading.c: Likewise.
11488 * tests/test-freopen.c: Likewise.
11489 * tests/test-frexp.c: Likewise.
11490 * tests/test-frexpl.c: Likewise.
11491 * tests/test-fseek.c: Likewise.
11492 * tests/test-fseeko.c: Likewise.
11493 * tests/test-fseterr.c: Likewise.
11494 * tests/test-fstrcmp.c: Likewise.
11495 * tests/test-ftell.c: Likewise.
11496 * tests/test-ftello.c: Likewise.
11497 * tests/test-fwritable.c: Likewise.
11498 * tests/test-fwriting.c: Likewise.
11499 * tests/test-getaddrinfo.c: Likewise.
11500 * tests/test-getpass.c: Likewise.
11501 * tests/test-gettimeofday.c: Likewise.
11502 * tests/test-hmac-md5.c: Likewise.
11503 * tests/test-hmac-sha1.c: Likewise.
11504 * tests/test-iconv.c: Likewise.
11505 * tests/test-iconvme.c: Likewise.
11506 * tests/test-inttypes.c: Likewise.
11507 * tests/test-isnan.c: Likewise.
11508 * tests/test-isnanf.c: Likewise.
11509 * tests/test-isnanl-nolibm.c: Likewise.
11510 * tests/test-isnanl.c: Likewise.
11511 * tests/test-isnanl.h: Likewise.
11512 * tests/test-ldexpl.c: Likewise.
11513 * tests/test-linked_list.c: Likewise.
11514 * tests/test-linkedhash_list.c: Likewise.
11515 * tests/test-locale.c: Likewise.
11516 * tests/test-localename.c: Likewise.
11517 * tests/test-lock.c: Likewise.
11518 * tests/test-lseek.c: Likewise.
11519 * tests/test-malloca.c: Likewise.
11520 * tests/test-math.c: Likewise.
11521 * tests/test-mbscasecmp.c: Likewise.
11522 * tests/test-mbscasestr1.c: Likewise.
11523 * tests/test-mbscasestr2.c: Likewise.
11524 * tests/test-mbscasestr3.c: Likewise.
11525 * tests/test-mbscasestr4.c: Likewise.
11526 * tests/test-mbschr.c: Likewise.
11527 * tests/test-mbscspn.c: Likewise.
11528 * tests/test-mbsncasecmp.c: Likewise.
11529 * tests/test-mbspbrk.c: Likewise.
11530 * tests/test-mbspcasecmp.c: Likewise.
11531 * tests/test-mbsrchr.c: Likewise.
11532 * tests/test-mbsspn.c: Likewise.
11533 * tests/test-mbsstr1.c: Likewise.
11534 * tests/test-mbsstr2.c: Likewise.
11535 * tests/test-mbsstr3.c: Likewise.
11536 * tests/test-md5.c: Likewise.
11537 * tests/test-memmem.c: Likewise.
11538 * tests/test-netinet_in.c: Likewise.
11539 * tests/test-open.c: Likewise.
11540 * tests/test-printf-frexp.c: Likewise.
11541 * tests/test-printf-frexpl.c: Likewise.
11542 * tests/test-printf-posix.c: Likewise.
11543 * tests/test-printf-posix.h: Likewise.
11544 * tests/test-rbtree_list.c: Likewise.
11545 * tests/test-rbtree_oset.c: Likewise.
11546 * tests/test-rbtreehash_list.c: Likewise.
11547 * tests/test-read-file.c: Likewise.
11548 * tests/test-rijndael.c: Likewise.
11549 * tests/test-search.c: Likewise.
11550 * tests/test-signbit.c: Likewise.
11551 * tests/test-sleep.c: Likewise.
11552 * tests/test-snprintf-posix.c: Likewise.
11553 * tests/test-snprintf-posix.h: Likewise.
11554 * tests/test-snprintf.c: Likewise.
11555 * tests/test-sprintf-posix.c: Likewise.
11556 * tests/test-sprintf-posix.h: Likewise.
11557 * tests/test-stat-time.c: Likewise.
11558 * tests/test-stdbool.c: Likewise.
11559 * tests/test-stdint.c: Likewise.
11560 * tests/test-stdio.c: Likewise.
11561 * tests/test-stdlib.c: Likewise.
11562 * tests/test-stpncpy.c: Likewise.
11563 * tests/test-strcasestr.c: Likewise.
11564 * tests/test-striconv.c: Likewise.
11565 * tests/test-striconveh.c: Likewise.
11566 * tests/test-striconveha.c: Likewise.
11567 * tests/test-string.c: Likewise.
11568 * tests/test-sys_select.c: Likewise.
11569 * tests/test-sys_socket.c: Likewise.
11570 * tests/test-sys_stat.c: Likewise.
11571 * tests/test-sys_time.c: Likewise.
11572 * tests/test-sysexits.c: Likewise.
11573 * tests/test-time.c: Likewise.
11574 * tests/test-tls.c: Likewise.
11575 * tests/test-trunc.c: Likewise.
11576 * tests/test-truncf.c: Likewise.
11577 * tests/test-truncl.c: Likewise.
11578 * tests/test-unistd.c: Likewise.
11579 * tests/test-vasnprintf-posix.c: Likewise.
11580 * tests/test-vasnprintf-posix2.c: Likewise.
11581 * tests/test-vasnprintf.c: Likewise.
11582 * tests/test-vasprintf-posix.c: Likewise.
11583 * tests/test-vasprintf.c: Likewise.
11584 * tests/test-verify.c: Likewise.
11585 * tests/test-vfprintf-posix.c: Likewise.
11586 * tests/test-vprintf-posix.c: Likewise.
11587 * tests/test-vsnprintf-posix.c: Likewise.
11588 * tests/test-vsnprintf.c: Likewise.
11589 * tests/test-vsprintf-posix.c: Likewise.
11590 * tests/test-wchar.c: Likewise.
11591 * tests/test-wctype.c: Likewise.
11592 * tests/test-wcwidth.c: Likewise.
11593 * tests/test-xstrtol.c: Likewise.
11594 * tests/test-xvasprintf.c: Likewise.
11595 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11596 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11597 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11598 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11599 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11600 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11601 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11602 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11603 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11604 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11605 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11606 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11607 * tests/uniname/test-uninames.c: Likewise.
11608 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11609 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11610 * tests/unistdio/test-u16-printf1.h: Likewise.
11611 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11612 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11613 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11614 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11615 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11616 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11617 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11618 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11619 * tests/unistdio/test-u32-printf1.h: Likewise.
11620 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11621 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11622 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11623 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11624 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11625 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11626 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11627 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11628 * tests/unistdio/test-u8-printf1.h: Likewise.
11629 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11630 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11631 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11632 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11633 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11634 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11635 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11636 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11637 * tests/unistdio/test-ulc-printf1.h: Likewise.
11638 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11639 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11640 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11641 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11642 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11643 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11644 * tests/uniwidth/test-u16-strwidth.c: Likewise.
11645 * tests/uniwidth/test-u16-width.c: Likewise.
11646 * tests/uniwidth/test-u32-strwidth.c: Likewise.
11647 * tests/uniwidth/test-u32-width.c: Likewise.
11648 * tests/uniwidth/test-u8-strwidth.c: Likewise.
11649 * tests/uniwidth/test-u8-width.c: Likewise.
11650 * tests/uniwidth/test-uc_width.c: Likewise.
11651 * config/srclist-update: Likewise.
11652 (fixlicense): Update to GPLv3+.
11654 Change copyright notice from LGPLv2.1+ to LGPLv3+.
11655 * tests/test-tsearch.c: Change copyright notice.
11657 Change copyright notice from LGPLv2.0+ to LGPLv3+.
11658 * lib/c-strcaseeq.h: Change copyright notice.
11659 * lib/streq.h: Likewise.
11660 * lib/uniconv.h: Likewise.
11661 * lib/uniconv/u-conv-from-enc.h: Likewise.
11662 * lib/uniconv/u-conv-to-enc.h: Likewise.
11663 * lib/uniconv/u-strconv-from-enc.h: Likewise.
11664 * lib/uniconv/u-strconv-to-enc.h: Likewise.
11665 * lib/uniconv/u16-conv-from-enc.c: Likewise.
11666 * lib/uniconv/u16-conv-to-enc.c: Likewise.
11667 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11668 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11669 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11670 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11671 * lib/uniconv/u32-conv-from-enc.c: Likewise.
11672 * lib/uniconv/u32-conv-to-enc.c: Likewise.
11673 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11674 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11675 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11676 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11677 * lib/uniconv/u8-conv-from-enc.c: Likewise.
11678 * lib/uniconv/u8-conv-to-enc.c: Likewise.
11679 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11680 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11681 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11682 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11683 * lib/uniname.h: Likewise.
11684 * lib/uniname/uniname.c: Likewise.
11685 * lib/unistdio.h: Likewise.
11686 * lib/unistdio/u-asnprintf.h: Likewise.
11687 * lib/unistdio/u-asprintf.h: Likewise.
11688 * lib/unistdio/u-printf-args.c: Likewise.
11689 * lib/unistdio/u-printf-args.h: Likewise.
11690 * lib/unistdio/u-printf-parse.h: Likewise.
11691 * lib/unistdio/u-snprintf.h: Likewise.
11692 * lib/unistdio/u-sprintf.h: Likewise.
11693 * lib/unistdio/u-vasprintf.h: Likewise.
11694 * lib/unistdio/u-vsnprintf.h: Likewise.
11695 * lib/unistdio/u-vsprintf.h: Likewise.
11696 * lib/unistdio/u16-asnprintf.c: Likewise.
11697 * lib/unistdio/u16-asprintf.c: Likewise.
11698 * lib/unistdio/u16-printf-parse.c: Likewise.
11699 * lib/unistdio/u16-snprintf.c: Likewise.
11700 * lib/unistdio/u16-sprintf.c: Likewise.
11701 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11702 * lib/unistdio/u16-u16-asprintf.c: Likewise.
11703 * lib/unistdio/u16-u16-snprintf.c: Likewise.
11704 * lib/unistdio/u16-u16-sprintf.c: Likewise.
11705 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11706 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11707 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11708 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11709 * lib/unistdio/u16-vasnprintf.c: Likewise.
11710 * lib/unistdio/u16-vasprintf.c: Likewise.
11711 * lib/unistdio/u16-vsnprintf.c: Likewise.
11712 * lib/unistdio/u16-vsprintf.c: Likewise.
11713 * lib/unistdio/u32-asnprintf.c: Likewise.
11714 * lib/unistdio/u32-asprintf.c: Likewise.
11715 * lib/unistdio/u32-printf-parse.c: Likewise.
11716 * lib/unistdio/u32-snprintf.c: Likewise.
11717 * lib/unistdio/u32-sprintf.c: Likewise.
11718 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11719 * lib/unistdio/u32-u32-asprintf.c: Likewise.
11720 * lib/unistdio/u32-u32-snprintf.c: Likewise.
11721 * lib/unistdio/u32-u32-sprintf.c: Likewise.
11722 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11723 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11724 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11725 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11726 * lib/unistdio/u32-vasnprintf.c: Likewise.
11727 * lib/unistdio/u32-vasprintf.c: Likewise.
11728 * lib/unistdio/u32-vsnprintf.c: Likewise.
11729 * lib/unistdio/u32-vsprintf.c: Likewise.
11730 * lib/unistdio/u8-asnprintf.c: Likewise.
11731 * lib/unistdio/u8-asprintf.c: Likewise.
11732 * lib/unistdio/u8-printf-parse.c: Likewise.
11733 * lib/unistdio/u8-snprintf.c: Likewise.
11734 * lib/unistdio/u8-sprintf.c: Likewise.
11735 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11736 * lib/unistdio/u8-u8-asprintf.c: Likewise.
11737 * lib/unistdio/u8-u8-snprintf.c: Likewise.
11738 * lib/unistdio/u8-u8-sprintf.c: Likewise.
11739 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11740 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11741 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11742 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11743 * lib/unistdio/u8-vasnprintf.c: Likewise.
11744 * lib/unistdio/u8-vasprintf.c: Likewise.
11745 * lib/unistdio/u8-vsnprintf.c: Likewise.
11746 * lib/unistdio/u8-vsprintf.c: Likewise.
11747 * lib/unistdio/ulc-asnprintf.c: Likewise.
11748 * lib/unistdio/ulc-asprintf.c: Likewise.
11749 * lib/unistdio/ulc-printf-parse.c: Likewise.
11750 * lib/unistdio/ulc-snprintf.c: Likewise.
11751 * lib/unistdio/ulc-sprintf.c: Likewise.
11752 * lib/unistdio/ulc-vasnprintf.c: Likewise.
11753 * lib/unistdio/ulc-vasprintf.c: Likewise.
11754 * lib/unistdio/ulc-vsnprintf.c: Likewise.
11755 * lib/unistdio/ulc-vsprintf.c: Likewise.
11756 * lib/unistr.h: Likewise.
11757 * lib/unistr/u-cpy-alloc.h: Likewise.
11758 * lib/unistr/u-cpy.h: Likewise.
11759 * lib/unistr/u-endswith.h: Likewise.
11760 * lib/unistr/u-move.h: Likewise.
11761 * lib/unistr/u-set.h: Likewise.
11762 * lib/unistr/u-startswith.h: Likewise.
11763 * lib/unistr/u-stpcpy.h: Likewise.
11764 * lib/unistr/u-stpncpy.h: Likewise.
11765 * lib/unistr/u-strcat.h: Likewise.
11766 * lib/unistr/u-strcpy.h: Likewise.
11767 * lib/unistr/u-strcspn.h: Likewise.
11768 * lib/unistr/u-strdup.h: Likewise.
11769 * lib/unistr/u-strlen.h: Likewise.
11770 * lib/unistr/u-strncat.h: Likewise.
11771 * lib/unistr/u-strncpy.h: Likewise.
11772 * lib/unistr/u-strnlen.h: Likewise.
11773 * lib/unistr/u-strpbrk.h: Likewise.
11774 * lib/unistr/u-strspn.h: Likewise.
11775 * lib/unistr/u-strstr.h: Likewise.
11776 * lib/unistr/u-strtok.h: Likewise.
11777 * lib/unistr/u16-check.c: Likewise.
11778 * lib/unistr/u16-chr.c: Likewise.
11779 * lib/unistr/u16-cmp.c: Likewise.
11780 * lib/unistr/u16-cpy-alloc.c: Likewise.
11781 * lib/unistr/u16-cpy.c: Likewise.
11782 * lib/unistr/u16-endswith.c: Likewise.
11783 * lib/unistr/u16-mblen.c: Likewise.
11784 * lib/unistr/u16-mbsnlen.c: Likewise.
11785 * lib/unistr/u16-mbtouc-aux.c: Likewise.
11786 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11787 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11788 * lib/unistr/u16-mbtouc.c: Likewise.
11789 * lib/unistr/u16-mbtoucr.c: Likewise.
11790 * lib/unistr/u16-move.c: Likewise.
11791 * lib/unistr/u16-next.c: Likewise.
11792 * lib/unistr/u16-prev.c: Likewise.
11793 * lib/unistr/u16-set.c: Likewise.
11794 * lib/unistr/u16-startswith.c: Likewise.
11795 * lib/unistr/u16-stpcpy.c: Likewise.
11796 * lib/unistr/u16-stpncpy.c: Likewise.
11797 * lib/unistr/u16-strcat.c: Likewise.
11798 * lib/unistr/u16-strchr.c: Likewise.
11799 * lib/unistr/u16-strcmp.c: Likewise.
11800 * lib/unistr/u16-strcpy.c: Likewise.
11801 * lib/unistr/u16-strcspn.c: Likewise.
11802 * lib/unistr/u16-strdup.c: Likewise.
11803 * lib/unistr/u16-strlen.c: Likewise.
11804 * lib/unistr/u16-strmblen.c: Likewise.
11805 * lib/unistr/u16-strmbtouc.c: Likewise.
11806 * lib/unistr/u16-strncat.c: Likewise.
11807 * lib/unistr/u16-strncmp.c: Likewise.
11808 * lib/unistr/u16-strncpy.c: Likewise.
11809 * lib/unistr/u16-strnlen.c: Likewise.
11810 * lib/unistr/u16-strpbrk.c: Likewise.
11811 * lib/unistr/u16-strrchr.c: Likewise.
11812 * lib/unistr/u16-strspn.c: Likewise.
11813 * lib/unistr/u16-strstr.c: Likewise.
11814 * lib/unistr/u16-strtok.c: Likewise.
11815 * lib/unistr/u16-to-u32.c: Likewise.
11816 * lib/unistr/u16-to-u8.c: Likewise.
11817 * lib/unistr/u16-uctomb-aux.c: Likewise.
11818 * lib/unistr/u16-uctomb.c: Likewise.
11819 * lib/unistr/u32-check.c: Likewise.
11820 * lib/unistr/u32-chr.c: Likewise.
11821 * lib/unistr/u32-cmp.c: Likewise.
11822 * lib/unistr/u32-cpy-alloc.c: Likewise.
11823 * lib/unistr/u32-cpy.c: Likewise.
11824 * lib/unistr/u32-endswith.c: Likewise.
11825 * lib/unistr/u32-mblen.c: Likewise.
11826 * lib/unistr/u32-mbsnlen.c: Likewise.
11827 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11828 * lib/unistr/u32-mbtouc.c: Likewise.
11829 * lib/unistr/u32-mbtoucr.c: Likewise.
11830 * lib/unistr/u32-move.c: Likewise.
11831 * lib/unistr/u32-next.c: Likewise.
11832 * lib/unistr/u32-prev.c: Likewise.
11833 * lib/unistr/u32-set.c: Likewise.
11834 * lib/unistr/u32-startswith.c: Likewise.
11835 * lib/unistr/u32-stpcpy.c: Likewise.
11836 * lib/unistr/u32-stpncpy.c: Likewise.
11837 * lib/unistr/u32-strcat.c: Likewise.
11838 * lib/unistr/u32-strchr.c: Likewise.
11839 * lib/unistr/u32-strcmp.c: Likewise.
11840 * lib/unistr/u32-strcpy.c: Likewise.
11841 * lib/unistr/u32-strcspn.c: Likewise.
11842 * lib/unistr/u32-strdup.c: Likewise.
11843 * lib/unistr/u32-strlen.c: Likewise.
11844 * lib/unistr/u32-strmblen.c: Likewise.
11845 * lib/unistr/u32-strmbtouc.c: Likewise.
11846 * lib/unistr/u32-strncat.c: Likewise.
11847 * lib/unistr/u32-strncmp.c: Likewise.
11848 * lib/unistr/u32-strncpy.c: Likewise.
11849 * lib/unistr/u32-strnlen.c: Likewise.
11850 * lib/unistr/u32-strpbrk.c: Likewise.
11851 * lib/unistr/u32-strrchr.c: Likewise.
11852 * lib/unistr/u32-strspn.c: Likewise.
11853 * lib/unistr/u32-strstr.c: Likewise.
11854 * lib/unistr/u32-strtok.c: Likewise.
11855 * lib/unistr/u32-to-u16.c: Likewise.
11856 * lib/unistr/u32-to-u8.c: Likewise.
11857 * lib/unistr/u32-uctomb.c: Likewise.
11858 * lib/unistr/u8-check.c: Likewise.
11859 * lib/unistr/u8-chr.c: Likewise.
11860 * lib/unistr/u8-cmp.c: Likewise.
11861 * lib/unistr/u8-cpy-alloc.c: Likewise.
11862 * lib/unistr/u8-cpy.c: Likewise.
11863 * lib/unistr/u8-endswith.c: Likewise.
11864 * lib/unistr/u8-mblen.c: Likewise.
11865 * lib/unistr/u8-mbsnlen.c: Likewise.
11866 * lib/unistr/u8-mbtouc-aux.c: Likewise.
11867 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11868 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11869 * lib/unistr/u8-mbtouc.c: Likewise.
11870 * lib/unistr/u8-mbtoucr.c: Likewise.
11871 * lib/unistr/u8-move.c: Likewise.
11872 * lib/unistr/u8-next.c: Likewise.
11873 * lib/unistr/u8-prev.c: Likewise.
11874 * lib/unistr/u8-set.c: Likewise.
11875 * lib/unistr/u8-startswith.c: Likewise.
11876 * lib/unistr/u8-stpcpy.c: Likewise.
11877 * lib/unistr/u8-stpncpy.c: Likewise.
11878 * lib/unistr/u8-strcat.c: Likewise.
11879 * lib/unistr/u8-strchr.c: Likewise.
11880 * lib/unistr/u8-strcmp.c: Likewise.
11881 * lib/unistr/u8-strcpy.c: Likewise.
11882 * lib/unistr/u8-strcspn.c: Likewise.
11883 * lib/unistr/u8-strdup.c: Likewise.
11884 * lib/unistr/u8-strlen.c: Likewise.
11885 * lib/unistr/u8-strmblen.c: Likewise.
11886 * lib/unistr/u8-strmbtouc.c: Likewise.
11887 * lib/unistr/u8-strncat.c: Likewise.
11888 * lib/unistr/u8-strncmp.c: Likewise.
11889 * lib/unistr/u8-strncpy.c: Likewise.
11890 * lib/unistr/u8-strnlen.c: Likewise.
11891 * lib/unistr/u8-strpbrk.c: Likewise.
11892 * lib/unistr/u8-strrchr.c: Likewise.
11893 * lib/unistr/u8-strspn.c: Likewise.
11894 * lib/unistr/u8-strstr.c: Likewise.
11895 * lib/unistr/u8-strtok.c: Likewise.
11896 * lib/unistr/u8-to-u16.c: Likewise.
11897 * lib/unistr/u8-to-u32.c: Likewise.
11898 * lib/unistr/u8-uctomb-aux.c: Likewise.
11899 * lib/unistr/u8-uctomb.c: Likewise.
11900 * lib/unitypes.h: Likewise.
11901 * lib/uniwidth.h: Likewise.
11902 * lib/uniwidth/cjk.h: Likewise.
11903 * lib/uniwidth/u16-strwidth.c: Likewise.
11904 * lib/uniwidth/u16-width.c: Likewise.
11905 * lib/uniwidth/u32-strwidth.c: Likewise.
11906 * lib/uniwidth/u32-width.c: Likewise.
11907 * lib/uniwidth/u8-strwidth.c: Likewise.
11908 * lib/uniwidth/u8-width.c: Likewise.
11909 * lib/uniwidth/width.c: Likewise.
11911 2007-10-07 Bruno Haible <bruno@clisp.org>
11913 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11914 The file is still under LGPL (see modules/inttypes).
11916 2007-10-06 Bruno Haible <bruno@clisp.org>
11918 * modules/trunc (Dependencies): Add 'extensions'.
11919 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11920 Reported by Ben Pfaff <blp@gnu.org>.
11922 2007-10-06 Bruno Haible <bruno@clisp.org>
11924 * modules/freopen-tests: New file.
11925 * tests/test-freopen.c: New file.
11927 * modules/fopen-tests: New file.
11928 * tests/test-fopen.c: New file.
11930 * modules/fopen: New file.
11931 * lib/fopen.c: New file.
11932 * m4/fopen.m4: New file.
11933 * modules/freopen: New file.
11934 * lib/freopen.c: New file.
11935 * m4/freopen.m4: New file.
11936 * lib/stdio.in.h (fopen, freopen): New declarations.
11937 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11938 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11939 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11940 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11941 * doc/functions/fopen.texi: Mention the 'fopen' module.
11942 * doc/functions/freopen.texi: Mention the 'freopen' module.
11944 2007-10-06 Bruno Haible <bruno@clisp.org>
11946 * modules/open-tests: New file.
11947 * tests/test-open.c: New file.
11949 * modules/open: New file.
11950 * lib/open.c: New file.
11951 * m4/open.m4: New file.
11952 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11954 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11955 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11957 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11958 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11960 * doc/functions/open.texi: Mention the 'open' module.
11962 2007-10-04 Bruno Haible <bruno@clisp.org>
11964 * modules/ceill-tests: New file.
11965 * tests/test-ceill.c: New file.
11967 * modules/ceill: New file.
11968 * lib/ceill.c: Replace entire file.
11969 * m4/ceill.m4: New file.
11970 * lib/math.in.h (ceill): Replace declaration.
11971 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11972 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11973 * doc/functions/ceill.texi: Mention the 'ceill' module.
11974 * modules/mathl (Files): Remove lib/ceill.c.
11975 (Depends-on): Add ceill.
11977 2007-10-04 Bruno Haible <bruno@clisp.org>
11979 * modules/ceilf-tests: New file.
11980 * tests/test-ceilf.c: New file.
11982 * modules/ceilf: New file.
11983 * lib/ceil.c: New file.
11984 * lib/ceilf.c: New file.
11985 * m4/ceilf.m4: New file.
11986 * lib/math.in.h (ceilf): New declaration.
11987 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11989 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11991 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11993 2007-10-04 Bruno Haible <bruno@clisp.org>
11995 * modules/floorl-tests: New file.
11996 * tests/test-floorl.c: New file.
11998 * modules/floorl: New file.
11999 * lib/floorl.c: Replace entire file.
12000 * m4/floorl.m4: New file.
12001 * lib/math.in.h (floorl): Replace declaration.
12002 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12003 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12004 * doc/functions/floorl.texi: Mention the 'floorl' module.
12005 * modules/mathl (Files): Remove lib/floorl.c.
12006 (Depends-on): Add floorl.
12008 2007-10-04 Bruno Haible <bruno@clisp.org>
12010 * modules/floorf-tests: New file.
12011 * tests/test-floorf.c: New file.
12013 * modules/floorf: New file.
12014 * lib/floor.c: New file.
12015 * lib/floorf.c: New file.
12016 * m4/floorf.m4: New file.
12017 * lib/math.in.h (floorf): New declaration.
12018 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12020 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12022 * doc/functions/floorf.texi: Mention the 'floorf' module.
12024 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
12025 Bruno Haible <bruno@clisp.org>
12027 Advertise for the Git server instead of the CVS server.
12028 * doc/gnulib-intro.texi (Steady Development): Mention the Git
12029 repository instead of the CVS one.
12030 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12031 about all VCS systems generically.
12032 * doc/gnulib.texi (Introduction): Capitalize `Git'.
12034 2007-10-04 Bruno Haible <bruno@clisp.org>
12036 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12038 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12040 2007-10-04 Bruno Haible <bruno@clisp.org>
12042 * modules/truncl-tests: New file.
12043 * tests/test-truncl.c: New file.
12045 * modules/truncl: New file.
12046 * lib/truncl.c: New file.
12047 * m4/truncl.m4: New file.
12048 * lib/math.in.h (truncl): New declaration.
12049 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12051 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12053 * doc/functions/truncl.texi: Mention the 'truncl' module.
12055 2007-10-04 Bruno Haible <bruno@clisp.org>
12057 * modules/truncf-tests: New file.
12058 * tests/test-truncf.c: New file.
12060 * modules/truncf: New file.
12061 * lib/trunc.c: Make paramerizable through USE_* macros.
12062 * lib/truncf.c: New file.
12063 * m4/truncf.m4: New file.
12064 * lib/math.in.h (truncf): New declaration.
12065 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12067 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12069 * doc/functions/truncf.texi: Mention the 'truncf' module.
12071 2007-10-03 Bruno Haible <bruno@clisp.org>
12073 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12074 augmentation also for tests modules.
12075 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12076 * modules/atexit-tests (Makefile.am): Likewise.
12077 * modules/binary-io-tests (Makefile.am): Likewise.
12078 * modules/c-strcase-tests (Makefile.am): Likewise.
12079 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12080 * modules/canonicalize-tests (Makefile.am): Likewise.
12081 * modules/closein-tests (Makefile.am): Likewise.
12082 * modules/fprintf-posix-tests (Makefile.am): Likewise.
12083 * modules/freadahead-tests (Makefile.am): Likewise.
12084 * modules/fseek-tests (Makefile.am): Likewise.
12085 * modules/fseeko-tests (Makefile.am): Likewise.
12086 * modules/ftell-tests (Makefile.am): Likewise.
12087 * modules/ftello-tests (Makefile.am): Likewise.
12088 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12089 * modules/isnanl-tests (Makefile.am): Likewise.
12090 * modules/lseek-tests (Makefile.am): Likewise.
12091 * modules/mbscasecmp-tests (Makefile.am): Likewise.
12092 * modules/mbscasestr-tests (Makefile.am): Likewise.
12093 * modules/mbschr-tests (Makefile.am): Likewise.
12094 * modules/mbscspn-tests (Makefile.am): Likewise.
12095 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12096 * modules/mbspbrk-tests (Makefile.am): Likewise.
12097 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12098 * modules/mbsrchr-tests (Makefile.am): Likewise.
12099 * modules/mbsspn-tests (Makefile.am): Likewise.
12100 * modules/mbsstr-tests (Makefile.am): Likewise.
12101 * modules/printf-posix-tests (Makefile.am): Likewise.
12102 * modules/snprintf-posix-tests (Makefile.am): Likewise.
12103 * modules/sprintf-posix-tests (Makefile.am): Likewise.
12104 * modules/tsearch-tests (Makefile.am): Likewise.
12105 * modules/uniname/uniname-tests (Makefile.am): Likewise.
12106 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12107 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12108 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12109 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12110 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12111 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12112 * modules/vprintf-posix-tests (Makefile.am): Likewise.
12113 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12114 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12115 * modules/xstrtoimax-tests (Makefile.am): Likewise.
12116 * modules/xstrtol-tests (Makefile.am): Likewise.
12117 * modules/xstrtoumax-tests (Makefile.am): Likewise.
12118 * modules/yesno-tests (Makefile.am): Likewise.
12120 2007-10-03 Bruno Haible <bruno@clisp.org>
12122 * modules/trunc-tests: New file.
12123 * tests/test-trunc.c: New file.
12125 * modules/trunc: New file.
12126 * lib/trunc.c: New file.
12127 * m4/trunc.m4: New file.
12128 * lib/math.in.h (trunc): New declaration.
12129 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12131 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12133 * doc/functions/trunc.texi: Mention the 'trunc' module.
12135 2007-10-03 Bruno Haible <bruno@clisp.org>
12137 * tests/test-fpending.c: New file, mostly copied
12138 from coreutils/lib/t-fpending.c.
12139 * modules/fpending-tests: New file.
12141 2007-10-03 Bruno Haible <bruno@clisp.org>
12143 Port the stdio extensions to QNX (untested).
12144 * lib/fseterr.c (fseterr): Add support for QNX.
12145 * lib/fbufmode.c (fbufmode): Likewise.
12146 * lib/freadable.c (freadable): Likewise.
12147 * lib/fwritable.c (fwritable): Likewise.
12148 * lib/freading.c (freading): Likewise.
12149 * lib/fwriting.c (fwriting): Likewise.
12150 * lib/freadahead.c (freadahed): Likewise.
12151 * lib/fpurge.c (fpurge): Likewise.
12152 * lib/fseeko.c (rpl_fseeko): Likewise.
12154 2007-10-03 Bruno Haible <bruno@clisp.org>
12155 Jim Meyering <jim@meyering.net>
12156 Eric Blake <ebb9@byu.net>
12158 * doc/relocatable.texi: Use @command instead of @program.
12160 2007-10-02 Jim Meyering <jim@meyering.net>
12162 Perform one more "_.h" -> ".in.h" substitution.
12163 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12164 instead of unistd_.h here, too.
12166 2007-10-01 Bruno Haible <bruno@clisp.org>
12168 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12169 Needed for the alloca-opt module.
12171 2007-09-30 Bruno Haible <bruno@clisp.org>
12173 * lib/alloca.in.h: Renamed from lib/alloca_.h.
12174 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12176 * lib/argz.in.h: Renamed from lib/argz_.h.
12177 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12178 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12179 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12181 * lib/dirent.in.h: Renamed from lib/dirent_.h.
12182 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12184 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12185 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12187 * lib/float.in.h: Renamed from lib/float_.h.
12188 * modules/float (Files, Makefile.am): Use float.in.h instead of
12190 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12191 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12193 * lib/getopt.in.h: Renamed from lib/getopt_.h.
12194 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12196 * lib/glob.in.h: Renamed from lib/glob_.h.
12197 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12198 * lib/iconv.in.h: Renamed from lib/iconv_.h.
12199 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12201 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12202 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12204 * lib/locale.in.h: Renamed from lib/locale_.h.
12205 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12207 * lib/math.in.h: Renamed from lib/math_.h.
12208 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12209 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12210 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12211 of netinet_in_.h. Add dependency.
12212 * lib/poll.in.h: Renamed from lib/poll_.h.
12213 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12214 * lib/search.in.h: Renamed from lib/search_.h.
12215 * modules/search (Files, Makefile.am): Use search.in.h instead of
12217 * lib/signal.in.h: Renamed from lib/signal_.h.
12218 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12220 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12221 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12223 * lib/stdint.in.h: Renamed from lib/stdint_.h.
12224 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12226 * lib/stdio.in.h: Renamed from lib/stdio_.h.
12227 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12229 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12230 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12232 * lib/string.in.h: Renamed from lib/string_.h.
12233 * modules/string (Files, Makefile.am): Use string.in.h instead of
12235 * doc/gnulib-tool.texi (Initial import): Update.
12236 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12237 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12238 of sys_select_.h. Add dependency.
12239 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12240 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12242 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12243 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12245 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12246 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12248 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12249 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12251 * lib/time.in.h: Renamed from lib/time_.h.
12252 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12253 * lib/unistd.in.h: Renamed from lib/unistd_.h.
12254 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12256 * lib/wchar.in.h: Renamed from lib/wchar_.h.
12257 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12259 * lib/wctype.in.h: Renamed from lib/wctype_.h.
12260 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12262 * build-aux/bootstrap (slurp): Update.
12263 * lib/.cppi-disable: Update.
12265 2007-09-30 Bruno Haible <bruno@clisp.org>
12267 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12270 2007-09-30 Bruno Haible <bruno@clisp.org>
12272 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12274 2007-09-29 Bruno Haible <bruno@clisp.org>
12276 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12278 2007-09-29 Bruno Haible <bruno@clisp.org>
12280 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12281 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12282 * build-aux/install-reloc: Compile also areadlink.c.
12283 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12285 2007-09-29 Bruno Haible <bruno@clisp.org>
12287 * gnulib-tool (func_emit_initmacro_done): Indentation.
12289 2007-09-29 Bruno Haible <bruno@clisp.org>
12291 * README: Add CVS checkout update instructions.
12292 Info from Bob Proulx <bob@proulx.com>.
12294 2007-09-28 Eric Blake <ebb9@byu.net>
12296 Provide move-if-change.
12297 * build-aux/move-if-change: New file, based on best practice
12298 rather than any canonical upstream location.
12300 2007-09-28 Jim Meyering <jim@meyering.net>
12302 Fix canonicalize loop-detection corner case.
12303 Do not attempt to stat the symlink values stored via seen_triple.
12304 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12305 on linux-2.6.18, (but not 2.6.22).
12306 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12307 triple_compare. The former compares dev,ino,filename, while the latter
12308 would actually stat dirname(filename) when dev and ino were equal.
12309 * lib/hash-triple.c: Install <string.h>.
12311 (triple_compare_ino_str): New function.
12312 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12314 2007-09-28 Eric Blake <ebb9@byu.net>
12316 Enforce that AC_REPLACE_FUNCS files exist.
12317 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12318 override check for typos.
12320 Fix test-closein on Solaris 10.
12321 * tests/test-closein.c (main): Don't assume stdin can be inherited
12322 closed on all systems.
12323 * tests/test-closein.sh: Likewise.
12324 Reported by Piotr Tarnowski.
12326 2007-09-28 Jim Meyering <jim@meyering.net>
12328 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12330 2007-09-27 Jim Meyering <jim@meyering.net>
12332 canonicalize: Avoid a false-positive cycle failure.
12333 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12334 Sort. Remove cycle-check.
12335 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12337 (seen_triple): New function.
12338 (canonicalize_filename_mode): Use it instead of cycle-check.
12339 * tests/test-canonicalize.c: Add a test for this bug.
12340 * tests/test-canonicalize.sh: Set up and run the test.
12342 New module, file-set, from coreutils.
12343 * modules/file-set: Define it.
12344 * lib/file-set.c, lib/file-set.h: Implement.
12346 New module, hash-triple, from coreutils.
12347 * modules/hash-triple: Define it.
12348 * lib/hash-triple.c, lib/hash-triple.h: Implement.
12350 2007-09-25 Eric Blake <ebb9@byu.net>
12352 Fix strerror on Interix.
12353 * lib/string_.h (strerror): Declare replacement.
12354 * doc/functions/strerror.texi (strerror): Document the Interix
12356 * modules/string (Makefile.am): Support new hooks.
12357 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12358 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12359 gl_FUNC_STRERROR_SEPARATE.
12360 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12361 * lib/strerror.c (rpl_strerror): Provide replacement.
12362 * modules/strerror (Depends-on): Add string.
12363 (configure.ac): Detect use of module.
12364 * tests/test-strerror.c: New file.
12365 * modules/strerror-tests: New test module.
12366 * modules/argp (Depends-on): Add strerror.
12367 * modules/error (Depends-on): Likewise.
12368 Reported by Martin Koeppe.
12370 2007-09-24 Bruno Haible <bruno@clisp.org>
12372 * README: Update git instructions.
12374 2007-09-24 Eric Blake <ebb9@byu.net>
12376 Revert fpending breakage from 2007-09-08.
12377 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12380 2007-09-24 Jim Meyering <jim@meyering.net>
12382 filenamecat.c: Add a test.
12383 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12384 showing how the function works when DIR is the empty string.
12386 2007-09-21 Simon Josefsson <simon@josefsson.org>
12388 * tests/test-canonicalize.sh: Turn on executable bit.
12390 2007-09-19 Eric Blake <ebb9@byu.net>
12392 * README: Update CVS instructions.
12394 2007-09-18 Bruno Haible <bruno@clisp.org>
12396 * modules/areadlink: New file.
12397 * lib/areadlink.h (areadlink): New declaration.
12398 * lib/areadlink.c: New file, based on lib/xreadlink.c.
12400 2007-09-17 Jim Meyering <jim@meyering.net>
12402 * lib/savewd.c (ESTALE) [!defined]: Define.
12403 Reported to be required on Interix by Martin Koeppe.
12405 2007-09-17 Bruno Haible <bruno@clisp.org>
12407 * gnulib-tool (func_version): Use $version.
12409 2007-09-16 Bruno Haible <bruno@clisp.org>
12411 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12412 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12413 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12414 Reported by Greg Schafer <gschafer@zip.com.au>.
12416 2007-09-15 Bruno Haible <bruno@clisp.org>
12418 * gnulib-tool (sed): Try a little harder to make bash understand the
12420 Reported by Bruce Korb <bruce.korb@gmail.com>.
12422 2007-09-13 Eric Blake <ebb9@byu.net>
12424 * ChangeLog: Remove conflict markers.
12426 2007-09-13 Simon Josefsson <simon@josefsson.org>
12428 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12429 Reported by Bruno Haible <bruno@clisp.org>.
12431 2007-09-12 Bruno Haible <bruno@clisp.org>
12433 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12434 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12437 2007-09-12 Eric Blake <ebb9@byu.net>
12439 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12440 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12441 Autoconf definition.
12442 * modules/euidaccess (Depends-on): Add extensions, for
12443 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12444 * modules/fnmatch (Depends-on): Likewise.
12445 * modules/getaddrinfo (Depends-on): Likewise.
12446 * modules/getdelim (Depends-on): Likewise.
12447 * modules/getline (Depends-on): Likewise.
12448 * modules/getsubopt (Depends-on): Likewise.
12449 * modules/gettext (Depends-on): Likewise.
12450 * modules/group-member (Depends-on): Likewise.
12451 * modules/mbchar (Depends-on): Likewise.
12452 * modules/memmem (Depends-on): Likewise.
12453 * modules/mempcpy (Depends-on): Likewise.
12454 * modules/memrchr (Depends-on): Likewise.
12455 * modules/pagealign_alloc (Depends-on): Likewise.
12456 * modules/readutmp (Depends-on): Likewise.
12457 * modules/stpcpy (Depends-on): Likewise.
12458 * modules/stpncpy (Depends-on): Likewise.
12459 * modules/strchrnul (Depends-on): Likewise.
12460 * modules/strndup (Depends-on): Likewise.
12461 * modules/strsep (Depends-on): Likewise.
12462 * modules/strverscmp (Depends-on): Likewise.
12463 * modules/vasprintf (Depends-on): Likewise.
12464 * modules/wcwidth (Depends-on): Likewise.
12465 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12466 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12467 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12468 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12469 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12470 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12471 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12472 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12473 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12474 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12475 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12476 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12477 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12478 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12479 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12480 * m4/readutmp.m4 (gl_READUTMP): Likewise.
12481 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12482 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12483 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12484 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12485 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12486 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12487 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12488 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12489 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12490 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12491 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12492 so that lock.m4 can be used in gettext without extensions module.
12494 2007-09-11 Bruno Haible <bruno@clisp.org>
12496 * m4/isc-posix.m4: Remove file.
12497 Suggested by Eric Blake.
12499 2007-09-11 Eric Blake <ebb9@byu.net>
12501 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12503 2007-09-10 Bruno Haible <bruno@clisp.org>
12505 * posix-modules: Fix typo in error message.
12506 Reported by Matt <mkraai@beckman.com>.
12508 2007-09-09 Bruno Haible <bruno@clisp.org>
12510 * doc/functions/getdelim.texi: Update list of platforms lacking the
12512 * doc/functions/getline.texi: Likewise.
12514 2007-09-09 Jim Meyering <jim@meyering.net>
12516 * lib/hash.c (hash_initialize): Detect calloc failure.
12517 Reported by Bruno Haible.
12519 2007-09-09 Bruno Haible <bruno@clisp.org>
12521 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12522 malloc or realloc fails.
12524 2007-09-09 Bruno Haible <bruno@clisp.org>
12526 * modules/getcwd (Depends-on): Add malloc-posix.
12527 * modules/glob (Depends-on): Likewise.
12528 * modules/putenv (Depends-on): Likewise.
12529 * modules/strdup (Depends-on): Likewise.
12530 * modules/getdelim (Depends-on): Add realloc-posix.
12531 * modules/read-file (Depends-on): Likewise.
12533 2007-09-09 Bruno Haible <bruno@clisp.org>
12535 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12536 (gl_FUNC_MALLOC_POSIX): Require it.
12537 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12538 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12539 * modules/realloc (Files): Add m4/malloc.m4.
12540 * modules/calloc (Files): Likewise.
12542 2007-09-09 Bruno Haible <bruno@clisp.org>
12544 * modules/malloc-posix: New file.
12545 * modules/malloc (Depends-on): Add malloc-posix.
12546 * lib/malloc.c: Include errno.h.
12547 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12548 and a POSIX-compatible malloc into a single function. Set ENOMEM
12549 when returning NULL.
12550 * m4/malloc.m4: New file.
12551 * doc/functions/malloc.texi: Mention the malloc-posix module.
12552 * lib/stdlib_.h (malloc): New declaration.
12553 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12554 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12555 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12556 and HAVE_MALLOC_POSIX.
12558 2007-09-09 Bruno Haible <bruno@clisp.org>
12560 * modules/realloc-posix: New file.
12561 * modules/realloc (Depends-on): Add realloc-posix.
12562 * lib/realloc.c: Include errno.h.
12563 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12564 and a POSIX-compatible realloc into a single function. Set ENOMEM
12565 when returning NULL.
12566 * m4/realloc.m4: New file.
12567 * doc/functions/realloc.texi: Mention the realloc-posix module.
12568 * lib/stdlib_.h (realloc): New declaration.
12569 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12570 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12571 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12572 and HAVE_REALLOC_POSIX.
12574 2007-09-09 Bruno Haible <bruno@clisp.org>
12576 * modules/calloc-posix: New file.
12577 * modules/calloc (Depends-on): Add calloc-posix.
12578 * lib/calloc.c: Include errno.h.
12579 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12580 and a POSIX-compatible calloc into a single function. Set ENOMEM
12581 when returning NULL.
12582 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12583 * doc/functions/calloc.texi: Mention the calloc-posix module.
12584 * lib/stdlib_.h (calloc): New declaration.
12585 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12586 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12587 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12588 and HAVE_CALLOC_POSIX.
12590 2007-09-09 Bruno Haible <bruno@clisp.org>
12592 Allow for modules to show an arbitrary notice.
12593 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12594 * gnulib-tool: New option --extract-notice.
12595 (func_usage): Document it.
12596 (sed_extract_prog): Update.
12597 (func_get_notice): New function.
12598 (func_modules_notice): New function.
12599 (func_import, func_create_testdir): Invoke it.
12600 Suggested by Jim Meyering.
12602 2007-09-09 Bruno Haible <bruno@clisp.org>
12604 * gnulib-tool: New options --verbose, --quiet.
12605 (func_usage): Document them.
12606 (verbose): New variable.
12607 (func_execute_command): New function.
12608 (func_import): Don't show the module list and the file list if
12610 (func_create_testdir): Likewise. Use func_execute_command.
12611 (func_create_megatestdir): Use func_execute_command.
12613 2007-09-08 Bruno Haible <bruno@clisp.org>
12615 * gnulib-tool (func_import): Prefer rsync over wget when available,
12616 for fetching the PO files.
12618 2007-09-08 Bruno Haible <bruno@clisp.org>
12620 * posix-modules: New file. Portions copied from gnulib-tool.
12621 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12623 2007-09-08 Jim Meyering <jim@meyering.net>
12625 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12626 * lib/fpending.h: Rename from __fpending.h.
12627 * lib/fpending.c: Rename from __fpending.c.
12628 Include "fpending.h", not "__fpending.h".
12629 * lib/__fpending.h, lib/__fpending.c: Remove files.
12630 * modules/fpending (Files): Reflect new file names.
12631 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12633 2007-09-08 Bruno Haible <bruno@clisp.org>
12635 * m4/inttypes-h.m4: Remove stub file.
12637 2007-09-07 Simon Josefsson <simon@josefsson.org>
12639 * doc/headers/stdint.texi: Discuss #include_next issue.
12641 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
12643 * build-aux/bootstrap: Remove obsolete comment about wget --help.
12645 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12647 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12650 2007-09-03 Jim Meyering <jim@meyering.net>
12652 New module: git-version-gen.
12653 * modules/git-version-gen: New file.
12655 Import changes from coreutils for bootstrap script.
12657 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12659 bootstrap: uses rsync to download the .po files
12660 * build-aux/bootstrap (po_download_command_format): New global.
12661 (download_po_files): Use rsync.
12662 (update_po_files): Don't remove .po files after download,
12663 so future rsync runs can take advantage of the copies.
12665 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12667 Solve the unnecessary-.po-file-regeneration problem once and for all.
12668 * build-aux/bootstrap (download_po_files): New function, renamed from
12669 get_translations. Now, downloads, but doesn't update LINGUAS.
12670 (update_po_files): New function.
12672 bootstrap: Ignore more.
12673 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12674 uniwidth to e.g., lib/.gitignore.
12675 (slurp): Handle the sys_stat_.h -> sys mapping, too.
12677 * build-aux/bootstrap: New setting: vc_ignore.
12678 (insert_sorted_if_absent): Create $file if absent.
12679 Adapt to new, possibly empty, list: $vc_ignore.
12681 bootstrap: generate more ignorable names
12682 * build-aux/bootstrap (slurp): When generating ignorable names,
12683 also map .sin to .sed, .gperf to .c, and .y to .c.
12685 2007-09-03 Jim Meyering <jim@meyering.net>
12687 * build-aux/git-version-gen: New file, from coreutils. For details, see
12688 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12690 2007-09-02 Bruno Haible <bruno@clisp.org>
12692 Fix mis-recognition of 'mcs' on QNX 6.
12693 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12694 output contains the string "Mono".
12695 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12696 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12698 2007-09-01 Bruno Haible <bruno@clisp.org>
12700 Fix collision between uniwidth/* and linebreak modules.
12701 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12702 u32_width): Remove declarations.
12703 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12704 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12705 streq3, streq2, streq1, streq0): Remove functions.
12706 (STREQ): Remove macro.
12707 (is_cjk_encoding): Remove function.
12708 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12709 (uc_width, u8_width, u16_width, u32_width): Remove functions.
12710 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12711 * NEWS: Document the change.
12713 2007-09-01 Bruno Haible <bruno@clisp.org>
12715 * lib/streq.h: Add double-inclusion guard.
12717 2007-09-01 Karl Berry <karl@gnu.org>
12719 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12721 2007-08-28 Jim Meyering <jim@meyering.net>
12723 Rename mreadlink_with_size to areadlink_with_size.
12724 * NEWS: Document the change.
12725 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12726 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12727 * lib/mreadlink.h: Rename this to...
12728 * lib/areadlink.h: ...this.
12729 * modules/mreadlink-with-size: Rename this to...
12730 * modules/areadlink-with-size: ...this.
12731 * lib/canonicalize.c: Reflect the renaming.
12732 * modules/canonicalize: Likewise.
12734 2007-08-26 Bruno Haible <bruno@clisp.org>
12736 * gnulib-tool (func_import): When deciding which files to remove,
12737 consider also dangling symbolic links.
12738 Reported by Eric Blake.
12740 2007-08-26 Bruno Haible <bruno@clisp.org>
12742 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12744 2007-08-23 Simon Josefsson <simon@josefsson.org>
12746 * lib/readline.c: Don't include getline.h, the prototype is now
12749 2007-08-23 Jim Meyering <jim@meyering.net>
12752 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12753 around the funlockfile call, since funlockfile never sets errno.
12754 Don't set errno upon failed realloc.
12756 2007-08-22 Eric Blake <ebb9@byu.net>
12759 * lib/getdelim.c (getdelim): Revert regression that required *n to
12760 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
12761 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12762 getdelim, rather than whether implementation is missing.
12763 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12764 * lib/stdio_.h (getline): Also declare if replacement is
12766 * doc/functions/getdelim.texi: New file.
12767 * doc/functions/getline.texi: Likewise.
12768 * doc/gnulib.texi (Function Substitutes): Add new files.
12769 Reported by Bruno Haible.
12771 2007-08-22 Ludovic Courtès <ludo@gnu.org>
12773 * users.txt: Add Guile.
12775 2007-08-22 Eric Blake <ebb9@byu.net>
12777 * tests/test-getdelim.c (main): Use remove, not unlink.
12778 * tests/test-getline.c (main): Likewise.
12780 Move getline and getdelim into stdio.h, per POSIX 200x.
12781 * modules/getline (Files): Remove getline.h.
12782 (Depends-on): Add stdio.
12783 (configure.ac): Add module indicator.
12784 * modules/getdelim (Files): Remove getdelim.h.
12785 (Depends-on): Add stdio.
12786 (configure.ac): Add module indicator.
12787 * modules/stdio (Makefile.am): Work with new indicators.
12788 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12789 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12790 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12791 * lib/getdelim.h: Delete.
12792 * lib/getline.h: Delete.
12793 * lib/stdio_.h (getdelim, getline): Declare.
12794 * modules/getdelim-tests: New module.
12795 * modules/getline-tests: Likewise.
12796 * tests/test-getdelim.c: New file.
12797 * tests/test-getline.c: Likewise.
12798 * NEWS: Document the change.
12799 * lib/getline.c: Update choice of header.
12800 * lib/csharpcomp.c: Likewise.
12801 * lib/getpass.c: Likewise.
12802 * lib/javacomp.c: Likewise.
12803 * lib/javaversion.c: Likewise.
12804 * lib/yesno.c: Likewise.
12805 * lib/getdelim.c: Likewise.
12806 (getdelim): Set errno on failure, and avoid memory leak.
12808 2007-08-19 Bruno Haible <bruno@clisp.org>
12810 * modules/closein (Depends-on): Add freadahead.
12811 * lib/closein.c: Include freadahead.h.
12812 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12815 2007-08-19 Bruno Haible <bruno@clisp.org>
12817 * modules/freadahead-tests: New file.
12818 * tests/test-freadahead.sh: New file.
12819 * tests/test-freadahead.c: New file.
12821 * modules/freadahead: New file.
12822 * lib/freadahead.h: New file.
12823 * lib/freadahead.c: New file.
12824 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12825 fbufmode, fpurge, freadable, fwritable.
12827 2007-08-19 Eric Blake <ebb9@byu.net>
12829 Test yesno in combination with closein.
12830 * lib/yesno.c (yesno): Document use of stdin.
12831 * modules/yesno-tests (Files): New module.
12832 * tests/test-yesno.c (main): New file.
12833 * tests/test-yesno.sh: Likewise.
12835 2007-08-19 Bruno Haible <bruno@clisp.org>
12837 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12838 * lib/fseeko.c (rpl_fseeko): Likewise.
12839 * lib/fseterr.c (fseterr): Likewise.
12841 2007-08-19 Bruno Haible <bruno@clisp.org>
12843 * tests/test-lseek.c (main): Disable a test for BeOS.
12844 * doc/functions/lseek.texi: Document the BeOS bug.
12846 2007-08-19 Bruno Haible <bruno@clisp.org>
12847 Eric Blake <ebb9@byu.net>
12849 * lib/lseek.c: Include <sys/stat.h>.
12850 (rpl_lseek): Add workaround code also for Unix platforms.
12852 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12853 * doc/functions/lseek.texi: Document BeOS definiency.
12855 2007-08-18 Bruno Haible <bruno@clisp.org>
12857 * modules/fstrcmp-tests: New file.
12858 * tests/test-fstrcmp.c: New file.
12860 2007-08-18 Bruno Haible <bruno@clisp.org>
12862 * modules/fstrcmp: New file, from GNU gettext with modifications.
12863 * lib/fstrcmp.h: New file, from GNU gettext.
12864 * lib/fstrcmp.c: New file, from GNU gettext.
12865 * MODULES.html.sh (String handling): Add fstrcmp.
12867 2007-08-18 Bruno Haible <bruno@clisp.org>
12869 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12871 (diag, compareseq): Remove const from the ctxt argument.
12872 (USE_HEURISTIC): Undefine at the end.
12874 2007-08-18 Jim Meyering <jim@meyering.net>
12876 New file: lib/idcache.h
12877 * NEWS: Mention the addition.
12878 * modules/idcache (Files): Add lib/idcache.h
12879 * lib/idcache.c: Include "idcache.h".
12880 Don't include <sys/types.h>.
12881 Add a FIXME comment.
12882 Move file-scoped "static" declarations to the top.
12883 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
12885 2007-08-17 Bruno Haible <bruno@clisp.org>
12886 and Paul Eggert <eggert@cs.ucla.edu>
12888 * MODULES.html.sh: Add diffseq.
12889 * modules/diffseq: New file.
12890 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12891 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12893 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
12895 Import changes from coreutils for bootstrap script.
12897 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
12899 * build-aux/bootstrap (slurp): Work even in environments where
12900 "ls" defaults to "ls -A". Put in a FIXME, though, since the
12901 current code does not slurp files whose names start with ".", and
12902 this looks like it might be a troublesome area.
12904 2007-07-11 Jim Meyering <jim@meyering.net>
12906 If there's a GPL vN copyright comment, require that N == 3.
12908 2007-07-08 Jim Meyering <jim@meyering.net>
12910 Run the coreutils-specific code only if tests/Makefile.am.in exists.
12911 * build-aux/bootstrap (mam_template): Move definition out of loop.
12913 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12915 * build-aux/bootstrap (symlink_to_dir): Rename function from
12916 symlink_to_gnulib. Add a directory parameter. Update all
12918 (cp_mark_as_generated): Also check for -- and link to -- files in
12921 2007-07-08 Jim Meyering <jim@meyering.net>
12923 Adapt to deeper hierarchy in gnulib.
12924 * build-aux/bootstrap (symlink_to_dir): If the destination
12925 directory doesn't exist, create it. This is required at least for
12926 "lib/uniwidth/cjk.h".
12928 2007-05-15 Jim Meyering <jim@meyering.net>
12930 * build-aux/bootstrap: Now that generated Makefile.am files
12931 are no longer under version control, they must be created at
12934 2007-08-14 Ben Pfaff <blp@gnu.org>
12936 * lib/count-one-bits.h: Add comments. From Bruno Haible.
12938 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
12940 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12941 given the changes below.
12942 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
12943 even on hosts that have padding bits beyond the supported 64.
12945 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
12947 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12948 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12949 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
12951 (xstrtol_error): Remove.
12952 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12953 but with a different signature.
12954 (ATTRIBUTE_NORETURN, __attribute__): New macros.
12955 * lib/xstrtol-error.c: Include exitfail.h.
12956 (xstrtol_fatal): New function, with a different signature from the
12957 old xstrtol_error, so that the caller need not worry about passing
12958 in an exit status, or about storage management of the option argument.
12959 (xstrtol_error): Now a static function. Redo signature to
12960 implement xstrtol_fatal. Output the correct number of hyphens in
12961 front of the option so that the caller need not worry about
12962 storage management.
12964 (_): Remove; not used now.
12965 * modules/xstrtol: Depend on getopt.
12966 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12967 of old STRTOL_FATAL_ERROR macro.
12968 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12970 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12971 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12973 2007-08-08 Eric Blake <ebb9@byu.net>
12975 * lib/xstrtol-error.c: Add missing include.
12977 Move xstrtol messages into gnulib domain, when --pobase is used.
12978 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12979 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12980 * modules/xstrtol (Files): Distribute new file.
12981 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12982 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12983 * tests/test-xstrtol.c: ...into new file.
12984 * tests/test-xstrtoul.c: Also test xstrtoul.
12985 * tests/test-xstrtoimax.c: Also test xstrtoimax.
12986 * tests/test-xstrtoumax.c: Also test xstrtoumax.
12987 * tests/test-xstrtol.sh: Drive the tests.
12988 * tests/test-xstrtoimax.sh: Likewise.
12989 * tests/test-xstrtoumax.sh: Likewise.
12990 * modules/xstrtol-tests: New module.
12991 * modules/xstrtoimax-tests: Likewise.
12992 * modules/xstrtoumax-tests: Likewise.
12994 2007-08-08 Jim Meyering <jim@meyering.net>
12996 New function: mfile_name_concat.
12997 * lib/filenamecat.c (mfile_name_concat): New function, just like
12998 file_name_concat, but return NULL upon failure rather than exiting
13000 * lib/filenamecat.h: Declare it.
13002 2007-08-07 Bruno Haible <bruno@clisp.org>
13004 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13005 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13007 Reported by Eric Blake.
13009 2007-08-07 Simon Josefsson <simon@josefsson.org>
13011 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13012 * modules/crypto/arcfour (License): Likewise.
13013 * modules/crypto/des-tests (License): Likewise.
13014 * modules/crypto/gc-arctwo-tests (License): Likewise.
13015 * modules/crypto/gc-des-tests (License): Likewise.
13016 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13017 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13018 * modules/crypto/gc-md2-tests (License): Likewise.
13019 * modules/crypto/gc-md4-tests (License): Likewise.
13020 * modules/crypto/gc-md5-tests (License): Likewise.
13021 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13022 * modules/crypto/gc-rijndael-tests (License): Likewise.
13023 * modules/crypto/gc-sha1-tests (License): Likewise.
13024 * modules/crypto/gc-tests (License): Likewise.
13025 * modules/crypto/hmac-md5 (License): Likewise.
13026 * modules/crypto/hmac-sha1 (License): Likewise.
13027 * modules/crypto/md2-tests (License): Likewise.
13028 * modules/crypto/md4-tests (License): Likewise.
13029 * modules/crypto/md5 (License): Likewise.
13030 * modules/crypto/rijndael (License): Likewise.
13031 * modules/crypto/sha1 (License): Likewise.
13032 * modules/memxor (License): Likewise.
13034 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
13035 and Bruno Haible <bruno@clisp.org>
13037 * NEWS: Describe interface changes to human, xstrtol.
13038 * lib/human.h: Include <xstrtol.h>.
13039 (human_options): Return enum strtol_error, not int. Remove
13040 bool arg; take int * instead.
13041 * lib/human.c: Don't include "gettext.h".
13042 (_): Remove; no longer used.
13043 Don't include <xstrtol.h>, since human.h does it.
13044 (human_options): Adjust to abovementioned interface changes.
13045 Do not report error to stderr; that's now the caller's
13047 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13049 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13050 Str, Argument_type_string. All uses changed. Put " argument"
13051 in diagnostics to make them clearer. Change wording of suffix
13052 message for clarity.
13053 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13054 Argument_type_string.
13055 (STRTOL_FATAL_WARN): Remove; no longer used.
13056 * modules/human (Depends-on): Remove gettext-h.
13058 2007-08-06 Simon Josefsson <simon@josefsson.org>
13060 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13062 2007-07-31 Bruno Haible <bruno@clisp.org>
13064 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13065 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13066 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13068 2007-07-31 Bruno Haible <bruno@clisp.org>
13070 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13071 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13073 2007-07-30 Bruno Haible <bruno@clisp.org>
13075 * modules/base64 (License): Use the synonymous term "LGPLv2+".
13076 * modules/c-ctype (License): Likewise.
13077 * modules/c-strcase (License): Likewise.
13078 * modules/check-version (License): Likewise.
13079 * modules/iconv (License): Likewise.
13080 * modules/iconv_open (License): Likewise.
13081 * modules/read-file (License): Likewise.
13082 * modules/striconv (License): Likewise.
13083 * modules/strverscmp (License): Likewise.
13084 * modules/vasprintf (License): Likewise.
13085 * modules/crypto/des (License): Likewise.
13086 * modules/crypto/gc (License): Likewise.
13087 * modules/crypto/gc-arcfour (License): Likewise.
13088 * modules/crypto/gc-arctwo (License): Likewise.
13089 * modules/crypto/gc-des (License): Likewise.
13090 * modules/crypto/gc-hmac-md5 (License): Likewise.
13091 * modules/crypto/gc-hmac-sha1 (License): Likewise.
13092 * modules/crypto/gc-md2 (License): Likewise.
13093 * modules/crypto/gc-md4 (License): Likewise.
13094 * modules/crypto/gc-md5 (License): Likewise.
13095 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13096 * modules/crypto/gc-random (License): Likewise.
13097 * modules/crypto/gc-rijndael (License): Likewise.
13098 * modules/crypto/gc-sha1 (License): Likewise.
13099 * modules/crypto/md2 (License): Likewise.
13100 * modules/crypto/md4 (License): Likewise.
13102 2007-07-30 Jim Meyering <jim@meyering.net>
13104 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13105 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13106 it has valid stat data. This bug would cause du not to count the
13107 sizes of inaccessible directories.
13108 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13109 in <http://bugzilla.redhat.com/250077>.
13111 2007-07-25 Peter O'Gorman <peter@pogma.com>
13112 Bruno Haible <bruno@clisp.org>
13114 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13115 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13116 #include_next, gives a diagnostic about it, but reports no error in
13118 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13120 2007-07-24 Ben Pfaff <blp@gnu.org>
13122 Improve name: "count-one-bits" is better than "popcount".
13123 * MODULES.html.sh: Update name.
13124 * lib/popcount.h: Renamed lib/count-one-bits.h.
13125 (popcount): Renamed count_one_bits.
13126 (popcountl): Renamed count_one_bits_l.
13127 (popcountll): Renamed count_one_bits_ll.
13128 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13129 * modules/popcount: Renamed module/count-one-bits.
13130 * modules/popcount-tests: Renamed module/count-one-bits-tests.
13131 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13133 2007-07-23 Ben Pfaff <blp@gnu.org>
13135 * lib/popcount.h (popcount32): Reduce size of constants, to allow
13136 better code generation, and add U to large constants to avoid
13137 warnings, in non-GCC case.
13138 Suggested by Bruno Haible.
13140 2007-07-23 Ben Pfaff <blp@gnu.org>
13142 * lib/popcount.h: Use verify_true instead of if...abort.
13143 * modules/popcount: Depend on verify module.
13144 Suggested by Jim Meyering.
13146 2007-07-23 Bruno Haible <bruno@clisp.org>
13148 * gnulib-tool (func_import): Create a .cvsignore file also when the
13149 directory is not yet in CVS but the toplevel directory is. When
13150 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13151 Reported by Karl Berry.
13153 2007-07-22 Ben Pfaff <blp@gnu.org>
13155 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13157 Suggested by Eric Blake.
13159 2007-07-22 Ben Pfaff <blp@gnu.org>
13161 New module: popcount.
13162 * MODULES.html.sh: Add popcount.
13163 * modules/popcount: New file.
13164 * modules/popcount-tests: New file.
13165 * tests/test-popcount.c: New file.
13166 * lib/popcount.h: New file.
13167 * m4/popcount.m4: New file.
13169 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
13171 * build-aux/announce-gen: Update to GPLv3.
13173 * build-aux/config.guess: Update from config.
13175 2007-07-21 Bruno Haible <bruno@clisp.org>
13177 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13178 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13180 2007-07-20 Jim Meyering <jim@meyering.net>
13182 * check-module: Diagnose a self-dependency.
13184 2007-07-19 Bruno Haible <bruno@clisp.org>
13186 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13188 Reported by Eric Blake.
13190 2007-07-18 Bruno Haible <bruno@clisp.org>
13192 * gnulib-tool: New options --po-base, --po-domain.
13193 (func_usage): Document them.
13194 (pobase, po_domain): New variables.
13195 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13196 DEFAULT_TEXT_DOMAIN.
13197 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13198 (func_import): Consider pobase and po_domain. Create a po/ directory.
13199 (func_create_testdir): Set pobase and po_domain to empty.
13200 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13201 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13203 2007-07-18 Bruno Haible <bruno@clisp.org>
13205 * gnulib-tool (func_get_automake_snippet): Synthesize also an
13206 EXTRA_DIST augmentation for files in build-aux/.
13208 2007-07-16 Bruno Haible <bruno@clisp.org>
13210 * modules/lseek (License): Use the synonymous term "LGPLv2+".
13211 * modules/getdelim (License): Likewise.
13213 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13215 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13216 * modules/d-type (License): Likewise.
13217 * modules/extensions (License): Likewise.
13218 * modules/fnmatch (License): Likewise.
13219 * modules/fseeko (License): Likewise.
13220 * modules/getaddrinfo (License): Likewise.
13221 * modules/getline (License): Likewise.
13222 * modules/getlogin_r (License): Likewise.
13223 * modules/getpass (License): Likewise.
13224 * modules/gettimeofday (License): Likewise.
13225 * modules/glob (License): Likewise.
13226 * modules/inet_ntop (License): Likewise.
13227 * modules/malloc (License): Likewise.
13228 * modules/malloca (License): Likewise.
13229 * modules/memmem (License): Likewise.
13230 * modules/mempcpy (License): Likewise.
13231 * modules/memset (License): Likewise.
13232 * modules/minmax (License): Likewise.
13233 * modules/mktime (License): Likewise.
13234 * modules/netinet_in (License): Likewise.
13235 * modules/pathmax (License): Likewise.
13236 * modules/poll (License): Likewise.
13237 * modules/regex (License): Likewise.
13238 * modules/snprintf (License): Likewise.
13239 * modules/stdbool (License): Likewise.
13240 * modules/stdint (License): Likewise.
13241 * modules/stdio (License): Likewise.
13242 * modules/strcase (License): Likewise.
13243 * modules/strcasestr (License): Likewise.
13244 * modules/strdup (License): Likewise.
13245 * modules/string (License): Likewise.
13246 * modules/strndup (License): Likewise.
13247 * modules/strnlen (License): Likewise.
13248 * modules/strpbrk (License): Likewise.
13249 * modules/strptime (License): Likewise.
13250 * modules/strsep (License): Likewise.
13251 * modules/sys_select (License): Likewise.
13252 * modules/sys_socket (License): Likewise.
13253 * modules/sys_stat (License): Likewise.
13254 * modules/sys_time (License): Likewise.
13255 * modules/time (License): Likewise.
13256 * modules/time_r (License): Likewise.
13257 * modules/timegm (License): Likewise.
13258 * modules/unistd (License): Likewise.
13259 * modules/vsnprintf (License): Likewise.
13260 * modules/wctype (License): Likewise.
13262 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13264 * modules/argz (License): LGPLv2+.
13266 2007-07-15 Karl Berry <karl@gnu.org>
13268 * doc/gnulib.texi: revise node structure per new fdl.texi.
13270 2007-07-14 Bruno Haible <bruno@clisp.org>
13272 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13274 * lib/uniname/uninames.h: Regenerated.
13276 2007-07-14 Karl Berry <karl@gnu.org>
13278 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13279 omitting sectioning and index commands.
13281 2007-07-13 Bruno Haible <bruno@clisp.org>
13283 New gnulib-tool option --more-symlinks.
13284 * gnulib-tool (func_usage): Document --more-symlinks.
13285 (do_copyrights): New variable.
13286 Recognize option --more-symlinks.
13287 (func_import): Don't add a copyright notice transform to
13288 sed_transform_lib_file if do_copyrights is empty.
13290 2007-07-13 Bruno Haible <bruno@clisp.org>
13292 * lib/vasnprintf.c (decimal_point_char): Define also if
13293 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13294 && !NEED_PRINTF_DIRECTIVE_A.
13295 Reported by Clemens Koller <clemens.koller@anagramm.de> via
13296 Gary V. Vaughan <gary@gnu.org>.
13298 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
13300 * lib/inttypes_.h: Undo previous change, since it was fixed
13301 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13303 2007-07-13 Bruno Haible <bruno@clisp.org>
13305 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13306 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13308 2007-07-13 Jim Meyering <jim@meyering.net>
13310 df: Don't fail for Tru64's "file-on-file mount".
13311 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13312 so we fall through and use statfs instead. Details here:
13313 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13314 Reported by Albert Chin.
13316 2007-07-13 Bruno Haible <bruno@clisp.org>
13318 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13319 * modules/configmake (License): Likewise.
13320 * modules/gettext (License): Likewise.
13321 * modules/gettext-h (License): Likewise.
13322 * modules/include_next (License): Likewise.
13323 * modules/link-warning (License): Likewise.
13324 * modules/localcharset (License): Likewise.
13325 * modules/localename (License): Likewise.
13326 * modules/lock (License): Likewise.
13327 * modules/relocatable-lib-lgpl (License): Likewise.
13328 * modules/size_max (License): Likewise.
13329 * modules/vasnprintf (License): Likewise.
13330 * modules/wchar (License): Likewise.
13331 * modules/xsize (License): Likewise.
13333 2007-07-13 Bruno Haible <bruno@clisp.org>
13335 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13336 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13338 2007-07-12 Bruno Haible <bruno@clisp.org>
13340 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13341 in the modules files.
13343 2007-07-11 Karl Berry <karl@gnu.org>
13345 * MODULES.html.sh (func_module): use
13346 sed -e '\|^'"${includefile}"'$|d'
13347 instead of /.../d, to avoid errors on $includefile's containing /.
13349 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
13351 * gnulib-tool (func_import): Avoid duplication of --avoid
13353 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13354 names to `_' in variable names.
13356 2007-07-10 Eric Blake <ebb9@byu.net>
13358 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13359 * NEWS: Document this change.
13361 2007-07-08 Bruno Haible <bruno@clisp.org>
13363 Update to Unicode 5.0.
13364 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13365 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13366 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13367 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13368 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13369 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13370 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13371 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13372 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13373 U+10A3F, U+1D242..U+1D244.
13374 (nonspacing_table_ind): Update.
13375 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13376 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13378 2007-07-08 Bruno Haible <bruno@clisp.org>
13380 Update to Unicode 5.0.
13381 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13382 code transform. Extend the name index field of unicode_name_to_code and
13383 unicode_code_to_name from 16 to 24 bits.
13384 * lib/uniname/uniname.c (unicode_character_name,
13385 unicode_name_character): Add the range 0x12xxx to the code transform.
13386 * lib/uniname/uninames.h: Regenerated.
13387 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13389 2007-07-07 Bruno Haible <bruno@clisp.org>
13391 * modules/wcwidth-tests: New file.
13392 * tests/test-wcwidth.c: New file.
13394 Work around MacOS X wcwidth() bug.
13395 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13396 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13397 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13398 original wcwidth in non-UTF-8 locales.
13399 * modules/wcwidth (Depends-on): Add localcharset, streq,
13401 * doc/functions/wcwidth.texi: Update.
13403 2007-07-07 Bruno Haible <bruno@clisp.org>
13405 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13406 (wcwidth): New declaration.
13407 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13409 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13410 here. Prepare for creating <wchar.h> unconditionally.
13411 * modules/wchar (Depends-on): Add link-warning.
13412 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13413 REPLACE_WCWIDTH, and GL_LINK_WARNING.
13414 * lib/wcwidth.h: Remove file.
13415 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13416 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13417 * modules/wcwidth (Files): Remove lib/wcwidth.h.
13418 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13419 (Include): Replace wcwidth.h with <wchar.h>.
13420 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13421 * lib/mbchar.h: Don't include wcwidth.h.
13422 * lib/mbswidth.c: Likewise.
13423 * NEWS: Mention the change.
13425 2007-07-07 Bruno Haible <bruno@clisp.org>
13427 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13428 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13429 definition with an external declaration.
13430 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13431 defined as a function. Remove AC_C_INLINE requirement.
13432 * modules/wcwidth (Files): Add lib/wcwidth.c.
13433 (Makefile.am): Remove redundant statement.
13435 2007-07-07 Bruno Haible <bruno@clisp.org>
13437 * MODULES.html.sh (Unicode string functions): Add the new modules.
13439 * tests/uniwidth/test-u32-strwidth.c: New file.
13440 * modules/uniwidth/u32-strwidth-tests: New file.
13442 * lib/uniwidth/u32-strwidth.c: New file.
13443 * modules/uniwidth/u32-strwidth: New file.
13445 * tests/uniwidth/test-u16-strwidth.c: New file.
13446 * modules/uniwidth/u16-strwidth-tests: New file.
13448 * lib/uniwidth/u16-strwidth.c: New file.
13449 * modules/uniwidth/u16-strwidth: New file.
13451 * tests/uniwidth/test-u8-strwidth.c: New file.
13452 * modules/uniwidth/u8-strwidth-tests: New file.
13454 * lib/uniwidth/u8-strwidth.c: New file.
13455 * modules/uniwidth/u8-strwidth: New file.
13457 * tests/uniwidth/test-u32-width.c: New file.
13458 * modules/uniwidth/u32-width-tests: New file.
13460 * lib/uniwidth/u32-width.c: New file.
13461 * modules/uniwidth/u32-width: New file.
13463 * tests/uniwidth/test-u16-width.c: New file.
13464 * modules/uniwidth/u16-width-tests: New file.
13466 * lib/uniwidth/u16-width.c: New file.
13467 * modules/uniwidth/u16-width: New file.
13469 * tests/uniwidth/test-u8-width.c: New file.
13470 * modules/uniwidth/u8-width-tests: New file.
13472 * lib/uniwidth/u8-width.c: New file.
13473 * modules/uniwidth/u8-width: New file.
13475 * tests/uniwidth/test-uc_width.c: New file.
13476 * modules/uniwidth/width-tests: New file.
13478 * lib/uniwidth/width.c: New file, from GNU libiconv.
13479 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13480 * modules/uniwidth/width: New file.
13482 * lib/uniwidth.h: New file, from GNU libiconv.
13483 * modules/uniwidth/base: New file.
13485 2007-07-07 Bruno Haible <bruno@clisp.org>
13487 * lib/uniname.h: New file, from GNU gettext.
13488 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13489 * lib/uniname/uninames.h: New file, from GNU gettext.
13490 * lib/uniname/uniname.c: New file, from GNU gettext.
13491 * tests/uniname/test-uninames.sh: New file.
13492 * tests/uniname/test-uninames.c: New file, from GNU gettext.
13493 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13494 * modules/uniname/base: New file.
13495 * modules/uniname/uniname: New file.
13496 * modules/uniname/uniname-tests: New file.
13497 * MODULES.html.sh (Unicode string functions): Add the new modules.
13499 2007-07-06 Bruno Haible <bruno@clisp.org>
13501 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13503 2007-07-06 Bruno Haible <bruno@clisp.org>
13505 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13506 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13507 includes <cygwin/sys_time.h> which includes <sys/select.h> which
13508 include <sys/time.h>.
13509 Reported by Eric Blake.
13511 2007-07-06 Eric Blake <ebb9@byu.net>
13513 Fix testing canonicalize on cygwin.
13514 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13515 Revert patch from 2007-06-19.
13516 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13517 canonicalize module is also in use.
13518 * tests/test-canonicalize.c: New file.
13519 * tests/test-canonicalize.sh: Likewise.
13520 * modules/canonicalize-tests: Likewise.
13522 2007-07-06 Jim Meyering <jim@meyering.net>
13524 * lib/getugroups.c (getugroups): Detect getgrent failure.
13525 Adjust comment to reflect reality: this function may return -1.
13527 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
13529 * build-aux/bootstrap (TP_URL,get_translations): Update to use
13530 the new TP address.
13532 (gnulib_mk): New variable.
13534 2007-07-05 Jim Meyering <jim@meyering.net>
13536 Don't let endgrent clobber errno, no matter how improbable.
13537 * lib/getugroups.c (getugroups): Save and restore errno around
13540 Close the group DB even when failing with 2^31 or more members.
13541 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13543 2007-07-04 Jim Meyering <jim@meyering.net>
13545 * lib/getugroups.h: New file.
13546 * lib/getugroups.c: Include "getugroups.h".
13547 Remove uses of "register" keyword.
13548 Move local variable, "cp", down into scope where used.
13549 Give "username" parameter the "const" attribute.
13550 * modules/getugroups (Files): Add lib/getugroups.h
13552 2007-07-04 Karl Berry <karl@gnu.org>
13554 * MODULES.html.sh (func_all_modules): Complete rename of
13555 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13557 2007-07-02 Bruno Haible <bruno@clisp.org>
13559 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13560 mode, when inttypes.h comes from gnulib.
13561 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13563 2007-07-02 Simon Josefsson <simon@josefsson.org>
13565 * NEWS: Mention lgpl module name change.
13567 * modules/lgpl-2.1: Renamed from lgpl.
13569 * NEWS: Mention gpl module name change.
13571 * modules/gpl-3.0: New file, based on gpl-2.0.
13573 * modules/gpl-2.0: Renamed from gpl.
13575 * modules/gpl: Fix filename, doc/gpl.texi is now found at
13578 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
13580 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13581 #define __STDC_LIMIT_MACROS temporarily while including
13582 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13583 Problem reported by Joel E. Denny in
13584 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13586 2007-07-01 Bruno Haible <bruno@clisp.org>
13588 * lib/unistdio.h: New file.
13589 * lib/unistdio/u-asnprintf.h: New file.
13590 * lib/unistdio/u-asprintf.h: New file.
13591 * lib/unistdio/u-printf-args.c: New file.
13592 * lib/unistdio/u-printf-args.h: New file.
13593 * lib/unistdio/u-printf-parse.h: New file.
13594 * lib/unistdio/u-snprintf.h: New file.
13595 * lib/unistdio/u-sprintf.h: New file.
13596 * lib/unistdio/u-vasprintf.h: New file.
13597 * lib/unistdio/u-vsnprintf.h: New file.
13598 * lib/unistdio/u-vsprintf.h: New file.
13599 * lib/unistdio/ulc-asnprintf.c: New file.
13600 * lib/unistdio/ulc-asprintf.c: New file.
13601 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13602 * lib/unistdio/ulc-printf-parse.c: New file.
13603 * lib/unistdio/ulc-snprintf.c: New file.
13604 * lib/unistdio/ulc-sprintf.c: New file.
13605 * lib/unistdio/ulc-vasnprintf.c: New file.
13606 * lib/unistdio/ulc-vasprintf.c: New file.
13607 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13608 * lib/unistdio/ulc-vsnprintf.c: New file.
13609 * lib/unistdio/ulc-vsprintf.c: New file.
13610 * lib/unistdio/u8-asnprintf.c: New file.
13611 * lib/unistdio/u8-asprintf.c: New file.
13612 * lib/unistdio/u8-printf-parse.c: New file.
13613 * lib/unistdio/u8-snprintf.c: New file.
13614 * lib/unistdio/u8-sprintf.c: New file.
13615 * lib/unistdio/u8-vasnprintf.c: New file.
13616 * lib/unistdio/u8-vasprintf.c: New file.
13617 * lib/unistdio/u8-vsnprintf.c: New file.
13618 * lib/unistdio/u8-vsprintf.c: New file.
13619 * lib/unistdio/u8-u8-asnprintf.c: New file.
13620 * lib/unistdio/u8-u8-asprintf.c: New file.
13621 * lib/unistdio/u8-u8-snprintf.c: New file.
13622 * lib/unistdio/u8-u8-sprintf.c: New file.
13623 * lib/unistdio/u8-u8-vasnprintf.c: New file.
13624 * lib/unistdio/u8-u8-vasprintf.c: New file.
13625 * lib/unistdio/u8-u8-vsnprintf.c: New file.
13626 * lib/unistdio/u8-u8-vsprintf.c: New file.
13627 * lib/unistdio/u16-asnprintf.c: New file.
13628 * lib/unistdio/u16-asprintf.c: New file.
13629 * lib/unistdio/u16-printf-parse.c: New file.
13630 * lib/unistdio/u16-snprintf.c: New file.
13631 * lib/unistdio/u16-sprintf.c: New file.
13632 * lib/unistdio/u16-vasnprintf.c: New file.
13633 * lib/unistdio/u16-vasprintf.c: New file.
13634 * lib/unistdio/u16-vsnprintf.c: New file.
13635 * lib/unistdio/u16-vsprintf.c: New file.
13636 * lib/unistdio/u16-u16-asnprintf.c: New file.
13637 * lib/unistdio/u16-u16-asprintf.c: New file.
13638 * lib/unistdio/u16-u16-snprintf.c: New file.
13639 * lib/unistdio/u16-u16-sprintf.c: New file.
13640 * lib/unistdio/u16-u16-vasnprintf.c: New file.
13641 * lib/unistdio/u16-u16-vasprintf.c: New file.
13642 * lib/unistdio/u16-u16-vsnprintf.c: New file.
13643 * lib/unistdio/u16-u16-vsprintf.c: New file.
13644 * lib/unistdio/u32-asnprintf.c: New file.
13645 * lib/unistdio/u32-asprintf.c: New file.
13646 * lib/unistdio/u32-printf-parse.c: New file.
13647 * lib/unistdio/u32-snprintf.c: New file.
13648 * lib/unistdio/u32-sprintf.c: New file.
13649 * lib/unistdio/u32-vasnprintf.c: New file.
13650 * lib/unistdio/u32-vasprintf.c: New file.
13651 * lib/unistdio/u32-vsnprintf.c: New file.
13652 * lib/unistdio/u32-vsprintf.c: New file.
13653 * lib/unistdio/u32-u32-asnprintf.c: New file.
13654 * lib/unistdio/u32-u32-asprintf.c: New file.
13655 * lib/unistdio/u32-u32-snprintf.c: New file.
13656 * lib/unistdio/u32-u32-sprintf.c: New file.
13657 * lib/unistdio/u32-u32-vasnprintf.c: New file.
13658 * lib/unistdio/u32-u32-vasprintf.c: New file.
13659 * lib/unistdio/u32-u32-vsnprintf.c: New file.
13660 * lib/unistdio/u32-u32-vsprintf.c: New file.
13661 * tests/unistdio/test-ulc-asnprintf1.c: New file.
13662 * tests/unistdio/test-ulc-asnprintf1.h: New file.
13663 * tests/unistdio/test-ulc-printf1.h: New file.
13664 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13665 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13666 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13667 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13668 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13669 * tests/unistdio/test-ulc-vasprintf1.c: New file.
13670 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13671 * tests/unistdio/test-ulc-vsprintf1.c: New file.
13672 * tests/unistdio/test-u8-asnprintf1.c: New file.
13673 * tests/unistdio/test-u8-asnprintf1.h: New file.
13674 * tests/unistdio/test-u8-printf1.h: New file.
13675 * tests/unistdio/test-u8-vasnprintf1.c: New file.
13676 * tests/unistdio/test-u8-vasnprintf2.c: New file.
13677 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13678 * tests/unistdio/test-u8-vasnprintf3.c: New file.
13679 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13680 * tests/unistdio/test-u8-vasprintf1.c: New file.
13681 * tests/unistdio/test-u8-vsnprintf1.c: New file.
13682 * tests/unistdio/test-u8-vsprintf1.c: New file.
13683 * tests/unistdio/test-u16-asnprintf1.c: New file.
13684 * tests/unistdio/test-u16-asnprintf1.h: New file.
13685 * tests/unistdio/test-u16-printf1.h: New file.
13686 * tests/unistdio/test-u16-vasnprintf1.c: New file.
13687 * tests/unistdio/test-u16-vasnprintf2.c: New file.
13688 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13689 * tests/unistdio/test-u16-vasnprintf3.c: New file.
13690 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13691 * tests/unistdio/test-u16-vasprintf1.c: New file.
13692 * tests/unistdio/test-u16-vsnprintf1.c: New file.
13693 * tests/unistdio/test-u16-vsprintf1.c: New file.
13694 * tests/unistdio/test-u32-asnprintf1.c: New file.
13695 * tests/unistdio/test-u32-asnprintf1.h: New file.
13696 * tests/unistdio/test-u32-printf1.h: New file.
13697 * tests/unistdio/test-u32-vasnprintf1.c: New file.
13698 * tests/unistdio/test-u32-vasnprintf2.c: New file.
13699 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13700 * tests/unistdio/test-u32-vasnprintf3.c: New file.
13701 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13702 * tests/unistdio/test-u32-vasprintf1.c: New file.
13703 * tests/unistdio/test-u32-vsnprintf1.c: New file.
13704 * tests/unistdio/test-u32-vsprintf1.c: New file.
13705 * modules/unistdio/base: New file.
13706 * modules/unistdio/u-printf-args: New file.
13707 * modules/unistdio/ulc-asnprintf: New file.
13708 * modules/unistdio/ulc-asprintf: New file.
13709 * modules/unistdio/ulc-fprintf: New file.
13710 * modules/unistdio/ulc-printf-parse: New file.
13711 * modules/unistdio/ulc-snprintf: New file.
13712 * modules/unistdio/ulc-sprintf: New file.
13713 * modules/unistdio/ulc-vasnprintf: New file.
13714 * modules/unistdio/ulc-vasprintf: New file.
13715 * modules/unistdio/ulc-vfprintf: New file.
13716 * modules/unistdio/ulc-vsnprintf: New file.
13717 * modules/unistdio/ulc-vsprintf: New file.
13718 * modules/unistdio/u8-asnprintf: New file.
13719 * modules/unistdio/u8-asprintf: New file.
13720 * modules/unistdio/u8-printf-parse: New file.
13721 * modules/unistdio/u8-snprintf: New file.
13722 * modules/unistdio/u8-sprintf: New file.
13723 * modules/unistdio/u8-vasnprintf: New file.
13724 * modules/unistdio/u8-vasprintf: New file.
13725 * modules/unistdio/u8-vsnprintf: New file.
13726 * modules/unistdio/u8-vsprintf: New file.
13727 * modules/unistdio/u8-u8-asnprintf: New file.
13728 * modules/unistdio/u8-u8-asprintf: New file.
13729 * modules/unistdio/u8-u8-snprintf: New file.
13730 * modules/unistdio/u8-u8-sprintf: New file.
13731 * modules/unistdio/u8-u8-vasnprintf: New file.
13732 * modules/unistdio/u8-u8-vasprintf: New file.
13733 * modules/unistdio/u8-u8-vsnprintf: New file.
13734 * modules/unistdio/u8-u8-vsprintf: New file.
13735 * modules/unistdio/u16-asnprintf: New file.
13736 * modules/unistdio/u16-asprintf: New file.
13737 * modules/unistdio/u16-printf-parse: New file.
13738 * modules/unistdio/u16-snprintf: New file.
13739 * modules/unistdio/u16-sprintf: New file.
13740 * modules/unistdio/u16-vasnprintf: New file.
13741 * modules/unistdio/u16-vasprintf: New file.
13742 * modules/unistdio/u16-vsnprintf: New file.
13743 * modules/unistdio/u16-vsprintf: New file.
13744 * modules/unistdio/u16-u16-asnprintf: New file.
13745 * modules/unistdio/u16-u16-asprintf: New file.
13746 * modules/unistdio/u16-u16-snprintf: New file.
13747 * modules/unistdio/u16-u16-sprintf: New file.
13748 * modules/unistdio/u16-u16-vasnprintf: New file.
13749 * modules/unistdio/u16-u16-vasprintf: New file.
13750 * modules/unistdio/u16-u16-vsnprintf: New file.
13751 * modules/unistdio/u16-u16-vsprintf: New file.
13752 * modules/unistdio/u32-asnprintf: New file.
13753 * modules/unistdio/u32-asprintf: New file.
13754 * modules/unistdio/u32-printf-parse: New file.
13755 * modules/unistdio/u32-snprintf: New file.
13756 * modules/unistdio/u32-sprintf: New file.
13757 * modules/unistdio/u32-vasnprintf: New file.
13758 * modules/unistdio/u32-vasprintf: New file.
13759 * modules/unistdio/u32-vsnprintf: New file.
13760 * modules/unistdio/u32-vsprintf: New file.
13761 * modules/unistdio/u32-u32-asnprintf: New file.
13762 * modules/unistdio/u32-u32-asprintf: New file.
13763 * modules/unistdio/u32-u32-snprintf: New file.
13764 * modules/unistdio/u32-u32-sprintf: New file.
13765 * modules/unistdio/u32-u32-vasnprintf: New file.
13766 * modules/unistdio/u32-u32-vasprintf: New file.
13767 * modules/unistdio/u32-u32-vsnprintf: New file.
13768 * modules/unistdio/u32-u32-vsprintf: New file.
13769 * modules/unistdio/ulc-asnprintf-tests: New file.
13770 * modules/unistdio/ulc-vasnprintf-tests: New file.
13771 * modules/unistdio/ulc-vasprintf-tests: New file.
13772 * modules/unistdio/ulc-vsnprintf-tests: New file.
13773 * modules/unistdio/ulc-vsprintf-tests: New file.
13774 * modules/unistdio/u8-asnprintf-tests: New file.
13775 * modules/unistdio/u8-vasnprintf-tests: New file.
13776 * modules/unistdio/u8-vasprintf-tests: New file.
13777 * modules/unistdio/u8-vsnprintf-tests: New file.
13778 * modules/unistdio/u8-vsprintf-tests: New file.
13779 * modules/unistdio/u16-asnprintf-tests: New file.
13780 * modules/unistdio/u16-vasnprintf-tests: New file.
13781 * modules/unistdio/u16-vasprintf-tests: New file.
13782 * modules/unistdio/u16-vsnprintf-tests: New file.
13783 * modules/unistdio/u16-vsprintf-tests: New file.
13784 * modules/unistdio/u32-asnprintf-tests: New file.
13785 * modules/unistdio/u32-vasnprintf-tests: New file.
13786 * modules/unistdio/u32-vasprintf-tests: New file.
13787 * modules/unistdio/u32-vsnprintf-tests: New file.
13788 * modules/unistdio/u32-vsprintf-tests: New file.
13789 * MODULES.html.sh (Unicode string functions): Add the new modules.
13791 2007-07-01 Bruno Haible <bruno@clisp.org>
13793 * lib/sprintf.c (sprintf): Limit the available length estimation,
13794 to avoid address wraparound.
13795 * lib/vsprintf.c (vsprintf): Likewise.
13796 * modules/sprintf-posix (Dependencies): Add stdint.
13797 * modules/vsprintf-posix (Dependencies): Likewise.
13799 2007-07-01 Bruno Haible <bruno@clisp.org>
13801 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13802 Windows PATH as well. Conservative double-quoting. Comments.
13804 2007-07-01 Bruno Haible <bruno@clisp.org>
13805 Eric Blake <ebb9@byu.net>
13806 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13808 * gnulib-tool (self_abspathname): Fix algorithm to cope with
13809 empty components in $PATH, denoting '.'.
13811 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13813 * gnulib-tool: Fix indentation.
13814 (func_create_megatestdir): Likewise.
13815 Report by Bruno Haible.
13817 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13819 Sync from Automake.
13820 * build-aux/gnupload: Fix shell portability issues with for loops.
13821 Report by Karl Berry.
13823 2007-06-29 Simon Josefsson <simon@josefsson.org>
13825 * build-aux/maint.mk (POURL): Use translationproject.org.
13827 2007-06-27 Simon Josefsson <simon@josefsson.org>
13828 Bruno Haible <bruno@clisp.org>
13830 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13831 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13832 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13833 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13834 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13836 2007-06-27 Bruno Haible <bruno@clisp.org>
13838 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13839 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13841 2007-06-26 Karl Berry <karl@gnu.org>
13843 * MODULES.html.sh: remove xreadlink-with-size.
13845 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13847 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13848 method that I hope also handles the double-include problem noted
13850 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13852 2007-06-23 Bruno Haible <bruno@clisp.org>
13854 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13855 Don't let the 'mostlyclean' target fail if the last subdirectory could
13857 Reported by Karl Berry.
13859 2007-06-23 Bruno Haible <bruno@clisp.org>
13861 * gnulib-tool (echo): Add a speedier workaround for ksh.
13862 * tests/test-echo.sh: Likewise.
13864 2007-06-23 Bruno Haible <bruno@clisp.org>
13866 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13867 * tests/test-echo.sh: Likewise.
13869 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13871 * gnulib-tool (IFS): Initialize early, so we don't set it to
13873 (self_abspathname): Rewrite algorithm to set it, reindent.
13874 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13875 (func_create_megatestdir): Merge some sed scripts.
13877 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13879 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13880 exposed by Sun Studio 11 cc on Solaris 8.
13882 2007-06-22 Bruno Haible <bruno@clisp.org>
13884 * gnulib-tool (echo): Ensure the echo primitive does not interpret
13886 * tests/test-echo.sh: New file.
13888 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13890 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13891 simplify `sed_replace_build_aux' scripts, they are portable but
13892 echoing them with `echo' is not.
13893 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13895 2007-06-21 Karl Berry <karl@gnu.org>
13897 * config/srclist.txt: guess we can't handle the licenses via
13898 srclist at the moment.
13900 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
13902 * MODULES.html.sh: Add include_next.
13903 * modules/include_next: New file.
13905 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
13907 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13909 (gl_CHECK_NEXT_HEADERS): New macro.
13910 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13911 the obsolescent gl_ABSOLUTE_HEADER.
13912 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13913 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13914 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13915 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13916 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13917 * m4/math_h.m4 (gl_MATH_H): Likewise.
13918 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13919 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13920 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13921 * m4/stdint.m4 (gl_STDINT_H): Likewise.
13922 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13923 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13924 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13925 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13926 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13927 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13928 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13929 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13930 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13931 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13932 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13933 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13934 * m4/inttypes.m4 (gl_INTTYPES_H): Define
13935 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13936 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13937 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13938 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13939 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13940 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13941 * lib/float_.h: Likewise.
13942 * lib/inttypes_.h: Likewise.
13943 * lib/math_.h: Likewise.
13944 * lib/search_.h: Likewise.
13945 * lib/signal_.h: Likewise.
13946 * lib/stdint_.h: Likewise.
13947 * lib/stdio_.h: Likewise.
13948 * lib/stdlib_.h: Likewise.
13949 * lib/string_.h: Likewise.
13950 * lib/sys_stat_.h: Likewise.
13951 * lib/sys_time_.h: Likewise.
13952 * lib/time_.h: Likewise.
13953 * lib/unistd_.h: Likewise.
13954 * lib/wchar_.h: Likewise.
13955 * lib/wctype_.h: Likewise.
13956 * lib/dirent_.h: Likewise.
13957 * lib/iconv_.h: Likewise.
13958 * lib/locale_.h: Likewise.
13959 * lib/netinet_in_.h: Likewise.
13960 * lib/sys_select_.h: Likewise.
13961 * lib/sys_socket_.h: Likewise.
13962 * lib/sysexits_.h: Likewise.
13963 * modules/fcntl (Depends-on): Depend on include_next, not
13965 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13966 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13967 * modules/fchdir: Likewise.
13968 * modules/float: Likewise.
13969 * modules/iconv_open: Likewise.
13970 * modules/inttypes: Likewise.
13971 * modules/locale: Likewise.
13972 * modules/math: Likewise.
13973 * modules/netinet_in: Likewise.
13974 * modules/search: Likewise.
13975 * modules/signal: Likewise.
13976 * modules/stdint: Likewise.
13977 * modules/stdio: Likewise.
13978 * modules/stdlib: Likewise.
13979 * modules/string: Likewise.
13980 * modules/sys_select: Likewise.
13981 * modules/sys_socket: Likewise.
13982 * modules/sys_stat: Likewise.
13983 * modules/sys_time: Likewise.
13984 * modules/sysexits: Likewise.
13985 * modules/time: Likewise.
13986 * modules/unistd: Likewise.
13987 * modules/wchar: Likewise.
13988 * modules/wctype: Likewise.
13989 * modules/sys_stat: Change maintainer to "all".
13990 * modules/unistd: Likewise.
13992 2007-06-20 Karl Berry <karl@gnu.org>
13994 * config/srclist.txt: track www changes in license files.
13996 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
13998 * build-aux/bootstrap: Remove stray dot.
13999 Make sure build_aux settings are honored when linking
14000 gnulib_extra_files.
14002 2007-06-19 Eric Blake <ebb9@byu.net>
14004 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14005 Allow compilation on cygwin.
14007 2007-06-19 Jim Meyering <jim@meyering.net>
14009 xreadlink-with-size: Remove module. No longer used.
14010 Ex-callers now use xreadlink or mreadlink-with-size.
14011 * modules/xreadlink-with-size: Remove module.
14012 * lib/xreadlink-with-size.c: Remove file.
14013 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14014 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
14015 just before the function definition *is* accurate.
14017 Eliminate one way canonicalize_filename_mode could exit.
14018 * lib/canonicalize.c (canonicalize_filename_mode):
14019 Use mreadlink_with_size, not xreadlink_with_size.
14021 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
14023 Detect porting problems to FreeBSD/arm, which has time_t wider than
14024 long int. Original problem reported for GNU diff by Xin Li in
14025 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14026 * modules/getdate (Depends-on): Add intprops, verify.
14027 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
14028 is an integer type no wider than long int.
14030 2007-06-18 Jim Meyering <jim@meyering.net>
14032 New module: mreadlink-with-size.
14033 * MODULES.html.sh: Add mreadlink-with-size.
14034 * modules/mreadlink-with-size: New module
14035 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14036 not xreadlink-with-size.
14037 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14039 2007-06-16 Bruno Haible <bruno@clisp.org>
14041 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14042 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14043 Reported by Gary V. Vaughan <gary@gnu.org>.
14045 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
14047 Revamp lchown so that it lives in unistd.h where it belongs.
14048 * lib/lchown.h: Remove.
14049 * lib/dirchownmod.c: Don't include lib/lchown.h.
14050 * lib/fchownat.c: Likewise.
14051 * lib/openat.c: Likewise.
14052 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14053 does not follow symlinks.
14054 (EOPNOTSUPP): Define if not defined.
14055 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14057 (lchown): New decl.
14058 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14059 Do not check for lchown decl.
14060 Set REPLACE_LCHOWN.
14061 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14063 * modules/chown: Make it clear it follows symlinks.
14064 * modules/lchown: Make it clear it doesn't follow symlinks.
14065 (Files): Remove lib/lchown.h
14066 (Depends-on): Add unistd.
14067 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14068 (Include): Include <unistd.h>, not "lchown.h".
14069 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14072 2007-06-15 Jim Meyering <jim@meyering.net>
14074 Change license (GPL to LGPL) of fsusage and dependents.
14075 * modules/fsusage (License): Change to LGPL.
14076 * modules/full-read (License): Likewise.
14077 * modules/full-write (License): Likewise.
14078 * modules/safe-read (License): Likewise.
14079 * modules/safe-write (License): Likewise.
14081 2007-06-14 Ben Pfaff <blp@gnu.org>
14083 Missing part of allocsa -> malloca transition.
14084 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14087 2007-06-12 Bruno Haible <bruno@clisp.org>
14089 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14090 to ia64, x86_64, i386.
14091 Reported by Eric Blake.
14093 2007-06-12 Bruno Haible <bruno@clisp.org>
14095 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14096 cross-compiling to x86_64.
14098 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
14100 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14101 glitch reported by Ralf Wildenhues in
14102 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14104 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14107 2007-06-11 Bruno Haible <bruno@clisp.org>
14109 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14110 replacement string.
14111 Reported by Eric Blake.
14113 2007-06-10 Bruno Haible <bruno@clisp.org>
14115 Prepare vasnprintf code for use with Unicode strings.
14116 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14117 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14119 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14120 a_u32_string variants.
14121 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14122 * lib/printf-args.c: Don't include config.h and the specification
14123 header if PRINTF_FETCHARGS is already defined.
14124 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14125 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14126 TYPE_U16_STRING, TYPE_U32_STRING.
14127 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14128 u16_directive, u16_directives, u32_directive, u32_directives): New
14130 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14132 * lib/printf-parse.c: Don't include config.h and the specification
14133 header if PRINTF_PARSE is already defined. Eliminate the set of
14134 parameters for WIDE_CHAR_VERSION; the user of this file must provide
14135 them now. Include c-ctype.h.
14136 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14137 directive and CHAR_T_ONLY_ASCII.
14138 * lib/vasnprintf.c: Don't include config.h and the specification header
14139 if VASNPRINTF is already defined.
14140 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14141 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14142 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14143 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14144 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14145 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14147 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14148 pad_ourselves also in this case, with the 'c' and 's' directives, and
14149 with a different notion of "width".
14150 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14152 2007-06-10 Bruno Haible <bruno@clisp.org>
14154 * modules/unistr/u32-mbsnlen: New file.
14155 * lib/unistr/u32-mbsnlen.c: New file.
14157 * modules/unistr/u16-mbsnlen: New file.
14158 * lib/unistr/u16-mbsnlen.c: New file.
14160 * modules/unistr/u8-mbsnlen: New file.
14161 * lib/unistr/u8-mbsnlen.c: New file.
14163 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14166 2007-06-10 Bruno Haible <bruno@clisp.org>
14168 * lib/string_.h (mbsnlen): New declaration.
14169 * lib/mbsnlen.c: New file.
14170 * m4/mbsnlen.m4: New file.
14171 * modules/mbsnlen: New file.
14172 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14173 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14174 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14176 2007-06-10 Bruno Haible <bruno@clisp.org>
14178 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14180 2007-06-10 Bruno Haible <bruno@clisp.org>
14182 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14183 * lib/mbuiter.h: Likewise.
14185 2007-06-10 Bruno Haible <bruno@clisp.org>
14187 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14190 2007-06-10 Karl Berry <karl@gnu.org>
14192 * config/srclist.txt: remove gettext entries, Bruno prefers
14193 to update individually.
14195 2007-06-10 Bruno Haible <bruno@clisp.org>
14197 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14198 'maxlen'. Ensure only length + width bytes are allocated, not
14199 length + 1 + width.
14201 2007-06-09 Bruno Haible <bruno@clisp.org>
14203 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14204 (CHAR_T): Remove macro.
14205 (VASNPRINTF): Update.
14207 2007-06-09 Bruno Haible <bruno@clisp.org>
14209 * MODULES.html.sh (Unicode string functions): Add the new modules.
14211 * modules/uniconv/u32-conv-to-enc: New file.
14212 * lib/uniconv/u32-conv-to-enc.c: New file.
14213 * modules/uniconv/u32-conv-to-enc-tests: New file.
14214 * tests/uniconv/test-u32-conv-to-enc.c: New file.
14216 * modules/uniconv/u16-conv-to-enc: New file.
14217 * lib/uniconv/u16-conv-to-enc.c: New file.
14218 * lib/uniconv/u-conv-to-enc.h: New file.
14219 * modules/uniconv/u16-conv-to-enc-tests: New file.
14220 * tests/uniconv/test-u16-conv-to-enc.c: New file.
14222 * modules/uniconv/u8-conv-to-enc: New file.
14223 * lib/uniconv/u8-conv-to-enc.c: New file.
14224 * modules/uniconv/u8-conv-to-enc-tests: New file.
14225 * tests/uniconv/test-u8-conv-to-enc.c: New file.
14227 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14228 u32_conv_to_encoding): New declarations.
14230 2007-06-09 Bruno Haible <bruno@clisp.org>
14232 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14234 2007-06-09 Bruno Haible <bruno@clisp.org>
14236 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14237 * modules/malloca: Renamed from modules/allocsa, updated.
14238 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14239 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14240 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14241 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14242 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14243 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14244 * modules/xmalloca: Renamed from modules/xallocsa, updated.
14245 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14246 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14247 * modules/c-strcasestr (Depends-on): Update.
14248 * lib/c-strcasestr.c: Update.
14249 * modules/c-strstr (Depends-on): Update.
14250 * lib/c-strstr.c: Update.
14251 * modules/canonicalize-lgpl (Depends-on): Update.
14252 * lib/canonicalize-lgpl.c: Update.
14253 * modules/clean-temp (Depends-on): Update.
14254 * lib/clean-temp.c: Update.
14255 * modules/csharpcomp (Depends-on): Update.
14256 * lib/csharpcomp.c: Update.
14257 * modules/csharpexec (Depends-on): Update.
14258 * lib/csharpexec.c: Update.
14259 * modules/javacomp (Depends-on): Update.
14260 * lib/javacomp.c: Update.
14261 * modules/javaexec (Depends-on): Update.
14262 * lib/javaexec.c: Update.
14263 * modules/mbscasestr (Depends-on): Update.
14264 * lib/mbscasestr.c: Update.
14265 * modules/mbsstr (Depends-on): Update.
14266 * lib/mbsstr.c: Update.
14267 * modules/setenv (Depends-on): Update.
14268 * lib/setenv.c: Update.
14269 * modules/strcasestr (Depends-on): Update.
14270 * lib/strcasestr.c: Update.
14271 * modules/striconveha (Depends-on): Update.
14272 * lib/striconveha.c: Update.
14273 * modules/relocatable-prog-wrapper (Files): Update.
14274 * lib/relocwrapper.c: Update.
14275 * build-aux/install-reloc: Update.
14276 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14278 2007-06-08 Bruno Haible <bruno@clisp.org>
14281 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14282 * lib/fpurge.c (fpurge): Likewise.
14283 * lib/freading.c (freading): Likewise.
14284 * lib/fseeko.c (rpl_fseeko): Likewise.
14285 * lib/fseterr.c (fseterr): Likewise.
14286 * lib/fwriting.c (fwriting): Likewise.
14287 * tests/test-fflush.c (main): Avoid a failure on uClibc.
14289 2007-06-08 Bruno Haible <bruno@clisp.org>
14291 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14292 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14293 * modules/gettext (Files): Add m4/intlmacosx.m4.
14295 2007-06-07 Bruno Haible <bruno@clisp.org>
14297 * modules/localename-tests: New file.
14298 * tests/test-localename.c: New file.
14300 New module 'localename'.
14301 * lib/localename.h: New file.
14302 * lib/localename.c: New file, from GNU gettext.
14303 * m4/localename.m4: New file.
14304 * modules/localename: New file.
14306 2007-06-07 Bruno Haible <bruno@clisp.org>
14308 Work around the lack of <wchar.h> on some builds of uClibc.
14309 * doc/headers/wchar.texi: Update.
14310 * lib/wchar_.h: Include <wchar.h> only if it exists.
14311 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14312 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14313 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14315 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14316 * modules/mbfile (Depends-on): Add wchar.
14317 * modules/mbiter (Depends-on): Likewise.
14318 * modules/mbuiter (Depends-on): Likewise.
14319 Reported by Simon Josefsson.
14321 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
14323 Work around problem reported by Steven M. Schweda in
14324 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14325 Tru64 5.1B with the Compaq compiler environment installed declares
14326 an 'isblank' function but does not define it in the C library.
14327 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14328 * lib/regex_internal.h (isblank): Likewise.
14329 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14330 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14332 2007-06-05 Bruno Haible <bruno@clisp.org>
14334 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14336 * modules/printf-safe: New file.
14337 * modules/fprintf-posix (Depends-on): Add printf-safe.
14338 * modules/printf-posix (Depends-on): Likewise.
14339 * modules/snprintf-posix (Depends-on): Likewise.
14340 * modules/sprintf-posix (Depends-on): Likewise.
14341 * modules/vasnprintf-posix (Depends-on): Likewise.
14342 * modules/vasprintf-posix (Depends-on): Likewise.
14343 * modules/vfprintf-posix (Depends-on): Likewise.
14344 * modules/vprintf-posix (Depends-on): Likewise.
14345 * modules/vsnprintf-posix (Depends-on): Likewise.
14346 * modules/vsprintf-posix (Depends-on): Likewise.
14347 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14348 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14349 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14350 "no" on i386, x86_64, ia64.
14351 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14352 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14353 on i386, x86_64, ia64.
14354 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14355 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14356 on i386, x86_64, ia64.
14357 * tests/test-vasnprintf-posix.c: Include float.h.
14358 (LDBL80_WORDS): New macro.
14359 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14360 on i386, x86_64, ia64.
14361 * tests/test-vasprintf-posix.c: Include float.h.
14362 (LDBL80_WORDS): New macro.
14363 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14364 on i386, x86_64, ia64.
14365 * tests/test-snprintf-posix.c: Include float.h.
14366 * tests/test-sprintf-posix.c: Likewise.
14367 * tests/test-vsnprintf-posix.c: Likewise.
14368 * tests/test-vsprintf-posix.c: Likewise.
14370 2007-06-05 Bruno Haible <bruno@clisp.org>
14372 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14373 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14374 non-IEEE numbers on i386, x86_64, ia64.
14375 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14376 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14377 * tests/test-isnanl.h: Include float.h.
14378 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14380 2007-06-05 Bruno Haible <bruno@clisp.org>
14382 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14383 also the %a / %A. Handle the %a / %A code before this extra handling.
14385 2007-06-05 Bruno Haible <bruno@clisp.org>
14387 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14388 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14390 2007-06-05 Bruno Haible <bruno@clisp.org>
14392 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14393 typo in variable name.
14395 2007-06-05 Eric Blake <ebb9@byu.net>
14397 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14398 Reported by Simon Josefsson.
14400 2007-06-04 Bruno Haible <bruno@clisp.org>
14402 Avoid test failures on some PowerPC platforms.
14403 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14404 Define differently for PowerPC.
14405 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14406 Reported by Gary V. Vaughan <gary@gnu.org>.
14408 2007-06-02 Bruno Haible <bruno@clisp.org>
14410 Fix test-stdint failure on FreeBSD/ia64.
14411 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14412 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14413 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14414 * doc/headers/stdint.texi: Update.
14416 2007-06-01 Bruno Haible <bruno@clisp.org>
14418 * tests/test-binary-io.c (main): Pass a third argument to open().
14419 Reported by Gary V. Vaughan <gary@gnu.org>.
14421 2007-06-01 Bruno Haible <bruno@clisp.org>
14423 * doc/functions/frexpl.texi: Update for mingw.
14425 2007-06-01 Bruno Haible <bruno@clisp.org>
14427 * tests/test-lseek.c (main): Disable test of errno for invalid third
14429 * doc/functions/lseek.texi: Update.
14430 Reported by Gary V. Vaughan <gary@gnu.org>.
14432 2007-05-28 Bruno Haible <bruno@clisp.org>
14434 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14436 2007-05-31 Eric Blake <ebb9@byu.net>
14438 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14441 2007-05-30 Eric Blake <ebb9@byu.net>
14442 and Bruno Haible <bruno@clisp.org>
14444 Work around mingw test failures exposed by m4-1.4.9b.
14445 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14446 * tests/test-unistd.c: Disable uid_t and git_t tests for the
14449 2007-05-30 Bruno Haible <bruno@clisp.org>
14451 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14452 assuming that they are closed. Needed on HP-UX 11.
14454 2007-05-29 Bruno Haible <bruno@clisp.org>
14456 Fix a problem with #include_next.
14457 * lib/dirent_.h: Split the double-inclusion guard.
14458 * lib/fcntl_.h: Likewise.
14459 * lib/float_.h: Likewise.
14460 * lib/iconv_.h: Likewise.
14461 * lib/inttypes_.h: Likewise.
14462 * lib/locale_.h: Likewise.
14463 * lib/math_.h: Likewise.
14464 * lib/netinet_in_.h: Likewise.
14465 * lib/search_.h: Likewise.
14466 * lib/signal_.h: Likewise.
14467 * lib/stdint_.h: Likewise.
14468 * lib/stdio_.h: Likewise.
14469 * lib/stdlib_.h: Likewise.
14470 * lib/string_.h: Likewise.
14471 * lib/sys_select_.h: Likewise.
14472 * lib/sys_socket_.h: Likewise.
14473 * lib/sys_stat_.h: Likewise.
14474 * lib/sys_time_.h: Likewise.
14475 * lib/sysexits_.h: Likewise.
14476 * lib/time_.h: Likewise.
14477 * lib/unistd_.h: Likewise.
14478 * lib/wchar_.h: Likewise.
14479 * lib/wctype_.h: Likewise.
14481 2007-05-29 Bruno Haible <bruno@clisp.org>
14483 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14486 2007-05-29 Bruno Haible <bruno@clisp.org>
14488 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14490 Reported by Eric Blake.
14492 2007-05-29 Bruno Haible <bruno@clisp.org>
14494 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14497 2007-05-29 Eric Blake <ebb9@byu.net>
14498 Bruno Haible <bruno@clisp.org>
14500 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14503 2007-05-28 Eric Blake <ebb9@byu.net>
14505 * modules/closein-tests (test_closein_LDADD): Support test on
14506 cygwin with libtool.
14508 2007-05-28 Bruno Haible <bruno@clisp.org>
14510 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14511 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14512 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14513 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14514 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14515 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14516 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14517 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14518 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14520 2007-05-28 Eric Blake <ebb9@byu.net>
14522 Unconditionally include <config.h> in unit tests.
14523 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14524 * tests/test-allocsa.c, tests/test-arcfour.c,
14525 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14526 tests/test-array_list.c, tests/test-array_oset.c,
14527 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14528 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14529 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14530 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14531 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14532 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14533 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14534 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14535 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14536 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14537 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14538 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14539 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14540 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14541 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14542 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14543 test-md5.c, test-memmem.c, test-printf-posix.c,
14544 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14545 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14546 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14547 test-strcasestr.c, test-striconv.c, test-striconveh.c,
14548 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14549 test-vasnprintf-posix2.c, test-vasnprintf.c,
14550 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14551 test-vfprintf-posix.c, test-vprintf-posix.c,
14552 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14553 test-xvasprintf.c: Likewise.
14555 2007-05-28 Bruno Haible <bruno@clisp.org>
14557 * gnulib-tool (func_import): Remember the --with-tests command-line
14558 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14559 Reported by Eric Blake.
14561 2007-05-28 Bruno Haible <bruno@clisp.org>
14563 * modules/ftell-tests: New file.
14564 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14565 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14567 * lib/ftell.c: New file.
14568 * modules/ftell: New file.
14569 * m4/ftell.m4: New file.
14570 * doc/functions/ftell.texi: Update.
14571 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14573 * lib/stdio_.h (rpl_ftell): New declaration.
14574 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14577 2007-05-28 Eric Blake <ebb9@byu.net>
14579 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14581 2007-05-28 Bruno Haible <bruno@clisp.org>
14583 * modules/fseek-tests: New file.
14584 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14585 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14587 * lib/fseek.c: New file.
14588 * modules/fseek: New file.
14589 * m4/fseek.m4: New file.
14590 * doc/functions/fseek.texi: Update.
14591 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14593 * lib/stdio_.h (rpl_fseek): New declaration.
14594 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14597 2007-05-28 Bruno Haible <bruno@clisp.org>
14599 * lib/stdio_.h (fflush): More comments.
14601 2007-05-28 Bruno Haible <bruno@clisp.org>
14603 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14606 2007-05-28 Eric Blake <ebb9@byu.net>
14608 Improve lseek module.
14609 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14610 * lib/unistd_.h (lseek): Scale back link warning message.
14611 * tests/test-lseek.c: Beef up test.
14612 * tests/test-lseek.sh: Exercise more facets of lseek.
14613 Reported by Bruno Haible.
14615 2007-05-28 Bruno Haible <bruno@clisp.org>
14617 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14620 2007-05-27 Bruno Haible <bruno@clisp.org>
14622 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14624 2007-05-27 Bruno Haible <bruno@clisp.org>
14626 * modules/openmp: New file.
14627 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14630 2007-05-26 Bruno Haible <bruno@clisp.org>
14632 * modules/chdir-long (Depends-on): Add fchdir.
14633 * modules/chdir-safer (Depends-on): Likewise.
14634 * modules/fts (Depends-on): Likewise.
14635 * modules/fts-lgpl (Depends-on): Likewise.
14636 * modules/openat (Depends-on): Likewise.
14637 * modules/savewd (Depends-on): Likewise.
14639 2007-05-24 Eric Blake <ebb9@byu.net>
14641 Fix lseek on mingw.
14642 * modules/lseek: New module.
14643 * m4/lseek.m4: New file.
14644 * lib/lseek.c: New file.
14645 * modules/lseek-tests: New file.
14646 * tests/test-lseek.c: New file.
14647 * tests/test-lseek.sh: New file.
14648 * MODULES.html.sh: Document lseek module.
14649 * modules/fflush (Depends-on): Add lseek, fseeko.
14650 * modules/fseeko (Depends-on): Likewise.
14651 * modules/ftello (Depends-on): Likewise.
14652 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14654 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14656 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14657 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14658 * lib/ftello.c (rpl_ftello): Likewise.
14659 * tests/test-fseeko.c (main): Test this.
14660 * tests/test-fseeko.sh: Likewise.
14661 * tests/test-ftello.c (main): Likewise.
14662 * tests/test-ftello.sh: Likewise.
14663 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14664 implies replacing fseek.
14665 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14667 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14668 * modules/unistd (Makefile.am): Likewise.
14669 * lib/unistd_.h (lseek): Declare a replacement.
14670 * doc/functions/lseek.texi (lseek): Document this fix.
14671 * doc/functions/fseek.texi (fseek): Likewise.
14672 * doc/functions/ftell.texi (ftell): Likewise.
14674 2007-05-24 Bruno Haible <bruno@clisp.org>
14676 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14677 in the printed representation of a NaN.
14678 * tests/test-vasprintf-posix.c (test_function): Likewise.
14679 * tests/test-snprintf-posix.h (test_function): Likewise.
14680 * tests/test-sprintf-posix.h (test_function): Likewise.
14681 Reported by Eric Blake.
14683 2007-05-23 Eric Blake <ebb9@byu.net>
14685 Fix fseeko/ftello on cygwin 1.5.24.
14686 * doc/functions/fseeko.texi (fseeko): Document the fix.
14687 * doc/functions/ftello.texi (ftello): Document the fix.
14688 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14689 * doc/functions/stdout.text (stdout): New file.
14690 * doc/functions/stderr.text (stderr): New file.
14691 * doc/gnulib.texi (Function Substitutes): Use new files.
14692 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14694 * tests/test-ftello.c (main): Likewise for ftello.
14695 * tests/test-fseeko.sh: New file.
14696 * tests/test-ftello.sh: New file.
14697 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14698 with seekable stdin.
14699 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14700 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14701 (gl_REPLACE_FSEEKO): New macro.
14702 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14703 * modules/fseeko (Files): Distribute fseeko.c.
14704 * modules/ftello (Files): Distribute ftello.c.
14705 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14707 * lib/ftello.c (rpl_ftello): New file.
14708 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14710 (gl_STDIN_LARGE_OFFSET): New macro.
14711 * modules/stdio (Makefile.am): Perform the replacement.
14712 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14714 2007-05-23 Bruno Haible <bruno@clisp.org>
14716 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14717 GNULIB_POSIXCHECK is defined.
14719 2007-05-21 Bruno Haible <bruno@clisp.org>
14721 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14722 Check also the output for NaN arguments. When cross-compiling, guess
14724 * lib/vasnprintf.c: Update comments.
14725 * tests/test-vasnprintf-posix.c (strisnan): New function.
14726 (test_function): Use it.
14727 * tests/test-vasprintf-posix.c (strisnan): New function.
14728 (test_function): Use it.
14729 * tests/test-snprintf-posix.h (strisnan): New function.
14730 (test_function): Use it.
14731 * tests/test-sprintf-posix.h (strisnan): New function.
14732 (test_function): Use it.
14733 Reported by Eric Blake.
14735 2007-05-20 Bruno Haible <bruno@clisp.org>
14737 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14738 numbers that fails on BeOS.
14739 * doc/functions/frexpl.texi: Update.
14741 2007-05-20 Jim Meyering <jim@meyering.net>
14743 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14744 forced upon us by glibc-2.6.
14746 2007-05-20 Bruno Haible <bruno@clisp.org>
14748 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14749 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14750 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14751 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14752 NEED_PRINTF_INFINITE.
14753 (is_infinitel): New function.
14754 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14755 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14756 gl_PREREQ_VASNPRINTF_INFINITE.
14757 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14758 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14759 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14760 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14761 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14762 gl_PREREQ_VASNPRINTF_INFINITE.
14763 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14764 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14765 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14766 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14767 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14768 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14769 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14770 * doc/functions/fprintf.texi: Update.
14771 * doc/functions/printf.texi: Update.
14772 * doc/functions/snprintf.texi: Update.
14773 * doc/functions/sprintf.texi: Update.
14774 * doc/functions/vfprintf.texi: Update.
14775 * doc/functions/vprintf.texi: Update.
14776 * doc/functions/vsnprintf.texi: Update.
14777 * doc/functions/vsprintf.texi: Update.
14779 2007-05-20 Bruno Haible <bruno@clisp.org>
14781 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14782 was not found in libc.
14783 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14785 2007-05-20 Bruno Haible <bruno@clisp.org>
14787 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14788 printed as "-nan" instead of "nan".
14789 * tests/test-vasprintf-posix.c (test_function): Likewise.
14790 * tests/test-snprintf-posix.h (test_function): Likewise.
14791 * tests/test-sprintf-posix.h (test_function): Likewise.
14792 Needed for HP-UX 11.
14794 2007-05-20 Jim Meyering <jim@meyering.net>
14796 Fix buggy test for the fchownat-deref bug.
14797 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14798 symlink required for the run-test. Without it, this test would
14799 always declare that fchownat doesn't work, and client code would
14800 unnecessarily use the replacement function with fixed libc.
14801 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14802 Reported by Greg Schafer.
14804 2007-05-19 Bruno Haible <bruno@clisp.org>
14806 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14807 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14808 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14809 Needed for IRIX 6.5 and Solaris 2.5.1.
14811 2007-05-19 Bruno Haible <bruno@clisp.org>
14813 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14814 (test_function): Skip tests involving -0.0 on platforms where
14816 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14817 (test_function): Skip tests involving -0.0 on platforms where
14819 * tests/test-snprintf-posix.h (have_minus_zero): New function.
14820 (test_function): Skip tests involving -0.0 on platforms where
14822 * tests/test-sprintf-posix.h (have_minus_zero): New function.
14823 (test_function): Skip tests involving -0.0 on platforms where
14825 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14827 * tests/test-printf-posix.h (test_function): Likewise.
14828 * tests/test-printf-posix.output: Remove all -0.0 related results.
14829 Needed for IRIX 6.5.
14831 2007-05-19 Bruno Haible <bruno@clisp.org>
14833 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14834 printed as "nan0x7fffffff" instead of "nan".
14835 * tests/test-vasprintf-posix.c (test_function): Likewise.
14836 * tests/test-snprintf-posix.h (test_function): Likewise.
14837 * tests/test-sprintf-posix.h (test_function): Likewise.
14838 * tests/test-fprintf-posix.h (NaN): Remove macro.
14839 (test_function): Remove all NaN related tests.
14840 * tests/test-printf-posix.h (NaN): Remove macro.
14841 (test_function): Remove all NaN related tests.
14842 * tests/test-printf-posix.output: Remove all NaN related results.
14843 Needed for IRIX 6.5.
14845 2007-05-19 Bruno Haible <bruno@clisp.org>
14847 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14848 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14850 2007-05-19 Bruno Haible <bruno@clisp.org>
14852 * lib/float_.h: New file.
14853 * m4/float_h.m4: New file.
14854 * modules/float: New file.
14855 * modules/isnanl (Dependencies): Add float.
14856 * modules/isnanl-nolibm (Dependencies): Likewise.
14857 * modules/mathl (Dependencies): Likewise.
14858 * modules/printf-frexpl (Dependencies): Likewise.
14859 * modules/signbit (Dependencies): Likewise.
14860 * modules/vasnprintf (Dependencies): Likewise.
14861 * doc/headers/float.texi: Update.
14863 2007-05-19 Jim Meyering <jim@meyering.net>
14865 * lib/utimens.c (gl_futimens): Rename from futimens,
14866 now that glibc-2.6 declares futimens.
14867 * lib/utimens.h: Likewise.
14869 2007-05-19 Bruno Haible <bruno@clisp.org>
14871 Avoid test failures on mingw.
14872 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14873 * tests/test-printf-posix.sh: Likewise.
14874 * tests/test-vfprintf-posix.sh: Likewise.
14875 * tests/test-vprintf-posix.sh: Likewise.
14877 2007-05-19 Bruno Haible <bruno@clisp.org>
14879 Fix *printf result for NaN, Inf, -0.0 on mingw.
14880 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14881 * lib/vasnprintf.c: Include math.h and isnan.h.
14882 (is_infinite_or_zero): New function.
14883 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14884 values in the %f, %F, %e, %E, %g, %G directives.
14885 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14886 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14887 gl_PRINTF_INFINITE and test its result. Invoke
14888 gl_PREREQ_VASNPRINTF_INFINITE.
14889 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14890 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14891 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14892 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14893 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14894 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14895 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14896 * doc/functions/fprintf.texi: Update.
14897 * doc/functions/printf.texi: Update.
14898 * doc/functions/snprintf.texi: Update.
14899 * doc/functions/sprintf.texi: Update.
14900 * doc/functions/vfprintf.texi: Update.
14901 * doc/functions/vprintf.texi: Update.
14902 * doc/functions/vsnprintf.texi: Update.
14903 * doc/functions/vsprintf.texi: Update.
14905 2007-05-19 Bruno Haible <bruno@clisp.org>
14907 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14908 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14909 Instead of multiplying with 10^k, set extra_zeroes to k.
14910 (scale10_round_long_double): Remove function.
14912 2007-05-18 Bruno Haible <bruno@clisp.org>
14914 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14915 introduced on 2007-05-06.
14917 2007-05-18 Bruno Haible <bruno@clisp.org>
14919 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14921 * tests/test-vasprintf-posix.c (test_function): Likewise.
14922 * tests/test-snprintf-posix.h (test_function): Likewise.
14923 * tests/test-sprintf-posix.h (test_function): Likewise.
14925 2007-05-18 Bruno Haible <bruno@clisp.org>
14927 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14928 (strmatch): New function.
14929 (test_function): Test the %f directive on numbers of various exponents.
14930 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14931 (strmatch): New function.
14932 (test_function): Test the %f directive on numbers of various exponents.
14933 * tests/test-snprintf-posix.h (strmatch): New function.
14934 (test_function): Test the %f directive on numbers of various exponents.
14935 * tests/test-sprintf-posix.h (strmatch): New function.
14936 (test_function): Test the %f directive on numbers of various exponents.
14937 * tests/test-snprintf-posix.c (SIZEOF): New macro.
14938 * tests/test-sprintf-posix.c (SIZEOF): New macro.
14939 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14940 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14942 2007-05-18 Bruno Haible <bruno@clisp.org>
14944 Add support for 'long double' number output.
14945 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14946 * lib/vasnprintf.c: Include math.h and float+.h.
14947 (mp_limb_t): New type.
14948 (GMP_LIMB_BITS): New macro.
14949 (mp_twolimb_t): New type.
14950 (GMP_TWOLIMB_BITS): New macro.
14952 (multiply, divide, convert_to_decimal, decode_long_double,
14953 scale10_round_long_double, scale10_round_decimal_long_double,
14954 floorlog10l): New functions.
14955 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14956 for the %f, %F, %e, %E, %g, %G directives.
14957 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14958 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14959 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14960 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14961 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14962 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14963 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14964 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14965 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14966 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14967 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14968 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14969 * modules/snprintf-posix (Depends-on): Likewise.
14970 * modules/sprintf-posix (Depends-on): Likewise.
14971 * modules/vasnprintf-posix (Depends-on): Likewise.
14972 * modules/vasprintf-posix (Depends-on): Likewise.
14973 * modules/vfprintf-posix (Depends-on): Likewise.
14974 * modules/vsnprintf-posix (Depends-on): Likewise.
14975 * modules/vsprintf-posix (Depends-on): Likewise.
14976 * modules/vasnprintf (Files): Add lib/float+.h.
14977 * doc/functions/fprintf.texi: Update.
14978 * doc/functions/printf.texi: Update.
14979 * doc/functions/snprintf.texi: Update.
14980 * doc/functions/sprintf.texi: Update.
14981 * doc/functions/vfprintf.texi: Update.
14982 * doc/functions/vprintf.texi: Update.
14983 * doc/functions/vsnprintf.texi: Update.
14984 * doc/functions/vsprintf.texi: Update.
14986 2007-05-18 Bruno Haible <bruno@clisp.org>
14988 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14990 2007-05-18 Bruno Haible <bruno@clisp.org>
14992 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14993 for printing 64-bit integers. Needed for mingw.
14995 2007-05-18 Bruno Haible <bruno@clisp.org>
14997 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14998 gl_FUNC_FREXPL_WORKS.
14999 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15001 2007-05-18 Bruno Haible <bruno@clisp.org>
15003 * modules/frexpl-nolibm-tests: New file.
15005 * modules/frexpl-nolibm: New file.
15006 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15008 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
15010 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15011 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
15012 GCC 4.2, which otherwise issues a lot of warnings.
15013 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15014 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15016 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15017 * modules/iconv_open (iconv.h): Likewise.
15018 * modules/locale (locale.h): Likewise.
15019 * modules/netinet_in (netinet/in.h): Likewise.
15020 * modules/sys_select (sys_select.h): Likewise.
15021 * modules/sys_socket (sys/socket.h): Likewise.
15022 * modules/sys_stat (sys/stat.h): Likewise.
15023 * modules/sysexits (sysexits.h): Likewise.
15024 * modules/unistd (unistd.h): Likewise.
15026 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15028 * modules/closein-tests (Makefile.am): Distribute
15031 2007-05-17 Bruno Haible <bruno@clisp.org>
15033 * tests/test-printf-posix.output: Renamed from
15034 tests/test-fprintf-posix.out.
15035 * modules/fprintf-posix-tests: Update.
15036 * modules/printf-posix-tests: Update.
15037 * modules/vfprintf-posix-tests: Update.
15038 * modules/vprintf-posix-tests: Update.
15039 * tests/test-fprintf-posix.sh: Update.
15040 * tests/test-printf-posix.sh: Update.
15041 * tests/test-vfprintf-posix.sh: Update.
15042 * tests/test-vprintf-posix.sh: Update.
15043 Reported by Ralf Wildenhues.
15045 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
15047 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15048 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
15049 GCC 4.2, which otherwise issues a lot of warnings.
15050 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15051 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15052 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15053 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15054 it should no longer be needed.
15055 * lib/string_.h: Likewise.
15056 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15057 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15058 * modules/inttypes (inttypes.h): Likewise.
15059 * modules/math (math.h): Likewise.
15060 * modules/search (search.h): Likewise.
15061 * modules/signal (signal.h): Likewise.
15062 * modules/stdint (stdint.h): Likewise.
15063 * modules/stdio (stdio.h): Likewise.
15064 * modules/stdlib (stdlib.h): Likewise.
15065 * modules/string (string.h): Likewise.
15066 * modules/sys_time (sys/time.h): Likewise.
15067 * modules/time (time.h): Likewise.
15068 * modules/wchar (wchar.h): Likewise.
15069 * modules/wctype (wtype.h): Likewise.
15071 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
15073 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15075 2007-05-13 Bruno Haible <bruno@clisp.org>
15077 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15078 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15079 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15080 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15081 (gl_PREREQ_STRTOK_R): Don't require it here.
15083 2007-05-13 Bruno Haible <bruno@clisp.org>
15085 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15086 when used in C++ mode.
15088 2007-05-12 Bruno Haible <bruno@clisp.org>
15090 * lib/linebuffer.h: Tweak doc.
15091 * lib/linebuffer.c: Likewise.
15093 2007-05-12 James Youngman <jay@gnu.org>
15095 * lib/linebuffer.c (readlinebuffer_delim): New function,
15096 like readlinebuffer, but use a caller-specified delimiter.
15097 (readlinebuffer): Just call readlinebuffer_delim with '\n'
15099 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15101 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
15103 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15104 * modules/openat (Files): Remove openat-die.c.
15105 (Depends-on): Add openat-die.
15106 * modules/openat-die: New module.
15108 2007-05-06 Bruno Haible <bruno@clisp.org>
15110 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15111 Update with info about Cygwin.
15112 * doc/functions/fprintf.texi: Update.
15113 * doc/functions/printf.texi: Update.
15114 * doc/functions/snprintf.texi: Update.
15115 * doc/functions/sprintf.texi: Update.
15116 * doc/functions/vfprintf.texi: Update.
15117 * doc/functions/vprintf.texi: Update.
15118 * doc/functions/vsnprintf.texi: Update.
15119 * doc/functions/vsprintf.texi: Update.
15120 Reported by Eric Blake.
15122 2007-05-06 Bruno Haible <bruno@clisp.org>
15124 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15125 padding ourselves for the floating-point directives.
15126 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15127 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15128 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15129 gl_PRINTF_FLAG_ZERO and test its result. Invoke
15130 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15131 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15132 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15133 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15134 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15135 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15136 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15137 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15138 * tests/test-snprintf-posix.h (test_function): Also check the width
15139 and some flags in the %f directive.
15140 * tests/test-sprintf-posix.h (test_function): Likewise.
15141 * tests/test-vasnprintf-posix.c (test_function): Likewise.
15142 * tests/test-vasprintf-posix.c (test_function): Likewise.
15143 * doc/functions/fprintf.texi: Update.
15144 * doc/functions/printf.texi: Update.
15145 * doc/functions/snprintf.texi: Update.
15146 * doc/functions/sprintf.texi: Update.
15147 * doc/functions/vfprintf.texi: Update.
15148 * doc/functions/vprintf.texi: Update.
15149 * doc/functions/vsnprintf.texi: Update.
15150 * doc/functions/vsprintf.texi: Update.
15152 2007-05-06 Bruno Haible <bruno@clisp.org>
15154 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15155 pass the ' flag character to sprintf or snprintf.
15156 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15157 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15158 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15159 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15160 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15161 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15162 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15163 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15164 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15165 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15166 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15167 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15168 * tests/test-snprintf-posix.h (test_function): Also check the grouping
15170 * tests/test-sprintf-posix.h (test_function): Likewise.
15171 * tests/test-vasnprintf-posix.c (test_function): Likewise.
15172 * tests/test-vasprintf-posix.c (test_function): Likewise.
15173 * doc/functions/fprintf.texi: Update.
15174 * doc/functions/printf.texi: Update.
15175 * doc/functions/snprintf.texi: Update.
15176 * doc/functions/sprintf.texi: Update.
15177 * doc/functions/vfprintf.texi: Update.
15178 * doc/functions/vprintf.texi: Update.
15179 * doc/functions/vsnprintf.texi: Update.
15180 * doc/functions/vsprintf.texi: Update.
15182 2007-05-01 Bruno Haible <bruno@clisp.org>
15184 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15186 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
15188 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15189 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
15191 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
15193 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15194 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
15195 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15197 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
15199 * lib/argp-help.c (struct hol_entry): New member `ord'.
15200 (HOL_ENTRY_PTRCMP): Use ord for comparison
15201 (hol_sort): Initialize ord.
15203 2007-05-01 Bruno Haible <bruno@clisp.org>
15205 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15206 Reported by Eric Blake.
15207 * doc/gnulib.texi (Function Substitutes): Update.
15209 2007-05-01 Bruno Haible <bruno@clisp.org>
15211 * doc/functions.texi: Remove file, now redundant through
15212 doc/functions/*.texi.
15214 2007-05-01 Bruno Haible <bruno@clisp.org>
15216 * modules/argp (Depends-on): Add sleep.
15218 2007-05-01 Bruno Haible <bruno@clisp.org>
15220 * modules/sleep-tests: New file.
15221 * tests/test-sleep.c: New file.
15223 * modules/sleep: New file.
15224 * lib/sleep.c: New file.
15225 * m4/sleep.m4: New file.
15226 * lib/unistd_.h (sleep): New declaration.
15227 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15229 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15230 * doc/functions/sleep.texi: Document the sleep module.
15232 2007-05-01 Bruno Haible <bruno@clisp.org>
15234 * lib/sigprocmask.h: Remove file.
15235 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15236 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15237 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15238 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15239 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15240 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15241 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15242 HAVE_SIGSET_T as a shell variable.
15243 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15244 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15245 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15246 (Depends-on): Add signal. Remove verify.
15247 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15248 (Include): Mention <signal.h> instead of sigprocmask.h.
15249 * NEWS: Mention the change.
15250 * lib/fatal-signal.c: Don't include sigprocmask.h.
15252 2007-05-01 Bruno Haible <bruno@clisp.org>
15254 * modules/signal: New file.
15255 * lib/signal_.h: New file.
15256 * m4/signal_h.m4: New file.
15258 2007-05-01 Bruno Haible <bruno@clisp.org>
15260 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15261 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15262 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15263 HAVE_WCTYPE_CTMP_BUG into wctype.h.
15265 2007-05-01 Bruno Haible <bruno@clisp.org>
15267 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15269 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15270 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15271 * modules/sys_stat (Makefile.am): Substitute their values into
15274 2007-05-01 Bruno Haible <bruno@clisp.org>
15276 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15277 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15278 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15280 2007-05-01 Bruno Haible <bruno@clisp.org>
15282 * doc/header/assert.texi: Undo last change: don't mention the gnulib
15283 'assert' module here.
15285 2007-05-01 Bruno Haible <bruno@clisp.org>
15287 * doc/functions/*.texi: New files.
15288 * doc/functions/google-ranking.txt: New file.
15289 * doc/gnulib.texi (Function Substitutes): New chapter.
15290 (ctime, inet_ntoa): Remove sections.
15291 * doc/ctime.texi: Remove file.
15292 * doc/inet_ntoa.texi: Remove file.
15293 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15295 (%.info): New rule, specifying a --reference-limit.
15297 2007-05-01 Bruno Haible <bruno@clisp.org>
15299 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15301 2007-05-01 Bruno Haible <bruno@clisp.org>
15303 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15304 the portability of 'mkdir' to mingw systems.
15306 2007-05-01 Bruno Haible <bruno@clisp.org>
15308 * doc/headers/google-ranking.txt: New file.
15310 2007-04-30 Eric Blake <ebb9@byu.net>
15312 Prefer fseeko to fseek.
15313 * modules/getpass (Depends-on): Add fseeko.
15314 * lib/getpass.c (getpass): Use fseeko, not fseek.
15316 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
15318 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15319 assumes the sorting is stable, while most qsort implementations
15320 are not. Use argument addresses to ensure they never compare as
15323 * tests/test-argp-2.sh (usage-indent test): Fix output
15324 (func_compare): Restore diff options
15325 * tests/test-argp.c: Restore #include "progname.h"
15327 2007-04-29 Bruno Haible <bruno@clisp.org>
15329 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15330 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15331 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15332 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15333 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15334 (configure.ac): Define CHECK_SNPRINTF_POSIX.
15335 (TESTS, check_PROGRAMS): Add test-snprintf.
15336 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15337 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15338 (TESTS, check_PROGRAMS): Add test-vsnprintf.
15339 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15340 assertions that fail on HP-UX, OSF/1, or IRIX.
15341 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15343 2007-04-29 Bruno Haible <bruno@clisp.org>
15345 * MODULES.html.sh (posix_functions): Remove 'contents'.
15347 2007-04-29 Karl Berry <karl@gnu.org>
15349 * config/srclist.txt (gendocs_template_min): new entry.
15351 2007-04-29 Bruno Haible <bruno@clisp.org>
15353 Work around fpurge bug on BSD systems.
15354 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15355 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15356 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15357 fpurge to rpl_fpurge if the system already has this function.
15358 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15359 the case where the system already has this function. Correct invariants
15361 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15364 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
15366 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
15367 proposed by Sven Verdoolaege.
15369 * tests/test-argp.c: Fix option ordering. Test deeply clustered
15371 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15372 (usage and help tests): Update
15374 2007-04-29 Bruno Haible <bruno@clisp.org>
15376 * tests/test-fflush.c (main): Use a file of size 17, not 10.
15377 Print more information in case of failure. Disable a test on BeOS.
15379 2007-04-29 Bruno Haible <bruno@clisp.org>
15381 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15382 This helps debugging on systems on which no gdb is available.
15384 2007-04-29 Bruno Haible <bruno@clisp.org>
15386 * lib/freading.h: Improve comments.
15387 * lib/fwriting.h: Likewise.
15388 * tests/test-freading.c (main): Don't check freading immediately after
15389 repositioning. Needed for glibc.
15391 2007-04-29 Bruno Haible <bruno@clisp.org>
15393 * lib/freading.c (freading): Trivial simplification.
15395 2007-04-28 Bruno Haible <bruno@clisp.org>
15397 * tests/test-fwriting.c (main): Also test the interaction between
15398 fflush and fwriting.
15399 * modules/fwriting-tests (Depends-on): Add fflush.
15401 * tests/test-freading.c (main): Also test the interaction between
15402 fflush and freading.
15403 * modules/freading-tests (Depends-on): Add fflush.
15405 2007-04-28 Bruno Haible <bruno@clisp.org>
15407 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15409 Suggested by Eric Blake.
15411 2007-04-28 Jim Meyering <jim@meyering.net>
15413 Avoid false-negative in gl_STDINT_H's C99 conformance test.
15414 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15415 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15417 2007-04-27 Eric Blake <ebb9@byu.net>
15419 * doc/headers/assert.texi (assert.h): Document assert module use.
15421 2007-04-27 Bruno Haible <bruno@clisp.org>
15423 * doc/headers/*.texi: New files.
15424 * doc/gnulib.texi (Header File Substitutes): New chapter.
15425 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15427 (standards.info ,standards.html, standards.dvi): Update dependencies.
15428 (mostlyclean, clean): New targets.
15430 2007-04-27 Bruno Haible <bruno@clisp.org>
15432 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15433 * modules/sysexits (Files, Makefile.am): Update.
15435 * lib/sys_socket_.h: Renamed from lib/socket_.h.
15436 * modules/sys_socket (Files, Makefile.am): Update.
15438 * lib/sys_stat_.h: Renamed from lib/stat_.h.
15439 * modules/sys_stat (Files, Makefile.am): Update.
15441 2007-04-27 Eric Blake <ebb9@byu.net>
15443 * lib/freading.h: Improve comments.
15444 * lib/fwriting.h: Likewise.
15445 * lib/fflush.c: Likewise.
15447 Fix closein for mingw.
15448 * modules/closein-tests: Add tests for closein.
15449 * tests/test-closein.c: New file.
15450 * tests/test-closein.sh: Likewise.
15451 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15452 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15454 2007-04-27 Bruno Haible <bruno@clisp.org>
15456 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15458 * lib/math_.h [__DECC]: Likewise.
15459 * lib/stdio_.h [__DECC]: Likewise.
15460 * lib/stdlib_.h [__DECC]: Likewise.
15461 * lib/string_.h [__DECC]: Likewise.
15462 * lib/time_.h [__DECC]: Likewise.
15463 * lib/wchar_.h [__DECC]: Likewise.
15464 * lib/wctype_.h [__DECC]: Likewise.
15466 2007-04-27 Bruno Haible <bruno@clisp.org>
15468 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15470 2007-04-27 Bruno Haible <bruno@clisp.org>
15472 * lib/fflush.c: Add comments.
15473 * modules/fpurge-tests (Depends-on): Add fflush.
15474 * modules/freadable-tests (Depends-on): Likewise.
15475 * modules/fwritable-tests (Depends-on): Likewise.
15477 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
15479 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15480 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
15481 Report by Bruno Haible <bruno@clisp.org>.
15483 2007-04-26 Eric Blake <ebb9@byu.net>
15485 Fix fflush on mingw.
15486 * modules/fflush (Depends-on): Add freading.
15487 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15490 2007-04-26 Eric Blake <ebb9@byu.net>
15491 and Bruno Haible <bruno@clisp.org>
15493 Implement freading and fwriting.
15494 * lib/freading.c: New file.
15495 * lib/freading.h: Likewise.
15496 * m4/freading.m4: Likewise.
15497 * modules/freading: Likewise.
15498 * modules/freading-tests: Likewise.
15499 * tests/test-freading.c: Likewise.
15500 * lib/fwriting.c: New file.
15501 * lib/fwriting.h: Likewise.
15502 * m4/fwriting.m4: Likewise.
15503 * modules/fwriting: Likewise.
15504 * modules/fwriting-tests: Likewise.
15505 * tests/test-fwriting.c: Likewise.
15506 * MODULES.html.sh (File stream based Input/Output): Mention them.
15508 2007-04-26 Bruno Haible <bruno@clisp.org>
15510 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15511 'long' when we assume it.
15512 Suggested by Eric Blake.
15514 2007-04-26 Bruno Haible <bruno@clisp.org>
15516 Ensure fseeko, ftello are declared on glibc systems.
15517 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15518 * modules/fseeko (configure.ac-early): Likewise.
15519 * modules/ftello (configure.ac-early): Likewise.
15520 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15521 AC_FUNC_FSEEKO for this.
15522 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15523 (gl_CHECK_FSEEKO): Remove macro.
15525 2007-04-26 Bruno Haible <bruno@clisp.org>
15527 * tests/test-fflush.c (main): Also check the ftell result after
15528 fflush and fseek/fseeko.
15529 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15530 file descriptor position cache in the stream.
15531 * lib/fseeko.c (rpl_fseeko): Likewise.
15533 2007-04-26 Bruno Haible <bruno@clisp.org>
15535 * modules/fflush-tests (Depends-on): Add fseeko.
15537 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
15538 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15540 * lib/argz_.h: ensure error_t definition is obtained in same
15541 mechanism system argz.h would have.
15542 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15543 argz facilities are known bad. Err on the side of caution if
15546 2007-04-25 Eric Blake <ebb9@byu.net>
15548 * lib/fpurge.c (includes): Use stdlib.h for free.
15549 * tests/test-fflush.c (main): Also test fflush-fseeko.
15551 2007-04-25 Bruno Haible <bruno@clisp.org>
15553 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15554 * lib/fseeko.c: New file.
15555 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15556 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15557 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15559 (gl_FUNC_FSEEKO): Invoke it.
15560 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15561 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15562 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15564 2007-04-25 Bruno Haible <bruno@clisp.org>
15566 * modules/fflush (Depends-on): Add ftello.
15568 2007-04-25 Bruno Haible <bruno@clisp.org>
15570 * modules/ftello-tests: New file.
15571 * tests/test-ftello.c: New file.
15573 * modules/ftello: New file.
15574 * m4/ftello.m4: New file.
15575 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15577 * lib/stdio_.h (ftello): New declaration.
15578 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15581 2007-04-25 Bruno Haible <bruno@clisp.org>
15583 * modules/fseeko-tests: New file.
15584 * tests/test-fseeko.c: New file.
15586 * modules/fseeko: New file.
15587 * m4/fseeko.m4: New file.
15588 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15590 * lib/stdio_.h (fseeko): New declaration.
15591 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15594 2007-04-25 Bruno Haible <bruno@clisp.org>
15596 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15598 2007-04-25 Bruno Haible <bruno@clisp.org>
15600 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15601 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15602 * tests/test-unistd.c: Likewise.
15603 * tests/test-fcntl.c: Likewise.
15605 2007-04-23 Eric Blake <ebb9@byu.net>
15607 * lib/fflush.c: Fix missing include.
15608 Reported by Bruno Haible.
15610 2007-04-23 Bruno Haible <bruno@clisp.org>
15612 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15613 Reported by Eric Blake.
15615 2007-04-23 Bruno Haible <bruno@clisp.org>
15617 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15619 2007-04-23 Bruno Haible <bruno@clisp.org>
15621 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15623 2007-04-23 Bruno Haible <bruno@clisp.org>
15625 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15626 Needed on HP-UX 11.
15628 2007-04-16 Eric Blake <ebb9@byu.net>
15630 Make fflush rely on fpurge.
15631 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15632 open coding all variants.
15633 * modules/fflush (Depends-on): Add fpurge and unistd.
15634 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15635 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15637 Fix --with-tests compilation on cygwin.
15638 * modules/argmatch-tests (Makefile.am): List gnulib library first
15640 * modules/argp-tests (Makefile.am): Likewise.
15641 * modules/array-list-tests (Makefile.am): Likewise.
15642 * modules/array-oset-tests (Makefile.am): Likewise.
15643 * modules/avltree-list-tests (Makefile.am): Likewise.
15644 * modules/avltree-oset-tests (Makefile.am): Likewise.
15645 * modules/avltreehash-list-tests (Makefile.am): Likewise.
15646 * modules/carray-list-tests (Makefile.am): Likewise.
15647 * modules/dirname-tests (Makefile.am): Likewise.
15648 * modules/frexp-tests (Makefile.am): Likewise.
15649 * modules/isnanl-tests (Makefile.am): Likewise.
15650 * modules/linked-list-tests (Makefile.am): Likewise.
15651 * modules/linkedhash-list-tests (Makefile.am): Likewise.
15652 * modules/lock-tests (Makefile.am): Likewise.
15653 * modules/rbtree-list-tests (Makefile.am): Likewise.
15654 * modules/rbtree-oset-tests (Makefile.am): Likewise.
15655 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15656 * modules/tls-tests (Makefile.am): Likewise.
15657 * modules/tsearch-tests (Makefile.am): Likewise.
15658 * modules/xvasprintf-tests (Makefile.am): Likewise.
15660 Fix fpurge for cygwin.
15661 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15663 * modules/fpurge-tests (Depends-on): Clean up trash.
15665 2007-04-16 Simon Josefsson <simon@josefsson.org>
15667 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15669 * m4/autobuild.m4: Re-indent.
15671 2007-04-13 Bruno Haible <bruno@clisp.org>
15673 * modules/fpurge-tests: New file.
15674 * tests/test-fpurge.c: New file.
15676 * modules/fpurge: New file.
15677 * lib/fpurge.h: New file.
15678 * lib/fpurge.c: New file.
15679 * m4/fpurge.m4: New file.
15681 2007-04-13 Bruno Haible <bruno@clisp.org>
15683 * modules/fbufmode-tests: New file.
15684 * tests/test-fbufmode.c: New file.
15686 * modules/fbufmode: New file.
15687 * lib/fbufmode.h: New file.
15688 * lib/fbufmode.c: New file.
15689 * m4/fbufmode.m4: New file.
15691 2007-04-13 Bruno Haible <bruno@clisp.org>
15693 * modules/fwritable-tests: New file.
15694 * tests/test-fwritable.c: New file.
15696 * modules/fwritable: New file.
15697 * lib/fwritable.h: New file.
15698 * lib/fwritable.c: New file.
15699 * m4/fwritable.m4: New file.
15701 2007-04-13 Bruno Haible <bruno@clisp.org>
15703 * modules/freadable-tests: New file.
15704 * tests/test-freadable.c: New file.
15706 * modules/freadable: New file.
15707 * lib/freadable.h: New file.
15708 * lib/freadable.c: New file.
15709 * m4/freadable.m4: New file.
15711 2007-04-13 Bruno Haible <bruno@clisp.org>
15713 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15716 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
15718 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15719 gzip bootstrap.conf to avoid dragging in i18n machinery.
15720 (gnulib_tool_option): Use it.
15722 2007-04-13 Bruno Haible <bruno@clisp.org>
15724 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15726 * tests/test-vasprintf-posix.c (test_function): Likewise.
15727 * tests/test-snprintf-posix.h (test_function): Likewise.
15728 * tests/test-sprintf-posix.h (test_function): Likewise.
15729 * tests/test-fprintf-posix.h (test_function): Likewise.
15730 * tests/test-printf-posix.h (test_function): Likewise.
15731 * tests/test-fprintf-posix.out: Likewise.
15733 2007-04-13 Bruno Haible <bruno@clisp.org>
15735 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15736 * modules/tls-tests (configure.ac): Likewise.
15737 Reported by Arto C. Nirkko <anirkko@insel.ch>.
15739 2007-04-13 Bruno Haible <bruno@clisp.org>
15741 * lib/tls.c (glthread_tls_get): Fix return type.
15742 Patch by Arto C. Nirkko <anirkko@insel.ch>.
15744 2007-04-12 Eric Blake <ebb9@byu.net>
15746 * modules/gettime (Depends-on): Remove gettime.
15747 Reported by Dmitry V. Levin.
15749 2007-04-12 Bruno Haible <bruno@clisp.org>
15751 * modules/fflush (Include): Mention <stdio.h>.
15752 * modules/strtoimax (Include): Mention <inttypes.h>.
15753 * modules/strtoumax (Include): Likewise.
15755 2007-04-12 Eric Blake <ebb9@byu.net>
15757 * .cvsignore: New file.
15758 * .gitignore: Likewise.
15760 2007-04-12 Bruno Haible <bruno@clisp.org>
15762 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15763 not before, since $(LDADD) often contains libgnu.a.
15764 * modules/striconv-tests (test_striconv_LDADD): Likewise.
15765 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15766 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15769 2007-04-12 Eric Blake <ebb9@byu.net>
15771 Work around glibc's failure to flush stdin on fclose.
15772 * lib/closein.c (close_stdin): Flush stdin before closing.
15774 Work around glibc's failure to reset seekable stdin on exit.
15775 * modules/closein: New module.
15776 * lib/closein.c: New file.
15777 * lib/closein.h: Likewise.
15778 * m4/closein.m4: Likewise.
15779 * MODULES.html.sh (File stream based Input/Output): Document it.
15781 2007-04-12 Simon Josefsson <simon@josefsson.org>
15783 * gnulib-tool: Rename generated 'autobuild' script to
15784 'do-autobuild' in --create-megatestdir output.
15786 * doc/gnulib.texi (Build robot for gnulib): Fix.
15788 2007-04-12 Simon Josefsson <simon@josefsson.org>
15790 * modules/sysexits (Depends-on): Add absolute-header.
15792 2007-04-12 Eric Blake <ebb9@byu.net>
15794 No need to preserve errno on success.
15795 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15796 Reported by Bruno Haible.
15798 2007-04-12 Simon Josefsson <simon@josefsson.org>
15800 * MODULES.html.sh (Support for maintaining and releasing
15801 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
15803 2007-04-12 Simon Josefsson <simon@josefsson.org>
15805 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15807 2007-04-12 Simon Josefsson <simon@josefsson.org>
15809 * modules/autobuild: New module.
15811 * m4/autobuild.m4: New file.
15813 2007-04-11 Bruno Haible <bruno@clisp.org>
15815 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15816 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15817 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15818 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15819 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15820 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15821 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15822 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15823 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15824 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15825 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15826 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15827 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15828 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15829 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15830 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15831 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15832 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15833 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15834 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15835 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15836 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15837 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15838 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15839 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15840 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15841 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15842 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15843 Reported by Eric Blake.
15845 2007-04-11 Bruno Haible <bruno@clisp.org>
15847 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15849 2007-04-10 Bruno Haible <bruno@clisp.org>
15851 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15852 for NaN and Infinity. Needed on FreeBSD 6.1.
15853 * tests/test-vasnprintf-posix.c (test_function): Undo last change
15854 regarding results for "%010a" of Infinity and NaN.
15855 * tests/test-vasprintf-posix.c (test_function): Likewise.
15856 * tests/test-snprintf-posix.h (test_function): Likewise.
15857 * tests/test-sprintf-posix.h (test_function): Likewise.
15858 * tests/test-fprintf-posix.h (test_function): Likewise.
15859 * tests/test-printf-posix.h (test_function): Likewise.
15860 * tests/test-fprintf-posix.out: Likewise.
15862 2007-04-10 Bruno Haible <bruno@clisp.org>
15864 * modules/locale-tests: New file.
15865 * tests/test-locale.c: New file.
15867 * modules/locale: New file.
15868 * lib/locale_.h: New file.
15869 * m4/locale_h.m4: New file.
15871 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
15872 Bruno Haible <bruno@clisp.org>
15874 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15875 be determined, test for availability of the copysignf, copysign,
15876 copysignl functions.
15877 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15878 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15879 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15881 2007-04-09 Eric Blake <ebb9@byu.net>
15883 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15884 * modules/stdio (Makefile.am): Support fflush.
15885 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15886 * modules/fflush: New file.
15887 * lib/fflush.c: Likewise.
15888 * m4/fflush.m4: Likewise.
15889 * modules/fflush-tests: New test.
15890 * tests/test-fflush.c: Likewise.
15891 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15893 2007-04-06 Bruno Haible <bruno@clisp.org>
15895 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15896 (VASNPRINTF): Use signbit for faster determination whether to print a
15898 * modules/vasnprintf (Files): Remove lib/float+.h.
15899 * modules/fprintf-posix (Depends-on): Add signbit.
15900 * modules/snprintf-posix (Depends-on): Likewise.
15901 * modules/sprintf-posix (Depends-on): Likewise.
15902 * modules/vasnprintf-posix (Depends-on): Likewise.
15903 * modules/vasprintf-posix (Depends-on): Likewise.
15904 * modules/vfprintf-posix (Depends-on): Likewise.
15905 * modules/vsnprintf-posix (Depends-on): Likewise.
15906 * modules/vsprintf-posix (Depends-on): Likewise.
15908 2007-04-06 Bruno Haible <bruno@clisp.org>
15910 * tests/test-frexp.c (main): Test also the sign bit of zero results.
15911 * tests/test-frexpl.c (main): Likewise.
15912 * tests/test-ldexpl.c (main): Likewise.
15913 * modules/frexp-tests (Depends-on): Add signbit.
15914 * modules/frexpl-tests (Depdends-on): Likewise.
15915 * modules/ldexpl-tests (Depdends-on): Likewise.
15917 2007-04-06 Bruno Haible <bruno@clisp.org>
15919 * modules/signbit-tests: New file.
15920 * tests/test-signbit.c: New file.
15922 * modules/signbit: New file.
15923 * lib/signbitf.c: New file.
15924 * lib/signbitd.c: New file.
15925 * lib/signbitl.c: New file.
15926 * m4/signbit.m4: New file.
15927 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15928 (signbit): New macro.
15929 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15931 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15932 REPLACE_FREXPL into math.h.
15934 2007-04-06 Bruno Haible <bruno@clisp.org>
15936 * modules/isnanf-nolibm-tests: New file.
15937 * tests/test-isnanf.c: New file.
15939 * modules/isnanf-nolibm: New file.
15940 * lib/isnanf.h: New file.
15941 * lib/isnanf.c: New file.
15942 * lib/isnan.c: Consider the USE_FLOAT macro.
15943 * m4/isnanf.m4: New file.
15945 2007-04-06 Bruno Haible <bruno@clisp.org>
15947 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15948 (Link): New section.
15950 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15952 2007-04-06 Bruno Haible <bruno@clisp.org>
15954 Assume the 'long double' type.
15955 * m4/longdouble.m4: Remove file.
15956 * config/srclist.txt: Don't mention longdouble.m4.
15957 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15958 * lib/float+.h: Likewise.
15959 * lib/frexp.c: Likewise.
15960 * lib/printf-args.h: Likewise.
15961 * lib/printf-args.c: Likewise.
15962 * lib/printf-frexp.c: Likewise.
15963 * lib/printf-parse.c: Likewise.
15964 * lib/vasnprintf.c: Likewise.
15965 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15966 * m4/intl.m4: Likewise.
15967 * m4/isnanl.m4: Likewise.
15968 * m4/printf.m4: Likewise.
15969 * m4/printf-frexpl.m4: Likewise.
15970 * m4/vasnprintf.m4: Likewise.
15971 * modules/allocsa (Files): Remove m4/longdouble.m4.
15972 * modules/gettext (Files): Likewise.
15973 * modules/relocatable-prog-wrapper (Files): Likewise.
15974 * modules/vasnprintf (Files): Likewise.
15975 * modules/isnanl (Files): Likewise.
15976 (Include): Simplify.
15977 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15978 (Include): Simplify.
15979 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15980 (Include): Simplify.
15981 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15982 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15983 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15984 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15985 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15986 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15987 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15988 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15989 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15990 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15991 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15992 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15993 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15994 * tests/test-isnanl.c: Likewise.
15995 * tests/test-snprintf-posix.h: Likewise.
15996 * tests/test-sprintf-posix.h: Likewise.
15997 * tests/test-vasnprintf-posix.c: Likewise.
15998 * tests/test-vasnprintf-posix2.c: Likewise.
15999 * tests/test-vasprintf-posix.c: Likewise.
16001 2007-04-06 Bruno Haible <bruno@clisp.org>
16003 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16004 * lib/math_.h [__DECC]: Include the overridden include file through
16005 #include_next, outside the double-inclusion guard.
16006 * lib/stdio_.h [__DECC]: Likewise.
16007 * lib/stdlib_.h [__DECC]: Likewise.
16008 * lib/string_.h [__DECC]: Likewise.
16009 * lib/time_.h [__DECC]: Likewise.
16010 * lib/wchar_.h [__DECC]: Likewise.
16011 * lib/wctype_.h [__DECC]: Likewise.
16012 * lib/inttypes_.h [__DECC]: Likewise.
16013 Reported by Albert Chin <china@thewrittenword.com> in
16014 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16016 2007-04-04 Eric Blake <ebb9@byu.net>
16018 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16021 2007-04-04 Bruno Haible <bruno@clisp.org>
16023 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16024 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16026 2007-04-04 Bruno Haible <bruno@clisp.org>
16028 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16029 results for "%010a" of Infinity and NaN.
16030 * tests/test-vasprintf-posix.c (test_function): Likewise.
16031 * tests/test-snprintf-posix.h (test_function): Likewise.
16032 * tests/test-sprintf-posix.h (test_function): Likewise.
16033 * tests/test-fprintf-posix.h (test_function): Remove these tests.
16034 * tests/test-printf-posix.h (test_function): Likewise.
16035 * tests/test-fprintf-posix.out: Update.
16036 Needed for FreeBSD 6.1.
16038 2007-04-04 Bruno Haible <bruno@clisp.org>
16040 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16041 directly used by the gnulib modules nor by gnulib-tool.
16043 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
16045 * DEPENDENCIES: Give overall description of version dependency
16046 desirability. Use more-typical names for apps.
16047 Add shell, coreutils, diffutils, grep, tar, gzip.
16049 2007-04-04 Simon Josefsson <simon@josefsson.org>
16051 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
16053 2007-04-04 Karl Berry <karl@gnu.org>
16055 * MODULES.html.sh (func_module): missing '.
16057 2007-04-03 Bruno Haible <bruno@clisp.org>
16059 * modules/argmatch-tests (Makefile.am): New variable
16060 test_argmatch_LDADD.
16061 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16062 * modules/array-list-tests (Makefile.am): New variable
16063 test_array_list_LDADD.
16064 * modules/array-oset-tests (Makefile.am): New variable
16065 test_array_oset_LDADD.
16066 * modules/avltree-list-tests (Makefile.am): New variable
16067 test_avltree_list_LDADD.
16068 * modules/avltree-oset-tests (Makefile.am): New variable
16069 test_avltree_oset_LDADD.
16070 * modules/avltreehash-list-tests (Makefile.am): New variable
16071 test_avltreehash_list_LDADD.
16072 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16073 test_canonicalize_lgpl_LDADD.
16074 * modules/carray-list-tests (Makefile.am): New variable
16075 test_carray_list_LDADD.
16076 * modules/dirname-tests (Makefile.am): New variable
16077 test_dirname_LDADD.
16078 * modules/linked-list-tests (Makefile.am): New variable
16079 test_linked_list_LDADD.
16080 * modules/linkedhash-list-tests (Makefile.am): New variable
16081 test_linkedhash_list_LDADD.
16082 * modules/rbtree-list-tests (Makefile.am): New variable
16083 test_rbtree_list_LDADD.
16084 * modules/rbtree-oset-tests (Makefile.am): New variable
16085 test_rbtree_oset_LDADD.
16086 * modules/rbtreehash-list-tests (Makefile.am): New variable
16087 test_rbtreehash_list_LDADD.
16088 * modules/xvasprintf-tests (Makefile.am): New variable
16089 test_xvasprintf_LDADD.
16090 Reported by Eric Blake.
16092 2007-04-03 Eric Blake <ebb9@byu.net>
16094 * DEPENDENCIES: Weaken m4 requirements.
16096 2007-04-03 Bruno Haible <bruno@clisp.org>
16098 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16099 * modules/isnanl-tests (configure.ac): Likewise.
16101 2007-04-03 Ben Pfaff <blp@gnu.org>
16103 * modules/iconv_open: Add $(srcdir)/ to source directory
16104 references in Makefile fragments that call gperf, to fix VPATH
16107 2007-04-03 Bruno Haible <bruno@clisp.org>
16109 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16110 * lib/ldexpl.c: Undo last change.
16112 2007-04-03 Bruno Haible <bruno@clisp.org>
16114 * modules/printf-frexpl (Depends-on): Undo last change.
16115 (Files): Add m4/ldexpl.m4.
16117 2007-04-03 Bruno Haible <bruno@clisp.org>
16119 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16120 * modules/isnanl (Link): New section.
16122 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16123 * modules/frexp (Link): New section.
16125 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16126 * modules/frexpl (Link): New section.
16128 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16129 * modules/ldexpl (Link): New section.
16131 2007-04-03 Bruno Haible <bruno@clisp.org>
16133 * modules/TEMPLATE-EXTENDED: New file.
16134 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16136 2007-04-03 Bruno Haible <bruno@clisp.org>
16138 * DEPENDENCIES: New file.
16139 Suggested by Simon Josefsson.
16141 2007-04-03 Bruno Haible <bruno@clisp.org>
16143 * doc/gnulib.texi: Escape @.
16145 2007-04-03 James Youngman <jay@gnu.org>
16146 and Paul Eggert <eggert@cs.ucla.edu>
16148 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16149 birthtime on all systems that have birthtime, not just those which
16150 use st_birthtimensec rather than st_birthtim. Putting zero in
16151 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16152 that the birth time is not available for files on an NFS mount.
16154 2007-04-03 Simon Josefsson <simon@josefsson.org>
16156 * modules/memxor: Move back from crypto/, suggested by Bruno.
16157 * modules/crypto/hmac-sha1: Fix memxor dependency.
16159 * modules/crypto/gc: Moved from ../.
16161 2007-04-02 Eric Blake <ebb9@byu.net>
16163 * lib/ldexpl.c (includes): Avoid libm.
16165 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16167 2007-04-02 Bruno Haible <bruno@clisp.org>
16169 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16172 2007-04-02 Bruno Haible <bruno@clisp.org>
16174 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16175 x86 or x86_64 platforms running MacOS X.
16176 Reported by Ryan Schmidt <@ryandesign.com>.
16178 2007-04-02 Bruno Haible <bruno@clisp.org>
16180 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16183 2007-04-01 Simon Josefsson <simon@josefsson.org>
16185 * modules/crypto/arcfour: Moved from ../.
16186 * modules/crypto/arcfour-tests: Moved from ../.
16187 * modules/crypto/arctwo: Moved from ../.
16188 * modules/crypto/arctwo-tests: Moved from ../.
16189 * modules/crypto/des: Moved from ../.
16190 * modules/crypto/des-tests: Moved from ../.
16191 * modules/crypto/gc-arcfour: Moved from ../.
16192 * modules/crypto/gc-arcfour-tests: Moved from ../.
16193 * modules/crypto/gc-arctwo: Moved from ../.
16194 * modules/crypto/gc-arctwo-tests: Moved from ../.
16195 * modules/crypto/gc-des: Moved from ../.
16196 * modules/crypto/gc-des-tests: Moved from ../.
16197 * modules/crypto/gc-hmac-md5: Moved from ../.
16198 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16199 * modules/crypto/gc-hmac-sha1: Moved from ../.
16200 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16201 * modules/crypto/gc-md2: Moved from ../.
16202 * modules/crypto/gc-md2-tests: Moved from ../.
16203 * modules/crypto/gc-md4: Moved from ../.
16204 * modules/crypto/gc-md4-tests: Moved from ../.
16205 * modules/crypto/gc-md5: Moved from ../.
16206 * modules/crypto/gc-md5-tests: Moved from ../.
16207 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16208 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16209 * modules/crypto/gc-random: Moved from ../.
16210 * modules/crypto/gc-rijndael: Moved from ../.
16211 * modules/crypto/gc-rijndael-tests: Moved from ../.
16212 * modules/crypto/gc-sha1: Moved from ../.
16213 * modules/crypto/gc-sha1-tests: Moved from ../.
16214 * modules/crypto/gc-tests: Moved from ../.
16215 * modules/crypto/hmac-md5: Moved from ../.
16216 * modules/crypto/hmac-md5-tests: Moved from ../.
16217 * modules/crypto/hmac-sha1: Moved from ../.
16218 * modules/crypto/hmac-sha1-tests: Moved from ../.
16219 * modules/crypto/md2: Moved from ../.
16220 * modules/crypto/md2-tests: Moved from ../.
16221 * modules/crypto/md4: Moved from ../.
16222 * modules/crypto/md4-tests: Moved from ../.
16223 * modules/crypto/md5: Moved from ../.
16224 * modules/crypto/md5-tests: Moved from ../.
16225 * modules/crypto/memxor: Moved from ../.
16226 * modules/crypto/rijndael: Moved from ../.
16227 * modules/crypto/rijndael-tests: Moved from ../.
16228 * modules/crypto/sha1: Moved from ../.
16230 2007-03-30 James Youngman <jay@gnu.org>
16232 * tests/test-stat-time.c (prepare_test): use chmod() rather than
16233 rename() to change the ctime of a file (because ctime is unaffected
16234 by rename on jfs2 on AIX 5.1).
16235 (main): Start by doing cleanup, in case a previous run failed leaving
16238 2007-03-31 Bruno Haible <bruno@clisp.org>
16240 Support old proprietary implementations of iconv.
16241 * modules/iconv_open: New file.
16242 * lib/iconv_.h: New file.
16243 * m4/iconv_h.m4: New file.
16244 * lib/iconv_open.c: New file.
16245 * lib/iconv_open-aix.gperf: New file.
16246 * lib/iconv_open-hpux.gperf: New file.
16247 * lib/iconv_open-irix.gperf: New file.
16248 * lib/iconv_open-osf.gperf: New file.
16249 * m4/iconv_open.m4: New file.
16250 * modules/linebreak (Depends-on): Add iconv_open.
16251 * modules/striconv (Depends-on): Likewise.
16252 * modules/striconveh (Depends-on): Likewise.
16253 * modules/unicodeio (Depends-on): Likewise.
16254 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16256 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16257 conversion if cd is (iconv_t)(-1).
16258 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16261 2007-03-31 Bruno Haible <bruno@clisp.org>
16263 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16264 work on Solaris either. Protect also second use of "autodetect_jp".
16266 2007-03-31 Bruno Haible <bruno@clisp.org>
16268 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16269 the function is not present.
16271 2007-03-31 Bruno Haible <bruno@clisp.org>
16273 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16274 the function is not present.
16276 2007-03-31 Bruno Haible <bruno@clisp.org>
16278 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16279 a bug in HP-UX iconv_open().
16281 2007-03-31 Bruno Haible <bruno@clisp.org>
16283 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16284 (Mathematics <math.h>): New section, add fpieee.
16285 (Input/output <stdio.h>): Add fseterr.
16286 (Mathematics <math.h>): New section, add printf-frexp.
16287 (Container data structures): Add sublist.
16288 (Core language properties): Add fpucw, inline.
16289 (Functions for greatest-width integer types <inttypes.h>): Add
16290 imaxabs, imaxdiv, inttypes.
16291 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16292 isnanl-nolibm, ldexp.
16293 (Mathematics <math.h>): New section, add printf-frexpl.
16294 (Support for systems lacking POSIX:2001): Add fprintf-posix,
16295 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16296 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16297 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16298 (Unicode string functions): Add unistr/u*-mbtoucr.
16299 (Java): Add javacomp-script, javaexec-script.
16300 (C#): Add csharpcomp-script, csharpexec-script.
16301 (Support for building libraries and executables): Add havelib,
16303 (Support for maintaining and releasing projects): Renamed from
16304 'Support for maintaining and release projects'. Add announce-gen.
16306 2007-03-31 Bruno Haible <bruno@clisp.org>
16308 * README: Talk primarily about git.
16309 (git and CVS): Renamed from CVS.
16310 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16311 gnulib is available through git.
16312 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16314 2007-03-30 Bruno Haible <bruno@clisp.org>
16316 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16317 * lib/poll_.h: Likewise.
16318 * lib/stat_.h: Likewise.
16319 * lib/sys_time_.h: Likewise.
16320 * lib/sysexit_.h: Likewise.
16321 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16322 * lib/stdbool_.h: Likewise.
16323 * lib/byteswap_.h: Add double-inclusion guard.
16325 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
16327 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16329 2007-03-30 Karl Berry <karl@gnu.org>
16331 * config/srclist-update: double space after USA in the license
16332 substitution, since that's how it's usually (?) written.
16334 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
16336 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16337 reported by Bruno Haible.
16339 2007-03-29 Bruno Haible <bruno@clisp.org>
16341 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16342 a bug in AIX iconv().
16344 2007-03-29 Bruno Haible <bruno@clisp.org>
16346 * modules/ldexpl-tests: New file.
16347 * tests/test-ldexpl.c: New file.
16349 2007-03-29 Bruno Haible <bruno@clisp.org>
16351 * lib/ldexpl.c: Include fpucw.h.
16352 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16354 * modules/ldexpl (Depends-on): Add fpucw.
16356 2007-03-29 Bruno Haible <bruno@clisp.org>
16358 * modules/ldexpl: New file.
16359 * m4/ldexpl.m4: New file.
16360 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16362 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16364 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16366 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16367 gl_FUNC_LDEXPL_WORKS.
16368 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16369 * modules/mathl (Files): Remove lib/ldexpl.c.
16370 (Depends-on): Add ldexpl.
16372 2007-03-29 Bruno Haible <bruno@clisp.org>
16374 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16376 2007-03-29 Bruno Haible <bruno@clisp.org>
16378 * tests/test-striconveh.c (main): Don't assume that a direct conversion
16379 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16380 and possibly also HP-UX.
16381 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16382 work on AIX, IRIX, HP-UX, OSF/1.
16383 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16384 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16385 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16386 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16387 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16388 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16390 2007-03-29 Bruno Haible <bruno@clisp.org>
16392 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16394 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
16396 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16397 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16399 2007-03-29 Eric Blake <ebb9@byu.net>
16401 * lib/acl-internal.h: Remove redundant include.
16402 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16403 Cygwin when a file is locked.
16405 2007-03-29 Bruno Haible <bruno@clisp.org>
16407 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16409 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16411 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
16413 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16414 try to remove a parent directory if the child couldn't be removed
16415 (except for the first rmdir, which could fail because the child
16416 doesn't exist). Problem reported by Jeff Blaine in
16417 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16419 2007-03-28 Bruno Haible <bruno@clisp.org>
16421 * lib/striconveh.c (utf8conv_carefully): New function.
16422 (mem_cd_iconveh_internal): Invoke it.
16424 2007-03-28 Bruno Haible <bruno@clisp.org>
16426 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16427 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16429 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16430 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16433 2007-03-28 Bruno Haible <bruno@clisp.org>
16435 * modules/unistr/u8-mbtoucr: New file.
16436 * lib/unistr/u8-mbtoucr.c: New file.
16437 * modules/unistr/u16-mbtoucr: New file.
16438 * lib/unistr/u16-mbtoucr.c: New file.
16439 * modules/unistr/u16-mbtoucr: New file.
16440 * lib/unistr/u16-mbtoucr.c: New file.
16441 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16443 2007-03-27 Simon Josefsson <simon@josefsson.org>
16444 Bruno Haible <bruno@clisp.org>
16446 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16447 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
16448 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16450 * m4/stdio_h.m4: Add stubs for vasprintf too.
16452 * modules/stdio: Support vasprintf in sed command.
16454 * modules/vasprintf: Depend on stdio for prototypes. Remove
16455 vasprintf.h. Add stdio module indicator.
16457 * lib/stdio_.h: Declare asprintf and vasprintf, based on
16460 * lib/vasprintf.h: File removed.
16462 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16463 * lib/vasprintf.c: Ditto.
16464 * lib/xvasprintf.c: Ditto.
16465 * tests/test-vasprintf-posix.c: Ditto.
16466 * tests/test-vasprintf.c: Ditto.
16468 2007-03-27 Bruno Haible <bruno@clisp.org>
16470 Make vasnprintf multithread-safe.
16471 * lib/vasnprintf.c (decimal_point_char): New function.
16472 (VASNPRINTF): Use it.
16473 Suggested by Simon Josefsson.
16475 2007-03-27 Eric Blake <ebb9@byu.net>
16477 Support sub-second birthtime on cygwin.
16478 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16479 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16480 (get_stat_birthtime): Also work with st_birthtim.
16482 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
16484 * lib/stat-time.h (USE_BIRTHTIME): Remove.
16485 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16486 (get_stat_birthtime_ns): Do not try to use "spare" fields.
16487 (get_stat_birthtime_ns): Simplify compile-time tests.
16488 (get_stat_birthtime): Change the API to look like
16489 get_stat_mtime etc., except return a negative tv_nsec on error.
16490 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16491 Don't check for "spare" fields.
16492 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16493 or for struct stat.st_birthtime, as these tests aren't used.
16494 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16496 2007-03-27 Bruno Haible <bruno@clisp.org>
16498 * lib/stat-time.h: Include <sys/stat.h>.
16500 2007-03-27 James Youngman <jay@gnu.org>
16502 * lib/stat-time.h (get_stat_birthtime): New function for
16503 retrieving st_birthtime as provided by UFS2 (hence *BSD).
16504 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16506 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16507 * modules/stat-time-test: New file.
16508 * tests/test-stat-time.c: New test, devised by Bruno Haible.
16510 2007-03-26 Bruno Haible <bruno@clisp.org>
16512 Better support of signalling NaNs.
16513 * lib/atanl.c: Include isnanl.h.
16514 (atanl): Perform test for NaN at the beginning of the function and
16515 through a call to isnanl.
16516 * lib/cosl.c: Include isnanl.h.
16517 (cosl): Perform test for NaN at the beginning of the function and
16518 through a call to isnanl.
16519 * lib/ldexpl.c: Include isnanl.h.
16520 (ldexpl): Perform test for NaN through a call to isnanl.
16521 * lib/logl.c: Include isnanl.h.
16522 (logl): Perform test for NaN at the beginning of the function and
16523 through a call to isnanl.
16524 * lib/sinl.c: Include isnanl.h.
16525 (sinl): Perform test for NaN at the beginning of the function and
16526 through a call to isnanl.
16527 * lib/sqrtl.c: Include isnanl.h.
16528 (sqrtl): Perform test for NaN at the beginning of the function and
16529 through a call to isnanl.
16530 * lib/tanl.c: Include isnanl.h.
16531 (tanl): Perform test for NaN at the beginning of the function and
16532 through a call to isnanl.
16533 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16534 * modules/mathl (Depends-on): Add isnanl.
16536 2007-03-26 Eric Blake <ebb9@byu.net>
16538 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16539 regression in logic sense of previous patch.
16541 2007-03-26 Bruno Haible <bruno@clisp.org>
16543 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16544 unportable shell command "if ! ...".
16545 Reported by Ralf Wildenhues.
16547 2007-03-25 Bruno Haible <bruno@clisp.org>
16549 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16550 <sysexits.h> file, and only add EX_CONFIG.
16551 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16552 absolute file name and whether it is sufficient. Substitute also
16553 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16554 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16555 ABSOLUTE_SYSEXITS_H into sysexits.h.
16557 2007-03-25 Bruno Haible <bruno@clisp.org>
16559 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16562 2007-03-25 Bruno Haible <bruno@clisp.org>
16564 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16565 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16567 2007-03-25 Bruno Haible <bruno@clisp.org>
16569 * lib/vasnprintf.c: Include langinfo.h.
16570 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16572 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16573 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16574 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16575 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16576 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16577 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16578 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16579 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16580 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16581 Reported by Simon Josefsson.
16583 2007-03-25 Bruno Haible <bruno@clisp.org>
16585 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16586 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16587 * modules/vasnprintf (Depends-on): Add stdint.
16589 2007-03-25 Bruno Haible <bruno@clisp.org>
16591 * modules/fpieee: New file.
16592 * m4/fpieee.m4: New file.
16593 * modules/isnan-nolibm (Depends-on): Add fpieee.
16594 * modules/isnanl-nolibm (Depends-on): Add fpieee.
16595 * modules/isnanl (Depends-on): Add fpieee.
16597 2007-03-25 Bruno Haible <bruno@clisp.org>
16599 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16601 2007-03-25 Bruno Haible <bruno@clisp.org>
16603 Avoid test failures on IRIX 6.5.
16604 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16606 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16610 2007-03-25 Bruno Haible <bruno@clisp.org>
16612 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16613 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16614 exists but doesn't work.
16615 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16616 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16617 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16618 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16620 2007-03-25 Bruno Haible <bruno@clisp.org>
16622 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16623 returns inf. Needed on IRIX 6.5.
16625 2007-03-25 Bruno Haible <bruno@clisp.org>
16627 * tests/test-frexpl.c: Include isnanl-nolibm.h.
16628 (main): Use isnanl instead of x != x idiom.
16629 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16631 * tests/test-frexp.c: Include isnan.h.
16632 (main): Use isnan instead of x != x idiom.
16633 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16635 2007-03-25 Bruno Haible <bruno@clisp.org>
16637 * tests/test-frexp.c (NaN): New function/macro.
16638 (main): Use it instead of 0.0 / 0.0.
16639 * tests/test-isnan.c (NaN): New function/macro.
16640 (main): Use it instead of 0.0 / 0.0.
16641 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16642 (test_function): Use it instead of 0.0 / 0.0.
16643 * tests/test-vasprintf-posix.c (NaN): New function/macro.
16644 (test_function): Use it instead of 0.0 / 0.0.
16645 * tests/test-snprintf-posix.h (NaN): New function/macro.
16646 (test_function): Use it instead of 0.0 / 0.0.
16647 * tests/test-sprintf-posix.h (NaN): New function/macro.
16648 (test_function): Use it instead of 0.0 / 0.0.
16649 * tests/test-fprintf-posix.h (NaN): New function/macro.
16650 (test_function): Use it instead of 0.0 / 0.0.
16651 * tests/test-printf-posix.h (NaN): New function/macro.
16652 (test_function): Use it instead of 0.0 / 0.0.
16654 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16656 2007-03-25 Bruno Haible <bruno@clisp.org>
16658 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16660 2007-03-25 Bruno Haible <bruno@clisp.org>
16662 * lib/regexec.c (merge_state_with_log): Make static.
16664 2007-03-25 Bruno Haible <bruno@clisp.org>
16666 * lib/trigl.c (kernel_rem_pio2): Make static.
16668 2007-03-25 Bruno Haible <bruno@clisp.org>
16670 * lib/sincosl.c (sincosl_table): Make static.
16672 2007-03-25 Bruno Haible <bruno@clisp.org>
16674 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16675 if the compiler does not support C99.
16677 2007-03-25 Bruno Haible <bruno@clisp.org>
16679 * modules/time (Makefile.am): Ensure all rule action lines start with a
16682 2007-03-24 Bruno Haible <bruno@clisp.org>
16684 * modules/tsearch-tests: New file.
16685 * tests/test-tsearch.sh: New file.
16686 * tests/test-tsearch.c: New file, mostly copied from glibc.
16688 * modules/search-tests: New file.
16689 * tests/test-search.c: New file.
16691 * modules/search: New file.
16692 * lib/search_.h: New file, incorporating lib/tsearch.h.
16693 * m4/search_h.m4: New file.
16694 * lib/tsearch.h: Remove file.
16695 * lib/tsearch.c: Include search.h instead of tsearch.h.
16696 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16698 * modules/tsearch (Files): Remove lib/tsearch.h.
16699 (Depends-on): Add search.
16700 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16701 (Include): Change tsearch.h into search.h.
16703 2007-03-24 Bruno Haible <bruno@clisp.org>
16705 * modules/fpucw: New file.
16706 * lib/fpucw.h: New file.
16707 * lib/frexp.c: Include fpucw.h.
16708 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16710 * lib/printf-frexp.c: Include fpucw.h.
16711 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16713 * lib/vasnprintf.c: Include fpucw.h.
16714 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16715 'long double' calculations.
16716 * tests/test-frexpl.c: Include fpucw.h.
16717 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16718 * tests/test-printf-frexpl.c: Include fpucw.h.
16719 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16720 * modules/frexpl (Depends-on): Add fpucw.
16721 * modules/printf-frexpl (Depends-on): Likewise.
16722 * modules/fprintf-posix (Depends-on): Likewise.
16723 * modules/snprintf-posix (Depends-on): Likewise.
16724 * modules/sprintf-posix (Depends-on): Likewise.
16725 * modules/vasnprintf-posix (Depends-on): Likewise.
16726 * modules/vasprintf-posix (Depends-on): Likewise.
16727 * modules/vfprintf-posix (Depends-on): Likewise.
16728 * modules/vsnprintf-posix (Depends-on): Likewise.
16729 * modules/vsprintf-posix (Depends-on): Likewise.
16730 * modules/frexpl-tests (Depends-on): Likewise.
16731 * modules/printf-frexpl-tests (Depends-on): Likewise.
16733 2007-03-24 Bruno Haible <bruno@clisp.org>
16735 * lib/float+.h: New file.
16736 * lib/isnan.c: Include float+.h.
16738 (FUNC): Compare only SIZE bytes of the value.
16739 * lib/vasnprintf.c: Include float+.h.
16740 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16741 SIZEOF_LDBL or SIZEOF_DBL bytes.
16742 * modules/isnan-nolibm (Files): Add lib/float+.h.
16743 * modules/isnanl-nolibm (Files): Add lib/float+.h.
16744 * modules/isnanl (Files): Add lib/float+.h.
16745 * modules/vasnprintf (Files): Add lib/float+.h.
16747 2007-03-24 Bruno Haible <bruno@clisp.org>
16749 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16750 include isnanl-nolibm.h.
16752 2007-03-24 Bruno Haible <bruno@clisp.org>
16754 * tests/test-read-file.c (main): Don't produce spurious output for
16755 expected situations. Make the test fail if it encountered unexpected
16758 2007-03-24 Bruno Haible <bruno@clisp.org>
16760 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16761 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16763 2007-03-24 Bruno Haible <bruno@clisp.org>
16765 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16767 2007-03-24 Bruno Haible <bruno@clisp.org>
16769 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16770 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16772 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16773 * modules/utf8-ucs4: Turn into a symbolic link to module
16776 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16778 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16779 unistr/u8-mbtouc-unsafe.
16781 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16782 * modules/utf16-ucs4: Turn into a symbolic link to module
16785 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16787 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16788 unistr/u16-mbtouc-unsafe.
16790 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16791 * modules/ucs4-utf8: Turn into a symbolic link to module
16794 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16795 * modules/ucs4-utf16: Turn into a symbolic link to module
16798 2007-03-24 Bruno Haible <bruno@clisp.org>
16800 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16801 Enable the function only if HAVE_INLINE.
16802 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16803 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16804 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16805 Enable the function only if HAVE_INLINE.
16806 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16807 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16808 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16809 Enable the function only if HAVE_INLINE.
16810 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16811 Enable the function only if HAVE_INLINE.
16812 * modules/utf8-ucs4: Update.
16813 * modules/utf8-ucs4-unsafe: Update.
16814 * modules/utf16-ucs4: Update.
16815 * modules/utf16-ucs4-unsafe: Update.
16816 * modules/ucs4-utf8: Update.
16817 * modules/ucs4-utf16: Update.
16819 2007-03-24 Bruno Haible <bruno@clisp.org>
16821 * lib/utf8-ucs4.h: Remove file.
16822 * lib/utf8-ucs4-unsafe.h: Remove file.
16823 * lib/utf16-ucs4.h: Remove file.
16824 * lib/utf16-ucs4-unsafe.h: Remove file.
16825 * lib/ucs4-utf8.h: Remove file.
16826 * lib/ucs4-utf16.h: Remove file.
16827 * lib/unistr.h: Include their previous contents.
16828 * m4/utf-ucs4.m4: Remove file.
16829 * m4/ucs4-utf.m4: Remove file.
16830 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16831 (Depends-on): Add unistr/base.
16832 (configure.ac): Remove gl_UTF_UCS4.
16833 (Makefile.am): Update.
16834 (Include): Change to unistr.h.
16835 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16836 (Depends-on): Add unistr/base.
16837 (configure.ac): Remove gl_UTF_UCS4.
16838 (Makefile.am): Update.
16839 (Include): Change to unistr.h.
16840 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16841 (Depends-on): Add unistr/base.
16842 (configure.ac): Remove gl_UTF_UCS4.
16843 (Makefile.am): Update.
16844 (Include): Change to unistr.h.
16845 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16846 (Depends-on): Add unistr/base.
16847 (configure.ac): Remove gl_UTF_UCS4.
16848 (Makefile.am): Update.
16849 (Include): Change to unistr.h.
16850 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16851 (Depends-on): Add unistr/base.
16852 (configure.ac): Remove gl_UCS4_UTF.
16853 (Makefile.am): Update.
16854 (Include): Change to unistr.h.
16855 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16856 (Depends-on): Add unistr/base.
16857 (configure.ac): Remove gl_UCS4_UTF.
16858 (Makefile.am): Update.
16859 (Include): Change to unistr.h.
16860 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16861 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16862 utf8-ucs4-unsafe.h.
16863 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16864 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16865 utf16-ucs4-unsafe.h.
16866 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16867 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16868 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16869 * lib/unistr/u8-strchr.c: Likewise.
16870 * lib/unistr/u8-strrchr.c: Likewise.
16871 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16872 * lib/unistr/u16-strchr.c: Likewise.
16873 * lib/unistr/u16-strrchr.c: Likewise.
16874 * lib/striconveh.c: Update.
16875 * lib/linebreak.c: Update.
16877 2007-03-24 Bruno Haible <bruno@clisp.org>
16879 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16880 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16882 2007-03-22 Bruno Haible <bruno@clisp.org>
16884 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16886 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
16888 * MODULES.html.sh (File system functions): New module write-any-file.
16889 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16890 * m4/write-any-file.m4: New files.
16892 2007-03-23 Eric Blake <ebb9@byu.net>
16894 * gnulib-tool: Rearrange space-tab sequences, since some editors
16897 2007-03-23 Eric Blake <ebb9@byu.net>
16899 * lib/version-etc.c (version_etc_va): Update license wording to
16900 be more concise. Recommended by Richard Stallman.
16902 2007-03-22 Bruno Haible <bruno@clisp.org>
16904 * lib/poll.c (MSG_PEEK): New fallback definition.
16906 2007-03-22 Bruno Haible <bruno@clisp.org>
16908 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16909 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16911 Fixes a compilation error on BeOS.
16913 2007-03-22 Bruno Haible <bruno@clisp.org>
16915 * modules/frexpl-tests: New file.
16916 * tests/test-frexpl.c: New file.
16918 * modules/frexpl: New file.
16919 * m4/frexpl.m4: New file.
16920 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16921 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16922 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16923 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16924 (Depends-on): Add frexpl. Remove isnanl-nolibm.
16925 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16927 2007-03-22 Bruno Haible <bruno@clisp.org>
16929 * lib/frexpl.c: Share code with lib/frexp.c.
16930 * modules/mathl (Files): Add lib/frexp.c.
16931 (Depends-on): Add isnanl-nolibm.
16933 2007-03-22 Bruno Haible <bruno@clisp.org>
16935 * modules/printf-frexp (Files): Add m4/frexp.m4.
16936 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16937 only if the found frexp function actually works.
16939 2007-03-22 Bruno Haible <bruno@clisp.org>
16941 * lib/frexp.c: Remove older implementation that uses divisions.
16943 2007-03-21 Bruno Haible <bruno@clisp.org>
16945 * modules/frexp-tests: New file.
16946 * tests/test-frexp.c: New file.
16948 * modules/frexp: New file.
16949 * lib/frexp.c: New file.
16950 * m4/frexp.m4: New file.
16951 * lib/math_.h (frexp): New declaration.
16952 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16954 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16956 2007-03-21 Bruno Haible <bruno@clisp.org>
16958 * modules/isnanl-tests: New file.
16959 * tests/test-isnanl.c: New file.
16961 * modules/isnanl: New file.
16962 * lib/isnanl.h: New file.
16963 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16964 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16965 gl_FUNC_ISNANL_WORKS.
16966 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16969 2007-03-21 Bruno Haible <bruno@clisp.org>
16971 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16974 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16975 * lib/vasnprintf.c: Update.
16976 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16977 tests/test-isnanl.h, remove tests/test-isnanl.c.
16978 (Makefile.am): Update.
16979 * tests/test-isnanl-nolibm.c: New file.
16980 * tests/test-isnanl.h: New file.
16981 * tests/test-isnanl.c: Remove file.
16983 2007-03-21 Jim Meyering <jim@meyering.net>
16985 When trying to open ".", treat ESTALE like EACCES.
16986 * lib/savewd.c (savewd_save): Resort to forking not just upon
16987 failure with EACCES, but also when errno is ESTALE.
16989 2007-03-20 Bruno Haible <bruno@clisp.org>
16991 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16992 Needed on AIX 5.1. Reported by Matthew Woehlke.
16994 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16996 Suggestions by Bruno Haible:
16997 * lib/acl-internal.h: Include "gettext.h" rather than rolling
16999 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17000 * modules/acl (Depends-on): Add gettext.
17002 2007-03-19 Bruno Haible <bruno@clisp.org>
17004 * modules/iconvme: Remove file.
17005 * lib/iconvme.h: Remove file.
17006 * lib/iconvme.c: Remove file.
17007 * m4/iconvme.m4: Remove file.
17009 2007-03-19 Bruno Haible <bruno@clisp.org>
17011 * doc/relocatable-maint.texi: Break long shell script line.
17012 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17014 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
17016 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17017 handle file_has_acl.
17018 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17019 * lib/acl.c: Move header inclusions and related macro defns into
17020 lib/acl-internal.h.
17021 (S_ISLNK): Remove defn, since that's now done for us.
17022 (file_has_acl): Move to lib/file-has-acl.c.
17023 Call acl_trivial if available. This is the crucial part of the fix.
17024 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
17025 shared within the library. Rewrite a bit, partly to make it compatible
17026 with the GNU coding style.
17027 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17028 Remove unnecessary double-quotes.
17029 Don't test for acl_to_text; the build will catch that.
17030 Replace acl_entries if it doesn't exist and it is needed.
17031 Check for -lsec and acl_trivial (as used on Solaris 10).
17032 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17033 lib/file-has-acl.c.
17034 (Depends-on): Add sys_stat, for S_ISLNK.
17036 2007-03-19 Ben Pfaff <blp@gnu.org>
17038 * doc/gnulib.texi: Fix typos.
17039 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17041 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
17043 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17044 If size is zero here, buf must be zero.
17046 2007-03-19 Simon Josefsson <simon@josefsson.org>
17048 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
17051 2007-03-18 Bruno Haible <bruno@clisp.org>
17053 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17054 Suggested by Eric Blake.
17056 2007-03-18 Ben Pfaff <blp@gnu.org>
17058 * doc/relocatable.texi: Recommend using as prefix a directory
17059 that does not exist and will never be created. Based on
17060 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17063 2007-03-17 Bruno Haible <bruno@clisp.org>
17065 * lib/fchownat.c: Include lchown.h.
17067 2007-03-17 Bruno Haible <bruno@clisp.org>
17069 Fix endless loop when the given allocated size was > INT_MAX.
17070 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17071 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17072 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17073 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17074 * lib/sprintf.c (sprintf): Likewise.
17076 2007-03-17 Bruno Haible <bruno@clisp.org>
17078 * tests/test-argp-2.sh (func_compare): Output a context diff.
17080 2007-03-17 Bruno Haible <bruno@clisp.org>
17082 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17083 locale's decimal-point character.
17085 2007-03-17 Bruno Haible <bruno@clisp.org>
17087 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17088 before comparing it. Needed because on some platforms (e.g. x86) a
17089 'long double' occupies less bytes than sizeof (long double).
17091 2007-03-17 Bruno Haible <bruno@clisp.org>
17093 * tests/test-crc.c (main): Make printf statements 64-bit clean.
17094 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17095 * tests/test-getaddrinfo.c (simple): Likewise.
17096 * tests/test-read-file.c (main): Likewise.
17098 2007-03-17 Bruno Haible <bruno@clisp.org>
17100 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17102 2007-03-17 Bruno Haible <bruno@clisp.org>
17104 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17107 2007-03-17 Bruno Haible <bruno@clisp.org>
17109 * tests/test-c-strcasecmp.c: Include c-strcase.h.
17110 * tests/test-c-strncasecmp.c: Likewise.
17112 2007-03-17 Bruno Haible <bruno@clisp.org>
17114 * modules/stdlib (Depends-on): Add unistd.
17115 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17116 Needed for MacOS X 10.3.
17118 2007-03-17 Bruno Haible <bruno@clisp.org>
17120 * lib/unistr/u-strdup.h: Include <stdlib.h>.
17122 2007-03-17 Bruno Haible <bruno@clisp.org>
17124 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17126 2007-03-17 Bruno Haible <bruno@clisp.org>
17128 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17129 to reflect files copied from gnulib (with or without modifications).
17130 Suggested by Jim Meyering.
17132 2007-03-17 Eric Blake <ebb9@byu.net>
17134 * NEWS: Document stdlib change from 2007-02-18.
17136 2007-03-17 Jim Meyering <jim@meyering.net>
17138 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17139 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17140 someone uses a name containing shell meta-characters.
17141 Reported by Alfred M. Szmidt.
17143 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
17145 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
17147 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
17148 and copy gettext configuration files only if configure.ac contains
17149 a use of AM_GNU_GETTEXT_VERSION.
17151 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
17153 * build-aux/bootstrap (gnulib_name): New variable.
17154 (gnulib_tool_options): Use it.
17156 2007-03-13 Simon Josefsson <simon@josefsson.org>
17158 * tests/test-des.c: Use new namespace.
17160 2007-03-15 Bruno Haible <bruno@clisp.org>
17162 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17163 Reported by James Youngman <jay@gnu.org>.
17165 2007-03-15 Bruno Haible <bruno@clisp.org>
17167 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17168 declared prototype. Needed with cc on OSF/1 5.1.
17170 2007-03-15 Bruno Haible <bruno@clisp.org>
17172 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17173 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17174 (struct gl_list_implementation): Add dispose_fn argument to the
17175 'create_empty', 'create' methods.
17176 (struct gl_list_impl_base): Add field 'dispose_fn'.
17177 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17179 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17180 dispose_fn argument.
17181 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17182 dispose_fn on the dropped values.
17183 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17184 dispose_fn argument.
17185 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17187 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17188 (gl_tree_remove_node): Call dispose_fn on the dropped value.
17189 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17190 (gl_tree_remove_node): Call dispose_fn on the dropped value.
17191 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17193 (gl_tree_list_free): Call dispose_fn on the dropped values.
17194 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17195 the dropped values.
17196 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17197 Add dispose_fn argument.
17198 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17199 Call dispose_fn on the dropped values.
17200 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17201 Add dispose_fn argument.
17202 (gl_sublist_create): Initialize the 'dispose_fn' field.
17203 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17204 * tests/test-array_list.c (main): Update.
17205 * tests/test-carray_list.c (main): Update.
17206 * tests/test-avltree_list.c (main): Update.
17207 * tests/test-rbtree_list.c (main): Update.
17208 * tests/test-avltreehash_list.c (main): Update.
17209 * tests/test-rbtreehash_list.c (main): Update.
17210 * tests/test-linked_list.c (main): Update.
17211 * tests/test-linkedhash_list.c (main): Update.
17212 * tests/test-array_oset.c (main): Update.
17214 2007-03-15 Bruno Haible <bruno@clisp.org>
17216 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17217 (gl_oset_create_empty): Add dispose_fn argument.
17218 (struct gl_oset_implementation): Add dispose_fn argument to
17219 'create_empty' method.
17220 (struct gl_oset_impl_base): Add dispose_fn field.
17221 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17222 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17223 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17225 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17226 (gl_tree_oset_free): Call dispose_fn on the dropped values.
17227 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17229 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17231 * tests/test-array_oset.c (main): Update.
17232 * tests/test-avltree_oset.c (main): Update.
17233 * tests/test-rbtree_oset.c (main): Update.
17234 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17236 2007-03-13 Bruno Haible <bruno@clisp.org>
17238 * tests/test-stdbool.c (i): Update after last patch.
17240 2007-03-12 Bruno Haible <bruno@clisp.org>
17242 * lib/quotearg.c: Include <wctype.h> early, before the definition of
17243 the iswprint macro. Needed on Solaris 2.5.1.
17245 2007-03-12 Bruno Haible <bruno@clisp.org>
17247 * tests/test-printf-frexp.c (main): Declare x as volatile.
17249 2007-03-12 Simon Josefsson <simon@josefsson.org>
17251 * doc/gnulib.texi (Build robot for gnulib): New section.
17253 2007-03-12 Jim Meyering <jim@meyering.net>
17255 * build-aux/bootstrap: New file.
17256 * build-aux/bootstrap.conf: New file, from coreutils.
17258 2007-03-11 Bruno Haible <bruno@clisp.org>
17260 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17262 2007-03-12 Simon Josefsson <simon@josefsson.org>
17264 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17265 avoid collisions with 'des_setkey'. Reported by Bruno Haible
17266 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
17268 2007-03-11 Bruno Haible <bruno@clisp.org>
17270 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17271 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17273 2007-03-11 Bruno Haible <bruno@clisp.org>
17275 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17276 formula. Needed for SunPRO C 5.0.
17278 2007-03-11 Bruno Haible <bruno@clisp.org>
17280 * modules/long-options (Depends-on): Add getopt.
17282 2007-03-11 Bruno Haible <bruno@clisp.org>
17284 * modules/modechange (Depends-on): Add stdbool.
17286 2007-03-11 Bruno Haible <bruno@clisp.org>
17288 * modules/i-ring (Depends-on): Add stdbool.
17290 2007-03-11 Bruno Haible <bruno@clisp.org>
17292 * modules/gc-des (Depends-on): Add stdbool.
17294 2007-03-11 Bruno Haible <bruno@clisp.org>
17296 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17298 2007-03-11 Bruno Haible <bruno@clisp.org>
17300 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17302 2007-03-11 Bruno Haible <bruno@clisp.org>
17304 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17306 2007-03-11 Bruno Haible <bruno@clisp.org>
17308 * lib/vasnprintf.c (sprintf): Undefine.
17310 2007-03-11 Bruno Haible <bruno@clisp.org>
17312 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17313 initializers in SunPRO C and Compaq C compilers.
17315 2007-03-11 Bruno Haible <bruno@clisp.org>
17317 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17318 decrementing code ANSI C compliant.
17320 2007-03-11 Bruno Haible <bruno@clisp.org>
17322 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17323 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17325 2007-03-11 Bruno Haible <bruno@clisp.org>
17327 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17328 <stdbool.h> substitute doesn't pass.
17330 2007-03-11 Bruno Haible <bruno@clisp.org>
17332 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17334 2007-03-11 Bruno Haible <bruno@clisp.org>
17336 * gnulib-tool (func_create_megatestdir): Create also an autobuild
17337 script, for submission to autobuild.josefsson.org.
17339 2007-03-10 Bruno Haible <bruno@clisp.org>
17341 * modules/canonicalize-lgpl-tests: New file.
17342 * tests/test-canonicalize-lgpl.sh: New file.
17343 * tests/test-canonicalize-lgpl.c: New file.
17345 * modules/c-strcase-tests: New file.
17346 * tests/test-c-strcase.sh: New file.
17347 * tests/test-c-strcasecmp.c: New file.
17348 * tests/test-c-strncasecmp.c: New file.
17350 * modules/atexit-tests: New file.
17351 * tests/test-atexit.sh: New file.
17352 * tests/test-atexit.c: New file.
17354 2007-03-10 Bruno Haible <bruno@clisp.org>
17356 * tests/test-binary-io.sh: Use temporary filenames that are not so
17357 likely to clash with those of other tests (in a parallel make).
17358 * tests/test-binary-io.c: Likewise.
17360 2007-03-10 Bruno Haible <bruno@clisp.org>
17362 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17363 fallback; use #error instead.
17364 Suggested by Simon Josefsson.
17366 2007-03-10 Bruno Haible <bruno@clisp.org>
17368 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17369 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17370 first and the last.
17372 2007-03-10 Bruno Haible <bruno@clisp.org>
17374 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17376 2007-03-10 Bruno Haible <bruno@clisp.org>
17378 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17380 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17381 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17382 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17384 2007-03-10 Bruno Haible <bruno@clisp.org>
17386 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17388 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17391 2007-03-09 Eric Blake <ebb9@byu.net>
17392 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
17394 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17395 types are not being provided by gnulib.
17396 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17397 types are supported.
17399 2007-03-10 Bruno Haible <bruno@clisp.org>
17401 * lib/stdio_.h (__attribute__): New macro.
17402 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17403 vsprintf): Specify __attribute__ __format__ for GCC.
17404 Suggested by Eric Blake.
17406 2007-03-09 Bruno Haible <bruno@clisp.org>
17408 * modules/printf-posix-tests: New file.
17409 * tests/test-printf-posix.sh: New file.
17410 * tests/test-printf-posix.c: New file.
17412 * modules/printf-posix: New file.
17413 * lib/printf.c: New file.
17414 * m4/printf-posix-rpl.m4: New file.
17415 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17417 * lib/stdio_.h (printf): New declaration.
17418 (format, __format__, ____printf____, ____scanf____, ____strftime____,
17419 ____strfmon____): New macros.
17420 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17423 2007-03-09 Bruno Haible <bruno@clisp.org>
17425 * tests/test-vasnprintf-posix2.sh: New file.
17426 * tests/test-vasnprintf-posix2.c: New file.
17427 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17428 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17429 (Makefile.am): Activate test-vasnprintf-posix2.sh.
17431 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17432 a locale dependent decimal point, rather than always '.'.
17434 2007-03-09 Eric Blake <ebb9@byu.net>
17436 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17437 spite of platforms like Tandem/NSK that define it to -1.
17439 2007-03-08 Bruno Haible <bruno@clisp.org>
17441 * modules/vprintf-posix-tests: New file.
17442 * tests/test-vprintf-posix.sh: New file.
17443 * tests/test-vprintf-posix.c: New file.
17444 * tests/test-printf-posix.h: New file.
17446 * modules/vprintf-posix: New file.
17447 * lib/vprintf.c: New file.
17448 * m4/vprintf-posix.m4: New file.
17449 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17451 * lib/stdio_.h (vprintf): New declaration.
17452 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17455 2007-03-08 Bruno Haible <bruno@clisp.org>
17457 * modules/fprintf-posix-tests: New file.
17458 * tests/test-fprintf-posix.sh: New file.
17459 * tests/test-fprintf-posix.c: New file.
17461 * modules/fprintf-posix: New file.
17462 * lib/fprintf.c: New file.
17463 * m4/fprintf-posix.m4: New file.
17464 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17466 * lib/stdio_.h (fprintf): New declaration.
17467 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17470 2007-03-08 Bruno Haible <bruno@clisp.org>
17472 * modules/vfprintf-posix-tests: New file.
17473 * tests/test-vfprintf-posix.sh: New file.
17474 * tests/test-vfprintf-posix.c: New file.
17475 * tests/test-fprintf-posix.h: New file.
17476 * tests/test-fprintf-posix.out: New file.
17478 * modules/vfprintf-posix: New file.
17479 * lib/vfprintf.c: New file.
17480 * m4/vfprintf-posix.m4: New file.
17481 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17483 * lib/stdio_.h (vfprintf): New declaration.
17484 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17487 2007-03-08 Bruno Haible <bruno@clisp.org>
17489 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17491 2007-03-08 Bruno Haible <bruno@clisp.org>
17493 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17494 instead of 'expr' invocations.
17495 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17496 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17497 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17498 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17499 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17500 Suggested by Paul Eggert.
17502 2007-03-08 Bruno Haible <bruno@clisp.org>
17504 * modules/fseterr-tests: New file.
17505 * tests/test-fseterr.c: New file.
17507 * modules/fseterr: New file.
17508 * lib/fseterr.h: New file.
17509 * lib/fseterr.c: New file.
17511 2007-03-08 Bruno Haible <bruno@clisp.org>
17513 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17514 * lib/getopt_.h: Likewise.
17515 * lib/mbswidth.h: Likewise.
17516 * lib/setenv.h: Likewise.
17517 * lib/vasnprintf.h: Likewise.
17518 * lib/vasprintf.h: Likewise.
17519 * lib/verror.h: Likewise.
17520 * lib/xsetenv.h: Likewise.
17521 * lib/xvasprintf.h: Likewise.
17523 2007-03-08 Jim Meyering <jim@meyering.net>
17525 * users.txt: Add parted.
17527 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17529 2007-03-07 Bruno Haible <bruno@clisp.org>
17531 * m4/printf.m4: Make the shell script snippets copy&pastable.
17533 2007-03-02 Bruno Haible <bruno@clisp.org>
17535 * lib/netinet_in_.h: New file.
17536 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17537 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17538 * modules/netinet_in (Files): Add lib/netinet_in_.h.
17539 (Depends-on): Add absolute-header.
17540 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17543 2007-03-03 Bruno Haible <bruno@clisp.org>
17545 * lib/sys_select_.h: New file.
17546 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17547 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17548 * modules/sys_select (Files): Add lib/sys_select_.h.
17549 (Depends-on): Add absolute-header.
17550 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17553 2007-03-02 Bruno Haible <bruno@clisp.org>
17555 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17556 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17558 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17559 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17560 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17561 * modules/sys_socket (Depends-on): Add absolute-header.
17562 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17563 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17564 (Include): Remove requirement of inclusion of <sys/types.h>.
17566 2007-03-02 Bruno Haible <bruno@clisp.org>
17568 * lib/byteswap_.h (bswap_32): Fix formula.
17570 2007-03-06 Bruno Haible <bruno@clisp.org>
17572 * modules/sprintf-posix-tests: New file.
17573 * tests/test-sprintf-posix.c: New file.
17575 * modules/sprintf-posix: New file.
17576 * lib/sprintf.c: New file.
17577 * m4/sprintf-posix.m4: New file.
17578 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17580 * lib/stdio_.h (sprintf): New declaration.
17581 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17584 2007-03-06 Bruno Haible <bruno@clisp.org>
17586 * modules/vsprintf-posix-tests: New file.
17587 * tests/test-vsprintf-posix.c: New file.
17588 * tests/test-sprintf-posix.h: New file.
17590 * modules/vsprintf-posix: New file.
17591 * lib/vsprintf.c: New file.
17592 * m4/vsprintf-posix.m4: New file.
17593 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17595 * lib/stdio_.h (vsprintf): New declaration.
17596 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17599 2007-03-06 Bruno Haible <bruno@clisp.org>
17601 * modules/vsnprintf (Depend-on): Remove minmax.
17603 2007-03-06 Bruno Haible <bruno@clisp.org>
17605 * modules/snprintf-posix-tests: New file.
17606 * tests/test-snprintf-posix.c: New file.
17608 * modules/snprintf-posix: New file.
17609 * m4/snprintf-posix.m4: New file.
17610 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17612 (gl_FUNC_SNPRINTF): Invoke it.
17613 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17614 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17616 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17618 2007-03-06 Bruno Haible <bruno@clisp.org>
17620 * modules/vsnprintf-posix-tests: New file.
17621 * tests/test-vsnprintf-posix.c: New file.
17622 * tests/test-snprintf-posix.h: New file.
17624 * modules/vsnprintf-posix: New file.
17625 * m4/vsnprintf-posix.m4: New file.
17626 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17628 (gl_FUNC_VSNPRINTF): Invoke it.
17629 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17630 * lib/stdio_.h (vsnprintf): Define as a replacement if
17631 REPLACE_VSNPRINTF is set.
17632 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17634 2007-03-06 Bruno Haible <bruno@clisp.org>
17636 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17637 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17639 2007-03-06 Bruno Haible <bruno@clisp.org>
17641 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17642 (asinl): Declare also if HAVE_DECL_ASINL is set.
17643 (atanl): Declare also if HAVE_DECL_ATANL is set.
17644 (ceill): Declare also if HAVE_DECL_CEILL is set.
17645 (cosl): Declare also if HAVE_DECL_COSL is set.
17646 (expl): Declare also if HAVE_DECL_EXPL is set.
17647 (floorl): Declare also if HAVE_DECL_FLOORL is set.
17648 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17649 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17650 (logl): Declare also if HAVE_DECL_LOGL is set.
17651 (sinl): Declare also if HAVE_DECL_SINL is set.
17652 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17653 (tanl): Declare also if HAVE_DECL_TANL is set.
17654 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17655 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17656 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17657 declaration of frexpl, ldexpl.
17658 * modules/printf-frexpl (Depends-on): Add math.
17659 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17661 2007-03-05 Bruno Haible <bruno@clisp.org>
17663 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17664 frexpl and ldexpl are declared.
17665 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17667 2007-03-05 Bruno Haible <bruno@clisp.org>
17669 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17670 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17672 2007-03-05 Bruno Haible <bruno@clisp.org>
17674 * lib/stdio_.h: Include <stddef.h>.
17676 2007-03-05 Bruno Haible <bruno@clisp.org>
17678 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17680 2007-03-05 Bruno Haible <bruno@clisp.org>
17682 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17683 NetBSD 4, from Ralf Wildenhues.
17685 2007-03-04 Bruno Haible <bruno@clisp.org>
17687 * lib/vasprintf.h: Update #if logic for the case when the functions
17688 exist but are overridden.
17690 2007-03-04 Bruno Haible <bruno@clisp.org>
17692 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17693 implementations: glibc-2.4 and MacOS X 10.3.
17694 * tests/test-vasnprintf-posix.c (test_function): Test also the case
17695 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17696 * tests/test-vasprintf-posix.c (test_function): Likewise.
17698 2007-03-04 Bruno Haible <bruno@clisp.org>
17700 * modules/vasprintf-posix-tests: New file.
17701 * tests/test-vasprintf-posix.c: New file.
17703 * modules/vasprintf-posix: New file.
17704 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17706 * m4/vasprintf-posix.m4: New file.
17707 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17709 (gl_FUNC_VASPRINTF): Invoke it.
17710 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17712 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17714 2007-03-04 Bruno Haible <bruno@clisp.org>
17716 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17717 REPLACE_GETTIMEOFDAY.
17718 * modules/sys_time (Makefile.am): Likewise.
17719 * m4/sys_time_h.m4: Likewise.
17720 * m4/gettimeofday.m4: Likewise.
17722 2007-03-04 Bruno Haible <bruno@clisp.org>
17724 * modules/vasnprintf-posix-tests: New file.
17725 * tests/test-vasnprintf-posix.c: New file.
17727 * modules/vasnprintf-posix: New file.
17728 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17730 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17731 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17732 REPLACE_VASNPRINTF is defined.
17733 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17734 gl_FUNC_VASNPRINTF.
17735 (gl_FUNC_VASNPRINTF): Invoke it.
17736 * m4/vasnprintf-posix.m4: New file.
17737 * m4/printf.m4: New file.
17739 2007-03-04 Bruno Haible <bruno@clisp.org>
17741 Compile progreloc.c only if --enable-relocatable is specified.
17742 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17743 if --enable-relocatable was specified.
17744 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17747 2007-03-04 Jim Meyering <jim@meyering.net>
17749 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17750 Use it consistently, rather than enumerating errno constants.
17752 2007-03-04 Bruno Haible <bruno@clisp.org>
17754 * modules/xvasprintf-tests: New file.
17755 * tests/test-xvasprintf.c: New file.
17757 * modules/vasprintf-tests: New file.
17758 * tests/test-vasprintf.c: New file.
17760 * modules/vasnprintf-tests: New file.
17761 * tests/test-vasnprintf.c: New file.
17763 * modules/vsnprintf-tests: New file.
17764 * tests/test-vsnprintf.c: New file.
17766 * modules/snprintf-tests: New file.
17767 * tests/test-snprintf.c: New file.
17769 2007-03-04 Bruno Haible <bruno@clisp.org>
17771 Compile relocatable.c only if --enable-relocatable is specified.
17772 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17773 gl_RELOCATABLE_LIBRARY.
17774 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17775 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17776 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17777 gl_RELOCATABLE_LIBRARY.
17778 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17779 (Makefile.am): Remove lib_SOURCES.
17780 * modules/relocatable-lib-lgpl (configure.ac): Invoke
17781 gl_RELOCATABLE_LIBRARY.
17782 (Makefile.am): Remove lib_SOURCES.
17783 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17785 * modules/relocatable-prog-wrapper (configure.ac): Invoke
17786 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17788 2007-03-04 Bruno Haible <bruno@clisp.org>
17790 * modules/argmatch-tests: New file.
17791 * tests/test-argmatch.c: New file.
17793 * tests/test-allocsa.c (main): Halve the number of loop runs.
17795 * modules/alloca-opt-tests: New file.
17796 * tests/test-alloca-opt.c: New file.
17798 2007-03-04 Jim Meyering <jim@meyering.net>
17800 Work around difference between Linux ACLs and Solaris 10 ZFS.
17801 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17804 2007-03-03 Bruno Haible <bruno@clisp.org>
17806 * modules/relocatable-prog (Depends-on): Add back progreloc's
17807 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17809 2007-03-03 Bruno Haible <bruno@clisp.org>
17811 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17812 * modules/relocatable-lib: New file.
17814 2007-03-03 Bruno Haible <bruno@clisp.org>
17816 * modules/relocatable-prog: Renamed from modules/relocatable.
17817 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17819 2007-03-03 Bruno Haible <bruno@clisp.org>
17821 * modules/relocatable-script (Files): Add doc/relocatable.texi,
17822 m4/relocatable-lib.m4.
17823 (Depends-on): Remove 'relocatable'.
17824 (configure.ac): Add gl_RELOCATABLE_NOP.
17826 2007-03-03 Bruno Haible <bruno@clisp.org>
17828 * modules/relocatable-prog-wrapper: New file.
17829 * modules/relocatable (Depends-on): Add it. Remove all other
17830 dependencies except progname.
17831 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17833 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17834 (gl_FUNC_STRERROR): Nop.
17835 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17837 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17838 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17840 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17841 (gl_FUNC_READLINK): Update.
17843 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17845 2007-03-03 Bruno Haible <bruno@clisp.org>
17847 * lib/xreadlink.c: Include <unistd.h> unconditionally.
17848 * modules/xreadlink (Depends-on): Add unistd.
17849 * modules/xreadlink-with-size (Depends-on): Likewise.
17851 2007-03-03 Bruno Haible <bruno@clisp.org>
17853 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17854 extracted from gt_FUNC_SETENV.
17855 (gt_FUNC_SETENV): Remove macro.
17856 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17857 remove gt_FUNC_SETENV.
17859 2007-03-03 Bruno Haible <bruno@clisp.org>
17861 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17862 ENABLE_RELOCATABLE here.
17863 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17865 2007-03-03 Bruno Haible <bruno@clisp.org>
17867 * modules/rbtreehash-list-tests (Depends-on): Add progname.
17868 * tests/test-rbtreehash_list.c: Include progname.h.
17869 (main): Call set_program_name.
17871 * modules/rbtree-oset-tests (Depends-on): Add progname.
17872 * tests/test-rbtree_oset.c: Include progname.h.
17873 (main): Call set_program_name.
17875 * modules/rbtree-list-tests (Depends-on): Add progname.
17876 * tests/test-rbtree_list.c: Include progname.h.
17877 (main): Call set_program_name.
17879 * modules/linked-list-tests (Depends-on): Add progname.
17880 * tests/test-linked_list.c: Include progname.h.
17881 (main): Call set_program_name.
17883 2007-03-03 Bruno Haible <bruno@clisp.org>
17885 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17886 All uses of __restrict changed to _Restrict_.
17887 * lib/glob_.h (__restrict): Remove macro.
17889 2007-03-02 Bruno Haible <bruno@clisp.org>
17891 * modules/gettext (configure.ac): Require gettext infrastructure
17892 from version 0.16.1.
17894 2007-03-02 Bruno Haible <bruno@clisp.org>
17896 * modules/linkedhash-list-tests (Depends-on): Add progname.
17897 * tests/test-linkedhash_list.c: Include progname.h.
17898 (main): Call set_program_name.
17900 * modules/carray-list-tests (Depends-on): Add progname.
17901 * tests/test-carray_list.c: Include progname.h.
17902 (main): Call set_program_name.
17904 * modules/avltreehash-list-tests (Depends-on): Add progname.
17905 * tests/test-avltreehash_list.c: Include progname.h.
17906 (main): Call set_program_name.
17908 * modules/avltree-oset-tests (Depends-on): Add progname.
17909 * tests/test-avltree_oset.c: Include progname.h.
17910 (main): Call set_program_name.
17912 * modules/avltree-list-tests (Depends-on): Add progname.
17913 * tests/test-avltree_list.c: Include progname.h.
17914 (main): Call set_program_name.
17916 * modules/array-oset-tests (Depends-on): Add progname.
17917 * tests/test-array_oset.c: Include progname.h.
17918 (main): Call set_program_name.
17920 * modules/array-list-tests (Depends-on): Add progname.
17921 * tests/test-array_list.c: Include progname.h.
17922 (main): Call set_program_name.
17924 * modules/argp-tests (Depends-on): Add progname.
17925 * tests/test-argp.c: Include argp.h first. Include progname.h.
17926 (main): Call set_program_name.
17928 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
17930 * doc/gnulib-tool.texi (Initial import): Reword description of
17931 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17932 limited effect even if defined after the first system include.
17934 2007-03-01 Bruno Haible <bruno@clisp.org>
17936 * build-aux/config.libpath: Update to libtool-1.5.22.
17937 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17939 2007-03-01 Bruno Haible <bruno@clisp.org>
17941 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17943 Reported by Ralf Wildenhues.
17945 2007-03-01 Bruno Haible <bruno@clisp.org>
17947 * build-aux/install-reloc: Remove object files left over by some
17949 Reported by Ralf Wildenhues.
17951 2007-03-01 Bruno Haible <bruno@clisp.org>
17953 * build-aux/install-reloc: Break long lines.
17955 2007-03-01 Bruno Haible <bruno@clisp.org>
17957 * doc/relocatable.texi: Document that it may not work on OpenBSD.
17958 Reported by Ralf Wildenhues.
17960 2007-03-01 Bruno Haible <bruno@clisp.org>
17962 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17963 include ordering constraints.
17965 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
17967 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17968 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17969 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17970 as another example.
17971 * lib/time_.h: Fix misspelling.
17972 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17973 Require gl_HEADER_TIME_H_DEFAULTS.
17974 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17975 * m4/time_r.m4 (gl_TIME_R): Likewise.
17976 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17978 2007-03-01 Bruno Haible <bruno@clisp.org>
17980 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17981 * m4/utimens.m4 (gl_UTIMENS): Likewise.
17983 2007-03-01 Jim Meyering <jim@meyering.net>
17985 * modules/xreadlink (Maintainer): Add my name.
17986 * modules/xreadlink-with-size (Depends-on): Alphabetize.
17988 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
17989 Bruno Haible <bruno@clisp.org>
17991 * build-aux/install-reloc: Compile also c-ctype.c.
17992 * build-aux/relocatable.sh.in: New file.
17993 * doc/relocatable.texi: New file.
17994 * doc/relocatable-maint.texi: New file.
17995 * doc/gnulib.texi: Include relocatable-maint.texi.
17996 * lib/progreloc.c: Include unistd.h unconditionally.
17997 * lib/relocwrapper.c: Include unistd.h unconditionally.
17999 (add_dotbin): Use c_tolower.
18000 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18001 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18002 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18003 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18004 to m4/relocatable-lib.m4.
18005 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18006 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18007 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18008 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18009 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18010 * modules/relocatable: New file.
18011 * modules/relocatable-lib: New file.
18012 * modules/relocatable-script: New file.
18014 2007-02-28 Bruno Haible <bruno@clisp.org>
18016 Import --enable-relocatable infrastructure.
18017 * build-aux/config.libpath: New file, from GNU gettext.
18018 * build-aux/install-reloc: New file, from GNU gettext.
18019 * build-aux/reloc-ldflags: New file, from GNU gettext.
18020 * lib/relocatable.h: New file, from GNU gettext.
18021 * lib/relocatable.c: New file, from GNU gettext.
18022 * lib/relocwrapper.c: New file, from GNU gettext.
18023 * m4/relocatable.m4: New file, from GNU gettext.
18025 2007-02-28 Bruno Haible <bruno@clisp.org>
18027 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18029 * modules/xreadlink: New file, from GNU gettext with modifications.
18030 * lib/xreadlink.c: New file, from GNU gettext.
18031 * lib/xreadlink.h: Add comments.
18032 (xreadlink): New declaration.
18034 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18035 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18036 lib/xreadlink-with-size.c.
18037 (configure.ac): Remove gl_XREADLINK invocation.
18038 (Makefile.am): Augment lib_SOURCES.
18039 * m4/xreadlink.m4: Remove file.
18040 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18041 (xreadlink_with_size): Renamed from xreadink.
18042 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18043 * modules/canonicalize (Depends-on): Replace xreadlink with
18044 xreadlink-with-size.
18045 * lib/canonicalize.c (canonicalize_filename_mode): Update.
18047 2007-02-25 Jim Meyering <jim@meyering.net>
18049 * build-aux/announce-gen: When complaining about excess arguments,
18052 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
18054 * README: Document signed integer overflow situation more
18057 2007-02-25 Bruno Haible <bruno@clisp.org>
18059 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18060 'a' or 'A' conversion.
18062 2007-02-25 Bruno Haible <bruno@clisp.org>
18064 * modules/filename: Renamed from modules/pathname.
18065 (Files): Replace lib/pathname.h with lib/filename.h. Replace
18066 lib/concatpath.c with lib/concat-filename.c.
18067 (Makefile.am): Update.
18068 (Include): Replace pathname.h with filename.h.
18069 * lib/filename.h: Renamed from lib/pathname.h.
18070 (concatenated_filename): Renamed from concatenated_pathname.
18071 * lib/concat-filename.c: Renamed from lib/concatpath.c.
18072 (concatenated_filename): Renamed from concatenated_pathname.
18073 * lib/findprog.c: Include filename.h instead of pathname.h.
18074 (find_in_path): Update.
18075 * lib/javacomp.c: Include filename.h instead of pathname.h.
18076 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18077 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18078 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18079 is_oldgcj_14_13_usable, is_javac_usable): Update.
18080 * lib/javaexec.c: Include filename.h instead of pathname.h.
18081 (execute_java_class): Update.
18082 * modules/findprog: Update.
18083 * modules/javacomp: Update.
18084 * modules/javaexec: Update.
18085 * MODULES.html.sh (File system functions): Add 'filename', remove
18088 2007-02-25 Bruno Haible <bruno@clisp.org>
18090 * modules/printf-frexpl-tests: New file.
18091 * tests/test-printf-frexpl.c: New file.
18093 * modules/printf-frexpl: New file.
18094 * lib/printf-frexpl.h: New file.
18095 * lib/printf-frexpl.c: New file.
18096 * m4/printf-frexpl.m4: New file.
18098 2007-02-25 Bruno Haible <bruno@clisp.org>
18100 * modules/printf-frexp-tests: New file.
18101 * tests/test-printf-frexp.c: New file.
18103 * modules/printf-frexp: New file.
18104 * lib/printf-frexp.h: New file.
18105 * lib/printf-frexp.c: New file.
18106 * m4/printf-frexp.m4: New file.
18108 2007-02-25 Bruno Haible <bruno@clisp.org>
18110 Assume automake >= 1.10 for the tests.
18111 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18112 * modules/arctwo-tests: Likewise.
18113 * modules/argp-tests: Likewise.
18114 * modules/avltree-list-tests: Likewise.
18115 * modules/avltree-oset-tests: Likewise.
18116 * modules/avltreehash-list-tests: Likewise.
18117 * modules/carray-list-tests: Likewise.
18118 * modules/crc-tests: Likewise.
18119 * modules/des-tests: Likewise.
18120 * modules/gc-arcfour-tests: Likewise.
18121 * modules/gc-arctwo-tests: Likewise.
18122 * modules/gc-des-tests: Likewise.
18123 * modules/gc-hmac-md5-tests: Likewise.
18124 * modules/gc-hmac-sha1-tests: Likewise.
18125 * modules/gc-md2-tests: Likewise.
18126 * modules/gc-md4-tests: Likewise.
18127 * modules/gc-md5-tests: Likewise.
18128 * modules/gc-pbkdf2-sha1-tests: Likewise.
18129 * modules/gc-rijndael-tests: Likewise.
18130 * modules/gc-sha1-tests: Likewise.
18131 * modules/gc-tests: Likewise.
18132 * modules/getaddrinfo-tests: Likewise.
18133 * modules/hmac-md5-tests: Likewise.
18134 * modules/hmac-sha1-tests: Likewise.
18135 * modules/linked-list-tests: Likewise.
18136 * modules/linkedhash-list-tests: Likewise.
18137 * modules/lock-tests: Likewise.
18138 * modules/md2-tests: Likewise.
18139 * modules/md4-tests: Likewise.
18140 * modules/md5-tests: Likewise.
18141 * modules/rbtree-list-tests: Likewise.
18142 * modules/rbtree-oset-tests: Likewise.
18143 * modules/rbtreehash-list-tests: Likewise.
18144 * modules/read-file-tests: Likewise.
18145 * modules/rijndael-tests: Likewise.
18146 * modules/stdint-tests: Likewise.
18147 * modules/tls-tests: Likewise.
18149 2007-02-24 Bruno Haible <bruno@clisp.org>
18151 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18152 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18153 function; instead check whether isnan with a double argument links.
18154 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18155 function; instead check whether isnan with a 'long double' argument
18157 Reported by Eric Blake <ebb9@byu.net>.
18159 2007-02-24 Bruno Haible <bruno@clisp.org>
18161 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18163 * lib/isnanl.c: Remove all code. Just include isnan.c.
18164 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18166 2007-02-25 Jim Meyering <jim@meyering.net>
18168 Avoid conflicting types for 'unsetenv' on FreeBSD.
18169 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18170 conflicting with FreeBSD's (5.0 and 6.1) function declaration
18173 2007-02-24 Bruno Haible <bruno@clisp.org>
18175 * modules/isnanl-nolibm-tests: New file.
18176 * tests/test-isnanl.c: New file.
18178 * modules/isnanl-nolibm: New file.
18179 * lib/isnanl.h: New file.
18180 * lib/isnanl.c: New file.
18181 * m4/isnanl.m4: New file.
18183 2007-02-24 Bruno Haible <bruno@clisp.org>
18185 * modules/isnan-nolibm-tests: New file.
18186 * tests/test-isnan.c: New file.
18188 * modules/isnan-nolibm: New file.
18189 * lib/isnan.h: New file.
18190 * lib/isnan.c: New file.
18191 * m4/isnan.m4: New file.
18193 2007-02-24 Bruno Haible <bruno@clisp.org>
18195 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18196 assume that an exponent fits in 20 bits.
18198 2007-02-24 Jim Meyering <jim@meyering.net>
18200 * m4/regex.m4: Update the description of the configure-time option,
18201 --without-included-regex, to state accurately what the defaults are,
18202 and perhaps to give people an idea why using this option is risky.
18204 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
18206 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18207 loops on small arguments. This attempts to avoid the problem
18208 Bruno Haible reported for AIX 4.3.2 in
18209 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18211 2007-02-23 Bruno Haible <bruno@clisp.org>
18213 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18214 Needed for help2man.
18216 2007-02-23 Karl Berry <karl@gnu.org>
18218 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18219 exists, foo.h should be cvs-ignored, not committed.
18221 2007-02-23 Eric Blake <ebb9@byu.net>
18223 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
18224 * lib/stat-time.h (includes): Likewise.
18225 * lib/utimecmp.c (includes): Likewise.
18226 * lib/utimens.h (includes): Likewise.
18227 * lib/getdate.y (includes): Also include "timespec.h" for use
18228 internal to the module.
18229 * modules/utimens (Depends-on): Revert yesterday's patch.
18230 * modules/nanosleep (Depends-on): Add missing dependency.
18232 2007-02-22 Bruno Haible <bruno@clisp.org>
18234 * lib/glob.c: Don't include getlogin_r.h.
18236 2007-02-22 Jim Meyering <jim@meyering.net>
18238 * modules/utimens (Depends-on): Add timespec, required for
18239 utimens.h's inclusion of timespec.h.
18241 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
18243 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18244 long unreadable paths in GNU/Linux. Problem reported by Andreas
18246 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18247 I'll try to think of a better way to fix the Solaris problem.
18249 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18250 like glibc; on Solaris 10, it fails with errno == EINVAL.
18251 POSIX says the behavior is unspecified if the first argument is NULL,
18252 so play it safe and never pass NULL to the system getcwd.
18254 2007-02-21 Jim Meyering <jim@meyering.net>
18256 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18257 of gettimeofday. It would conflict with the one now always
18258 provided via sys_time_.h. Reported by Matthew Woehlke, as
18259 an IRIX 6.5 build failure.
18261 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
18263 Minor fixups to port to Solaris 10 with Sun C 5.8.
18264 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18265 * modules/getcwd (Depends-on): Add dirfd.
18266 * lib/putenv.c (putenv): #undef it.
18267 (rpl_putenv): New decl.
18268 (malloc, free): Include <stdlib.h> rather than prototyping separately.
18270 2007-02-20 Bruno Haible <bruno@clisp.org>
18272 * modules/stdio-tests: New file.
18273 * tests/test-stdio.c: New file.
18275 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18276 (Depends-on): Add stdio.
18277 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18278 (Include): Use <stdio.h> instead of vsnprintf.h.
18279 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18280 HAVE_DECL_VSNPRINTF.
18281 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18283 * modules/snprintf (Files): Remove lib/snprintf.h.
18284 (Depends-on): Add stdio.
18285 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18286 (Include): Use <stdio.h> instead of snprintf.h.
18287 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18288 HAVE_DECL_SNPRINTF.
18289 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18290 * lib/getaddrinfo.c: Likewise.
18292 * modules/stdio: New file.
18293 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18294 * lib/snprintf.h: Remove file.
18295 * lib/vsnprintf.h: Remove file.
18296 * lib/.cppi-disable: Remove snprintf.h.
18297 * m4/stdio_h.m4: New file.
18298 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18300 2007-02-20 Jim Meyering <jim@meyering.net>
18302 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18303 used by e.g., mingw. From Bruno Haible.
18305 2007-02-19 Bruno Haible <bruno@clisp.org>
18307 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18309 Reported by Ben Pfaff <blp@cs.stanford.edu>.
18311 2007-02-19 Bruno Haible <bruno@clisp.org>
18313 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18316 2007-02-19 Bruno Haible <bruno@clisp.org>
18318 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18320 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18322 2007-02-19 Jim Meyering <jim@meyering.net>
18324 Don't use FD after a successful "fdopendir (fd)".
18325 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18326 Reset it by calling dirfd on the just-obtained DIR*.
18328 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18329 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18331 2007-02-18 Bruno Haible <bruno@clisp.org>
18333 * lib/readlink.c: Include <unistd.h>.
18334 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18336 * modules/readlink (Depends-on): Add unistd.
18337 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18338 (Include): Add <unistd.h>.
18340 * lib/getlogin_r.h: Remove file.
18341 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18342 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18343 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18344 HAVE_DECL_GETLOGIN_R.
18345 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18346 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18347 (Include): Use <unistd.h> instead of getlogin_r.h.
18349 * lib/getcwd.h: Remove file.
18350 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18351 * lib/xgetcwd.c: Likewise.
18352 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18353 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18354 * modules/getcwd (Files): Remove lib/getcwd.h.
18355 (Depends-on): Add unistd.
18356 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18357 (Include): Use <unistd.h> instad of getcwd.h.
18359 * lib/ftruncate.c: Include <unistd.h> first.
18360 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18361 Set HAVE_FTRUNCATE.
18362 * modules/ftruncate (Depends-on): Add unistd.
18363 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18365 * lib/fchdir.c: Include <unistd.h> first.
18366 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18367 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18368 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18369 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18370 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18372 * lib/dup2.c: Include <unistd.h> first.
18373 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18375 * modules/dup2 (Depends-on): Add unistd.
18376 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18378 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18379 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18380 REPLACE_CHOWN. Don't define chown as a macro here.
18381 * modules/chown (Depends-on): Add unistd.
18382 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18384 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18385 Add definition for GL_LINK_WARNING.
18386 (chown, dup2): New declarations.
18387 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18389 (ftruncate): New declaration.
18390 (getcwd): New declaration, taken from old getcwd.h.
18391 (getlogin_r): New declaration, taken from old getlogin_r.h.
18392 (readlink): New declaration.
18393 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18394 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18395 (gl_PREREQ_UNISTD): Remove macro.
18396 (gl_UNISTD_MODULE_INDICATOR): New macro.
18397 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18398 many new variables. Don't set UNISTD_H.
18399 * modules/unistd (Description): Change.
18400 (Depends-on): Add link-warning.
18401 (configure.ac): Update.
18402 (Makefile.am): Create unistd.h always. Substitute many new variables
18405 2007-02-18 Bruno Haible <bruno@clisp.org>
18407 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18408 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18410 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18411 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18412 * lib/getsubopt.h: Remove file.
18413 * modules/getsubopt (Files): Remove lib/getsubopt.h.
18414 (Depends-on): Add stdlib.
18415 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18416 (Includes): Use <stdlib.h> instead of getsubopt.h.
18417 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18418 Set HAVE_GETSUBOPT.
18419 * lib/getsubopt.c: Don't include getsubopt.h.
18421 2007-02-18 Bruno Haible <bruno@clisp.org>
18423 * modules/fchdir (Depends-on): Add dup2.
18425 2007-02-18 Bruno Haible <bruno@clisp.org>
18427 * lib/stdlib_.h: Handle glibc's special invocation convention
18430 2007-02-18 Bruno Haible <bruno@clisp.org>
18432 * modules/stdlib-tests: New file.
18433 * tests/test-stdlib.c: New file.
18435 * modules/mkstemp (Files): Remove lib/mkstemp.h.
18436 (Depends-on): Add stdlib.
18437 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18438 (Includes): Use <stdlib.h> instead of mkstemp.h.
18439 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18440 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18441 * lib/mkstemp.c: Don't include mkstemp.h.
18442 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18443 * lib/stdlib--.h: Don't include mkstemp.h.
18445 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18446 (Depends-on): Add stdlib.
18447 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18448 (Includes): Use <stdlib.h> instead of mkdtemp.h.
18449 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18451 * lib/mkdtemp.c: Don't include mkdtemp.h.
18452 * lib/clean-temp.c: Don't include mkdtemp.h.
18454 * modules/exit (Files): Remove lib/exit.h.
18455 (Depends-on): Add stdlib.
18456 (Makefile.am): Remove lib_SOURCES.
18457 (Include): Use <stdlib.h> instead of exit.h.
18458 * lib/argmatch.c: Don't include exit.h.
18459 * lib/execute.c: Likewise.
18460 * lib/pagealign_alloc.c: Likewise.
18461 * lib/pipe.c: Likewise.
18462 * lib/wait-process.c: Likewise.
18463 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18464 * lib/exitfail.c: Likewise.
18465 * lib/savewd.c: Likewise.
18466 * lib/xsetenv.c: Likewise.
18468 * modules/stdlib: New file.
18469 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18470 and extra comments about mkstemp().
18471 * lib/exit.h: Remove file.
18472 * lib/mkdtemp.h: Remove file.
18473 * lib/mkstemp.h: Remove file.
18474 * m4/stdlib_h.m4: New file.
18475 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18477 2007-02-18 Bruno Haible <bruno@clisp.org>
18479 * modules/math-tests: New file.
18480 * tests/test-math.c: New file.
18482 * modules/math: New file.
18483 * modules/mathl (Files): Remove lib/mathl.h.
18484 (Depends-on): Add math.
18485 (Makefile.am): Don't mention mathl.h.
18486 (Include): Use <math.h> instead of mathl.h.
18487 * lib/math_.h: New file.
18488 * lib/mathl.h: Remove file.
18489 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18491 * lib/asinl.c: Likewise.
18492 * lib/atanl.c: Likewise.
18493 * lib/ceill.c: Likewise.
18494 * lib/cosl.c: Likewise.
18495 * lib/expl.c: Likewise.
18496 * lib/floorl.c: Likewise.
18497 * lib/frexpl.c: Likewise.
18498 * lib/ldexpl.c: Likewise.
18499 * lib/logl.c: Likewise.
18500 * lib/sincosl.c: Likewise.
18501 * lib/sinl.c: Likewise.
18502 * lib/sqrtl.c: Likewise.
18503 * lib/tanl.c: Likewise.
18504 * lib/trigl.c: Likewise.
18505 * m4/math_h.m4: New file.
18506 * MODULES.html.sh (Mathematics): Add math.
18508 2007-02-17 Bruno Haible <bruno@clisp.org>
18510 * modules/wctype-tests: New file.
18511 * tests/test-wctype.c: New file.
18513 * modules/wchar-tests: New file.
18514 * tests/test-wchar.c: New file.
18516 * modules/unistd-tests: New file.
18517 * tests/test-unistd.c: New file.
18519 * modules/time-tests: New file.
18520 * tests/test-time.c: New file.
18522 * modules/sysexits-tests: New file.
18523 * tests/test-sysexits.c: New file.
18525 * modules/sys_time-tests: New file.
18526 * tests/test-sys_time.c: New file.
18528 * modules/sys_stat-tests: New file.
18529 * tests/test-sys_stat.c: New file.
18531 * modules/sys_socket-tests: New file.
18532 * tests/test-sys_socket.c: New file.
18534 * modules/sys_select-tests: New file.
18535 * tests/test-sys_select.c: New file.
18537 * modules/string-tests: New file.
18538 * tests/test-string.c: New file.
18540 * modules/stdbool-tests: New file.
18541 * tests/test-stdbool.c: New file.
18543 * modules/netinet_in-tests: New file.
18544 * tests/test-netinet_in.c: New file.
18546 * modules/inttypes-tests: New file.
18547 * tests/test-inttypes.c: New file.
18549 * modules/fcntl-tests: New file.
18550 * tests/test-fcntl.c: New file.
18552 * modules/byteswap-tests: New file.
18553 * tests/test-byteswap.c: New file.
18555 * modules/arpa_inet-tests: New file.
18556 * tests/test-arpa_inet.c: New file.
18558 2007-02-17 Bruno Haible <bruno@clisp.org>
18560 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18561 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18562 if the corresponding module is not enabled. Emit link warnings if
18563 the function is used nevertheless.
18564 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18565 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18566 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18567 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18568 * modules/inttypes (Depends-on): Add link-warning.
18569 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18570 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18571 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18572 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18573 * modules/imaxdiv (configure.ac): Likewise.
18574 * modules/strtoimax (configure.ac): Likewise.
18575 * modules/strtoumax (configure.ac): Likewise.
18577 2007-02-17 Bruno Haible <bruno@clisp.org>
18579 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18580 gl_STRING_MODULE_INDICATOR_DEFAULTS.
18581 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18582 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18584 2007-02-17 Bruno Haible <bruno@clisp.org>
18586 * modules/link-warning: New file.
18587 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18588 * lib/string_.h (GL_LINK_WARNING): Remove definition.
18589 * modules/string (Depends-on): Add link-warning.
18590 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18592 * MODULES.html.sh (Support for building libraries and executables): Add
18595 2007-02-17 Bruno Haible <bruno@clisp.org>
18597 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18598 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18599 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18602 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
18603 Bruno Haible <bruno@clisp.org>
18605 * modules/tmpfile: New file.
18606 * lib/tmpfile.c: New file.
18607 * m4/tmpfile.m4: New file.
18608 * MODULES.html.sh (func_all_modules): New section "Input/output".
18610 2007-02-15 Bruno Haible <bruno@clisp.org>
18612 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18613 (supports_delete_on_close): New function.
18614 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18616 2007-02-14 Bruno Haible <bruno@clisp.org>
18618 * modules/mbspcasecmp-tests: New file.
18619 * tests/test-mbspcasecmp.sh: New file.
18620 * tests/test-mbspcasecmp.c: New file.
18622 New module mbspcasecmp.
18623 * modules/mbspcasecmp: New file.
18624 * lib/mbspcasecmp.c: New file.
18625 * lib/string_.h (strncasecmp): Change warning message.
18626 (mbspcasecmp): New declaration.
18627 * m4/mbspcasecmp.m4: New file.
18628 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18629 GNULIB_MBSPCASECMP.
18630 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18631 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18633 2007-02-14 Bruno Haible <bruno@clisp.org>
18635 * modules/mbsncasecmp-tests: New file.
18636 * tests/test-mbsncasecmp.sh: New file.
18637 * tests/test-mbsncasecmp.c: New file.
18639 New module mbsncasecmp.
18640 * modules/mbsncasecmp: New file.
18641 * lib/mbsncasecmp.c: New file.
18642 * lib/string_.h (mbsncasecmp): New declaration.
18643 * m4/mbsncasecmp.m4: New file.
18644 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18645 GNULIB_MBSNCASECMP.
18646 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18647 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18649 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
18651 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18652 Verify that it doesn't overlap with our flags.
18653 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18654 do not have the desired effect in multibyte locales; instead, use
18656 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18657 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
18658 we don't require GNU fnmatch ourselves (if our users require it, they
18659 should do so explicitly).
18661 Fix regex code so it doesn't rely on strcasecmp.
18662 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18663 Otherwise, include gnulib's langinfo.h.
18664 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18665 undesirable behavior in non-C locales. Instead, rely on localecharset.
18666 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18667 * modules/regex (FILES): Remove m4/codeset.m4.
18668 (Depends-on): Add localcharset. Remove strcase.
18670 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18672 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18673 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18675 2007-02-13 Bruno Haible <bruno@clisp.org>
18677 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18678 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18680 2007-02-12 Bruno Haible <bruno@clisp.org>
18682 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18683 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18684 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18685 time warning rather than a link error.
18687 2007-02-12 Bruno Haible <bruno@clisp.org>
18689 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18690 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18691 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18693 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18695 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18698 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18700 New module 'time', so that apps can include <time.h> as per
18701 POSIX and GNU instead of separate include files like time_r.h
18702 and timegm.h. This implementation tries out a simpler approach
18703 for replacing decls in standard include files (as compared to
18704 the string module), somewhat as an experiment.
18706 * config/srclist.txt: Comment out mktime.c for now.
18707 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18708 since it doesn't apply any more. Use generic wording instead.
18709 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18711 * lib/time_.h, m4/time_h.m4, modules/time: New files.
18712 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18713 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18714 Don't include <sys/types.h>; no longer needed since we assume C89.
18715 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18716 * lib/strftime.c: Likewise.
18717 * lib/time_r.c: Likewise.
18718 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18719 * lib/nanosleep.c: Include <time.h> first, to check interface.
18720 * lib/strptime.c: Likewise.
18721 * lib/time_r.c: Likewise.
18722 * lib/timegm.c: Likewise.
18723 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18725 * lib/timegm.c: Don't include timegm.h; no longer needed.
18726 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18727 time.h now handles any problems in that area.
18728 (struct timespec, nanosleep): Remove; time.h now arranges for these.
18729 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18730 that time.h defines struct timespec.
18731 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18732 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
18734 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18735 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18736 needed. Set REPLACE_LOCALTIME.
18737 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18738 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18739 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18740 nanosleep; time_h.m4 now does that. Don't require
18741 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18742 module handles this now.
18743 * modules/getdate (Depends-on): Remove timespec. Add time.
18744 * modules/nanosleep (Depends-on): Likewise.
18745 * modules/stat-time (Depends-on): Likewise.
18746 * modules/nanosleep (Include): Include time.h, not timespec.h.
18747 * modules/strptime (Files): Remove lib/strptime.h.
18748 (Depends-on): Add extensions, time.
18749 (Include): Include time.h, not strptime.h.
18750 * modules/time_r (Files): Remove lib/time_r.h.
18751 (Depends-on): Add time.
18752 (Include): Include time.h, not time_r.h.
18753 * modules/timegm: Likewise.
18754 * modules/timespec (Description): Now does timespec-related decls
18755 of our own, instead of struct timespec itself.
18756 (Depends-on): Add time; remove extensions.
18757 (Maintainer): Add self.
18758 * modules/utimecmp (Depends-on): Add time; remove timespec.
18759 * modules/utimens (Depends-on): Likewise.
18760 * modules/xnanosleep (Depends-on): Likewise.
18762 2007-02-11 Bruno Haible <bruno@clisp.org>
18764 * lib/c-strstr.c: Include allocsa.h.
18765 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18766 * lib/c-strcasestr.c: Include allocsa.h.
18767 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18768 * lib/strcasestr.c: Include allocsa.h.
18769 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18770 * lib/mbsstr.c: Include allocsa.h.
18771 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18772 allocsa/freesa instead of malloc/free.
18773 * lib/mbscasestr.c: Include allocsa.h.
18774 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18775 allocsa/freesa instead of malloc/free.
18776 * modules/c-strstr (Depends-on): Add allocsa.
18777 * modules/c-strcasestr (Depends-on): Likewise.
18778 * modules/strcasestr (Depends-on): Likewise.
18779 * modules/mbsstr (Depends-on): Likewise.
18780 * modules/mbscasestr (Depends-on): Likewise.
18782 2007-02-11 Bruno Haible <bruno@clisp.org>
18784 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18786 * modules/mbsspn-tests: New file.
18787 * tests/test-mbsspn.sh: New file.
18788 * tests/test-mbsspn.c: New file.
18790 2007-02-11 Bruno Haible <bruno@clisp.org>
18792 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18794 * modules/mbspbrk-tests: New file.
18795 * tests/test-mbspbrk.sh: New file.
18796 * tests/test-mbspbrk.c: New file.
18798 2007-02-11 Bruno Haible <bruno@clisp.org>
18800 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18803 * modules/mbscspn-tests: New file.
18804 * tests/test-mbscspn.sh: New file.
18805 * tests/test-mbscspn.c: New file.
18807 2007-02-11 Bruno Haible <bruno@clisp.org>
18809 * modules/mbscasecmp-tests: New file.
18810 * tests/test-mbscasecmp.sh: New file.
18811 * tests/test-mbscasecmp.c: New file.
18813 2007-02-11 Bruno Haible <bruno@clisp.org>
18815 Ensure O(n) worst-case complexity of mbscasestr.
18816 * lib/mbscasestr.c: Include stdbool.h.
18817 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18819 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18820 the bookkeeping indicates that it's worth it.
18821 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18823 * modules/mbscasestr-tests: New file.
18824 * tests/test-mbscasestr1.c: New file.
18825 * tests/test-mbscasestr2.sh: New file.
18826 * tests/test-mbscasestr2.c: New file.
18827 * tests/test-mbscasestr3.sh: New file.
18828 * tests/test-mbscasestr3.c: New file.
18829 * tests/test-mbscasestr4.sh: New file.
18830 * tests/test-mbscasestr4.c: New file.
18831 * m4/locale-tr.m4: New file.
18833 2007-02-11 Bruno Haible <bruno@clisp.org>
18835 Ensure O(n) worst-case complexity of mbsstr.
18836 * lib/mbsstr.c: Include stdbool.h.
18837 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18839 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18840 bookkeeping indicates that it's worth it.
18841 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18843 * modules/mbsstr-tests: New file.
18844 * tests/test-mbsstr1.c: New file.
18845 * tests/test-mbsstr2.sh: New file.
18846 * tests/test-mbsstr2.c: New file.
18847 * tests/test-mbsstr3.sh: New file.
18848 * tests/test-mbsstr3.c: New file.
18849 * m4/locale-fr.m4: New file.
18851 2007-02-11 Bruno Haible <bruno@clisp.org>
18853 * lib/mbsrchr.c (mbsrchr): Fix bug.
18855 * modules/mbsrchr-tests: New file.
18856 * tests/test-mbsrchr.sh: New file.
18857 * tests/test-mbsrchr.c: New file.
18859 2007-02-11 Bruno Haible <bruno@clisp.org>
18861 * lib/mbschr.c (mbschr): Fix bug.
18863 * modules/mbschr-tests: New file.
18864 * tests/test-mbschr.sh: New file.
18865 * tests/test-mbschr.c: New file.
18866 * m4/locale-zh.m4: New file.
18868 2007-02-11 Bruno Haible <bruno@clisp.org>
18870 Support for copying multibyte string iterators.
18871 * lib/mbiter.h: Include <string.h>.
18872 (mbiter_multi_copy): New function.
18873 (mbi_copy): New macro.
18874 * lib/mbuiter.h: Include <string.h>.
18875 (mbuiter_multi_copy): New function.
18876 (mbui_copy): New macro.
18878 2007-02-11 Bruno Haible <bruno@clisp.org>
18881 * modules/mbslen: New file.
18882 * lib/mbslen.c: New file.
18883 * lib/string_.h (mbslen): New declaration.
18884 * m4/mbslen.m4: New file.
18885 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18887 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18888 * MODULES.html.sh (Internationalization functions): Add mbslen.
18890 2007-02-11 Bruno Haible <bruno@clisp.org>
18892 Ensure O(n) worst-case complexity of strcasestr substitute.
18893 * lib/strcasestr.c: Include stdbool.h.
18894 (knuth_morris_pratt): New function.
18895 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18896 bookkeeping indicates that it's worth it.
18897 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18899 * modules/strcasestr-tests: New file.
18900 * tests/test-strcasestr.c: New file.
18902 2007-02-11 Bruno Haible <bruno@clisp.org>
18904 Ensure O(n) worst-case complexity of c_strcasestr.
18905 * lib/c-strcasestr.c: Include stdbool.h, string.h.
18906 (knuth_morris_pratt): New function.
18907 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18908 the bookkeeping indicates that it's worth it.
18909 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18911 * modules/c-strcasestr-tests: New file.
18912 * tests/test-c-strcasestr.c: New file.
18914 2007-02-11 Bruno Haible <bruno@clisp.org>
18916 Ensure O(n) worst-case complexity of c_strstr.
18917 * lib/c-strstr.c: Include stdbool.h, string.h.
18918 (knuth_morris_pratt): New function.
18919 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18920 bookkeeping indicates that it's worth it.
18921 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18923 * lib/c-strstr.c: Complete rewrite for maintainability.
18925 * modules/c-strstr-tests: New file.
18926 * tests/test-c-strstr.c: New file.
18928 2007-02-11 Bruno Haible <bruno@clisp.org>
18930 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18931 5.2.1 and earlier, whereby \055 was treated just like the range
18933 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18935 2007-02-08 Bruno Haible <bruno@clisp.org>
18937 * modules/regex (Depends-on): Add stdbool.
18938 Reported by Dalibor Topic <robilad@kaffe.org>.
18940 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
18942 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18943 Prefer returning from main to exiting from it.
18944 Remove unnecessary parens after sizeof.
18946 2007-02-05 Bruno Haible <bruno@clisp.org>
18949 * modules/mbssep: New file.
18950 * lib/mbssep.c: New file.
18951 * lib/string_.h (strsep): Add a conditional link warning.
18952 (mbssep): New declaration.
18953 * m4/mbssep.m4: New file.
18954 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18956 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18957 * MODULES.html.sh (Internationalization functions): Add mbssep.
18959 2007-02-05 Bruno Haible <bruno@clisp.org>
18961 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18962 Optimize search in case of 1 delimiter.
18964 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18966 * lib/acl.h: Include sys/types.h before sys/acl.h.
18968 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18970 Merge upstream fix for glibc bugzilla #3957:
18972 2007-02-05 Jakub Jelinek <jakub@redhat.com>
18974 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18975 bit for RE_HAT_LISTS_NOT_NEWLINE.
18976 (build_charclass_op): Remove bogus comment.
18978 2007-02-05 Simon Josefsson <simon@josefsson.org>
18980 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18982 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18984 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18985 * lib/memmem.c [!defined _LIBC]: Include config.h.
18987 2007-02-04 Bruno Haible <bruno@clisp.org>
18989 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18992 2007-02-04 Bruno Haible <bruno@clisp.org>
18994 New module mbstok_r.
18995 * modules/mbstok_r: New file.
18996 * lib/mbstok_r.c: New file.
18997 * lib/string_.h (strtok_r): Change argument names to match the
18998 comments. Add a conditional link warning.
18999 (mbstok_r): New declaration.
19000 * m4/mbstok_r.m4: New file.
19001 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19003 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19004 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19006 2007-02-04 Bruno Haible <bruno@clisp.org>
19009 * modules/mbsspn: New file.
19010 * lib/mbsspn.c: New file.
19011 * lib/string_.h (strspn): Add a conditional link warning.
19012 (mbsspn): New declaration.
19013 * m4/mbsspn.m4: New file.
19014 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19016 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19017 * MODULES.html.sh (Internationalization functions): Add mbsspn.
19019 2007-02-04 Bruno Haible <bruno@clisp.org>
19021 New module mbspbrk.
19022 * modules/mbspbrk: New file.
19023 * lib/mbspbrk.c: New file.
19024 * lib/string_.h (strpbrk): Add a conditional link warning.
19025 (mbspbrk): New declaration.
19026 * m4/mbspbrk.m4: New file.
19027 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19029 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19030 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19032 2007-02-04 Bruno Haible <bruno@clisp.org>
19034 New module mbscspn.
19035 * modules/mbscspn: New file.
19036 * lib/mbscspn.c: New file.
19037 * lib/string_.h (strcspn): Add a conditional link warning.
19038 (mbscspn): New declaration.
19039 * m4/mbscspn.m4: New file.
19040 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19042 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19043 * MODULES.html.sh (Internationalization functions): Add mbscspn.
19045 2007-02-04 Bruno Haible <bruno@clisp.org>
19047 New module mbscasestr, reduced goal of strcasestr.
19048 * modules/mbscasestr: New file.
19049 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19050 (mbscasestr): Renamed from strcasestr.
19051 * lib/strcasestr.c: Don't include mbuiter.h.
19052 (strcasestr): Remove support for multibyte locales.
19053 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19054 Change the conditional link warning.
19055 (mbscasestr): New declaration.
19056 * m4/mbscasestr.m4: New file.
19057 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19058 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19059 REPLACE_STRCASESTR.
19060 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19061 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19062 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19063 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19064 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19065 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19066 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19067 (Depends-on): Remove mbuiter.
19068 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19070 2007-02-04 Bruno Haible <bruno@clisp.org>
19072 Simplify handling of strncasecmp.
19073 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19074 the conditional link warning.
19075 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19076 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19077 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19078 * modules/strcase (configure.ac): Don't invoke
19079 gl_STRING_MODULE_INDICATOR.
19080 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19082 2007-02-04 Bruno Haible <bruno@clisp.org>
19084 New module mbscasecmp, reduced goal of strcasecmp.
19085 * modules/mbscasecmp: New file.
19086 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19087 (mbscasecmp): Renamed from strcasecmp.
19088 * lib/strcasecmp.c: Don't include mbuiter.h.
19089 (strcasecmp): Remove support for multibyte locales.
19090 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19091 Change the conditional link warning.
19092 (mbscasecmp): New declaration.
19093 * m4/mbscasecmp.m4: New file.
19094 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19095 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19096 REPLACE_STRCASECMP.
19097 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19098 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19100 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19101 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19102 * modules/strcase (Files): Remove m4/mbrtowc.m4.
19103 (Depends-on): Remove mbuiter.
19104 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19106 2007-02-04 Bruno Haible <bruno@clisp.org>
19108 New module mbsstr. Remove module strstr.
19109 * modules/mbsstr: New file.
19110 * modules/strstr: Remove file.
19111 * lib/mbsstr.c: Renamed from lib/strstr.c.
19112 (mbsstr): Renamed from strstr.
19113 * lib/string_.h (strstr): Remove declaration. Change the conditional
19115 (mbsstr): New declaration.
19116 * m4/mbsstr.m4: New file.
19117 * m4/strstr.m4: Remove file.
19118 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19120 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19121 Don't initialize GNULIB_STRSTR.
19122 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19123 substitute GNULIB_STRSTR and REPLACE_STRSTR.
19124 * MODULES.html.sh (Internationalization functions): Add mbsstr.
19125 (Support for systems lacking ANSI C 89): Remove strstr.
19127 2007-02-04 Bruno Haible <bruno@clisp.org>
19129 New module mbsrchr.
19130 * modules/mbsrchr: New file.
19131 * lib/mbsrchr.c: New file.
19132 * lib/string_.h (strrchr): Add a conditional link warning.
19133 (mbsrchr): New declaration.
19134 * m4/mbsrchr.m4: New file.
19135 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19137 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19138 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19140 2007-02-04 Bruno Haible <bruno@clisp.org>
19143 * modules/mbschr: New file.
19144 * lib/mbschr.c: New file.
19145 * lib/string_.h (strchr): Add a conditional link warning.
19146 (mbschr): New declaration.
19147 * m4/mbschr.m4: New file.
19148 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19150 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19151 * MODULES.html.sh (Internationalization functions): Add mbschr.
19153 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
19155 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19157 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19159 2007-02-04 Bruno Haible <bruno@clisp.org>
19161 New module description section 'configure.ac-early'.
19162 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19163 (func_get_autoconf_early_snippet): New function.
19164 (func_import, func_create_testdir): Use it. Remove special cases for
19165 modules 'extensions' and 'lock'.
19166 * modules/extensions (configure.ac-early): Require
19167 gl_USE_SYSTEM_EXTENSIONS.
19168 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19170 2007-02-04 Bruno Haible <bruno@clisp.org>
19172 Make use of gcj-4.3's -fsource and -ftarget option.
19173 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19174 and if so try the options -fsource and -ftarget.
19175 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19176 source_version, ftarget_option, target_version arguments.
19177 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19178 (is_envjavac_oldgcj_14_14_usable): Renamed from
19179 is_envjavac_gcj_14_14_usable.
19180 (is_envjavac_oldgcj_14_13_usable): Renamed from
19181 is_envjavac_gcj_14_13_usable.
19182 (is_gcj_present): Update.
19183 (is_gcj_43, is_gcj43_usable): New functions.
19184 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19185 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19186 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19187 try the options -fsource and -ftarget.
19189 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
19191 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19192 checking code. Set N = ceil (1.5 * N) rather than to a slightly
19195 2007-02-03 Jim Meyering <jim@meyering.net>
19197 Give tools a better chance to allocate space for very large buffers.
19198 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19200 Make pwd and readlink work also when run with an unreadable parent dir
19201 on systems with openat support.
19202 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19203 provided getcwd function, even when we have openat support.
19204 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19206 2007-02-02 Bruno Haible <bruno@clisp.org>
19208 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19209 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19210 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19211 portability problems if one of these functions is only used on specific
19213 Reported by Paul Eggert.
19215 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
19217 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19218 is causing more trouble than it's curing.
19219 * lib/regex_internal.h (__mempcpy): Remove.
19220 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19221 (and make the code a tad smaller to boot).
19222 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19224 2007-02-02 Jim Meyering <jim@meyering.net>
19226 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19227 section, not in the Makefile.am: one.
19229 2007-02-02 Eric Blake <ebb9@byu.net>
19231 * lib/strchrnul.c: Always include config.h first.
19233 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19234 gnulib strstr is not necessary here.
19236 2007-02-02 Simon Josefsson <simon@josefsson.org>
19238 * m4/socklen.m4: Fix typo.
19240 2007-02-02 Eric Blake <ebb9@byu.net>
19242 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19243 * modules/netinet_in (Makefile.am): Likewise.
19245 2007-02-01 Bruno Haible <bruno@clisp.org>
19247 * lib/string_.h (GL_LINK_WARNING): New macro.
19248 (strcasecmp, strstr, strcasestr): If provided by the system,
19249 conditionally define as a macro that leads to a warning instead of to
19251 (strncasecmp): Conditionally define as a macro that leads to a warning.
19253 2007-02-01 Karl Berry <karl@gnu.org>
19255 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19257 2007-02-01 Bruno Haible <bruno@clisp.org>
19259 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19262 2007-02-01 Eric Blake <ebb9@byu.net>
19264 * modules/regex (Depends-on): Revert dependence on mempcpy.
19265 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19266 module's definition of mempcpy.
19267 Reported by Paul Eggert.
19269 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
19271 * lib/string_.h: If the gnulib module XYZ is not present, undefine
19272 the symbol XYZ before redefining it. This fixes a problem with
19273 programs that don't use XYZ, when compiled on systems that define
19274 XYZ to something else.
19276 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
19278 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19279 occurs when "mkdir -m foo" creates a setgid directory that is (1)
19280 writeable to group or other and (2) is intended to have a special
19281 mode bit that is set or cleared. In such a case, the directory
19282 should be neither group- nor other-writeable until the special
19283 mode bits are right.
19285 2007-01-31 Eric Blake <ebb9@byu.net>
19287 * modules/mountlist (Depends-on): Add strstr.
19289 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19291 * modules/string (Makefile.am): Remove redundant replacement.
19292 * modules/regex (Depends-on): Add mempcpy.
19294 2007-01-31 Bruno Haible <bruno@clisp.org>
19296 New module description field 'Link'.
19297 * gnulib-tool (func_usage): Document --extract-link-directive.
19298 (sed_extract_prog): Recognize 'Link' directive.
19299 (func_get_link_directive): New function.
19300 (func_import): Show summary of link directives.
19301 Handle --extract-link-directive option.
19302 * modules/acl (Link): New section.
19303 * modules/clock-time (Link): New section.
19304 * modules/euidaccess (Link): New section.
19305 * modules/gettext (Link): New section.
19306 * modules/iconv (Link): New section.
19307 * modules/lock (Link): New section.
19308 * modules/nanosleep (Link): New section.
19309 * modules/readline (Link): New section.
19311 2007-01-27 Bruno Haible <bruno@clisp.org>
19313 Enforce the use of gnulib modules for unportable <string.h> functions.
19314 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19315 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19316 (gl_HEADER_STRING_H_BODY): Require it.
19317 * lib/string_.h: If the gnulib module XYZ is not present, redefine
19318 the symbol XYZ to one that gives a link error.
19319 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19320 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19321 * modules/mempcpy (configure.ac): Likewise.
19322 * modules/memrchr (configure.ac): Likewise.
19323 * modules/stpcpy (configure.ac): Likewise.
19324 * modules/stpncpy (configure.ac): Likewise.
19325 * modules/strcase (configure.ac): Likewise.
19326 * modules/strcasestr (configure.ac): Likewise.
19327 * modules/strchrnul (configure.ac): Likewise.
19328 * modules/strdup (configure.ac): Likewise.
19329 * modules/strndup (configure.ac): Likewise.
19330 * modules/strnlen (configure.ac): Likewise.
19331 * modules/strpbrk (configure.ac): Likewise.
19332 * modules/strsep (configure.ac): Likewise.
19333 * modules/strstr (configure.ac): Likewise.
19334 * modules/strtok_r (configure.ac): Likewise.
19336 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
19338 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19340 2007-01-30 Jim Meyering <jim@meyering.net>
19342 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19344 2007-01-29 Bruno Haible <bruno@clisp.org>
19346 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19347 * lib/execute.c: Likewise.
19348 * lib/pipe.c: Likewise.
19349 * lib/printf-args.h: Likewise.
19350 * lib/printf-args.c: Likewise.
19351 * lib/printf-parse.c: Likewise.
19352 * lib/vasnprintf.c: Likewise.
19354 2007-01-29 Eric Blake <ebb9@byu.net>
19356 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19359 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
19361 * lib/strptime.h (strptime): Use 'restrict' for args where
19362 POSIX requires this.
19363 * lib/strptime.c (strptime): Likewise.
19364 Change license notice from LGPL to GPL, since gnulib-tool will
19365 change this as needed.
19366 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19368 Include "strptime.h" first, to check interface.
19369 Do not #undef _LIBC and _NL_CURRENT.
19370 Do not include <stdlib.h>; no longer needed.
19371 Include "time_r.h" and declare ptime_locale_status
19372 only if _LIBC is not defined.
19373 (__P): Remove unused macro.
19374 (match_string): Bring back glibc version, but use it only if _LIBC
19376 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19377 Remove unnecessary assertion and abort() call.
19378 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19379 * m4/strptime.m4: Fix serial number comment.
19380 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19381 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19382 (Depends-on): Add time_r.
19384 2007-01-29 Bruno Haible <bruno@clisp.org>
19386 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19388 * modules/strptime (Depends-on): Add stdbool.
19389 * lib/strptime.h: Include <time.h> always. Add comments.
19391 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
19393 * modules/strptime: New file.
19394 * lib/strptime.h: New file.
19395 * lib/strptime.c: New file.
19396 * m4/strptime.m4: New file.
19398 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
19400 * MODULES.html.sh: New module mpsort.
19401 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19403 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19404 a circularity problem with HP-UX ia64 reported by Bob Proulx in
19405 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19407 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19409 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19411 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19412 the parameter matches the prototype.
19414 2007-01-28 Jim Meyering <jim@meyering.net>
19416 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19417 sys/time.h here, reverting that part of the previous patch:
19418 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19420 2007-01-28 Bruno Haible <bruno@clisp.org>
19422 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19423 value of $(SYS_TIME_H).
19424 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19425 remove it conditionally, too. [added by Jim Meyering]
19426 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19427 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19428 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19429 GETTIMEOFDAY_REPLACEMENT to 1.
19431 2007-01-28 Bruno Haible <bruno@clisp.org>
19433 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19434 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19435 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19436 Set UNISTD_H instead of UNISTD_H2.
19437 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19439 2007-01-28 Bruno Haible <bruno@clisp.org>
19441 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19442 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19444 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19446 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19447 (func_create_testdir): Ensure C locale for `grep' and `tr'
19449 (func_create_megatestdir): Avoid one `grep'. Fix bug in
19450 ACLOCAL_AMFLAGS parsing state machine.
19452 2007-01-27 Bruno Haible <bruno@clisp.org>
19454 * modules/unistr/base: Update.
19456 2007-01-27 Bruno Haible <bruno@clisp.org>
19458 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19459 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19460 * modules/unistr/u32-mbtouc-unsafe: Renamed from
19461 modules/unistr/u32-mbtouc.
19462 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19463 * lib/unistr.h: Update.
19464 * lib/linebreak.c: Update.
19465 * modules/unistr/u32-mbtouc: Renamed from
19466 modules/unistr/u32-mbtouc-safe.
19467 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19468 * lib/unistr.h: Update.
19469 * lib/unistr/u32-to-u8.c: Update.
19470 * lib/unistr/u32-to-u16.c: Update.
19472 2007-01-27 Bruno Haible <bruno@clisp.org>
19474 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19475 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19476 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19477 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19478 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19479 * modules/unistr/u16-mbtouc-unsafe: Renamed from
19480 modules/unistr/u16-mbtouc.
19481 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19482 * lib/unistr.h: Update.
19483 * lib/linebreak.c: Update.
19484 * modules/linebreak: Update.
19485 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19486 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19487 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19488 * modules/unistr/u16-mbtouc: Renamed from
19489 modules/unistr/u16-mbtouc-safe.
19490 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19491 * lib/unistr.h: Update.
19492 * lib/unistr/u16-to-u8.c: Update.
19493 * modules/unistr/u16-to-u8: Update.
19494 * lib/unistr/u16-to-u32.c: Update.
19495 * modules/unistr/u16-to-u32: Update.
19497 2007-01-27 Bruno Haible <bruno@clisp.org>
19499 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19500 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19501 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19502 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19503 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19504 * modules/unistr/u8-mbtouc-unsafe: Renamed from
19505 modules/unistr/u8-mbtouc.
19506 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19507 * lib/unistr.h: Update.
19508 * lib/striconveh.c: Update.
19509 * modules/striconveh: Update.
19510 * lib/linebreak.c: Update.
19511 * modules/linebreak: Update.
19512 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19513 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19514 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19515 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19516 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19517 * lib/unistr.h: Update.
19518 * lib/striconveh.c: Update.
19519 * modules/striconveh: Update.
19520 * lib/unistr/u8-to-u16.c: Update.
19521 * modules/unistr/u8-to-u16: Update.
19522 * lib/unistr/u8-to-u32.c: Update.
19523 * modules/unistr/u8-to-u32: Update.
19525 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19528 * lib/argz.c: Do not include strings.h nor memory.h, include
19529 string.h unconditionally. Patch by Simon Josefsson.
19531 2007-01-27 Bruno Haible <bruno@clisp.org>
19533 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19534 from gl_HEADER_STRING_H_BODY.
19535 (gl_HEADER_STRING_H_BODY): Require it.
19536 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19537 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19538 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19539 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19540 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19541 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19542 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19543 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19544 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19545 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19546 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19547 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19548 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19549 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19550 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19552 2007-01-27 Bruno Haible <bruno@clisp.org>
19554 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19555 check_PROGRAMS into noinst_PROGRAMS.
19556 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19557 check_PROGRAMS in this case.
19558 (func_import): Set for_test to false.
19559 (func_create_testdir): Set for_test to true.
19561 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19562 Bruno Haible <bruno@clisp.org>
19564 * modules/strcasestr (Files): Remove lib/strcasestr.h.
19565 (Depends-on): Add string.
19566 (Includes): Use <string.h> instead of strcasestr.h.
19567 * modules/string (Makefile.am): Also substitute the value of
19568 REPLACE_STRCASESTR.
19569 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19570 assume strcasestr is declared in <string.h> not <strings.h>. Also
19571 set REPLACE_STRCASESTR.
19572 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19573 REPLACE_STRCASESTR.
19574 * lib/strcasestr.h: Remove file.
19575 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19576 * lib/string_.h (strcasestr): New declaration.
19578 2007-01-27 Bruno Haible <bruno@clisp.org>
19580 * lib/string_.h: Use 'extern'.
19582 2007-01-27 Jim Meyering <jim@meyering.net>
19584 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19585 of set-but-not-used local, "q".
19587 * lib/mempcpy.c: Include <config.h> before <string.h>.
19588 This fixes a compilation error on HP-UX, due to the system's
19589 "restrict"-using mempcpy prototype.
19591 2007-01-26 Bruno Haible <bruno@clisp.org>
19593 Small optimization.
19594 * lib/javacomp.c: Include c-strstr.h.
19595 (is_envjavac_gcj): Use c_strstr instead of strstr.
19596 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19598 2007-01-26 Bruno Haible <bruno@clisp.org>
19600 * MODULES.html.sh (Unicode string functions): Add the new modules.
19602 * modules/uniconv/u32-strconv-to-locale: New file.
19603 * lib/uniconv/u32-strconv-to-locale.c: New file.
19605 * modules/uniconv/u16-strconv-to-locale: New file.
19606 * lib/uniconv/u16-strconv-to-locale.c: New file.
19608 * modules/uniconv/u8-strconv-to-locale: New file.
19609 * lib/uniconv/u8-strconv-to-locale.c: New file.
19611 * modules/uniconv/u32-strconv-from-locale: New file.
19612 * lib/uniconv/u32-strconv-from-locale.c: New file.
19614 * modules/uniconv/u16-strconv-from-locale: New file.
19615 * lib/uniconv/u16-strconv-from-locale.c: New file.
19617 * modules/uniconv/u8-strconv-from-locale: New file.
19618 * lib/uniconv/u8-strconv-from-locale.c: New file.
19620 * modules/uniconv/u32-strconv-to-enc: New file.
19621 * lib/uniconv/u32-strconv-to-enc.c: New file.
19622 * modules/uniconv/u32-strconv-to-enc-tests: New file.
19623 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19625 * modules/uniconv/u16-strconv-to-enc: New file.
19626 * lib/uniconv/u16-strconv-to-enc.c: New file.
19627 * lib/uniconv/u-strconv-to-enc.h: New file.
19628 * modules/uniconv/u16-strconv-to-enc-tests: New file.
19629 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19631 * modules/uniconv/u8-strconv-to-enc: New file.
19632 * lib/uniconv/u8-strconv-to-enc.c: New file.
19633 * modules/uniconv/u8-strconv-to-enc-tests: New file.
19634 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19636 * modules/uniconv/u32-strconv-from-enc: New file.
19637 * lib/uniconv/u32-strconv-from-enc.c: New file.
19638 * modules/uniconv/u32-strconv-from-enc-tests: New file.
19639 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19641 * modules/uniconv/u16-strconv-from-enc: New file.
19642 * lib/uniconv/u16-strconv-from-enc.c: New file.
19643 * modules/uniconv/u16-strconv-from-enc-tests: New file.
19644 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19646 * modules/uniconv/u8-strconv-from-enc: New file.
19647 * lib/uniconv/u8-strconv-from-enc.c: New file.
19648 * lib/uniconv/u-strconv-from-enc.h: New file.
19649 * modules/uniconv/u8-strconv-from-enc-tests: New file.
19650 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19652 * modules/uniconv/u32-conv-from-enc: New file.
19653 * lib/uniconv/u32-conv-from-enc.c: New file.
19654 * modules/uniconv/u32-conv-from-enc-tests: New file.
19655 * tests/uniconv/test-u32-conv-from-enc.c: New file.
19657 * modules/uniconv/u16-conv-from-enc: New file.
19658 * lib/uniconv/u16-conv-from-enc.c: New file.
19659 * lib/uniconv/u-conv-from-enc.h: New file.
19660 * modules/uniconv/u16-conv-from-enc-tests: New file.
19661 * tests/uniconv/test-u16-conv-from-enc.c: New file.
19663 * modules/uniconv/u8-conv-from-enc: New file.
19664 * lib/uniconv/u8-conv-from-enc.c: New file.
19665 * modules/uniconv/u8-conv-from-enc-tests: New file.
19666 * tests/uniconv/test-u8-conv-from-enc.c: New file.
19668 * modules/uniconv/base: New file.
19669 * lib/uniconv.h: New file.
19671 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
19673 * doc/gnulib-tool.texi (Initial import): Update to match current
19674 behavior with strdup module.
19675 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19676 * lib/memmem.h: Remove; all uses removed. This is now done
19678 * lib/mempcpy.h: Likewise.
19679 * lib/memrchr.h: Likewise.
19680 * lib/stpcpy.h: Likewise.
19681 * lib/stpncpy.h: Likewise.
19682 * lib/strcase.h: Likewise.
19683 * lib/strchrnul.h: Likewise.
19684 * lib/strdup.h: Likewise.
19685 * lib/strndup.h: Likewise.
19686 * lib/strnlen.h: Likewise.
19687 * lib/strpbrk.h: Likewise.
19688 * lib/strsep.h: Likewise.
19689 * lib/strstr.h: Likewise.
19690 * lib/strtok_r.h: Likewise.
19691 * lib/string_.h: New file.
19692 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19693 Rely on <string.h> instead.
19694 * lib/canon-host.c: Likewise.
19695 * lib/chdir-long.c: Likewise.
19696 * lib/concatpath.c: Likewise.
19697 * lib/exclude.c: Likewise.
19698 * lib/fchdir.c: Likewise.
19699 * lib/getaddrinfo.c: Likewise.
19700 * lib/getcwd.c: Likewise.
19701 * lib/getsubopt.c: Likewise.
19702 * lib/glob.c: Likewise.
19703 * lib/hard-locale.c: Likewise.
19704 * lib/iconvme.c: Likewise.
19705 * lib/javacomp.c: Likewise.
19706 * lib/mempcpy.c: Likewise.
19707 * lib/memrchr.c: Likewise.
19708 * lib/regex_internal.h: Likewise.
19709 * lib/stpncpy.c: Likewise.
19710 * lib/strcasecmp.c: Likewise.
19711 * lib/strchrnul.c: Likewise.
19712 * lib/strdup.c: Likewise.
19713 * lib/striconv.c: Likewise.
19714 * lib/striconveh.c: Likewise.
19715 * lib/striconveha.c: Likewise.
19716 * lib/strncasecmp.c: Likewise.
19717 * lib/strndup.c: Likewise.
19718 * lib/strnlen.c: Likewise.
19719 * lib/strsep.c: Likewise.
19720 * lib/strstr.c: Likewise.
19721 * lib/strtok_r.c: Likewise.
19722 * lib/userspec.c: Likewise.
19723 * lib/w32spawn.h: Likewise.
19724 * lib/xstrndup.c: Likewise.
19725 * lib/mountlist.c (strstr): Remove decl.
19726 * m4/string_h.m4: New file.
19727 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19728 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19729 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19730 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19731 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19732 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19733 Set REPLACE_STRCASECMP if necessary.
19734 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19735 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19736 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19737 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19738 HAVE_DECL_STRDUP if necessary.
19739 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19740 since gl_FUNC_STRNDUP does that now.
19741 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19742 Check for decl here...
19743 (gl_PREREQ_STRNLEN): ... not here.
19744 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19745 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19746 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19747 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19749 * modules/string: New file.
19750 * modules/memmem (Files): Remove special-purpose include file.
19751 (Depends-on): Add string.
19752 (Include): Include <string.h>, not the removed file.
19753 * modules/mempcpy: Likewise.
19754 * modules/memrchr: Likewise.
19755 * modules/stpcpy: Likewise.
19756 * modules/stpncpy: Likewise.
19757 * modules/strcase: Likewise.
19758 * modules/strchrnul: Likewise.
19759 * modules/strdup: Likewise.
19760 * modules/strndup: Likewise.
19761 * modules/strnlen: Likewise.
19762 * modules/strpbrk: Likewise.
19763 * modules/strsep: Likewise.
19764 * modules/strstr: Likewise.
19765 * modules/strtok_r: Likewise.
19766 * tests/test-dirname.c: Don't include "strdup.h", since
19767 <string.h> now suffices.
19768 * tests/test-memmem.c: Don't include "memmem.h", since
19769 <string.h> now suffices.
19771 2007-01-25 Bruno Haible <bruno@clisp.org>
19773 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19776 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19777 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19778 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19779 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19781 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19782 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19783 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19784 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19785 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19786 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19788 2007-01-24 Bruno Haible <bruno@clisp.org>
19790 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19791 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19792 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19793 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19795 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19796 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19797 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19798 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19799 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19800 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19802 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19804 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19805 Reported by Ralf Wildenhues.
19807 2007-01-24 Bruno Haible <bruno@clisp.org>
19809 Drop AC_REQUIRE calls that are redundant with the module dependencies.
19810 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19812 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19813 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19814 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19816 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
19818 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19819 Don't use 'exit'; just return from 'main'.
19820 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19822 * lib/fnmatch_.h: Readjust white space and comments to match
19823 glibc, to avoid spurious diffs.
19825 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19827 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19828 2004-12-01 change by Jakub Jelinek, since this code won't compile
19829 if !LIBC. Problem reported by Bob Proulx.
19831 2007-01-23 Bruno Haible <bruno@clisp.org>
19833 * lib/striconveh.c: Include c-strcaseeq.h.
19834 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19835 * modules/striconveh (Depends-on): Add c-strcaseeq.
19837 2007-01-23 Bruno Haible <bruno@clisp.org>
19839 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19841 * modules/c-strcaseeq: New file.
19842 * lib/c-strcaseeq.h: New file.
19844 * modules/streq: New file.
19845 * lib/streq.h: New file.
19847 2007-01-23 Bruno Haible <bruno@clisp.org>
19849 * modules/striconveha-tests: New file.
19850 * tests/test-striconveha.c: New file.
19852 * lib/striconveha.h: Include <stdbool.h>.
19853 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19854 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19855 (mem_iconveha_notranslit): Renamed from mem_iconveha.
19856 (mem_iconveha): New function.
19857 (str_iconveha_notranslit): Renamed from str_iconveha.
19858 (str_iconveha): New function.
19859 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19862 2007-01-23 Bruno Haible <bruno@clisp.org>
19864 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19865 encodings without forgiving before trying any encoding with handler.
19866 (str_iconveha): Try all encodings without forgiving before trying any
19867 encoding with handler.
19869 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19871 Import the following changes from libc.
19873 2005-10-14 Ulrich Drepper <drepper@redhat.com>
19875 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19877 2004-12-01 Jakub Jelinek <jakub@redhat.com>
19879 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19880 normal_bracket label.
19882 2004-09-01 Jakub Jelinek <jakub@redhat.com>
19885 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19886 to normal_bracket after fetching the next character.
19888 2007-01-22 Bruno Haible <bruno@clisp.org>
19890 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19892 * lib/striconveh.c (iconv_carefully_1): New function.
19893 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19895 (str_cd_iconveh): Update.
19896 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19897 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19898 * tests/test-striconveh.c (MAGIC): New macro.
19899 (new_offsets): New function.
19900 (main): Test call with and without offsets.
19902 2007-01-22 Bruno Haible <bruno@clisp.org>
19904 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19905 * modules/sys_select (Makefile.am): Likewise.
19906 * modules/sys_socket (Makefile.am): Likewise.
19907 * modules/sys_time (Makefile.am): Likewise.
19909 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
19911 * modules/gettimeofday (License): Change from GPL to LGPL, since
19912 gettimeofday is a library function.
19914 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19916 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19918 2007-01-21 Bruno Haible <bruno@clisp.org>
19920 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19922 2007-01-21 Bruno Haible <bruno@clisp.org>
19924 * modules/striconveha: New file.
19925 * lib/striconveha.h: New file.
19926 * lib/striconveha.c: New file.
19927 * MODULES.html.sh (Internationalization functions): Add striconveha.
19928 * lib/striconv.c (str_iconv): Optimize the case of an empty input
19930 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19932 2007-01-21 Bruno Haible <bruno@clisp.org>
19934 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19935 * lib/striconveh.c (str_iconveh): Likewise.
19937 2007-01-21 Bruno Haible <bruno@clisp.org>
19939 * lib/striconveh.h (mem_iconveh): New declaration.
19940 * lib/striconveh.c (mem_iconveh): New function.
19941 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19943 2007-01-21 Bruno Haible <bruno@clisp.org>
19945 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19947 * lib/striconveh.h (mem_cd_iconveh): Change specification.
19948 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19949 original result buffer.
19950 (str_cd_iconveh): Update.
19951 * tests/test-striconveh.c (main): Update.
19953 * lib/striconv.h (mem_cd_iconv): Change specification.
19954 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19956 (str_cd_iconv): Update.
19957 * tests/test-striconv.c (main): Update.
19959 2007-01-21 Bruno Haible <bruno@clisp.org>
19961 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19963 2007-01-20 Jim Meyering <jim@meyering.net>
19965 * lib/userspec.c (parse_with_separator): If a user or group string
19966 starts with "+", skip the corresponding name-to-ID look-up, since
19967 such a look-up must fail: user and group names may not include "+".
19969 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
19971 * lib/poll.c: Include sys/time.h and time.h unconditionally,
19972 since we now assume the sys_time module.
19973 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19974 check for sys/time.h; no longer needed.
19975 * modules/poll (Depends-on): Depend on sys_time.
19977 2007-01-18 Bruno Haible <bruno@clisp.org>
19979 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19980 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19982 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19985 * tests/test-gettimeofday.c: Include <time.h>.
19986 (dummy): Remove variable.
19988 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19989 gl_HEADER_SYS_TIME_H.
19990 (gl_HEADER_SYS_TIME_H): New macro.
19992 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19993 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19994 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19995 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19996 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19997 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19998 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19999 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20000 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20001 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20002 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20004 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20005 last change; it caused a compilation error when cross-compiling to
20008 2007-01-18 Jim Meyering <jim@meyering.net>
20010 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20011 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20012 than the race-prone "test -d sys || mkdir sys".
20013 (configure.ac): Use AC_PROG_MKDIR_P.
20014 * modules/sys_select: Likewise.
20015 * modules/sys_socket: Likewise.
20016 * modules/sys_time: Likewise.
20018 2007-01-18 Eric Blake <ebb9@byu.net>
20020 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20021 replace gettimeofday.
20022 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20023 name, to avoid infinite recursion.
20025 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
20027 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20029 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20030 assume timespec.h defines struct timeval.
20031 * lib/settime.c: Likewise.
20032 * lib/utimens.c: Likewise.
20033 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20034 since we now assume the gettimeofday module.
20035 * lib/tempname.c (__gen_tempname): Likewise.
20036 * lib/gettimeofday.h: Remove.
20037 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20038 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20039 Include <time.h>, for 'time()'.
20040 (localtime_buffer_addr): Also use this workaround if
20041 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
20042 to simplify the uses. All uses changed.
20043 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20044 that #undef is inside {}, and 'const' follows type name consistently.
20045 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20046 (gettimeofday): Do not use the maximum possible value for
20047 tv->tv_usec, since that might break usages other than ls.c.
20048 Instead, we'll leave ls.c alone. This undoes today's patch
20049 by Bruno. Add a compile-time warning for 1s-clock resolution;
20050 we've never observed the problem but might as well keep the
20052 * lib/nanosleep.c: Include timespec.h first, for interface check.
20053 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20054 now assume the sys_time module.
20055 * lib/tempname.c: Likewise.
20056 * lib/timespec.h: Likewise.
20057 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20059 * lib/strftime.c: Likewise.
20060 * lib/timespec.h: Likewise.
20061 * lib/posixtm.c: Include posixtm.h first, for interface check.
20062 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20063 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20064 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20065 * lib/sys_time_.h: New file.
20066 * lib/timespec.h (struct timespec): Use long int, not long.
20067 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20068 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20069 Remove obsolescent call to AC_HEADER_TIME.
20070 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20071 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20072 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20073 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20075 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20076 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20077 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20078 into the sys_time module. Check for gettimeofday just once.
20079 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
20080 for gettimeofday signature to just check the signature. Merely
20081 compile it, since linking doesn't test signature. Improve test for
20082 whether gettimeofday.o is actually needed.
20083 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20084 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
20085 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
20086 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20087 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20088 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20089 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20090 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20091 than worrying about sys/time.h.
20092 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20093 Don't bother worrying about TIME_WITH_SYS_TIME.
20094 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20095 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20096 * m4/sys_time_h.m4: New file.
20097 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20098 Don't include sys/time.h. Return from main rather than exiting.
20099 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20101 * modules/gethrxtime (Depends-on): Add sys_time.
20102 * modules/gettime (Depends-on): Likewise.
20103 * modules/gettimeofday (Depends-on): Likewise.
20104 * modules/nanosleep (Depends-on): Likewise.
20105 * modules/settime (Depends-on): Likewise.
20106 * modules/tempname (Depends-on): Likewise.
20107 * modules/utimens (Depends-on): Likewise.
20108 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20109 (Include:) Change back to <sys/time.h>.
20110 (Maintainer:) Add self.
20111 * modules/sys_time: New file.
20112 * modules/tempname (Depends-on): Add gettimeofday.
20113 * tests/test-gettimeofday.c: Include <sys/time.h>
20114 rather than gettimeofday.h.
20116 2007-01-17 Bruno Haible <bruno@clisp.org>
20118 * gnulib-tool (func_get_license): Revert last patch. Instead, let
20119 the license default to GPL.
20120 (func_create_testdir): Don't complain if a module is LGPL and its
20121 tests module depends on GPLed modules.
20123 2007-01-17 Bruno Haible <bruno@clisp.org>
20125 * lib/gettimeofday.c (gettimeofday): Add code for the case
20126 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20127 maximum possible value for tv->tv_usec, rather than the minimum one.
20129 2005-10-08 Martin Lambers <marlam@marlam.de>
20130 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
20131 2007-01-16 Bruno Haible <bruno@clisp.org>
20133 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20134 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20135 gl_FUNC_GETTIMEOFDAY.
20136 (Include): Add gettimeofday.h.
20137 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20138 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20139 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20140 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20141 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20142 * lib/gettimeofday.h: New file.
20143 * lib/gettimeofday.c: Include <sys/timeb.h>.
20144 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20145 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20146 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20147 fall back on time().
20149 * tests/test-gettimeofday.c: New file.
20150 * modules/gettimeofday-tests: New file.
20152 2007-01-16 Eric Blake <ebb9@byu.net>
20154 * modules/fnmatch (Depends-on): Depend on wchar.
20155 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20156 * m4/fnmatch.m4: Likewise.
20157 * modules/mbchar (Makefile.am): Assume <wchar.h>.
20158 * m4/mbchar.m4: Likewise.
20159 * modules/mbswidth (Depends-on): Depend on wchar.
20160 * lib/mbswidth.c: Assume <wchar.h>.
20161 * m4/mbswidth.m4: Likewise.
20162 * modules/quotearg (Depends-on): Depend on wchar.
20163 * lib/quotearg.c: Assume <wchar.h>.
20164 * m4/quotearg.m4: Likewise.
20165 * modules/regex (Depends-on): Depend on wchar.
20166 * lib/regex_internal.h: Assume <wchar.h>.
20167 * m4/regex.m4: Likewise.
20168 * modules/stdint (Depends-on): Depend on wchar.
20169 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20170 * m4/stdint.m4: Likewise.
20171 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20172 * modules/strftime (Depends-on): Depend on wchar.
20173 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20174 * modules/strtol (Depends-on): Depend on wchar.
20175 * lib/strtol.c: Assume <wchar.h>.
20176 * modules/wcwidth (Depends-on): Depend on wchar.
20177 * lib/wcwidth.h: Assume <wchar.h>.
20178 * m4/wcwidth.m4: Likewise.
20180 2007-01-16 Bruno Haible <bruno@clisp.org>
20182 * modules/csharpexec-script: New, created from...
20183 * modules/csharpexec: ... this.
20185 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
20187 * modules/javaexec-script: New, created from...
20188 * modules/javaexec: ... this.
20190 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20192 * modules/poll (Dependencies): Add sys_select.
20194 2007-01-15 Jim Meyering <jim@meyering.net>
20196 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20197 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20198 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
20199 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20201 2007-01-15 Bruno Haible <bruno@clisp.org>
20203 * modules/striconveh: New file.
20204 * lib/striconveh.h: New file.
20205 * lib/striconveh.c: New file.
20206 * MODULES.html.sh (Internationalization functions): Add striconveh.
20208 * modules/striconveh-tests: New file.
20209 * tests/test-striconveh.c: New file.
20211 2007-01-15 Bruno Haible <bruno@clisp.org>
20213 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20214 not from GNU libiconv or GNU libc.
20216 2007-01-15 Bruno Haible <bruno@clisp.org>
20218 * doc/gnulib-intro.texi (Copyright): Explain the different license
20219 terms for module descriptions, autoconf macros, tests, documentation.
20221 2007-01-14 Bruno Haible <bruno@clisp.org>
20223 * modules/striconv-tests: New file.
20224 * tests/test-striconv.c: New file.
20226 2007-01-14 Bruno Haible <bruno@clisp.org>
20228 * modules/iconv-tests: New file.
20229 * tests/test-iconv.c: New file.
20231 2007-01-14 Bruno Haible <bruno@clisp.org>
20233 * gnulib-tool (func_get_license): For test modules, use the license of
20236 2007-01-14 Bruno Haible <bruno@clisp.org>
20238 * modules/iconv (Include): Clarify that <iconv.h> can only be included
20239 if iconv is found to exist.
20241 2007-01-14 Bruno Haible <bruno@clisp.org>
20243 * modules/c-ctype-tests: New file.
20244 * tests/test-c-ctype.c: New file.
20246 2007-01-14 Bruno Haible <bruno@clisp.org>
20248 * modules/binary-io-tests: New file.
20249 * tests/test-binary-io.sh: New file.
20250 * tests/test-binary-io.c: New file.
20252 2007-01-14 Bruno Haible <bruno@clisp.org>
20254 * modules/array-oset-tests: New file.
20255 * tests/test-array_oset.c: New file.
20257 2007-01-14 Bruno Haible <bruno@clisp.org>
20259 * modules/array-list-tests: New file.
20260 * tests/test-array_list.c: New file.
20262 2007-01-14 Bruno Haible <bruno@clisp.org>
20264 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20266 Reported by Simon Josefsson in
20267 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20269 2007-01-14 Bruno Haible <bruno@clisp.org>
20271 * modules/allocsa-tests: New file.
20272 * tests/test-allocsa.c: New file.
20274 2007-01-14 Bruno Haible <bruno@clisp.org>
20276 * modules/fchdir (Depends-on): Add absolute-header.
20277 * modules/unistd (Depends-on): Likewise.
20279 2006-12-30 Bruno Haible <bruno@clisp.org>
20281 * modules/fchdir: New file.
20282 * modules/unistd (Files): Add lib/unistd_.h.
20283 (Makefile.am): Generate unistd.h from unistd_.h.
20284 * lib/fchdir.c: New file.
20285 * lib/dirent_.h: New file.
20286 * lib/unistd_.h: New file.
20287 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20288 * m4/fchdir.m4: New file.
20289 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20290 (gl_HEADER_UNISTD): Invoke it.
20291 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20293 * lib/backupfile.c (opendir, closedir): Undefine.
20294 * lib/chown.c (open, close): Undefine.
20295 * lib/clean-temp.c (open, close): Undefine.
20296 * lib/copy-file.c (open, close): Undefine.
20297 * lib/execute.c (open, close): Undefine.
20298 * lib/fsusage.c (open, close): Undefine.
20299 * lib/gc-gnulib.c (open, close): Undefine.
20300 * lib/getcwd.c (opendir, closedir): Undefine.
20301 * lib/glob.c (opendir, closedir): Undefine.
20302 * lib/javacomp.c (open, close): Undefine.
20303 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20304 * lib/openat-proc.c (open, close): Undefine.
20305 * lib/pagealign_alloc.c (open, close): Undefine.
20306 * lib/pipe.c (open, close): Undefine.
20307 * lib/progreloc.c (open, close): Undefine.
20308 * lib/savedir.c (opendir, closedir): Undefine.
20309 * lib/utime.c (open, close): Undefine.
20310 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20312 2007-01-10 Bruno Haible <bruno@clisp.org>
20314 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20316 2007-01-12 Eric Blake <ebb9@byu.net>
20318 Provide a robust <wchar.h>. Further simplifications are now
20319 possible in other modules, but not included here.
20320 * modules/wchar: New module.
20321 * m4/wchar.m4: New file.
20322 * lib/wchar_.h: Likewise.
20323 * modules/mbchar (Depends-on): Depend on wchar, as the first use
20325 * MODULES.html.sh (Extended multibyte and wide character utilities):
20328 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
20330 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20331 to a reasonable default for memory allocation.
20332 (xreadlink): Don't allocate a huge buffer, to work around a buggy
20333 file system that reports garbage st_size values for symlinks.
20334 Problem reported by Liyang Hu.
20336 2007-01-11 Simon Josefsson <simon@josefsson.org>
20338 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20339 Emacs .#* auto-save files).
20341 2007-01-11 Bruno Haible <bruno@clisp.org>
20343 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20346 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
20348 Use @...@ consistently in lib/wctype_.h.
20349 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20350 on it being set to 1 or 0.
20351 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20352 go back to AC_SUBSTing it.
20353 * modules/wctype (Makefile.am): Undo previous change.
20355 2007-01-10 Eric Blake <ebb9@byu.net>
20357 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20358 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20359 * modules/wctype (Makefile.am): Likewise.
20360 Reported by Chris McGuire.
20362 2007-01-10 Jim Meyering <jim@meyering.net>
20364 fts.c: a small readability/maintainability improvement
20365 * lib/fts.c (fts_read): Make this code slightly more readable and
20366 maintainable by hoisting the "sp->fts_cur = p" assignments to
20367 immediately follow the statements that set P. Derived from
20368 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20370 2007-01-10 Eric Blake <ebb9@byu.net>
20372 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20373 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20374 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20375 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20376 Reported by Chris McGuire.
20378 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20380 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20383 2007-01-09 Bruno Haible <bruno@clisp.org>
20385 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20386 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20388 (func_module): Use them.
20390 2007-01-09 Bruno Haible <bruno@clisp.org>
20392 * modules/unistr/base: New file.
20393 * lib/unistr.h: New file.
20395 * modules/unistr/u8-to-u16: New file.
20396 * lib/unistr/u8-to-u16.c: New file.
20398 * modules/unistr/u8-to-u32: New file.
20399 * lib/unistr/u8-to-u32.c: New file.
20401 * modules/unistr/u16-to-u8: New file.
20402 * lib/unistr/u16-to-u8.c: New file.
20404 * modules/unistr/u16-to-u32: New file.
20405 * lib/unistr/u16-to-u32.c: New file.
20407 * modules/unistr/u32-to-u8: New file.
20408 * lib/unistr/u32-to-u8.c: New file.
20410 * modules/unistr/u32-to-u16: New file.
20411 * lib/unistr/u32-to-u16.c: New file.
20413 * modules/unistr/u8-check: New file.
20414 * modules/unistr/u16-check: New file.
20415 * modules/unistr/u32-check: New file.
20416 * lib/unistr/u8-check.c: New file.
20417 * lib/unistr/u16-check.c: New file.
20418 * lib/unistr/u32-check.c: New file.
20420 * modules/unistr/u8-chr: New file.
20421 * modules/unistr/u16-chr: New file.
20422 * modules/unistr/u32-chr: New file.
20423 * lib/unistr/u8-chr.c: New file.
20424 * lib/unistr/u16-chr.c: New file.
20425 * lib/unistr/u32-chr.c: New file.
20427 * modules/unistr/u8-cmp: New file.
20428 * modules/unistr/u16-cmp: New file.
20429 * modules/unistr/u32-cmp: New file.
20430 * lib/unistr/u8-cmp.c: New file.
20431 * lib/unistr/u16-cmp.c: New file.
20432 * lib/unistr/u32-cmp.c: New file.
20434 * modules/unistr/u8-cpy: New file.
20435 * modules/unistr/u16-cpy: New file.
20436 * modules/unistr/u32-cpy: New file.
20437 * lib/unistr/u8-cpy.c: New file.
20438 * lib/unistr/u16-cpy.c: New file.
20439 * lib/unistr/u32-cpy.c: New file.
20440 * lib/unistr/u-cpy.h: New file.
20442 * modules/unistr/u8-cpy-alloc: New file.
20443 * modules/unistr/u16-cpy-alloc: New file.
20444 * modules/unistr/u32-cpy-alloc: New file.
20445 * lib/unistr/u8-cpy-alloc.c: New file.
20446 * lib/unistr/u16-cpy-alloc.c: New file.
20447 * lib/unistr/u32-cpy-alloc.c: New file.
20448 * lib/unistr/u-cpy-alloc.h: New file.
20450 * modules/unistr/u8-endswith: New file.
20451 * modules/unistr/u16-endswith: New file.
20452 * modules/unistr/u32-endswith: New file.
20453 * lib/unistr/u8-endswith.c: New file.
20454 * lib/unistr/u16-endswith.c: New file.
20455 * lib/unistr/u32-endswith.c: New file.
20456 * lib/unistr/u-endswith.h: New file.
20458 * modules/unistr/u8-mblen: New file.
20459 * modules/unistr/u16-mblen: New file.
20460 * modules/unistr/u32-mblen: New file.
20461 * lib/unistr/u8-mblen.c: New file.
20462 * lib/unistr/u16-mblen.c: New file.
20463 * lib/unistr/u32-mblen.c: New file.
20465 * modules/unistr/u8-mbtouc: New file.
20466 * modules/unistr/u16-mbtouc: New file.
20467 * modules/unistr/u32-mbtouc: New file.
20468 * lib/unistr/u8-mbtouc.c: New file.
20469 * lib/unistr/u16-mbtouc.c: New file.
20470 * lib/unistr/u32-mbtouc.c: New file.
20472 * modules/unistr/u8-mbtouc-safe: New file.
20473 * modules/unistr/u16-mbtouc-safe: New file.
20474 * modules/unistr/u32-mbtouc-safe: New file.
20475 * lib/unistr/u8-mbtouc-safe.c: New file.
20476 * lib/unistr/u16-mbtouc-safe.c: New file.
20477 * lib/unistr/u32-mbtouc-safe.c: New file.
20479 * modules/unistr/u8-move: New file.
20480 * modules/unistr/u16-move: New file.
20481 * modules/unistr/u32-move: New file.
20482 * lib/unistr/u8-move.c: New file.
20483 * lib/unistr/u16-move.c: New file.
20484 * lib/unistr/u32-move.c: New file.
20485 * lib/unistr/u-move.h: New file.
20487 * modules/unistr/u8-next: New file.
20488 * modules/unistr/u16-next: New file.
20489 * modules/unistr/u32-next: New file.
20490 * lib/unistr/u8-next.c: New file.
20491 * lib/unistr/u16-next.c: New file.
20492 * lib/unistr/u32-next.c: New file.
20494 * modules/unistr/u8-prev: New file.
20495 * modules/unistr/u16-prev: New file.
20496 * modules/unistr/u32-prev: New file.
20497 * lib/unistr/u8-prev.c: New file.
20498 * lib/unistr/u16-prev.c: New file.
20499 * lib/unistr/u32-prev.c: New file.
20501 * modules/unistr/u8-set: New file.
20502 * modules/unistr/u16-set: New file.
20503 * modules/unistr/u32-set: New file.
20504 * lib/unistr/u8-set.c: New file.
20505 * lib/unistr/u16-set.c: New file.
20506 * lib/unistr/u32-set.c: New file.
20507 * lib/unistr/u-set.h: New file.
20509 * modules/unistr/u8-startswith: New file.
20510 * modules/unistr/u16-startswith: New file.
20511 * modules/unistr/u32-startswith: New file.
20512 * lib/unistr/u8-startswith.c: New file.
20513 * lib/unistr/u16-startswith.c: New file.
20514 * lib/unistr/u32-startswith.c: New file.
20515 * lib/unistr/u-startswith.h: New file.
20517 * modules/unistr/u8-stpcpy: New file.
20518 * modules/unistr/u16-stpcpy: New file.
20519 * modules/unistr/u32-stpcpy: New file.
20520 * lib/unistr/u8-stpcpy.c: New file.
20521 * lib/unistr/u16-stpcpy.c: New file.
20522 * lib/unistr/u32-stpcpy.c: New file.
20523 * lib/unistr/u-stpcpy.h: New file.
20525 * modules/unistr/u8-stpncpy: New file.
20526 * modules/unistr/u16-stpncpy: New file.
20527 * modules/unistr/u32-stpncpy: New file.
20528 * lib/unistr/u8-stpncpy.c: New file.
20529 * lib/unistr/u16-stpncpy.c: New file.
20530 * lib/unistr/u32-stpncpy.c: New file.
20531 * lib/unistr/u-stpncpy.h: New file.
20533 * modules/unistr/u8-strcat: New file.
20534 * modules/unistr/u16-strcat: New file.
20535 * modules/unistr/u32-strcat: New file.
20536 * lib/unistr/u8-strcat.c: New file.
20537 * lib/unistr/u16-strcat.c: New file.
20538 * lib/unistr/u32-strcat.c: New file.
20539 * lib/unistr/u-strcat.h: New file.
20541 * modules/unistr/u8-strchr: New file.
20542 * modules/unistr/u16-strchr: New file.
20543 * modules/unistr/u32-strchr: New file.
20544 * lib/unistr/u8-strchr.c: New file.
20545 * lib/unistr/u16-strchr.c: New file.
20546 * lib/unistr/u32-strchr.c: New file.
20548 * modules/unistr/u8-strcmp: New file.
20549 * modules/unistr/u16-strcmp: New file.
20550 * modules/unistr/u32-strcmp: New file.
20551 * lib/unistr/u8-strcmp.c: New file.
20552 * lib/unistr/u16-strcmp.c: New file.
20553 * lib/unistr/u32-strcmp.c: New file.
20555 * modules/unistr/u8-strcpy: New file.
20556 * modules/unistr/u16-strcpy: New file.
20557 * modules/unistr/u32-strcpy: New file.
20558 * lib/unistr/u8-strcpy.c: New file.
20559 * lib/unistr/u16-strcpy.c: New file.
20560 * lib/unistr/u32-strcpy.c: New file.
20561 * lib/unistr/u-strcpy.h: New file.
20563 * modules/unistr/u8-strcspn: New file.
20564 * modules/unistr/u16-strcspn: New file.
20565 * modules/unistr/u32-strcspn: New file.
20566 * lib/unistr/u8-strcspn.c: New file.
20567 * lib/unistr/u16-strcspn.c: New file.
20568 * lib/unistr/u32-strcspn.c: New file.
20569 * lib/unistr/u-strcspn.h: New file.
20571 * modules/unistr/u8-strdup: New file.
20572 * modules/unistr/u16-strdup: New file.
20573 * modules/unistr/u32-strdup: New file.
20574 * lib/unistr/u8-strdup.c: New file.
20575 * lib/unistr/u16-strdup.c: New file.
20576 * lib/unistr/u32-strdup.c: New file.
20577 * lib/unistr/u-strdup.h: New file.
20579 * modules/unistr/u8-strlen: New file.
20580 * modules/unistr/u16-strlen: New file.
20581 * modules/unistr/u32-strlen: New file.
20582 * lib/unistr/u8-strlen.c: New file.
20583 * lib/unistr/u16-strlen.c: New file.
20584 * lib/unistr/u32-strlen.c: New file.
20585 * lib/unistr/u-strlen.h: New file.
20587 * modules/unistr/u8-strmblen: New file.
20588 * modules/unistr/u16-strmblen: New file.
20589 * modules/unistr/u32-strmblen: New file.
20590 * lib/unistr/u8-strmblen.c: New file.
20591 * lib/unistr/u16-strmblen.c: New file.
20592 * lib/unistr/u32-strmblen.c: New file.
20594 * modules/unistr/u8-strmbtouc: New file.
20595 * modules/unistr/u16-strmbtouc: New file.
20596 * modules/unistr/u32-strmbtouc: New file.
20597 * lib/unistr/u8-strmbtouc.c: New file.
20598 * lib/unistr/u16-strmbtouc.c: New file.
20599 * lib/unistr/u32-strmbtouc.c: New file.
20601 * modules/unistr/u8-strncat: New file.
20602 * modules/unistr/u16-strncat: New file.
20603 * modules/unistr/u32-strncat: New file.
20604 * lib/unistr/u8-strncat.c: New file.
20605 * lib/unistr/u16-strncat.c: New file.
20606 * lib/unistr/u32-strncat.c: New file.
20607 * lib/unistr/u-strncat.h: New file.
20609 * modules/unistr/u8-strncmp: New file.
20610 * modules/unistr/u16-strncmp: New file.
20611 * modules/unistr/u32-strncmp: New file.
20612 * lib/unistr/u8-strncmp.c: New file.
20613 * lib/unistr/u16-strncmp.c: New file.
20614 * lib/unistr/u32-strncmp.c: New file.
20616 * modules/unistr/u8-strncpy: New file.
20617 * modules/unistr/u16-strncpy: New file.
20618 * modules/unistr/u32-strncpy: New file.
20619 * lib/unistr/u8-strncpy.c: New file.
20620 * lib/unistr/u16-strncpy.c: New file.
20621 * lib/unistr/u32-strncpy.c: New file.
20622 * lib/unistr/u-strncpy.h: New file.
20624 * modules/unistr/u8-strnlen: New file.
20625 * modules/unistr/u16-strnlen: New file.
20626 * modules/unistr/u32-strnlen: New file.
20627 * lib/unistr/u8-strnlen.c: New file.
20628 * lib/unistr/u16-strnlen.c: New file.
20629 * lib/unistr/u32-strnlen.c: New file.
20630 * lib/unistr/u-strnlen.h: New file.
20632 * modules/unistr/u8-strpbrk: New file.
20633 * modules/unistr/u16-strpbrk: New file.
20634 * modules/unistr/u32-strpbrk: New file.
20635 * lib/unistr/u8-strpbrk.c: New file.
20636 * lib/unistr/u16-strpbrk.c: New file.
20637 * lib/unistr/u32-strpbrk.c: New file.
20638 * lib/unistr/u-strpbrk.h: New file.
20640 * modules/unistr/u8-strrchr: New file.
20641 * modules/unistr/u16-strrchr: New file.
20642 * modules/unistr/u32-strrchr: New file.
20643 * lib/unistr/u8-strrchr.c: New file.
20644 * lib/unistr/u16-strrchr.c: New file.
20645 * lib/unistr/u32-strrchr.c: New file.
20647 * modules/unistr/u8-strspn: New file.
20648 * modules/unistr/u16-strspn: New file.
20649 * modules/unistr/u32-strspn: New file.
20650 * lib/unistr/u8-strspn.c: New file.
20651 * lib/unistr/u16-strspn.c: New file.
20652 * lib/unistr/u32-strspn.c: New file.
20653 * lib/unistr/u-strspn.h: New file.
20655 * modules/unistr/u8-strstr: New file.
20656 * modules/unistr/u16-strstr: New file.
20657 * modules/unistr/u32-strstr: New file.
20658 * lib/unistr/u8-strstr.c: New file.
20659 * lib/unistr/u16-strstr.c: New file.
20660 * lib/unistr/u32-strstr.c: New file.
20661 * lib/unistr/u-strstr.h: New file.
20663 * modules/unistr/u8-strtok: New file.
20664 * modules/unistr/u16-strtok: New file.
20665 * modules/unistr/u32-strtok: New file.
20666 * lib/unistr/u8-strtok.c: New file.
20667 * lib/unistr/u16-strtok.c: New file.
20668 * lib/unistr/u32-strtok.c: New file.
20669 * lib/unistr/u-strtok.h: New file.
20671 * modules/unistr/u8-uctomb: New file.
20672 * modules/unistr/u16-uctomb: New file.
20673 * modules/unistr/u32-uctomb: New file.
20674 * lib/unistr/u8-uctomb.c: New file.
20675 * lib/unistr/u16-uctomb.c: New file.
20676 * lib/unistr/u32-uctomb.c: New file.
20678 * MODULES.html.sh (Unicode string functions): Add the new modules.
20680 2007-01-08 Bruno Haible <bruno@clisp.org>
20682 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20683 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20686 2007-01-08 Karl Berry <karl@gnu.org>
20688 * doc/error.texi: mention that main() fns must set program_name
20689 when progname is used.
20691 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
20693 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20694 WCTYPE_H is empty, for the benefit of builds from non-distclean
20695 directories. Problem reported by Eric Blake in
20696 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20698 2007-01-08 Bruno Haible <bruno@clisp.org>
20700 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20701 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20702 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20703 PROVIDE_CANONICALIZE_FILENAME_MODE.
20704 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20706 2007-01-08 Bruno Haible <bruno@clisp.org>
20708 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20709 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20710 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20711 * lib/fts.c: Likewise.
20712 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20714 2006-12-25 Bruno Haible <bruno@clisp.org>
20716 * modules/utf8-ucs4-safe: New file.
20717 * lib/utf8-ucs4-safe.h: New file.
20718 * lib/unistr/utf8-ucs4-safe.c: New file.
20720 * modules/utf16-ucs4-safe: New file.
20721 * lib/utf16-ucs4-safe.h: New file.
20722 * lib/unistr/utf16-ucs4-safe.c: New file.
20724 * MODULES.html.sh (Unicode string functions): Add the new modules.
20726 2007-01-08 Bruno Haible <bruno@clisp.org>
20728 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20729 (Depends-on): Add unitypes.
20730 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20731 (u8_mbtouc_aux): Move out to separate file.
20732 (u8_mbtouc): Use ucs4_t, uint8_t types.
20733 * lib/unistr/utf8-ucs4.c: New file.
20735 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20736 (Depends-on): Add unitypes.
20737 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20738 (u16_mbtouc_aux): Move out to separate file.
20739 (u16_mbtouc): Use ucs4_t, uint16_t types.
20740 * lib/unistr/utf16-ucs4.c: New file.
20742 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20743 (Depends-on): Add unitypes.
20744 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20745 (u8_uctomb_aux): Move out to separate file.
20746 (u8_uctomb): Use ucs4_t, uint8_t types.
20747 * lib/unistr/ucs4-utf8.c: New file.
20749 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20750 (Depends-on): Add unitypes.
20751 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20752 (u16_uctomb_aux): Move out to separate file.
20753 (u16_uctomb): Use ucs4_t, uint16_t types.
20754 * lib/unistr/ucs4-utf16.c: New file.
20756 2006-12-25 Bruno Haible <bruno@clisp.org>
20758 * modules/unitypes: New file.
20759 * lib/unitypes.h: New file.
20760 * MODULES.html.sh (func_all_modules): New section "Unicode string
20761 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20762 this section. Add unitypes.
20764 2007-01-08 Bruno Haible <bruno@clisp.org>
20766 Avoid variable names that conflict with those from libtool.
20767 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20768 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20769 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20770 library_names_spec to acl_library_names_spec, hardcode_* to
20772 Reported by Ralf Wildenhues.
20774 2007-01-08 Bruno Haible <bruno@clisp.org>
20776 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20778 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20780 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20781 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20783 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20785 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20786 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20787 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20788 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20790 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20792 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20793 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20794 GC_USE_<algorithm>.
20795 * lib/gc-libgcrypt.c: Likewise.
20796 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20797 * modules/gc-arctwo (configure.ac): Likewise.
20798 * modules/gc-des (configure.ac): Likewise.
20799 * modules/gc-hmac-md5 (configure.ac): Likewise.
20800 * modules/gc-hmac-sha1 (configure.ac): Likewise.
20801 * modules/gc-md2 (configure.ac): Likewise.
20802 * modules/gc-md4 (configure.ac): Likewise.
20803 * modules/gc-md5 (configure.ac): Likewise.
20804 * modules/gc-random (configure.ac): Likewise.
20805 * modules/gc-rijndael (configure.ac): Likewise.
20806 * modules/gc-sha1 (configure.ac): Likewise.
20808 2007-01-08 Bruno Haible <bruno@clisp.org>
20810 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20812 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20814 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20816 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20817 * modules/fcntl-safer (configure.ac): Likewise.
20818 * modules/fopen-safer (configure.ac): Likewise.
20819 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20820 GNULIB_FWRITEERROR macro definition.
20822 2007-01-08 Bruno Haible <bruno@clisp.org>
20824 * m4/gnulib-common.m4: New file.
20825 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20826 (func_get_filelist): Add m4/gnulib-common.m4.
20828 2007-01-08 Bruno Haible <bruno@clisp.org>
20830 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20833 2007-01-08 Jim Meyering <jim@meyering.net>
20835 Use a more robust test for a "can't happen" condition.
20836 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20837 narrowed the st_size value. Presuming the "can't happen" condition
20838 is true, that narrowing could conceivably convert an invalid st_size
20839 value into a valid one. Instead, use a change based on Matthew
20840 Woehlke's original patch.
20842 Slight readability improvement: use an assert-like macro
20843 in place of literal "abort ()" uses.
20844 * lib/fts.c (fts_assert): Define.
20845 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20846 Use this macro instead of a bare 'abort'.
20848 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
20850 Don't worry about using IRIX 5.3's wctype.h broken definitions;
20851 simply work around them.
20852 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20853 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20854 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20856 Don't bother to define as macros, since the standard doesn't require it.
20857 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20858 longer worry about IRIX 5.3.
20859 (HAVE_WCTYPE_CTMP_BUG): Remove.
20861 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
20863 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20864 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
20865 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20866 Problems reported by Georg Schwarz for IRIX 5.3.
20868 * gnulib-tool (autoconf_minversion): Take the maximum version number
20869 found, not the minimum. Problem reported by James Youngman.
20871 2007-01-03 Karl Berry <karl@gnu.org>
20873 * doc/error.texi: new file, explaining interaction with progname.
20874 * doc/gnulib.texi: include it. Update copyright.
20876 2007-01-03 Simon Josefsson <simon@josefsson.org>
20878 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20879 AC_CANONICAL_HOST, to improve autobuild outputs.
20881 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
20882 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20884 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20885 sockets, server sockets, and other file descriptors. Count errors
20886 to compute the return value. Reorder the code a bit to be easier
20887 to follow. Don't set event bits that were not requested (except
20888 POLLERR and POLLHUP).
20890 2007-01-01 Bruno Haible <bruno@clisp.org>
20892 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20894 2007-01-03 Jim Meyering <jim@meyering.net>
20896 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
20898 2007-01-02 Bruno Haible <bruno@clisp.org>
20900 * modules/settime (Include): Require timespec.h.
20901 * modules/nanosleep (Include): Likewise.
20903 2007-01-01 Bruno Haible <bruno@clisp.org>
20905 * gnulib-tool (func_emit_copyright_notice): Bump year.
20906 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20908 2007-01-01 Bruno Haible <bruno@clisp.org>
20910 Improve support for OpenBSD.
20911 * build-aux/config.rpath (libname_spec): Export.
20912 (library_names_spec): New variable. Export.
20913 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20914 library_names_spec from the config.rpath output. Locate shared library
20915 through the name pattern in library_names_spec.
20917 2007-01-01 Eric Blake <ebb9@byu.net>
20919 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20921 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
20923 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20924 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
20925 assume the C locale, and avoid an "eval" that could cause trouble.
20926 Problem with SORT reported by Bob Proulx.
20928 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20929 Define. Trivial patch from Henning Nielsen Lund, originally
20930 sent to bug-grep@gnu.org today.
20932 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
20934 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20935 struct stat. Problem reported by Henning Nielsen Lund.
20936 * lib/acl.c: Include acl.h first, to check interface. Don't
20937 bother to include sys/types.h and sys/stat.h again.
20939 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
20941 Import the following change from libc; problem reported by
20944 2005-10-13 Ulrich Drepper <drepper@redhat.com>
20947 * lib/argp.h: Remove __NTH for __argp_usage inline function.
20949 2006-12-28 Jim Meyering <jim@meyering.net>
20951 * build-aux/announce-gen: Do not assume that the package
20952 builds any of tar.gz, tar.bz2, and .xdelta files.
20953 Suggestion from Simon Josefsson.
20955 2006-12-28 Simon Josefsson <simon@josefsson.org>
20957 * modules/announce-gen: New file.
20959 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
20961 * lib/mbchar.h: Just include <wctype.h>; the wctype module
20962 handles its gotchas now.
20963 * lib/mbswidth.c: Likewise.
20964 * lib/wcwidth.h: Likewise.
20965 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20966 and iswcntrl; the wctype module does this stuff now.
20967 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20968 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20969 * modules/mbchar (Depends-on): Add wctype.
20970 * modules/mbswidth (Depends-on): Likewise.
20971 * modules/wcwidth (Depends-on): Likewise.
20973 2006-12-27 Eric Blake <ebb9@byu.net>
20975 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20976 module uses more than what <wctype.h> is required to provide.
20978 2006-12-26 Eric Blake <ebb9@byu.net>
20980 * gnulib-tool (sed_extract_prog): Avoid space-tab.
20982 2006-12-26 Eric Blake <ebb9@byu.net>
20984 * modules/absolute-header: New module.
20985 * modules/fcntl (Depends-on): Depend on it.
20986 * modules/inttypes (Depends-on): Likewise.
20987 * modules/stdint (Depends-on): Likewise.
20988 * modules/sys_stat (Depends-on): Likewise.
20989 * modules/wctype (Depends-on): Likewise.
20990 * MODULES.html.sh (Support for building libraries and
20991 executables): Document it.
20993 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
20995 * gnulib-tool (SED): Remove, undoing previous change.
20996 The problem was that it broke coreutils on Solaris, because
20997 "sed --posix" leaked into a makefile.
20998 (sed): New alias, if 'alias' and GNU sed.
21000 2006-12-24 Jim Meyering <jim@meyering.net>
21002 Work around an fchownat bug in glibc-2.4:
21003 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21004 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21005 in spite of the -P option.
21006 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21008 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21009 * modules/openat (Files): Add lib/fchownat.c.
21010 * lib/openat.c (fchownat): Don't define here. Move to...
21011 * lib/fchownat.c: ...this new file.
21013 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
21015 Fix bug reported by Bruno Haible in
21016 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21017 where quotearg.c didn't compile on Mac OS X 10.2 because it
21018 lacks <wchar.h> and wint_t.
21019 * lib/wctype_.h (__wctype_wint_t): New type.
21020 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21021 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21022 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21023 Arg is now of type __wctype_wint_t, not wint_t.
21024 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21025 substitute HAVE_WINT_T.
21026 * modules/wctype (Files): Add m4/wint_t.m4.
21027 (wctype.h): Substitute HAVE_WINT_T.
21029 2006-12-23 Bruno Haible <bruno@clisp.org>
21031 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21033 2006-12-23 Bruno Haible <bruno@clisp.org>
21035 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21037 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21040 2006-12-22 Bruno Haible <bruno@clisp.org>
21042 * lib/copy-file.c: Include acl.h.
21043 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21044 Close the file descriptors only after being done with copy_acl.
21045 * modules/copy-file (Depends-on): Add acl.
21047 2006-12-22 Bruno Haible <bruno@clisp.org>
21049 * gnulib-tool (SED): New variable.
21050 Use $SED instead of sed everywhere.
21052 2006-12-22 Bruno Haible <bruno@clisp.org>
21054 * modules/no-c++: New file.
21055 * m4/no-c++.m4: New file.
21056 * MODULES.html.sh (Support for building libraries and executables):
21059 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
21061 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21062 Include <limits.h>, and use its INT_MAX to rewrite the
21063 j loop so that it does not overflow 'int'. Problem reported by
21065 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21066 Play it safe by shifting left by 1 rather than multiplying by 2,
21067 as GCC is less likely to optimize this away when the value
21068 is signed (when it assumes overflow leads to undefined behavior).
21069 Also, don't assume time_t uses two's complement.
21071 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
21073 * MODULES.html.sh: New module wctype.
21074 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21075 * lib/fnmatch.c: Don't bother to include <wchar.h> before
21076 <wctype.h>, since the new wctype module should fix this.
21077 * lib/quotearg.c: Include <wctype.h> unconditionally, since
21078 the wctype module should arrange for it.
21079 * lib/regex_internal.h: Likewise.
21080 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21081 since the wctype module should handle this now.
21082 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21083 * modules/fnmatch (Depends-on): Add wctype.
21084 * modules/quotearg (Depends-on): Likewise.
21085 * modules/regex (Depends-on): Likewise.
21087 2006-12-19 Bruno Haible <bruno@clisp.org>
21089 * lib/strdup.h [C++]: Wrap definitions in extern "C".
21090 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21092 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21094 * modules/savewd (Depends-on): Fix dependency on fcntl.
21096 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
21098 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21099 conforms to C99, rather than relying on the user's environment
21100 setting of STDINT_H.
21102 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
21103 and Eric Blake <ebb9@byu.net>
21105 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21106 This is more consistent with the other defines here.
21107 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21108 Port to z/OS. Problem reported by Paul Gilmartin.
21109 Change local vars to use gl_ prefix rather than ac_.
21110 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21111 with other defines.
21112 * modules/double-slash-root: New module.
21113 * modules/dirname (Files): Remove m4/double-slash-root.m4.
21114 (Depends-on): Add double-slash-root.
21115 * MODULES.html.sh (File system functions): Mention new module.
21117 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
21119 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21120 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21121 This is for the benefit of gzip, which doesn't do i18n.
21123 2006-12-12 Jim Meyering <jim@meyering.net>
21125 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21126 Reported by Andreas Schwab <schwab@suse.de>.
21128 2006-12-12 Bruno Haible <bruno@clisp.org>
21130 Merge these changes.
21131 2006-09-05 Bruno Haible <bruno@clisp.org>
21132 * lib/iconvme.c (iconv_string): No need to save and restore errno when
21133 iconv_alloc succeeded.
21134 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21135 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21136 test for " && dest " at the end - dest is always != NULL there. Call
21137 iconv with 4xNULL arguments initially, to reset the state. Call iconv
21138 with 2xNULL arguments, also to flush the state storage. Handle the
21139 IRIX iconv behaviour. Realloc the final result, to throw away unused
21142 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
21144 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21145 and fchmodat unconditionally, since glibc 2.4 has them.
21146 Problem reported by Arkadiusz Miskiewicz.
21148 2006-12-10 Bruno Haible <bruno@clisp.org>
21150 * gnulib-tool (func_import): Show the include files only for those
21151 modules that are copied and specified.
21152 Reported by Karl Berry.
21154 2006-12-08 Jim Meyering <jim@meyering.net>
21156 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21157 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
21159 * build-aux/announce-gen: Add two new options, both optional:
21160 --bootstrap-tools=TOOL_LIST
21161 a comma-separated list of tools, e.g.,
21162 autoconf,automake,bison,gnulib
21163 --gnulib-snapshot-date=DATE
21164 if gnulib is in the bootstrap tool list,
21165 then report this as the snapshot date.
21166 If not specified, use the current date/time.
21167 If you specify a date here, be sure it's UTC.
21169 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21171 * tests/test-argp-2.sh: Fix test to match actual output.
21172 (func_compare): Fix sed script to be portable.
21174 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
21176 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21177 workaround for this case. It is not autoconfigured now; offhand
21178 it's hard to see how to autoconfigure it.
21180 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
21182 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21183 a directory that is about to be chowned. Such a directory's
21184 initial file permissions should permit the owner only and this
21185 should not be changed until after the chown, since the group and
21186 other bits would be incorrect if they granted permission before
21189 Fix porting problem for iswctype reported by Georg Schwarz in:
21190 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21191 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21192 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21193 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21194 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21196 2006-12-03 Jim Meyering <jim@meyering.net>
21198 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21199 p->fts_statp may not yet be defined.
21200 (fts_read): Instead, set it in the caller, once p->fts_statp is
21201 sure to be defined, and corresponds to a top-level directory.
21202 This bug made du -x fail. Here's the coreutils test case:
21203 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21204 Reported by Mike Frysinger.
21206 2006-12-01 Jim Meyering <jim@meyering.net>
21208 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21209 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21210 Reported by Simon Josefsson.
21212 2006-11-30 Jim Meyering <jim@meyering.net>
21214 * m4/warning.m4: Use the all-permissive copyright notice
21215 recommended by RMS (rather than LGPL).
21216 * m4/vararrays.m4: Likewise.
21217 * m4/flexmember.m4: Likewise.
21219 2006-11-29 Bruno Haible <bruno@clisp.org>
21221 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21222 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21224 Reported by Simon Josefsson <simon@josefsson.org>.
21226 2006-11-28 James Youngman <jay@gnu.org>
21228 * README: Advise users that they might find the bug-gnulib@gnu.org
21229 and autotools-announce@gnu.org mailing lists useful.
21231 2006-11-28 Bruno Haible <bruno@clisp.org>
21233 * m4/ptrdiff_max.m4: Remove file.
21235 2006-11-21 Bruno Haible <bruno@clisp.org>
21237 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21239 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21240 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21242 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21243 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21245 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21247 2006-11-28 Jim Meyering <jim@meyering.net>
21249 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21250 warning from "gcc -Wshadow" about shadowing the builtin.
21252 2006-11-27 Bruno Haible <bruno@clisp.org>
21254 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21256 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21258 2006-11-27 Bruno Haible <bruno@clisp.org>
21259 Paul Eggert <eggert@cs.ucla.edu>
21261 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21263 2006-11-26 Bruno Haible <bruno@clisp.org>
21265 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21266 noinst_LTLIBRARIES.
21268 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
21269 Bruno Haible <bruno@clisp.org>
21271 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21272 if compiling with "gcc -ansi".
21274 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
21276 Fix some incompatibilities with gcc -ansi -pedantic.
21277 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21278 if compiling pedantically with GCC, unless it's C99 or later.
21279 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21280 it mishandles gcc -ansi -pedantic as well.
21281 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21283 * lib/regexec.c (check_node_accept_bytes): Don't use auto
21284 initializers for struct if -pedantic, unless it's C99 or later.
21286 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
21288 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21289 Don't close an fd more than once. Identical atimes indicate
21290 success, not failure.
21292 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
21294 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21296 2006-11-23 Jim Meyering <jim@meyering.net>
21298 * build-aux/announce-gen: New file. From coreutils.
21300 2006-11-22 Jim Meyering <jim@meyering.net>
21302 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21303 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21304 (fts_read): Use a temporary to narrow the overused st_size member
21305 before using it in a switch statement. Reported by Matthew Woehlke.
21307 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21308 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21310 2006-11-20 Bruno Haible <bruno@clisp.org>
21312 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21313 changequote instead of pairs of brackets.
21314 Reported by Andreas Schwab <schwab@suse.de>.
21316 2006-11-21 Jim Meyering <jim@meyering.net>
21318 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21319 so as to remain compatible with older compilers.
21320 Patch from Michael Deutschmann.
21322 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
21324 * MODULES.html.sh (File system functions): Add openat.
21326 * lib/openat.h (rpl_fstatat): New macro, if
21327 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21328 (fstatat): Define to rpl_fstatat under the same conditions,
21329 unless COMPILING_FSTATAT.
21330 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21331 seems to have the bug.
21332 * lib/fstatat.c: New file.
21333 * modules/openat (Files): Add it.
21335 2006-11-20 Bruno Haible <bruno@clisp.org>
21337 * Makefile: New file.
21339 2006-11-20 Jim Meyering <jim@meyering.net>
21341 The beginnings of syntax-related checks for gnulib.
21342 * lib/Makefile: New file.
21343 * lib/t-idcache: New script. Ensure that the two halves of
21344 idcache.c stay in sync.
21346 * lib/idcache.c: Adjust comments in user- and group- portions to
21347 be more accurate, and to be consistent with one another.
21349 2006-11-20 Jim Meyering <jim@meyering.net>
21351 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21352 continue using the flexible array member (thus, this module performs
21353 half as many malloc calls), with the addition that...
21354 (getgroup, getuser): Consistently record a non-match via an empty
21355 "name" string, and map an empty string match to a NULL return value.
21356 * modules/idcache (Depends-on): Re-add flexmember.
21358 * lib/idcache.c (getuser): Remove all uses of the register keyword.
21359 (getuidbyname, getgroup, getgidbyname): Likewise.
21361 Use cleaner syntax: NULL rather than 0.
21362 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21364 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
21366 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21367 It mishandled the case where the group was missing.
21368 Problem reported by Greg Schafer.
21369 * modules/idcache: Likewise.
21371 2006-11-18 Jim Meyering <jim@meyering.net>
21373 * check-module (%exempt_header): Add exception for some
21374 conditionally-included headers.
21376 * modules/i-ring (Depends-on): Add verify.
21377 (License): Change to LGPL.
21379 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
21381 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21382 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21383 and inttostr.h. Use snprintf rather than uinttostr, so that
21384 LGPLed code doesn't depend on GPLed.
21386 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
21388 * modules/inline (License): Change from GPL to LGPL.
21390 2006-11-17 Jim Meyering <jim@meyering.net>
21392 * modules/d-type (License): Switch to LGPL.
21394 2006-11-15 Bruno Haible <bruno@clisp.org>
21396 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21398 2006-11-15 Eric Blake <ebb9@byu.net>
21400 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21401 the module dependency.
21403 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21404 Bruno Haible <bruno@clisp.org>
21406 * gnulib-tool (func_create_testdir): Add license consistency check.
21408 2006-11-15 Eric Blake <ebb9@byu.net>
21410 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21411 random "(cached)" in configure output.
21413 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21415 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21416 test for conforming inttypes.h is both announced and cached.
21418 * MODULES.html.sh (seen_modules, seen_files): New variables.
21419 (func_module): Rewrite to use a few less gnulib-tool and sed
21420 invocations. Avoid a couple of quadratic algorithms for ...
21421 (missed_modules, missed_files): ... these, with ...
21422 (func_append, func_tmpdir): ... these new functions, from
21423 gnulib-tool. Analogously, install traps for cleanup.
21425 * tests/test-gc.c (main): Remove unused variables.
21426 * tests/test-read-file.c: Include stdlib.h, for 'free'.
21428 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
21430 * modules/inttostr (License): Change to LGPL.
21432 2006-11-14 Eric Blake <ebb9@byu.net>
21434 * modules/tempname (License): Change to LGPL.
21436 2006-11-14 Eric Blake <ebb9@byu.net>
21438 * doc/functions.texi (Function Portability): *printf functions on
21439 Cygwin now understand all POSIX size specifiers.
21441 2006-11-14 Bruno Haible <bruno@clisp.org>
21443 * modules/c-ctype (License): Change to LGPL.
21445 2006-11-12 Bruno Haible <bruno@clisp.org>
21447 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21448 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21449 for GNOME libraries, for which the include files are installed in
21450 subdirectories of $prefix/include.
21452 2006-11-12 Bruno Haible <bruno@clisp.org>
21454 * m4/lib-link.m4: Require at least autoconf-2.54.
21455 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21456 name to underscores for the --with option.
21458 2006-11-13 Bruno Haible <bruno@clisp.org>
21460 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21461 the tests directory.
21462 Reported by Ralf Wildenhues.
21464 2006-11-13 Bruno Haible <bruno@clisp.org>
21466 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21467 (func_emit_initmacro_end): Undo the override here.
21468 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21469 Works around the famous automake error in coreutils.
21471 2006-11-13 Eric Blake <ebb9@byu.net>
21473 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21474 element, not its node.
21476 2006-11-12 Bruno Haible <bruno@clisp.org>
21478 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21479 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21481 2006-11-12 Bruno Haible <bruno@clisp.org>
21483 * gnulib-tool: New option --local-symlink.
21484 (func_usage): Document it.
21485 (lsymbolic): New variable.
21486 (func_import, func_create_testdir): If --symlink was not specified,
21487 test whether --local-symlink was specified and the file comes from
21488 the local_gnulib_dir.
21490 2006-11-12 Bruno Haible <bruno@clisp.org>
21492 * gnulib-tool (func_ln): New function.
21493 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21495 2006-11-12 Bruno Haible <bruno@clisp.org>
21497 Finish support for source files in subdirectories.
21498 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21499 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21501 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21503 2006-11-12 Bruno Haible <bruno@clisp.org>
21505 * gnulib-tool (func_get_automake_snippet): Synthesize also an
21506 EXTRA_lib_SOURCES augmentation.
21507 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21509 2006-11-12 Jim Meyering <jim@meyering.net>
21511 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21512 file descriptors. This also averts a failure on systems with
21513 native openat support when a traversed directory lacks "x" access.
21514 * lib/fts_.h: Include "i-ring.h"
21515 (struct FTS) [fts_fd_ring]: New member.
21516 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21517 (FCHDIR): Add parentheses.
21518 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21519 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
21520 When descending, rather than simply closing the previous
21521 fts_cwd_fd value, push that file descriptor onto the ring.
21522 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21523 (fts_open): Initialize the new fd_ring member.
21524 (fts_close): Clear the ring.
21525 (fts_safe_changedir): When possible, use our new fd_ring to skip
21526 the diropen and fstat and dev/ino comparison that would normally
21527 accompany a virtual `chdir ("..")'.
21529 * modules/fts (Depends-on): Add i-ring.
21530 * modules/i-ring: New module.
21531 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21532 * m4/i-ring.m4: New file.
21534 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21536 * gnulib-tool (func_create_testdir): Fix replacement of
21537 `build-aux' in configure.ac. Run autotools in gltests
21539 (func_create_testdir, func_create_megatestdir, test): There is
21540 no need for '--force' in most autotool invocations in a new
21541 tree. Actually fail the whole test if any of the tools, or the
21542 configure or make stages fail.
21544 Sync from Automake.
21545 * build-aux/gnupload: Revert last change. Add pointer to upload
21546 instructions of the GNU Maintenance Instructions.
21547 Suggestion by Karl Berry.
21549 2006-11-10 Jim Meyering <jim@meyering.net>
21551 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21553 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21555 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21556 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21557 (bind_textdomain_codeset) [! ENABLE_NLS]:
21558 Evaluate all the arguments. That way, callers get compatible behavior
21559 if the arguments have side effects. Also, it avoids some GCC
21560 diagnostics in some cases; Joel E. Denny reported problems when Bison
21561 was configured with --enable-gcc-warnigs.
21563 2006-11-10 Jim Meyering <jim@meyering.net>
21565 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21566 relevant options in CFLAGS (like -O, -fno-inline) are taken into
21569 2006-11-10 Jim Meyering <jim@meyering.net>
21571 * modules/inline: New file/module.
21572 * modules/xalloc (Files): Remove m4/inline.m4.
21573 (Depends-on): Add inline, instead.
21574 * modules/oset: Likewise.
21575 * modules/list: Likewise.
21577 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21579 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21580 Problem reported by Matthew Woehlke.
21582 2006-11-09 Bruno Haible <bruno@clisp.org>
21584 * lib/tempname.c (gen_tempname): Remove variant that invokes
21586 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21589 2006-11-08 Bruno Haible <bruno@clisp.org>
21591 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21592 to 'yes' instead of 'cross-compiling'.
21594 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
21596 * lib/quotearg.h (quotearg_free): New decl.
21597 * lib/quotearg.c (quotearg_free): New function.
21598 (slot0, nslots, slotvec0, slotvec):
21599 Now file-scope so that quotearg_free can get at them.
21601 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21603 Sync from Automake.
21604 * build-aux/gnupload: Add missing 'gnu' to example URL.
21605 Report by Karl Berry.
21607 2006-11-08 Bruno Haible <bruno@clisp.org>
21609 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21610 Suggested by Paul Eggert.
21612 2006-11-08 Jim Meyering <jim@meyering.net>
21614 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21615 It's already included if !_LIBC.
21616 (fts_safe_changedir): Add a comment.
21618 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21620 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21621 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21624 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21625 definitions up, to avoid colliding with change below.
21626 (static_inline) [HAVE_INLINE]: New macro.
21627 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21628 Provide extern decls when !HAVE_INLINE. Do not define unless
21629 static_inline is defined, either by us or by xmalloc.c. Use
21630 static_inline rather than static inline.
21631 (XCALLOC): Optimize sizeof(T) = 1 case.
21632 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21634 2006-11-07 Bruno Haible <bruno@clisp.org>
21636 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21637 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21639 * modules/xalloc (Files): Add m4/inline.m4.
21641 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21643 * README: Fix typo.
21644 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21645 (Miscellanous Notes): ...from this.
21647 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21649 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21650 Mention that offsetof should be used instead of sizeof.
21653 2006-11-07 Bruno Haible <bruno@clisp.org>
21655 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21657 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21659 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21660 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21661 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21662 (gl_tree_add_before, gl_tree_add_after):
21663 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21664 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21665 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21666 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21667 (gl_linked_add_after, gl_linked_add_at): Likewise.
21668 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21669 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21670 (gl_tree_add_before, gl_tree_add_after): Likewise.
21671 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21672 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21673 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21675 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21677 * lib/gl_oset.h: Use C comment style, not C++ comment style.
21679 2006-11-06 Bruno Haible <bruno@clisp.org>
21681 * m4/inline.m4: New file.
21682 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21683 * modules/list (Files): Add m4/inline.m4.
21684 * modules/oset (Files): Likewise.
21686 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21688 * lib/idcache.c: Include <stddef.h>, for offsetof.
21689 (struct userid.name): Change from char * to a flexible array member.
21691 * modules/idcache (Depends-on): Add flexmember.
21693 * MODULES.html.sh (Core language properties): New module flexmember.
21694 * modules/flexmember, m4/flexmember.m4: New files.
21696 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21697 inline functions that are identical with the old xnmalloc_inline,
21698 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
21699 that we can avoid some unnecessary integer multiplications and
21700 divisions in the common case where the element size is known at
21702 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21704 (xnboundedmalloc): Remove.
21705 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21706 arguments, for consistency with rest of this header.
21707 (xcharalloc): Rewrite using XNMALLOC.
21708 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21709 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
21710 versions have been moved to lib/xalloc.h and renamed to be the
21711 non-*_inline versions.
21712 (xmalloc, xrealloc): Implement without reference to the xnmalloc
21713 and xnrealloc functions, since those functions are now inline and
21715 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21716 renaming described above.
21717 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21718 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
21719 captures the dependency in AC_C_INLINE.
21721 New module canonicalize-lgpl, proposed by Charles Wilson in
21722 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21723 with a few small changes afterwards.
21724 * MODULES.html.sh (File system functions): New module
21726 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21727 and canonicalize_file_name.
21728 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21729 * modules/canonicalize-lgpl: New files.
21731 2006-11-05 Bruno Haible <bruno@clisp.org>
21733 * gnulib-tool (func_import, func_create_testdir): Create directories
21734 also for files in subdirectories of lib/.
21736 2006-11-05 Bruno Haible <bruno@clisp.org>
21738 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21741 2006-11-03 Bruno Haible <bruno@clisp.org>
21743 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21744 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21745 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21746 (xnboundedmalloc): New inline function.
21747 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21748 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21750 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21752 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21753 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21754 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21756 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21757 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21759 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21760 gl_tree_add_after): Use XMALLOC instead of xmalloc.
21761 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21763 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21764 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21765 gl_tree_add_after): Use XMALLOC instead of xmalloc.
21766 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21767 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21768 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21769 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21771 2006-11-03 Bruno Haible <bruno@clisp.org>
21773 * lib/c-ctype.h [C++]: Define functions without name mangling.
21774 * lib/fwriteerror.h [C++]: Likewise.
21775 * lib/gcd.h [C++]: Likewise.
21776 * lib/linebreak.h [C++]: Likewise.
21778 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
21780 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21781 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21782 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21783 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21784 Check for functions and headers just once.
21785 Check for declaration of canonicalize_file_name.
21786 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21788 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
21790 * gnulib-tool (func_import): Fix typo in actioncmd.
21792 2006-11-02 Bruno Haible <bruno@clisp.org>
21794 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21795 newline sequence in the Makefile.am snippet as a space, like "make"
21797 Reported by Roger Persson <perrog@gmail.com>.
21799 2006-11-01 Bruno Haible <bruno@clisp.org>
21801 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21802 already declared in <string.h>.
21803 * lib/strcase.h (strncasecmp): Don't declare it if yes.
21805 2006-11-01 Bruno Haible <bruno@clisp.org>
21807 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21808 * lib/strcase.h: Include <string.h>.
21809 (strcasecmp): Define to rpl_strcasecmp here.
21811 2006-11-01 Bruno Haible <bruno@clisp.org>
21813 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21815 2006-11-01 Eric Blake <ebb9@byu.net>
21817 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21819 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21821 2006-10-29 Bruno Haible <bruno@clisp.org>
21823 Make it compile in C++ mode.
21824 * lib/full-write.c (full_rw): Add a cast.
21826 2006-11-01 Bruno Haible <bruno@clisp.org>
21828 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21829 be POSIX compliant.
21830 Reported by Roger Persson <perrog@gmail.com>.
21832 2006-11-01 Eric Blake <ebb9@byu.net>
21834 * lib/getopt_.h: Fix comments.
21836 2006-10-31 Eric Blake <ebb9@byu.net>
21838 * modules/tmpdir (Depends-on): Add sys_stat.
21839 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21840 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21841 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21842 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21845 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
21847 Avoid some C++ diagnostics reported by Bruno Haible.
21848 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21850 (quotearg_alloc): Use xcharalloc rather than xmalloc.
21851 (struct slotvec): Move to top level.
21852 (quotearg_n_options): Rewrite to avoid xmalloc.
21853 * lib/xalloc.h (xcharalloc): New function.
21854 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21855 [defined __cplusplus]: Add function template that provides result
21856 type propagation. This part of the change is from Bruno Haible.
21858 2006-10-29 Bruno Haible <bruno@clisp.org>
21860 Make it compile in C++ mode.
21861 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21862 * lib/strnlen1.c (strnlen1): Cast memchr result.
21863 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21864 * lib/clean-temp.c (string_equals, string_hash): Add casts.
21865 (create_temp_dir): Rename local variable 'template'.
21866 (compile_csharp_using_sscli): Add cast.
21867 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21868 * lib/findprog.c (find_in_path): Likewise.
21869 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21870 * lib/wait-process.c (register_slave_subprocess): Likewise.
21872 2006-10-22 Bruno Haible <bruno@clisp.org>
21874 * modules/tsearch: New file.
21875 * lib/tsearch.h: New file.
21876 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21877 * m4/tsearch.m4: New file.
21878 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21880 2006-10-29 Eric Blake <ebb9@byu.net>
21882 * lib/arcfour.c: Assume config.h.
21883 * lib/arctwo.c: Likewise.
21884 * lib/base64.c: Likewise.
21885 * lib/check-version.c: Likewise.
21886 * lib/crc.c: Likewise.
21887 * lib/des.c: Likewise.
21888 * lib/gc-gnulib.c: Likewise.
21889 * lib/gc-libgcrypt.c: Likewise.
21890 * lib/gc-pbkdf2-sha1.c: Likewise.
21891 * lib/getaddrinfo.c: Likewise.
21892 * lib/getdelim.c: Likewise.
21893 * lib/getline.c: Likewise.
21894 * lib/hmac-md5.c: Likewise.
21895 * lib/hmac-sha1.c: Likewise.
21896 * lib/iconvme.c: Likewise.
21897 * lib/md2.c: Likewise.
21898 * lib/md4.c: Likewise.
21899 * lib/memxor.c: Likewise.
21900 * lib/read-file.c: Likewise.
21901 * lib/readline.c: Likewise.
21902 * lib/rijndael-alg-fst.c: Likewise.
21903 * lib/rijndael-api-fst.c: Likewise.
21904 * lib/xgetdomainname.c: Likewise.
21906 2006-10-28 Eric Blake <ebb9@byu.net>
21908 * lib/xstrndup.c: Assume config.h.
21910 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
21912 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21913 stat-macros.h is now for our own macros, whereas stat_h is for
21914 macros in the <sys/stat.h> name space.
21915 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21916 (STAT_MACROS_H): Remove.
21917 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21918 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21919 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21920 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21921 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21922 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21923 Move these macros to ...
21924 * lib/stat_.h: here. Don't include stat-macros.h.
21925 * lib/canonicalize.c: Don't include stat-macros.h.
21926 * lib/chown.c: Likewise.
21927 * lib/euidaccess.c: Likewise.
21928 * lib/file-type.c: Likewise.
21929 * lib/filemode.c: Likewise.
21930 * lib/glob.c: Likewise.
21931 * lib/isapipe.c: Likewise.
21932 * lib/lchown.c: Likewise.
21933 * lib/lstat.c: Likewise.
21934 * lib/mkdir-p.c: Likewise.
21935 * lib/rmdir.c: Likewise.
21936 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21937 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21938 unless mkdir isn't declared, to speed up 'configure'.
21939 Always create sys/stat.h, since it's unlikely any real sys/stat.h
21940 would define all the S_* symbols.
21941 * modules/canonicalize (Depends-on):
21942 Depend on sys_stat, not stat-macros.
21943 * modules/chown: Likewise.
21944 * modules/euidaccess: Likewise.
21945 * modules/filemode: Likewise.
21946 * modules/file-type: Likewise.
21947 * modules/glob: Likewise.
21948 * modules/isapipe: Likewise.
21949 * modules/lchown: Likewise.
21950 * modules/lstat: Likewise.
21951 * modules/mkancesdirs: Likewise.
21952 * modules/rmdir: Likewise.
21953 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21954 * modules/modechange: Likewise.
21955 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21956 (configure.ac): Remove gl_STAT_MACROS.
21957 * modules/sys_stat (Depends-on): Remove stat-macros.
21959 2006-10-27 Bruno Haible <bruno@clisp.org>
21961 * m4/signed.m4: Remove file.
21962 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21964 * modules/vasnprintf (Files): Remove m4/signed.m4.
21966 2006-10-27 Bruno Haible <bruno@clisp.org>
21968 Update to GNU gettext 0.16.
21969 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21970 m4/inttypes-h.m4, m4/signed.m4.
21971 * m4/gettext.m4: Update to GNU gettext 0.16.
21972 * m4/intl.m4: New file, from GNU gettext.
21973 * m4/intldir.m4: New file, from GNU gettext.
21974 * config/srclist.txt: Update
21976 2006-10-27 Eric Blake <ebb9@byu.net>
21978 * MODULES.html.sh: Document tempname.
21979 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21981 (Files): Move lib/tempname.c...
21982 * modules/tempname: ...to this new module.
21983 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21984 (gl_PREREQ_TEMPNAME): Move...
21985 * m4/tempname.m4: ...to this new file.
21986 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21987 * modules/sys_stat (Depends-on): Add stat-macros.
21988 * lib/stat_.h (includes): Pick up stat macros.
21989 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21990 if stat macros are broken.
21991 * lib/tempname.c (includes): No need to include "stat-macros.h".
21992 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21993 (direxists, __path_search) [!_LIBC]: Don't compile these in
21994 gnulib; the tmpdir module covers that.
21995 * lib/tempname.h: New file.
21997 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
21999 * COPYING: Explain how gnulib-tool converts licence headers.
22000 Almost all wording by Eric Blake.
22002 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
22004 * lib/mbchar.h (is_basic_table): Make read-only.
22005 * lib/mbchar.c (is_basic_table): Likewise.
22006 Reported by John Darrington.
22008 2006-10-25 Bruno Haible <bruno@clisp.org>
22010 * lib/progname.h (set_program_name): Undefine before defining.
22012 2006-10-25 Bruno Haible <bruno@clisp.org>
22014 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22015 false for non-gcc C++ compilers.
22016 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22018 2006-10-24 Bruno Haible <bruno@clisp.org>
22020 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22021 iconv implementations like Irix iconv.
22023 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22025 * modules/vararrays: New file.
22026 * m4/vararrays.m4: New file, taken from diffutils.
22027 * MODULES.html.sh: New module vararrays.
22029 2006-10-24 Karl Berry <karl@gnu.org>
22031 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22032 Don't call GNU Unix.
22034 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22036 * users.txt: Add Libtool.
22040 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22042 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22043 to gnulib's policy of including config.h unconditionally.
22045 2006-10-24 Bruno Haible <bruno@clisp.org>
22047 * modules/wcwidth (Files): Add m4/wint_t.m4.
22048 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22049 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22051 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22053 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22054 to pacify GCC with some -W flags enabled. Problem reported by
22057 2006-10-24 Jim Meyering <jim@meyering.net>
22059 * MODULES.html.sh: Remove uinttostr. It's not a module.
22060 Reported by Karl Berry.
22062 2006-10-23 Bruno Haible <bruno@clisp.org>
22064 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22066 2006-10-24 Bruno Haible <bruno@clisp.org>
22068 * lib/gl_list.h: Use C comment style, not C++ comment style.
22070 2006-10-23 Eric Blake <ebb9@byu.net>
22072 * lib/getaddrinfo.c (includes): Add missing include.
22074 2006-10-23 Bruno Haible <bruno@clisp.org>
22075 Paul Eggert <eggert@cs.ucla.edu>
22077 Ability to rename obstack_free.
22078 * lib/obstack.h (__obstack_free): New macro. Declare instead of
22080 (obstack_free): Invoke the __obstack_free macro.
22081 * lib/obstack.c (obstack_free): Use __obstack_free macro.
22083 2006-10-23 Bruno Haible <bruno@clisp.org>
22084 Paul Eggert <eggert@cs.ucla.edu>
22086 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22087 __argc, __argv from the declaration. (They are defined as macros on
22090 2006-10-22 Bruno Haible <bruno@clisp.org>
22092 * doc/gnulib-intro.texi: New file.
22093 * doc/gnulib.texi: Include it.
22095 2006-10-21 Bruno Haible <bruno@clisp.org>
22097 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22098 "Introduction", "Miscellanous Notes", "Particular Modules".
22100 2006-10-21 Bruno Haible <bruno@clisp.org>
22102 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22103 Change mostlyclean-local rule to avoid sh syntax error from bash
22104 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22106 2006-10-23 Jim Meyering <jim@meyering.net>
22108 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22109 in place of snprintf.
22111 * modules/inttostr (Files): Add lib/uinttostr.c.
22112 * lib/uinttostr.c (inttostr): New file/function.
22113 * lib/inttostr.h (uinttostr): Declare.
22114 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22115 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22117 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
22119 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
22121 * lib/canonicalize.c (ELOOP): Define if not already defined.
22122 Problem reported by Bruno Haible in
22123 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22125 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
22127 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22128 Problem reported by Perry Smith and Ville Laurikari.
22130 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22133 2006-10-19 Bruno Haible <bruno@clisp.org>
22135 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22138 2006-10-19 Bruno Haible <bruno@clisp.org>
22140 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22143 2006-10-19 Bruno Haible <bruno@clisp.org>
22145 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22147 2006-10-19 Bruno Haible <bruno@clisp.org>
22149 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22152 2006-10-19 Bruno Haible <bruno@clisp.org>
22154 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22157 2006-10-19 Bruno Haible <bruno@clisp.org>
22159 * gnulib-tool (func_create_testdir): Don't include ftruncate and
22160 mountlist by default.
22162 2006-10-16 Bruno Haible <bruno@clisp.org>
22164 * lib/c-strstr.c: Include c-strstr.h.
22166 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
22168 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22171 2006-10-18 Bruno Haible <bruno@clisp.org>
22173 * lib/lock.h [C++]: Wrap definitions in extern "C".
22175 2006-10-18 Bruno Haible <bruno@clisp.org>
22177 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22180 2006-10-18 Bruno Haible <bruno@clisp.org>
22182 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22184 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
22186 * lib/xstrtol.h: Include gettext.h.
22187 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22188 Problem reported by Eric Blake.
22189 * modules/xstrtol (Depends-on): Add gettext-h.
22191 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
22193 * lib/strftime.c (advance): New macro.
22194 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
22195 incomplete type, so you can't add 0 to it. Problem and patch
22196 reported by Eelco Dolstra for dietlibc.
22198 2006-10-18 Jim Meyering <jim@meyering.net>
22200 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22201 type for a local, and rename it: s/up/user_proc/.
22203 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
22205 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22206 READ_UTMP_USER_PROCESS.
22207 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22209 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
22211 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22212 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22214 2006-10-17 Eric Blake <ebb9@byu.net>
22216 * lib/sigprocmask.c (sigprocmask): Fix typo.
22218 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22220 * modules/clean-temp (Makefile.am): Don't add to make output...
22221 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22224 2006-10-17 Bruno Haible <bruno@clisp.org>
22226 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22227 differently if DEFAULT_TEXT_DOMAIN is set.
22229 2006-10-16 Bruno Haible <bruno@clisp.org>
22231 * lib/clean-temp.c: Include fwriteerror.h.
22233 2006-10-16 Bruno Haible <bruno@clisp.org>
22235 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22237 2006-10-16 Bruno Haible <bruno@clisp.org>
22239 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22240 * lib/sigprocmask.h: Include <sys/types.h>.
22241 (sigset_t): Use the system's definition if present.
22243 2006-10-17 Eric Blake <ebb9@byu.net>
22245 * lib/xvasprintf.c (includes): Assume config.h.
22246 * lib/xasprintf.c (includes): Likewise.
22248 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
22250 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22251 at least as wide as intmax_t.
22253 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
22255 (Imported from Automake.)
22256 * build-aux/gnupload: Update to version 1.1 of directive file.
22258 2006-10-16 Eric Blake <ebb9@byu.net>
22260 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22261 match Automake 1.10a.
22263 2006-10-14 Bruno Haible <bruno@clisp.org>
22265 * modules/sigprocmask: New file.
22266 * lib/sigprocmask.h: New file.
22267 * lib/sigprocmask.c: New file.
22268 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22269 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22270 request sigprocmask.o.
22271 (gl_PREREQ_SIGPROCMASK): New macro.
22272 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22273 (Depends-on): Add sigprocmask.
22274 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22275 gt_SIGNALBLOCKING. Test for 'raise' only once.
22276 * lib/fatal-signal.c: Include sigprocmask.h.
22277 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22278 unblock_fatal_signals): Define always.
22279 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22282 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
22284 Sync from Automake.
22285 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22286 which incorrectly sets the mode of an existing destination
22287 directory. In some cases the unpatched install-sh could do the
22288 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22289 system. We hope this is rare in practice, but it's clearly worth
22290 fixing. Problem reported by Alex Unleashed in
22291 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22292 Also, don't bother to check for -m bugs unless we're using -m;
22293 suggested by Stepan Kasal.
22295 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22297 Sync from Automake.
22298 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22299 `-c' flag, so they appear at the same position as in %FASTDEP%
22300 mode in depend2.am. Fixes build failure for FreeBSD's c89,
22301 which ignores unknown options only after the first non-option.
22302 Bug report against M4 by Nelson H. F. Beebe.
22304 2006-10-13 Jim Meyering <jim@meyering.net>
22306 Fix a bug in yesterday's change.
22307 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22308 p->fts_statp->st_dev would be used uninitialized.
22309 Ensures that we always call fts_stat on the very first entry.
22310 Miklos Szeredi reported that find -xdev stopped working.
22312 2006-10-12 Bruno Haible <bruno@clisp.org>
22314 * gnulib-tool (func_get_automake_snippet): Append an automatically
22315 computed EXTRA_DIST augmentation.
22316 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22317 * modules/alloca-opt (Makefile.am): Likewise.
22318 * modules/allocsa (Makefile.am): Likewise.
22319 * modules/arcfour (Makefile.am): Likewise.
22320 * modules/arctwo (Makefile.am): Likewise.
22321 * modules/argmatch (Makefile.am): Likewise.
22322 * modules/argz (Makefile.am): Likewise.
22323 * modules/atexit (Makefile.am): Likewise.
22324 * modules/backupfile (Makefile.am): Likewise.
22325 * modules/byteswap (Makefile.am): Likewise.
22326 * modules/c-strtod (Makefile.am): Likewise.
22327 * modules/c-strtold (Makefile.am): Likewise.
22328 * modules/calloc (Makefile.am): Likewise.
22329 * modules/canon-host (Makefile.am): Likewise.
22330 * modules/canonicalize (Makefile.am): Likewise.
22331 * modules/chdir-long (Makefile.am): Likewise.
22332 * modules/chdir-safer (Makefile.am): Likewise.
22333 * modules/check-version (Makefile.am): Likewise.
22334 * modules/chown (Makefile.am): Likewise.
22335 * modules/cloexec (Makefile.am): Likewise.
22336 * modules/close-stream (Makefile.am): Likewise.
22337 * modules/closeout (Makefile.am): Likewise.
22338 * modules/crc (Makefile.am): Likewise.
22339 * modules/csharpexec (Makefile.am): Likewise.
22340 * modules/cycle-check (Makefile.am): Likewise.
22341 * modules/des (Makefile.am): Likewise.
22342 * modules/dev-ino (Makefile.am): Likewise.
22343 * modules/dirfd (Makefile.am): Likewise.
22344 * modules/dirname (Makefile.am): Likewise.
22345 * modules/dup2 (Makefile.am): Likewise.
22346 * modules/eealloc (Makefile.am): Likewise.
22347 * modules/error (Makefile.am): Likewise.
22348 * modules/euidaccess (Makefile.am): Likewise.
22349 * modules/exclude (Makefile.am): Likewise.
22350 * modules/exitfail (Makefile.am): Likewise.
22351 * modules/fcntl-safer (Makefile.am): Likewise.
22352 * modules/fcntl (Makefile.am): Likewise.
22353 * modules/file-type (Makefile.am): Likewise.
22354 * modules/fileblocks (Makefile.am): Likewise.
22355 * modules/filemode (Makefile.am): Likewise.
22356 * modules/filenamecat (Makefile.am): Likewise.
22357 * modules/fnmatch (Makefile.am): Likewise.
22358 * modules/fopen-safer (Makefile.am): Likewise.
22359 * modules/fpending (Makefile.am): Likewise.
22360 * modules/fprintftime (Makefile.am): Likewise.
22361 * modules/free (Makefile.am): Likewise.
22362 * modules/fsusage (Makefile.am): Likewise.
22363 * modules/ftruncate (Makefile.am): Likewise.
22364 * modules/fts (Makefile.am): Likewise.
22365 * modules/gc-arcfour (Makefile.am): Likewise.
22366 * modules/gc-des (Makefile.am): Likewise.
22367 * modules/gc-hmac-md5 (Makefile.am): Likewise.
22368 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22369 * modules/gc-md4 (Makefile.am): Likewise.
22370 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22371 * modules/gc-sha1 (Makefile.am): Likewise.
22372 * modules/gc (Makefile.am): Likewise.
22373 * modules/getaddrinfo (Makefile.am): Likewise.
22374 * modules/getcwd (Makefile.am): Likewise.
22375 * modules/getdelim (Makefile.am): Likewise.
22376 * modules/getdomainname (Makefile.am): Likewise.
22377 * modules/getgroups (Makefile.am): Likewise.
22378 * modules/gethostname (Makefile.am): Likewise.
22379 * modules/gethrxtime (Makefile.am): Likewise.
22380 * modules/getline (Makefile.am): Likewise.
22381 * modules/getloadavg (Makefile.am): Likewise.
22382 * modules/getlogin_r (Makefile.am): Likewise.
22383 * modules/getndelim2 (Makefile.am): Likewise.
22384 * modules/getopt (Makefile.am): Likewise.
22385 * modules/getpagesize (Makefile.am): Likewise.
22386 * modules/getpass-gnu (Makefile.am): Likewise.
22387 * modules/getpass (Makefile.am): Likewise.
22388 * modules/getsubopt (Makefile.am): Likewise.
22389 * modules/gettime (Makefile.am): Likewise.
22390 * modules/gettimeofday (Makefile.am): Likewise.
22391 * modules/getugroups (Makefile.am): Likewise.
22392 * modules/getusershell (Makefile.am): Likewise.
22393 * modules/glob (Makefile.am): Likewise.
22394 * modules/group-member (Makefile.am): Likewise.
22395 * modules/hard-locale (Makefile.am): Likewise.
22396 * modules/hash (Makefile.am): Likewise.
22397 * modules/hmac-md5 (Makefile.am): Likewise.
22398 * modules/hmac-sha1 (Makefile.am): Likewise.
22399 * modules/human (Makefile.am): Likewise.
22400 * modules/idcache (Makefile.am): Likewise.
22401 * modules/imaxabs (Makefile.am): Likewise.
22402 * modules/imaxdiv (Makefile.am): Likewise.
22403 * modules/inet_ntop (Makefile.am): Likewise.
22404 * modules/inet_pton (Makefile.am): Likewise.
22405 * modules/intprops (Makefile.am): Likewise.
22406 * modules/inttostr (Makefile.am): Likewise.
22407 * modules/inttypes (Makefile.am): Likewise.
22408 * modules/isapipe (Makefile.am): Likewise.
22409 * modules/javaversion (Makefile.am): Likewise.
22410 * modules/lchmod (Makefile.am): Likewise.
22411 * modules/lchown (Makefile.am): Likewise.
22412 * modules/localcharset (Makefile.am): Likewise.
22413 * modules/long-options (Makefile.am): Likewise.
22414 * modules/lstat (Makefile.am): Likewise.
22415 * modules/malloc (Makefile.am): Likewise.
22416 * modules/mathl (Makefile.am): Likewise.
22417 * modules/mbchar (Makefile.am): Likewise.
22418 * modules/md2 (Makefile.am): Likewise.
22419 * modules/md4 (Makefile.am): Likewise.
22420 * modules/md5 (Makefile.am): Likewise.
22421 * modules/memcasecmp (Makefile.am): Likewise.
22422 * modules/memchr (Makefile.am): Likewise.
22423 * modules/memcmp (Makefile.am): Likewise.
22424 * modules/memcoll (Makefile.am): Likewise.
22425 * modules/memcpy (Makefile.am): Likewise.
22426 * modules/memmem (Makefile.am): Likewise.
22427 * modules/memmove (Makefile.am): Likewise.
22428 * modules/mempcpy (Makefile.am): Likewise.
22429 * modules/memrchr (Makefile.am): Likewise.
22430 * modules/memset (Makefile.am): Likewise.
22431 * modules/memxor (Makefile.am): Likewise.
22432 * modules/mkancesdirs (Makefile.am): Likewise.
22433 * modules/mkdir-p (Makefile.am): Likewise.
22434 * modules/mkdir (Makefile.am): Likewise.
22435 * modules/mkdtemp (Makefile.am): Likewise.
22436 * modules/mkstemp (Makefile.am): Likewise.
22437 * modules/mktime (Makefile.am): Likewise.
22438 * modules/modechange (Makefile.am): Likewise.
22439 * modules/mountlist (Makefile.am): Likewise.
22440 * modules/nanosleep (Makefile.am): Likewise.
22441 * modules/obstack (Makefile.am): Likewise.
22442 * modules/openat (Makefile.am): Likewise.
22443 * modules/pagealign_alloc (Makefile.am): Likewise.
22444 * modules/pathmax (Makefile.am): Likewise.
22445 * modules/physmem (Makefile.am): Likewise.
22446 * modules/poll (Makefile.am): Likewise.
22447 * modules/posixtm (Makefile.am): Likewise.
22448 * modules/posixver (Makefile.am): Likewise.
22449 * modules/putenv (Makefile.am): Likewise.
22450 * modules/quote (Makefile.am): Likewise.
22451 * modules/quotearg (Makefile.am): Likewise.
22452 * modules/raise (Makefile.am): Likewise.
22453 * modules/read-file (Makefile.am): Likewise.
22454 * modules/readline (Makefile.am): Likewise.
22455 * modules/readlink (Makefile.am): Likewise.
22456 * modules/readtokens (Makefile.am): Likewise.
22457 * modules/readutmp (Makefile.am): Likewise.
22458 * modules/realloc (Makefile.am): Likewise.
22459 * modules/regex (Makefile.am): Likewise.
22460 * modules/rename-dest-slash (Makefile.am): Likewise.
22461 * modules/rename (Makefile.am): Likewise.
22462 * modules/rijndael (Makefile.am): Likewise.
22463 * modules/rmdir (Makefile.am): Likewise.
22464 * modules/rpmatch (Makefile.am): Likewise.
22465 * modules/safe-read (Makefile.am): Likewise.
22466 * modules/safe-write (Makefile.am): Likewise.
22467 * modules/same-inode (Makefile.am): Likewise.
22468 * modules/same (Makefile.am): Likewise.
22469 * modules/save-cwd (Makefile.am): Likewise.
22470 * modules/savedir (Makefile.am): Likewise.
22471 * modules/setenv (Makefile.am): Likewise.
22472 * modules/settime (Makefile.am): Likewise.
22473 * modules/sha1 (Makefile.am): Likewise.
22474 * modules/sig2str (Makefile.am): Likewise.
22475 * modules/snprintf (Makefile.am): Likewise.
22476 * modules/stat-macros (Makefile.am): Likewise.
22477 * modules/stat-time (Makefile.am): Likewise.
22478 * modules/stdbool (Makefile.am): Likewise.
22479 * modules/stdint (Makefile.am): Likewise.
22480 * modules/stdlib-safer (Makefile.am): Likewise.
22481 * modules/stpcpy (Makefile.am): Likewise.
22482 * modules/stpncpy (Makefile.am): Likewise.
22483 * modules/strcase (Makefile.am): Likewise.
22484 * modules/strcasestr (Makefile.am): Likewise.
22485 * modules/strchrnul (Makefile.am): Likewise.
22486 * modules/strcspn (Makefile.am): Likewise.
22487 * modules/strdup (Makefile.am): Likewise.
22488 * modules/strerror (Makefile.am): Likewise.
22489 * modules/strftime (Makefile.am): Likewise.
22490 * modules/strndup (Makefile.am): Likewise.
22491 * modules/strnlen (Makefile.am): Likewise.
22492 * modules/strpbrk (Makefile.am): Likewise.
22493 * modules/strsep (Makefile.am): Likewise.
22494 * modules/strstr (Makefile.am): Likewise.
22495 * modules/strtod (Makefile.am): Likewise.
22496 * modules/strtoimax (Makefile.am): Likewise.
22497 * modules/strtok_r (Makefile.am): Likewise.
22498 * modules/strtol (Makefile.am): Likewise.
22499 * modules/strtoll (Makefile.am): Likewise.
22500 * modules/strtoul (Makefile.am): Likewise.
22501 * modules/strtoull (Makefile.am): Likewise.
22502 * modules/strtoumax (Makefile.am): Likewise.
22503 * modules/strverscmp (Makefile.am): Likewise.
22504 * modules/sys_socket (Makefile.am): Likewise.
22505 * modules/sys_stat (Makefile.am): Likewise.
22506 * modules/sysexits (Makefile.am): Likewise.
22507 * modules/time_r (Makefile.am): Likewise.
22508 * modules/timegm (Makefile.am): Likewise.
22509 * modules/timespec (Makefile.am): Likewise.
22510 * modules/tmpfile-safer (Makefile.am): Likewise.
22511 * modules/trim (Makefile.am): Likewise.
22512 * modules/unistd-safer (Makefile.am): Likewise.
22513 * modules/unlinkdir (Makefile.am): Likewise.
22514 * modules/unlocked-io (Makefile.am): Likewise.
22515 * modules/userspec (Makefile.am): Likewise.
22516 * modules/utime (Makefile.am): Likewise.
22517 * modules/utimecmp (Makefile.am): Likewise.
22518 * modules/utimens (Makefile.am): Likewise.
22519 * modules/vasnprintf (Makefile.am): Likewise.
22520 * modules/vasprintf (Makefile.am): Likewise.
22521 * modules/vsnprintf (Makefile.am): Likewise.
22522 * modules/xalloc (Makefile.am): Likewise.
22523 * modules/xgetcwd (Makefile.am): Likewise.
22524 * modules/xnanosleep (Makefile.am): Likewise.
22525 * modules/xreadlink (Makefile.am): Likewise.
22526 * modules/xstrtod (Makefile.am): Likewise.
22527 * modules/xstrtol (Makefile.am): Likewise.
22528 * modules/xstrtold (Makefile.am): Likewise.
22529 * modules/yesno (Makefile.am): Likewise.
22530 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22532 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
22534 * modules/error (Makefile.am): Distribute files through
22535 EXTRA_DIST, not lib_SOURCES.
22537 2006-10-12 Eric Blake <ebb9@byu.net>
22539 * modules/error (Makefile.am): Distribute files in /lib.
22540 * modules/obstack (Makefile.am): Likewise.
22542 2006-10-12 Bruno Haible <bruno@clisp.org>
22544 * modules/acl (Makefile.am): Distribute all files in lib/ through
22546 * modules/arcfour (Makefile.am): Likewise.
22547 * modules/arctwo (Makefile.am): Likewise.
22548 * modules/argmatch (Makefile.am): Likewise.
22549 * modules/argz (Makefile.am): Likewise.
22550 * modules/atexit (Makefile.am): Likewise.
22551 * modules/backupfile (Makefile.am): Likewise.
22552 * modules/c-strtod (Makefile.am): Likewise.
22553 * modules/c-strtold (Makefile.am): Likewise.
22554 * modules/calloc (Makefile.am): Likewise.
22555 * modules/canon-host (Makefile.am): Likewise.
22556 * modules/canonicalize (Makefile.am): Likewise.
22557 * modules/chdir-long (Makefile.am): Likewise.
22558 * modules/chdir-safer (Makefile.am): Likewise.
22559 * modules/check-version (Makefile.am): Likewise.
22560 * modules/chown (Makefile.am): Likewise.
22561 * modules/cloexec (Makefile.am): Likewise.
22562 * modules/close-stream (Makefile.am): Likewise.
22563 * modules/closeout (Makefile.am): Likewise.
22564 * modules/crc (Makefile.am): Likewise.
22565 * modules/cycle-check (Makefile.am): Likewise.
22566 * modules/des (Makefile.am): Likewise.
22567 * modules/dirfd (Makefile.am): Likewise.
22568 * modules/dirname (Makefile.am): Likewise.
22569 * modules/dup2 (Makefile.am): Likewise.
22570 * modules/euidaccess (Makefile.am): Likewise.
22571 * modules/exclude (Makefile.am): Likewise.
22572 * modules/exitfail (Makefile.am): Likewise.
22573 * modules/fcntl-safer (Makefile.am): Likewise.
22574 * modules/file-type (Makefile.am): Likewise.
22575 * modules/fileblocks (Makefile.am): Likewise.
22576 * modules/filemode (Makefile.am): Likewise.
22577 * modules/filenamecat (Makefile.am): Likewise.
22578 * modules/fnmatch (Makefile.am): Likewise.
22579 * modules/fopen-safer (Makefile.am): Likewise.
22580 * modules/fpending (Makefile.am): Likewise.
22581 * modules/fprintftime (Makefile.am): Likewise.
22582 * modules/free (Makefile.am): Likewise.
22583 * modules/fsusage (Makefile.am): Likewise.
22584 * modules/ftruncate (Makefile.am): Likewise.
22585 * modules/fts (Makefile.am): Likewise.
22586 * modules/gc (Makefile.am): Likewise.
22587 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22588 * modules/getaddrinfo (Makefile.am): Likewise.
22589 * modules/getcwd (Makefile.am): Likewise.
22590 * modules/getdelim (Makefile.am): Likewise.
22591 * modules/getdomainname (Makefile.am): Likewise.
22592 * modules/getgroups (Makefile.am): Likewise.
22593 * modules/gethostname (Makefile.am): Likewise.
22594 * modules/gethrxtime (Makefile.am): Likewise.
22595 * modules/getline (Makefile.am): Likewise.
22596 * modules/getloadavg (Makefile.am): Likewise.
22597 * modules/getlogin_r (Makefile.am): Likewise.
22598 * modules/getopt (Makefile.am): Likewise.
22599 * modules/getpass (Makefile.am): Likewise.
22600 * modules/getpass-gnu (Makefile.am): Likewise.
22601 * modules/getsubopt (Makefile.am): Likewise.
22602 * modules/gettime (Makefile.am): Likewise.
22603 * modules/gettimeofday (Makefile.am): Likewise.
22604 * modules/getugroups (Makefile.am): Likewise.
22605 * modules/getusershell (Makefile.am): Likewise.
22606 * modules/glob (Makefile.am): Likewise.
22607 * modules/group-member (Makefile.am): Likewise.
22608 * modules/hard-locale (Makefile.am): Likewise.
22609 * modules/hash (Makefile.am): Likewise.
22610 * modules/hmac-md5 (Makefile.am): Likewise.
22611 * modules/hmac-sha1 (Makefile.am): Likewise.
22612 * modules/human (Makefile.am): Likewise.
22613 * modules/idcache (Makefile.am): Likewise.
22614 * modules/imaxabs (Makefile.am): Likewise.
22615 * modules/imaxdiv (Makefile.am): Likewise.
22616 * modules/inet_ntop (Makefile.am): Likewise.
22617 * modules/inet_pton (Makefile.am): Likewise.
22618 * modules/inttostr (Makefile.am): Likewise.
22619 * modules/isapipe (Makefile.am): Likewise.
22620 * modules/lchown (Makefile.am): Likewise.
22621 * modules/long-options (Makefile.am): Likewise.
22622 * modules/lstat (Makefile.am): Likewise.
22623 * modules/malloc (Makefile.am): Likewise.
22624 * modules/mathl (Makefile.am): Likewise.
22625 * modules/mbchar (Makefile.am): Likewise.
22626 * modules/md2 (Makefile.am): Likewise.
22627 * modules/md4 (Makefile.am): Likewise.
22628 * modules/md5 (Makefile.am): Likewise.
22629 * modules/memcasecmp (Makefile.am): Likewise.
22630 * modules/memchr (Makefile.am): Likewise.
22631 * modules/memcmp (Makefile.am): Likewise.
22632 * modules/memcoll (Makefile.am): Likewise.
22633 * modules/memcpy (Makefile.am): Likewise.
22634 * modules/memmem (Makefile.am): Likewise.
22635 * modules/memmove (Makefile.am): Likewise.
22636 * modules/mempcpy (Makefile.am): Likewise.
22637 * modules/memrchr (Makefile.am): Likewise.
22638 * modules/memset (Makefile.am): Likewise.
22639 * modules/memxor (Makefile.am): Likewise.
22640 * modules/mkancesdirs (Makefile.am): Likewise.
22641 * modules/mkdir (Makefile.am): Likewise.
22642 * modules/mkdir-p (Makefile.am): Likewise.
22643 * modules/mkdtemp (Makefile.am): Likewise.
22644 * modules/mkstemp (Makefile.am): Likewise.
22645 * modules/mktime (Makefile.am): Likewise.
22646 * modules/modechange (Makefile.am): Likewise.
22647 * modules/mountlist (Makefile.am): Likewise.
22648 * modules/nanosleep (Makefile.am): Likewise.
22649 * modules/openat (Makefile.am): Likewise.
22650 * modules/pagealign_alloc (Makefile.am): Likewise.
22651 * modules/physmem (Makefile.am): Likewise.
22652 * modules/poll (Makefile.am): Likewise.
22653 * modules/posixtm (Makefile.am): Likewise.
22654 * modules/posixver (Makefile.am): Likewise.
22655 * modules/putenv (Makefile.am): Likewise.
22656 * modules/quote (Makefile.am): Likewise.
22657 * modules/quotearg (Makefile.am): Likewise.
22658 * modules/raise (Makefile.am): Likewise.
22659 * modules/read-file (Makefile.am): Likewise.
22660 * modules/readline (Makefile.am): Likewise.
22661 * modules/readlink (Makefile.am): Likewise.
22662 * modules/readtokens (Makefile.am): Likewise.
22663 * modules/readutmp (Makefile.am): Likewise.
22664 * modules/realloc (Makefile.am): Likewise.
22665 * modules/regex (Makefile.am): Likewise.
22666 * modules/rename (Makefile.am): Likewise.
22667 * modules/rename-dest-slash (Makefile.am): Likewise.
22668 * modules/rijndael (Makefile.am): Likewise.
22669 * modules/rmdir (Makefile.am): Likewise.
22670 * modules/rpmatch (Makefile.am): Likewise.
22671 * modules/safe-read (Makefile.am): Likewise.
22672 * modules/safe-write (Makefile.am): Likewise.
22673 * modules/same (Makefile.am): Likewise.
22674 * modules/save-cwd (Makefile.am): Likewise.
22675 * modules/savedir (Makefile.am): Likewise.
22676 * modules/setenv (Makefile.am): Likewise.
22677 * modules/settime (Makefile.am): Likewise.
22678 * modules/sha1 (Makefile.am): Likewise.
22679 * modules/sig2str (Makefile.am): Likewise.
22680 * modules/snprintf (Makefile.am): Likewise.
22681 * modules/stdlib-safer (Makefile.am): Likewise.
22682 * modules/stpcpy (Makefile.am): Likewise.
22683 * modules/stpncpy (Makefile.am): Likewise.
22684 * modules/strcase (Makefile.am): Likewise.
22685 * modules/strcasestr (Makefile.am): Likewise.
22686 * modules/strchrnul (Makefile.am): Likewise.
22687 * modules/strcspn (Makefile.am): Likewise.
22688 * modules/strdup (Makefile.am): Likewise.
22689 * modules/strerror (Makefile.am): Likewise.
22690 * modules/strftime (Makefile.am): Likewise.
22691 * modules/strndup (Makefile.am): Likewise.
22692 * modules/strnlen (Makefile.am): Likewise.
22693 * modules/strpbrk (Makefile.am): Likewise.
22694 * modules/strsep (Makefile.am): Likewise.
22695 * modules/strstr (Makefile.am): Likewise.
22696 * modules/strtod (Makefile.am): Likewise.
22697 * modules/strtoimax (Makefile.am): Likewise.
22698 * modules/strtok_r (Makefile.am): Likewise.
22699 * modules/strtol (Makefile.am): Likewise.
22700 * modules/strtoll (Makefile.am): Likewise.
22701 * modules/strtoul (Makefile.am): Likewise.
22702 * modules/strtoull (Makefile.am): Likewise.
22703 * modules/strtoumax (Makefile.am): Likewise.
22704 * modules/strverscmp (Makefile.am): Likewise.
22705 * modules/time_r (Makefile.am): Likewise.
22706 * modules/timegm (Makefile.am): Likewise.
22707 * modules/tmpfile-safer (Makefile.am): Likewise.
22708 * modules/unistd-safer (Makefile.am): Likewise.
22709 * modules/unlinkdir (Makefile.am): Likewise.
22710 * modules/userspec (Makefile.am): Likewise.
22711 * modules/utime (Makefile.am): Likewise.
22712 * modules/utimecmp (Makefile.am): Likewise.
22713 * modules/utimens (Makefile.am): Likewise.
22714 * modules/vasnprintf (Makefile.am): Likewise.
22715 * modules/vasprintf (Makefile.am): Likewise.
22716 * modules/vsnprintf (Makefile.am): Likewise.
22717 * modules/xalloc (Makefile.am): Likewise.
22718 * modules/xgetcwd (Makefile.am): Likewise.
22719 * modules/xnanosleep (Makefile.am): Likewise.
22720 * modules/xreadlink (Makefile.am): Likewise.
22721 * modules/xstrtod (Makefile.am): Likewise.
22722 * modules/xstrtol (Makefile.am): Likewise.
22723 * modules/xstrtold (Makefile.am): Likewise.
22724 * modules/yesno (Makefile.am): Likewise.
22726 2006-10-12 Jim Meyering <jim@meyering.net>
22728 * m4/getloadavg.m4: Revert the change below.
22730 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22731 lib/getloadavg.c using "ls -L", not "test -f". The latter would
22732 fail with a symlink, which is what coreutils' ./bootstrap now
22733 creates by default.
22735 2006-10-12 Bruno Haible <bruno@clisp.org>
22737 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22739 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22740 MSVC and mingw explicitly.
22742 2006-10-11 Simon Josefsson <jas@extundo.com>
22743 Bruno Haible <bruno@clisp.org>
22745 Add support for multiple gnulib-tool invocations in the scope of a
22746 single configure.ac file.
22747 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22748 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22749 with the same contents as the _LIBADD variable.
22750 (func_emit_initmacro_start, func_emit_initmacro_end,
22751 func_emit_initmacro_done): New functions.
22752 (func_import, func_create_testdir): Invoke them. Allow the identifiers
22753 gl_LIBOBJS and gl_LTLIBOBJS.
22755 2006-10-11 Bruno Haible <bruno@clisp.org>
22757 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22758 (func_create_testdir): Don't create po/Makefile.am, don't invoke
22759 autoreconf. Instead, invoke autopoint explicitly but move back the
22760 *.m4 files from gnulib.
22762 2006-10-11 Bruno Haible <bruno@clisp.org>
22764 * gnulib-tool (func_usage): Make module names after --create-testdir
22766 (func_create_testdir): If no module was specified, use nearly all
22769 2006-10-12 Jim Meyering <jim@meyering.net>
22771 Big performance improvement for fts-based tools that use FTS_NOSTAT.
22772 Avoid spurious inode-mismatch problems on non-POSIX file systems.
22773 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22774 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22775 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22776 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22777 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22778 (fts_set_stat_required): New function.
22779 (fts_open): Defer the calls to fts_stat, if possible or requested.
22780 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22781 into fts_stat itself.
22782 (fts_read): Perform any required (deferred) fts_stat call.
22783 (fts_build): Likewise, for the directory we're about to open and read.
22784 In the readdir loop, carefully decide whether each entry will require
22785 an eventual call to fts_stat, using dirent.d_type info if available.
22786 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22787 a command line argument into this function. Update all callers.
22788 Map a return value of FTS_DOT to FTS_D for a command line argument.
22789 * modules/fts (Depends-on): Add d-type. Alphabetize.
22790 Thanks to Miklos Szeredi for his tenacity and for the initial
22791 bug report about "find" failing on a FUSE-based file system.
22793 * lib/fts.c (fts_open): Use consistent indentation.
22795 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
22797 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22798 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22799 reported by Jim Meyering. All uses of cache variables renamed
22800 to match Autoconf's.
22801 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22804 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22805 Fix misspelling in diagnostic.
22807 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22809 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22810 defined. Problem reported by Matthew Woehlke.
22812 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22813 Add support for Tandem NonStop R series.
22814 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22817 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22818 (has_trailing_slash): Omit size arg; all callers changed.
22819 Omit 'inline', since it doesn't help performance and we'd
22820 need to configure it.
22821 Don't count //, ///, etc. as having a trailing slash.
22822 As a side effect, this removes a C99ism reported by Matthew Woehlke.
22823 (rpl_rename_dest_slash): On failure, use rename's errno rather
22824 than (in some cases) an incorrect or junk errno.
22825 Simplify code by removing need to compute length; this does
22826 cause it to make two passes instead of one over the file name,
22829 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22830 change, since Autoconf's version may no longer be appropriate now
22831 that we are using CVS Autoconf's version. Add support for Tandem.
22833 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22834 Bruno Haible <bruno@clisp.org>
22836 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22837 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22838 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22839 gl_AC_TYPE_LONG_LONG.
22841 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22842 instead of HAVE_LONG_LONG.
22843 * lib/printf-args.c (printf_fetchargs): Likewise.
22844 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22845 * lib/vasnprintf.c (VASNPRINTF): Likewise.
22846 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22847 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22848 gl_AC_TYPE_LONG_LONG.
22850 2006-10-11 Bruno Haible <bruno@clisp.org>
22852 * m4/longlong.m4: Add comments.
22853 * m4/ulonglong.m4: Likewise.
22855 2006-10-10 Bruno Haible <bruno@clisp.org>
22857 Make it possible to #define stpcpy, strdup to aliases.
22858 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22859 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22861 2006-10-10 Bruno Haible <bruno@clisp.org>
22863 Make it possible to #define gcd to an alias.
22864 * lib/gcd.c: Include config.h.
22866 2006-10-10 Bruno Haible <bruno@clisp.org>
22868 Make it possible to #define c_isascii to an alias.
22869 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22870 defined. Undefine the macros before defining them, to avoid gcc
22872 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22873 define NO_C_CTYPE_MACROS early.
22875 2006-10-10 Bruno Haible <bruno@clisp.org>
22877 Make it possible to #define set_program_name to an alias.
22878 * lib/progname.c: Don't undefine set_program_name; instead, undefine
22879 ENABLE_RELOCATABLE early.
22881 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
22883 Port to Tandem NSK OSS, which has 64-bit signed int but at most
22884 32-bit unsigned int. Problem reported by Matthew Woehlke in:
22885 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22886 More generally, don't assume that 64-bit signed int is available
22887 if unsigned int is, and vice versa.
22888 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22889 unsigned symbols, not on their signed counterparts.
22890 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22891 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22892 (UINT64_C, UINTMAX_C):
22894 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22895 unsigned counterparts.
22896 (Have_long_long, Unsigned): New macros.
22897 (Int): Renamed from INT.
22898 (strtoimax): Use the new macros.
22899 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22900 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22901 * modules/inttypes (inttypes.h): Substitute
22902 HAVE_UNSIGNED_LONG_LONG_INT.
22903 * modules/stdint (stdint.h): Likewise.
22904 (Files): Add m4/ulonglong.m4.
22906 2006-10-10 Bruno Haible <bruno@clisp.org>
22908 Fix a gcc -Wshadow warning.
22909 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22911 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22912 gl_linked_indexof_from_to): Likewise.
22913 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22915 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22917 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22918 Reported by Eric Blake.
22920 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
22922 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22923 for NetBSD. Problem reported by Bruno Haible.
22925 2006-10-09 Jim Meyering <jim@meyering.net>
22927 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22928 Patch from Bruno Haible.
22930 2006-10-09 Jim Meyering <jim@meyering.net>
22932 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22933 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22934 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22936 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
22938 Don't include <config.h> twice; this doesn't work in some cases,
22939 e.g., when config.h has "#define intmax_t long long int" and
22940 we include <config.h>, <inttypes.h>, <config.h> in that order.
22941 Problem reported by Matthew Woehlke in:
22942 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22943 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22944 * lib/fts-cycle.c: Don't include config.h.
22945 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22946 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22947 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
22948 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22950 * lib/xstrtoumax.c: Likewise.
22951 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22952 __strtol and the like, so that this module is more like its siblings.
22953 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22954 Remove; no longer needed now that we assume gnulib inttypes.h.
22956 2006-10-08 Bruno Haible <bruno@clisp.org>
22958 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22961 2006-10-07 Jim Meyering <jim@meyering.net>
22963 * modules/inttypes (inttypes.h): Revert what seems to have been
22964 an inadvertent part of today's change: use "|", not "/" in the
22965 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22967 2006-10-07 Bruno Haible <bruno@clisp.org>
22969 * modules/sublist: New file.
22971 2006-10-07 Bruno Haible <bruno@clisp.org>
22973 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22974 * modules/argz (argz.h): Likewise.
22975 * modules/arpa_inet (arpa/inet.h): Likewise.
22976 * modules/byteswap (byteswap.h): Likewise.
22977 * modules/configmake (configmake.h): Likewise.
22978 * modules/fcntl (fcntl.h): Likewise.
22979 * modules/fnmatch (fnmatch.h): Likewise.
22980 * modules/getopt (getopt.h): Likewise.
22981 * modules/glob (glob.h): Likewise.
22982 * modules/inttypes (inttypes.h): Likewise.
22983 * modules/netinet_in (netinet/in.h): Likewise.
22984 * modules/poll (poll.h): Likewise.
22985 * modules/stdbool (stdbool.h): Likewise.
22986 * modules/stdint (stdint.h): Likewise.
22987 * modules/sys_select (sys/select.h): Likewise.
22988 * modules/sys_socket (sys/socket.h): Likewise.
22989 * modules/sys_stat (sys/stat.h): Likewise.
22990 * modules/sysexits (sysexits.h): Likewise.
22991 * modules/unistd (unistd.h): Likewise.
22992 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22993 Add a "DO NOT EDIT" comment to the generated file.
22994 (func_import): Likewise for gnulib-comp.m4.
22996 2006-10-07 Bruno Haible <bruno@clisp.org>
22998 * lib/gl_sublist.h: New file.
22999 * lib/gl_sublist.c: New file.
23001 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
23003 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23004 name (relative to the original working directory) and the file
23005 name component (relative to the temporary working directory). All
23007 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23008 * lib/mkdir-p.c (make_dir_parents): Likewise.
23009 * lib/mkdir-p.h (make_dir_parents): Likewise.
23011 2006-10-06 Eric Blake <ebb9@byu.net>
23013 Define several macros for use by the clean-temp module.
23014 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23015 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23016 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23018 * lib/clean-temp.h (close_stream_temp): New declaration.
23019 * lib/clean-temp.c (includes): Pull in headers according to what
23020 other modules are in use.
23021 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23023 2006-10-06 Bruno Haible <bruno@clisp.org>
23025 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23026 instead of fopen, fwriteerror.
23028 2006-10-06 Bruno Haible <bruno@clisp.org>
23030 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23031 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23033 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23034 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23035 Return an error indicator.
23036 Suggested by Eric Blake.
23038 2006-10-06 Bruno Haible <bruno@clisp.org>
23040 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23041 Reported by Eric Blake.
23043 2006-10-06 Bruno Haible <bruno@clisp.org>
23045 * modules/closeout (Description): Mention stderr too.
23047 2006-10-06 Bruno Haible <bruno@clisp.org>
23048 and Paul Eggert <eggert@cs.ucla.edu>
23050 * lib/closeout.c (close_stdout): Also close stderr.
23051 * lib/closeout.h: Update comment.
23053 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
23055 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23056 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23057 * lib/dirchownmod.c: Include lchown.h.
23058 * lib/lchown.c: Don't include files that lchown.h now includes.
23059 Don't declare chown, since lchown.h now does that.
23060 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23061 (lchown): Define to rpl_chown if lchown is declared but
23062 does not exist. Declare using a prototype if lchown is not
23063 declared. Add a copyright notice.
23064 * lib/mkstemp.h: Include <unistd.h>.
23065 * lib/openat.c: Include lchown.h.
23067 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23068 we now test for that separately.
23069 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23070 rather than O_NOFOLLOW, when testing whether it's possible to
23071 avoid a race condition reliably.
23072 * lib/savewd.c (savewd_chdir): Likewise.
23074 Remove macros that are no longer needed now that stdint.h is
23076 * lib/fsusage.c (UINTMAX_MAX): Remove.
23077 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23078 * lib/utimecmp.c (SIZE_MAX): Remove.
23080 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23082 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23083 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
23086 2006-10-05 Bruno Haible <bruno@clisp.org>
23088 * lib/gl_list.h (gl_sortedlist_search_from_to,
23089 gl_sortedlist_indexof_from_to): New declarations.
23090 (gl_list_implementation): New fields sortedlist_search_from_to,
23091 sortedlist_indexof_from_to.
23092 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23094 * lib/gl_list.c (gl_sortedlist_search_from_to,
23095 gl_sortedlist_indexof_from_to): New functions.
23096 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23098 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23099 (gl_array_sortedlist_search_from_to): New function.
23100 (gl_array_list_implementation): Update.
23101 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23103 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23104 (gl_carray_sortedlist_search_from_to): New function.
23105 (gl_carray_list_implementation): Update.
23106 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23107 gl_linked_sortedlist_indexof_from_to): New functions.
23108 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23109 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23110 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23111 gl_tree_sortedlist_indexof_from_to): New functions.
23112 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23113 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23115 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23116 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23119 2006-10-05 Bruno Haible <bruno@clisp.org>
23121 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23122 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23123 (struct gl_list_implementation): Add fields search_from_to,
23124 indexof_from_to. Remove fields search, indexof.
23125 (gl_list_search): Use the search_from_to method.
23126 (gl_list_search_from, gl_list_search_from_to): New functions.
23127 (gl_list_indexof): Use the indexof_from_to method.
23128 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23129 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23130 (gl_list_search_from, gl_list_search_from_to): New functions.
23131 (gl_list_indexof): Use the indexof_from_to method.
23132 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23133 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23134 gl_array_indexof. Add start_index, end_index arguments.
23135 (gl_array_search_from_to): Renamed from gl_array_search. Add
23136 start_index, end_index arguments.
23137 (gl_array_remove, gl_array_list_implementation): Update.
23138 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23139 gl_carray_indexof. Add start_index, end_index arguments.
23140 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23141 start_index, end_index arguments.
23142 (gl_carray_remove, gl_carray_list_implementation): Update.
23143 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23144 gl_linked_search. Add start_index, end_index arguments.
23145 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23146 start_index, end_index arguments.
23147 (gl_linked_remove): Update.
23148 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23149 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23150 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23152 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23153 gl_tree_search. Add start_index, end_index arguments.
23154 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23155 start_index, end_index arguments.
23156 (gl_tree_remove): Update.
23157 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23158 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23159 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23161 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23162 gl_tree_search. Add start_index, end_index arguments.
23163 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23164 start_index, end_index arguments.
23165 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23167 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23169 2006-10-05 Bruno Haible <bruno@clisp.org>
23171 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23173 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23174 fwriteerror_temp): New declarations.
23175 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23176 (descriptors): New variable.
23177 (cleanup): First, close the descriptors.
23178 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23179 fclose_temp, fwriteerror_temp): New functions.
23181 2006-10-04 Jim Meyering <jim@meyering.net>
23183 * lib/fts.c (fts_open): Tiny comment change.
23185 2006-10-04 Bruno Haible <bruno@clisp.org>
23187 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23188 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23190 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23191 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23192 gl_LOCK_EARLY_BODY.
23193 (gl_LOCK): Require gl_LOCK_BODY.
23195 2006-10-04 Bruno Haible <bruno@clisp.org>
23197 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23198 (gl_oset_search_atleast): New declaration.
23199 (struct gl_oset_implementation): Add field 'search_atleast'.
23200 (gl_oset_search_atleast): New inline function.
23201 * lib/gl_oset.c (gl_oset_search_atleast): New function.
23202 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23203 (gl_array_oset_implementation): Update.
23204 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23205 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23206 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23208 2006-10-04 Bruno Haible <bruno@clisp.org>
23210 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23212 2006-10-03 Bruno Haible <bruno@clisp.org>
23214 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23215 from gl_avltreehash_list_implementation.
23217 2006-10-03 Bruno Haible <bruno@clisp.org>
23219 * lib/gl_oset.c (gl_oset_add): Fix return type.
23221 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
23223 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23225 2006-10-02 Eric Blake <ebb9@byu.net>
23227 * modules/strnlen (Depends-on): Add extensions.
23229 2006-10-02 Eric Blake <ebb9@byu.net>
23231 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23232 definition in 2.60+.
23234 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
23236 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23239 2006-10-02 Bruno Haible <bruno@clisp.org>
23241 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23242 to the AUTOMAKE_OPTIONS.
23243 Reported by Jim Meyering.
23245 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
23247 Work around bug in Solaris 10 /proc file system:
23248 /proc/self/fd/NNN/.. isn't the parent directory of
23249 the directory whose file descriptor is NNN. This needs to
23250 be worked around at run time, not compile time, since a
23251 program might be built on Solaris 8, where things work, and
23253 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
23254 to use the following interface instead:
23255 (OPENAT_BUFFER_SIZE): New macro.
23256 (openat_proc_name): New function.
23257 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23258 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23260 * lib/openat-proc.c: New file.
23261 * modules/openat (Files): Add lib/openat-proc.c.
23262 (Depends-on): Add same-inode, stdbool.
23263 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23265 2006-09-29 Bruno Haible <bruno@clisp.org>
23267 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23268 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23269 argument. Set stdout_closed before testing for ferror, not after.
23270 (fwriteerror, fwriteerror_no_ebadf): New functions.
23272 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23274 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23276 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
23278 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23279 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23281 2006-09-28 Jim Meyering <jim@meyering.net>
23283 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23284 Include <unistd.h>.
23286 2006-09-28 Bruno Haible <bruno@clisp.org>
23288 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23289 * modules/linkedhash-list (Depends-on): Likewise.
23290 * modules/rbtreehash-list (Depends-on): Likewise.
23292 2006-09-28 Bruno Haible <bruno@clisp.org>
23294 * lib/strndup.h: Simplify the redefinition of strndup.
23295 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23296 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23298 2006-09-28 Bruno Haible <bruno@clisp.org>
23300 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23301 * lib/gl_linkedhash_list.c: Likewise.
23302 * lib/gl_rbtreehash_list.c: Likewise.
23304 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
23306 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23309 * lib/__fpending.h: Don't include <stdio_ext.h> unless
23310 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
23311 it causes <stdio_ext.h> to cause a compile-time error.
23312 Problem reported by Nelson H. F. Beebe.
23313 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23314 of HAVE_DECL___PENDING.
23316 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23317 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23320 2006-09-27 Jim Meyering <jim@meyering.net>
23322 This file could end up with a definition for a function
23323 named __strndup, rather than rpl_strndup on a system with
23324 incomplete weak_alias support.
23325 * lib/strndup.c (strndup): Rename from __strndup.
23326 Remove #defines that used to map __strndup to strndup.
23327 Don't use K&R prototypes.
23328 Remove LIBC-related code, since this file is not sync'd with glibc.
23329 * lib/strndup.h: Revamp, accordingly.
23330 * m4/strndup.m4: Modernize.
23332 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
23334 * modules/savewd (Depends-on): Add 'raise'.
23335 * lib/savewd.c: Include <signal.h>, for 'raise'.
23337 2006-09-26 Jim Meyering <jim@meyering.net>
23339 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23340 when we detect Darwin 8.7.0's acl_get_file bug.
23341 Rearrange to perform the new (below) run-test while $LIBS
23342 contains any acl-related library. Set USE_ACL at the end.
23343 (gl_ACL_GET_FILE): New function.
23345 2006-09-26 Eric Blake <ebb9@byu.net>
23347 * lib/verror.c: Include <config.h> unconditionally.
23349 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
23351 * modules/clock-time (Maintainer): Add self.
23352 * modules/getlogin_r (Depends-on): Add extensions.
23354 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23356 * modules/clock-time: New module.
23357 * modules/nanosleep (Depends-on): Add clock-time.
23358 * modules/gethrxtime (Depends-on): Likewise.
23359 * modules/gettime (Depends-on): Likewise.
23360 * modules/settime (Depends-on): Likewise.
23362 * modules/fts-lgpl: Depend on openat.
23363 * modules/mkancesdirs: Depend on savewd.
23364 * modules/mkdir-p: Likewise.
23366 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23368 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23370 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23371 `gl_have_arbitrary_file_name_length_limit' to
23372 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23373 actually works between configure runs.
23375 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23376 Bruno Haible <bruno@clisp.org>
23378 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23380 2006-09-25 Jim Meyering <jim@meyering.net>
23382 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23383 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23385 2006-09-25 Eric Blake <ebb9@byu.net>
23387 * gnulib-tool (func_import, func_create_testdir): Fix typos in
23388 exec's in 2006-09-18 patch when shuffling fds.
23390 2006-09-25 Bruno Haible <bruno@clisp.org>
23392 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23393 Reported by Jim Meyering.
23395 2006-09-24 Jim Meyering <jim@meyering.net>
23397 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23398 compare a pointer against a literal "0". That caused failures with
23399 at least HP-UX's hpcc.
23401 2006-09-22 Simon Josefsson <jas@extundo.com>
23405 * modules/gc-hmac-sha1:
23406 * modules/gc-hmac-md5:
23408 * modules/gc-arcfour: Distribute more files.
23410 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23412 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23413 (gl_linked_iterator_from_to): Initialize struct completely.
23414 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23415 (gl_tree_iterator_from_to): Likewise
23416 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23417 * lib/gl_array_list.c [lint] (gl_array_iterator)
23418 (gl_array_iterator_from_to): Likewise.
23419 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23420 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23421 (gl_carray_iterator_from_to): Likewise.
23423 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23424 * lib/md4.c (md4_process_block): Remove unused variable.
23425 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23426 parentheses for clarity.
23428 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23430 * modules/bison-i18n (Depends-on): Add gettext.
23432 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23434 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23435 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23436 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23437 also add missing comma that caused broken test.
23438 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23439 stdlib.h, for `abort'.
23440 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23442 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23443 include unistd.h if present, for `rmdir'.
23444 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23446 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23447 in the process include standard headers for prototypes.
23448 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23449 gets declared on GNU/Linux.
23450 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23451 unistd.h, for `rmdir'.
23452 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23454 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23456 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23458 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23460 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23462 * gnulib-tool (func_version): Create output all at once. This
23463 may help avoid triggering unnecessary SIGPIPEs, and at any
23464 rate it doesn't hurt.
23466 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23467 Bruno Haible <bruno@clisp.org>
23469 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23470 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23471 * m4/signed.m4 (bh_C_SIGNED): Likewise.
23473 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23474 (gl_FUNC_VASPRINTF): Invoke it.
23476 2006-09-22 Bruno Haible <bruno@clisp.org>
23478 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23479 getloadavg.c as first argument.
23481 2006-09-22 Bruno Haible <bruno@clisp.org>
23483 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23484 at the beginning of the gl_INIT macro.
23485 * modules/getloadavg (configure.ac): Pass $gl_source_base to
23488 2006-09-22 Bruno Haible <bruno@clisp.org>
23490 * gnulib-tool (func_create_megatestdir): Don't include the config-h
23492 Suggested by Ralf Wildenhues.
23494 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
23496 Import this patch from libc:
23498 2006-09-06 Jakub Jelinek <jakub@redhat.com>
23500 * lib/regex_internal.c (re_string_reconstruct): Handle
23501 offset < pstr->valid_raw_len && pstr->offsets_needed case.
23502 Ensure no bytes read before raw_mbs array. Pass a saved copy of
23503 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23504 re_string_context_at.
23506 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23508 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23509 gl_REGEX now does it for us.
23510 (gl_REGEX): Add test taken from
23511 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23513 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23514 Check that large offsets work. Modernize Autoconf usages.
23515 Prefer "yes" to mean a good thing rather than a bad.
23516 Don't put "#define mkstemp" in config.h, as this might interfere
23517 with standard system headers that "#define mkstemp mkstemp64".
23519 * modules/mkstemp (Depends-on): Add extensions, so that
23520 mkstemp is visible on some platforms.
23521 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23522 (Include): Change to "mkstemp.h" from <stdlib.h>.
23523 (Files): Add mkstemp.h.
23525 * lib/mkstemp.h: New file, since some standard headers
23527 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23528 Include "mkstemp.h".
23529 Make the _LIBC code resemble glibc original more,
23530 e.g., use K&R style.
23531 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23532 (mkstemp): Remove, since mkstemp.h does this for us.
23533 * lib/stdlib--.h: Include mkstemp.h.
23535 Import this patch from libc:
23537 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23539 * lib/tempname.c (__gen_tempname): Change attempts_min
23540 into a macro. Use preprocessor to decide how to initialize
23541 attempts [Coverity CID 67].
23543 2006-09-20 Bruno Haible <bruno@clisp.org>
23545 * lib/mkdtemp.c: Import from libc.
23546 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23547 * sysdeps/posix/tempname.c (__gen_tempname): Change
23548 attempts_min into a macro. Use preprocessor to decide how to
23549 initialize attempts [Coverity CID 67].
23550 2001-11-27 Paul Eggert <eggert@twinsun.com>
23551 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23552 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23554 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23556 * gnulib-tool (func_exit): New function, to allow to pass the
23557 exit status portably through the trap. Use everywhere.
23558 (--help, --version): Signal a write error.
23559 (trap): catch SIGPIPE, for write errors.
23560 Exit at the end of the trap, with the correct exit status.
23562 2006-09-19 Karl Berry <karl@gnu.org>
23564 * doc/gnulib.texi: note about the license texinfo files.
23566 2006-09-19 Eric Blake <ebb9@byu.net>
23568 * gnulib-tool: Avoid space-tab.
23570 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23572 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23573 that prevented coreutils 6.1 from building. Problem reported
23574 by Petter Reinholdtsen.
23576 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23578 * gnulib-tool (avoidlist): Fix typo that broke options like
23579 --avoid=lock that are used by coreutils bootstrap.
23581 2006-09-18 Mark D. Baushke <mdb@gnu.org>
23583 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23584 more systematically.
23586 2006-09-18 Jim Meyering <jim@meyering.net>
23588 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23590 2006-09-18 Bruno Haible <bruno@clisp.org>
23592 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23594 2006-09-18 Bruno Haible <bruno@clisp.org>
23596 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23597 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23598 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23599 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23600 * m4/gettext.m4: Require autoconf >= 2.52.
23601 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23602 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23603 of gl_cv_header_inttypes_h.
23605 2006-09-18 Bruno Haible <bruno@clisp.org>
23607 * lib/javaversion.c: Include configmake.h.
23609 2006-09-18 Bruno Haible <bruno@clisp.org>
23611 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23612 avoid that the while loops be executed in a subshell.
23614 2006-09-18 Bruno Haible <bruno@clisp.org>
23616 * MODULES.html.sh (func_module): Break long lines.
23617 Suggested by Bruce Korb <bkorb@gnu.org>.
23619 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23621 Speed up by a factor of 1.12.
23622 * gnulib-tool (nl): New variable.
23623 (func_import): Rewrite include directive extraction to only read each
23626 2006-09-17 Bruno Haible <bruno@clisp.org>
23628 * modules/javaversion (Makefile.am): Remove DEFS setting.
23629 (Depends-on): Add configmake, for PKGDATADIR definition.
23631 2006-09-17 Bruno Haible <bruno@clisp.org>
23633 * gnulib-tool (func_create_testdir): Rewrite all files at once.
23635 2006-09-17 Bruno Haible <bruno@clisp.org>
23637 * gnulib-tool (func_append): New function, stolen from libtool.m4.
23638 (func_modules_transitive_closure, func_modules_add_dummy,
23639 func_modules_to_filelist, func_import, func_create_testdir,
23640 func_create_megatestdir, ...): Use it wherever possible.
23641 Suggested by Ralf Wildenhues.
23643 2006-09-16 Karl Berry <karl@gnu.org>
23645 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23646 to avoid sectioning errors.
23647 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23648 [ifinfo]: blank line after @center-ed titles.
23649 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23650 Spell FSF address consistently with others.
23651 (These changes approved by rms.)
23653 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23655 Speed up by a factor of 1.61.
23656 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23657 already checked module names again.
23659 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23661 Speed up by a factor of 1.13.
23662 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23663 for new_files, and the input to func_add_or_update.
23665 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23667 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23668 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23670 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23672 * modules/mkancesdirs (Depends-on): Add fcntl.
23673 * modules/savewd: New file.
23674 * MODULES.html.sh (File system functions): Add savewd.
23676 * modules/configmake (Makefile.am): Add support for the
23677 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23679 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23681 * m4/savewd.m4: New file.
23683 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23685 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23686 (dirchownmod): New arg FD. All callers changed.
23687 Use FD rather than opening the directory ourself, as opening is
23688 now the caller's responsibility.
23689 * lib/dirchownmod.h: Likewise.
23690 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23691 hosts that require <sys/types.h> before <sys/stat.h>. Include
23692 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23693 (test_dir): Remove.
23694 (mkancesdirs): Return length of prefix of FILE that has already
23695 been made, or -2 if there is a child doing the work. Redo
23696 algorithm so that it is O(N) rather than O(N**2). Optimize away
23697 ".", and treat ".." specially since it might stray back into
23698 already-created areas. Use a subprocess if necessary. New arg
23699 WD; all users changed. MAKE_DIR function should now return 1
23700 if it creates a directory that is not readable. Return -2 if
23701 a child process is spun off.
23702 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23703 Adjust signature to match code.
23704 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23705 (make_dir_parents): Use a subprocess if necessary. New arg WD;
23707 * lib/savewd.c, lib/savewd.h: New files.
23709 2006-09-15 Jim Meyering <jim@meyering.net>
23711 * modules/rename-dest-slash: New module.
23712 * MODULES.html.sh (posix_compat): Add it here.
23714 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23716 2006-09-15 Jim Meyering <jim@meyering.net>
23718 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23721 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23723 2006-09-15 Jim Meyering <jim@meyering.net>
23725 * lib/rename-dest-slash.c (has_trailing_slash): Use
23726 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23727 (rpl_rename_dest_slash): Perform the cheaper trailing slash
23728 test before testing whether SRC is a directory.
23729 Suggestions from Bruno Haible.
23731 Avoid a warning about an unused variable.
23732 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23733 into the #ifdef block where it's used.
23735 * lib/rename-dest-slash.c: New file.
23737 2006-09-14 Bruno Haible <bruno@clisp.org>
23739 * lib/allocsa.c: Include <config.h> unconditionally.
23740 * lib/asnprintf.c: Likewise.
23741 * lib/asprintf.c: Likewise.
23742 * lib/c-strcasecmp.c: Likewise.
23743 * lib/c-strcasestr.c: Likewise.
23744 * lib/c-strncasecmp.c: Likewise.
23745 * lib/c-strstr.c: Likewise.
23746 * lib/classpath.c: Likewise.
23747 * lib/clean-temp.c: Likewise.
23748 * lib/concatpath.c: Likewise.
23749 * lib/copy-file.c: Likewise.
23750 * lib/csharpcomp.c: Likewise.
23751 * lib/csharpexec.c: Likewise.
23752 * lib/execute.c: Likewise.
23753 * lib/fatal-signal.c: Likewise.
23754 * lib/findprog.c: Likewise.
23755 * lib/fwriteerror.c: Likewise.
23756 * lib/gl_array_list.c: Likewise.
23757 * lib/gl_array_oset.c: Likewise.
23758 * lib/gl_avltree_list.c: Likewise.
23759 * lib/gl_avltree_oset.c: Likewise.
23760 * lib/gl_avltreehash_list.c: Likewise.
23761 * lib/gl_carray_list.c: Likewise.
23762 * lib/gl_linked_list.c: Likewise.
23763 * lib/gl_linkedhash_list.c: Likewise.
23764 * lib/gl_list.c: Likewise.
23765 * lib/gl_oset.c: Likewise.
23766 * lib/gl_rbtree_list.c: Likewise.
23767 * lib/gl_rbtree_oset.c: Likewise.
23768 * lib/gl_rbtreehash_list.c: Likewise.
23769 * lib/imaxabs.c: Likewise.
23770 * lib/imaxdiv.c: Likewise.
23771 * lib/javacomp.c: Likewise.
23772 * lib/javaexec.c: Likewise.
23773 * lib/javaversion.c: Likewise.
23774 * lib/linebreak.c: Likewise.
23775 * lib/localcharset.c: Likewise.
23776 * lib/lock.c: Likewise.
23777 * lib/mbchar.c: Likewise.
23778 * lib/mbswidth.c: Likewise.
23779 * lib/mkdtemp.c: Likewise.
23780 * lib/pipe.c: Likewise.
23781 * lib/printf-args.c: Likewise.
23782 * lib/printf-parse.c: Likewise.
23783 * lib/progname.c: Likewise.
23784 * lib/progreloc.c: Likewise.
23785 * lib/readlink.c: Likewise.
23786 * lib/sh-quote.c: Likewise.
23787 * lib/stpcpy.c: Likewise.
23788 * lib/stpncpy.c: Likewise.
23789 * lib/strcasecmp.c: Likewise.
23790 * lib/strcasestr.c: Likewise.
23791 * lib/strcspn.c: Likewise.
23792 * lib/striconv.c: Likewise.
23793 * lib/strncasecmp.c: Likewise.
23794 * lib/strnlen1.c: Likewise.
23795 * lib/strstr.c: Likewise.
23796 * lib/strtok_r.c: Likewise.
23797 * lib/tls.c: Likewise.
23798 * lib/tmpdir.c: Likewise.
23799 * lib/unicodeio.c: Likewise.
23800 * lib/unsetenv.c: Likewise.
23801 * lib/vasnprintf.c: Likewise.
23802 * lib/vasprintf.c: Likewise.
23803 * lib/wait-process.c: Likewise.
23804 * lib/xallocsa.c: Likewise.
23805 * lib/xsetenv.c: Likewise.
23806 * lib/xstriconv.c: Likewise.
23808 2006-09-13 Simon Josefsson <jas@extundo.com>
23810 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23811 that internally, suggested by Ralf Wildenhues
23812 <Ralf.Wildenhues@gmx.de>.
23814 2006-09-13 Simon Josefsson <jas@extundo.com>
23816 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23818 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23820 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
23822 * lib/_fpending.c: Include <config.h> unconditionally, since we no
23823 longer worry about uses that don't define HAVE_CONFIG_H.
23824 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23825 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23826 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23827 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23828 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23829 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23830 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23831 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23832 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23833 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23834 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23835 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23836 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23837 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23838 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23839 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23840 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23841 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23842 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23843 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23844 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23845 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23846 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23847 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23848 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23849 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23850 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23851 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23852 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23853 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23854 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23855 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23856 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23857 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23858 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23859 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23860 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23861 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23862 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23863 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23864 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23867 2006-09-13 Eric Blake <ebb9@byu.net>
23869 * lib/getopt.c: Fix typo in last commit.
23871 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
23873 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23876 2006-09-12 Jim Meyering <jim@meyering.net>
23878 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23879 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23880 Reported by Nelson H. F. Beebe.
23882 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
23884 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23885 program_invocation_name and program_invocation_short_name are
23887 * lib/argp-namefrob.h: Move declarations of program_invocation_name
23888 and program_invocation_short_name to argp.h, so they are visible
23890 * lib/argp.h: Likewise
23892 2006-09-10 Bruno Haible <bruno@clisp.org>
23894 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23895 m4/inttypes_h.m4, m4/uintmax_t.m4.
23897 2006-09-10 Bruno Haible <bruno@clisp.org>
23899 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23900 gl_AC_TYPE_UINTMAX_T.
23902 2006-09-10 Bruno Haible <bruno@clisp.org>
23904 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23906 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
23908 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23909 convention. Text proposed by Bruno Haible.
23910 (struct argp_option): Document the use of N_() wrappers.
23912 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23913 '\v', and translate the two parts separately, instead of feeding
23914 the whole string to gettext. This allows to exclude
23915 '\v' from the strings visible to the translator by writing doc
23916 strings as N_("..") "\v" N_("..").
23918 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
23920 * config/srclist.txt: Undo latest change; the bug was fixed.
23922 2006-09-09 Bruno Haible <bruno@clisp.org>
23924 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23925 assignments if building a library without libtool.
23926 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23927 in func_emit_lib_Makefile_am.
23928 (func_import): When building a static library libfoo.a, arrange to
23929 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23930 (func_create_testdir): Likewise.
23931 * modules/gc (configure.ac, Makefile.am): If building statically,
23932 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23933 * modules/iconvme (configure.ac, Makefile.am): Likewise.
23934 * modules/striconv (configure.ac, Makefile.am): Likewise.
23935 Based on a suggestion by Ralf Wildenhues.
23937 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23939 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23940 Check for unistd.h too, since Autoconf doesn't assume POSIX.
23943 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23944 Add year_2050_test to catch glibc bug 2821
23945 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23947 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
23948 Prefer #ifdef to #if.
23950 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
23951 Return from 'main' instead of calling 'exit'.
23953 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23955 * lib/mktime.c (guess_time_tm): Fix bug where mktime
23956 returned the maximum time_t value rather than (time_t) -1.
23957 Problem originally reported by William Bardwell
23958 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23960 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23962 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23965 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23967 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23970 2006-09-08 Jim Meyering <jim@meyering.net>
23972 Don't make generated files read-only. That would bother too many
23973 people. However, do retain the ability to work when targets are
23974 read-only: remove the destination and temporary files before writing
23975 them (when generated via sed or echo), or by using the -f option for
23976 both cp and mv commands. Suggestion to use -f from Paul Eggert.
23977 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23978 * modules/byteswap, modules/configmake, modules/fcntl:
23979 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23980 * modules/localcharset, modules/netinet_in, modules/poll:
23981 * modules/stdbool, modules/stdint, modules/sys_select:
23982 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23984 2006-09-08 Jim Meyering <jim@meyering.net>
23986 Avoid new build failure on FreeBSD 6.0.
23987 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23988 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
23989 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23991 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23993 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23995 2006-09-07 Jim Meyering <jim@meyering.net>
23997 Fix global typo in last change: use chmod u-w, not chmod u-x.
23998 Spotted by Paul Eggert and Bruce Korb.
23999 * modules/alloca-opt, modules/argz, modules/arpa_inet:
24000 * modules/byteswap, modules/configmake, modules/fcntl:
24001 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24002 * modules/localcharset, modules/netinet_in, modules/poll:
24003 * modules/stdbool, modules/stdint, modules/sys_select:
24004 * modules/sys_socket, modules/sys_stat, modules/sysexits:
24006 2006-09-06 Jim Meyering <jim@meyering.net>
24008 Make generated files be read-only.
24009 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24010 Ensure that each generated file is now read-only.
24011 * modules/argz: Likewise.
24012 * modules/arpa_inet: Likewise.
24013 * modules/byteswap: Likewise.
24014 * modules/configmake: Likewise.
24015 * modules/fcntl: Likewise.
24016 * modules/fnmatch: Likewise.
24017 * modules/getopt: Likewise.
24018 * modules/glob: Likewise.
24019 * modules/inttypes: Likewise.
24020 * modules/netinet_in: Likewise.
24021 * modules/poll: Likewise.
24022 * modules/stdbool: Likewise.
24023 * modules/stdint: Likewise.
24024 * modules/sys_select: Likewise.
24025 * modules/sys_socket: Likewise.
24026 * modules/sys_stat: Likewise.
24027 * modules/sysexits: Likewise.
24028 * modules/localcharset: Same as above, but continue using temporary
24029 file named "t-$@" (why different?) rather than the "$@-t" used
24032 * modules/sysexits (Makefile.am): Replace literal occurrences
24033 of "sysexit.h" more readable, and more consistent, "$@".
24035 2006-09-06 Bruno Haible <bruno@clisp.org>
24037 * modules/striconv: New file.
24038 * modules/xstriconv: New file.
24039 * MODULES.html.sh (Internationalization functions): Add striconv,
24042 2006-09-06 Bruno Haible <bruno@clisp.org>
24044 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24045 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24046 not using libtool correctly.
24048 2006-09-06 Bruno Haible <bruno@clisp.org>
24050 * lib/striconv.h: New file.
24051 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24053 * lib/xstriconv.h: New file.
24054 * lib/xstriconv.c: New file.
24056 2006-09-06 Bruno Haible <bruno@clisp.org>
24058 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24061 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24063 * lib/argz_.h: Sync from Libtool.
24065 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
24066 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24068 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24070 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
24072 * modules/trim: New file.
24074 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
24076 * lib/trim.h: New file.
24077 * lib/trim.c: New file.
24079 2006-09-05 Bruno Haible <bruno@clisp.org>
24081 * MODULES.html.sh (String handling): Add trim.
24083 2006-09-04 Karl Berry <karl@gnu.org>
24085 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24086 until next release.
24088 2006-09-03 Bruno Haible <bruno@clisp.org>
24090 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24093 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24095 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24096 not gl_GETLOADAVG. Omit unneeded semicolons.
24097 Problems reported by Ralf Wildenhues in
24098 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24099 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
24100 at the end, which is the usual gnulib style.
24102 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24103 of doing all the work ourselves.
24104 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24105 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24107 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24109 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24110 Problem reported by Ralf Wildenhues in
24111 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24113 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24114 HAVE_STRUCT_STATFS_F_FSTYPENAME.
24116 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24118 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24119 yesterday's patch by changing test -n to test -z.
24121 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24123 * modules/getloadavg (Files): Add m4/getloadavg.m4.
24124 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24125 the former is now obsolescent.
24127 * modules/chdir-long (Depends-on): Add fcntl.
24129 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24131 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24132 obsolescent, and programs should use gnulib instead.
24133 * m4/getloadavg.m4: New file, with contents taken from Autoconf
24134 but with prefixes changed.
24136 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24138 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24139 or stdbool.h, because they might not exist while configuring.
24141 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24142 Don't include unistd.h or limits.h; not needed, since chdir-long.h
24144 (O_DIRECTORY): Remove.
24146 2006-08-31 Eric Blake <ebb9@byu.net>
24148 * gnulib-tool: Don't let emacs change spaces to TAB.
24150 2006-08-31 Bruno Haible <bruno@clisp.org>
24152 * gnulib-tool: When calling func_import more than once, do it in a
24154 Reported by Eric Blake <ebb9@byu.net>.
24156 2006-08-31 Bruno Haible <bruno@clisp.org>
24158 * gnulib-tool (nl): Remove variable.
24159 (sed_transform_lib_file): Use more robust test for config-h module.
24160 (func_import): Fix typo in 2006-08-25 patch.
24162 2006-08-31 Bruno Haible <bruno@clisp.org>
24164 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24165 specified, augment Makefile.am variables instead of assigning them.
24167 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24169 Work around a bug in both the Linux and SunOS 64-bit kernels:
24170 nanosleep mishandles sleeps for longer than 2**31 seconds.
24171 Problem reported by Frank v Waveren in
24172 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24173 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24174 Check for nanosleep bug.
24175 (LIB_NANOSLEEP): Append clock_gettime library if needed.
24177 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24179 Work around a bug in both the Linux and SunOS 64-bit kernels:
24180 nanosleep mishandles sleeps for longer than 2**31 seconds.
24181 Problem reported by Frank v Waveren in
24182 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24183 * lib/nanosleep.c (BILLION): New constant.
24184 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24185 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24188 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24190 * modules/nanosleep (Depends-on): Add gettime.
24192 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24193 and Simon Josefsson <jas@extundo.com>
24194 and Oskar Liljeblad <oskar@osk.mine.nu>
24196 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24197 * gnulib-tool (func_import): New license type 'unmodifiable license
24199 * modules/fdl: Use it. Longer description.
24200 * module/gpl, module/lgpl: New files.
24202 2006-08-30 Jim Meyering <jim@meyering.net>
24204 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24205 shadowing the parameter.
24207 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24211 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24213 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24214 sharing with gnulib. Report by Eric Blake.
24216 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24218 * modules/isapipe: New file.
24219 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24221 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24223 * modules/configmake (Makefile.am): Add a comment, and omit
24224 the CONFIGMAKE_ prefix from generated macro names. Suggested
24227 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24229 * m4/isapipe.m4: New file.
24231 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24233 * lib/isapipe.c, lib/isapipe.h: New files.
24235 2006-08-29 Jim Meyering <jim@meyering.net>
24237 * modules/configmake (Makefile.am): Make configmake.h depend on
24238 Makefile. Otherwise, a stale configmake.h could hang around.
24240 2006-08-29 Eric Blake <ebb9@byu.net>
24242 * lib/error.c (error_at_line, print_errno_message): Match libc, after
24243 resolution of upstream bug 3044.
24245 2006-08-29 Bruno Haible <bruno@clisp.org>
24247 * modules/localcharset (Depends-on): Add configmake.
24248 (Makefile.am): Remove setting of LIBDIR through DEFS.
24250 2006-08-29 Bruno Haible <bruno@clisp.org>
24252 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24255 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24257 * modules/fcntl: New file.
24258 * modules/chdir-safer (Depends-on): Add fcntl.
24259 * modules/fts: Likewise.
24260 * modules/mkdir-p: Likewise.
24262 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24263 This undoes the most recent change, since we're now addressing the
24264 problem in a different way.
24266 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24267 into output, since the output might be called Makefile.am even
24268 if $makefile_name is something different.
24269 (func_import): Use $makefile_am rather than
24270 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24273 * modules/inttypes (Files): Add m4/inttypes-h.m4.
24275 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24277 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24278 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
24279 recent change to stdint.m4, since we're now addressing the problem in a
24282 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24284 * m4/fcntl_h.m4: New file.
24286 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24288 * lib/fcntl_.h: New file.
24289 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24291 * lib/dirchownmod.c: Likewise.
24292 * lib/fts.c: Likewise.
24294 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24295 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24296 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24297 just before including <inttypes.h>, to avoid circular inclusion.
24299 2006-08-28 Jim Meyering <jim@meyering.net>
24301 * doc/visibility.texi: Actually read and correct the grammar of the
24302 sentence affected by yesterday's change.
24304 2006-08-28 Eric Blake <ebb9@byu.net>
24306 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24309 2006-08-28 Eric Blake <ebb9@byu.net>
24311 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24313 2006-08-28 Eric Blake <ebb9@byu.net>
24315 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24317 2006-08-28 Bruno Haible <bruno@clisp.org>
24319 * modules/c-strstr: New file, from GNU gettext.
24320 * MODULES.html.sh (String handling): Add c-strstr.
24322 2006-08-28 Bruno Haible <bruno@clisp.org>
24324 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24326 Reported by Eric Blake.
24328 2006-08-28 Bruno Haible <bruno@clisp.org>
24330 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24331 (VASNPRINTF): Return a string of length > INT_MAX without failing.
24332 * lib/vasprintf.c: Include errno.h, limits.h.
24333 (EOVERFLOW): New fallback definition.
24334 (vasprintf): Test here whether the string length is > INT_MAX.
24335 * lib/vsnprintf.c: Include errno.h, limits.h.
24336 (EOVERFLOW): New fallback definition.
24337 (vsnprintf): Fix bug when generated string was too long for the buffer.
24338 Test here whether the string length is > INT_MAX.
24340 2006-08-28 Bruno Haible <bruno@clisp.org>
24342 * lib/inttypes_.h (SCNX*): Remove definitions.
24343 Reported by Eric Blake.
24345 2006-08-28 Bruno Haible <bruno@clisp.org>
24347 * lib/c-strstr.h: New file, from GNU gettext.
24348 * lib/c-strstr.c: New file, from GNU gettext.
24350 2006-08-28 Bruno Haible <bruno@clisp.org>
24352 * gnulib-tool: Reorder some statements.
24354 2006-08-28 Bruno Haible <bruno@clisp.org>
24356 * gnulib-tool: New option --makefile-name.
24357 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24359 (func_import): Write $makefile_name to the cache file, and read it from
24360 there unless explicitly specified. Use $makefile_name as file name
24361 instead of Makefile.am. Adjust the recommendations accordingly.
24363 2006-08-28 Bruno Haible <bruno@clisp.org>
24365 * gnulib-tool (func_verify_module): Check against misapplying patch.
24367 2006-08-28 Bruno Haible <bruno@clisp.org>
24369 * gnulib-tool (func_relativize, func_relconcat): New functions.
24370 Give an error if --local-dir is given with --update.
24371 Remove trailing slashes from $local_gnulib_dir.
24372 (func_import): Store the relativized $local_gnulib_dir in
24373 gnulib-cache.m4, and read it from there if not specified explicitly.
24375 2006-08-28 Bruno Haible <bruno@clisp.org>
24377 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24378 is the current directory. Respect also $local_gnulib_dir.
24380 2006-08-28 Bruno Haible <bruno@clisp.org>
24381 Simon Josefsson <jas@extundo.com>
24384 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24386 2006-08-27 Jim Meyering <jim@meyering.net>
24388 * doc/visibility.texi: Remove duplicate word: "pointer".
24390 2006-08-26 Bruno Haible <bruno@clisp.org>
24392 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24393 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24394 (Makefile.am): Create inttypes.h from inttypes_.h.
24395 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24397 * modules/imaxabs: New file.
24399 * modules/imaxdiv: New file.
24401 2006-08-26 Bruno Haible <bruno@clisp.org>
24403 * m4/inttypes.m4: New file.
24404 * m4/_inttypes_h.m4: Remove file.
24405 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24407 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24409 * m4/imaxabs.m4: New file.
24411 * m4/imaxdiv.m4: New file.
24413 2006-08-26 Bruno Haible <bruno@clisp.org>
24415 * lib/inttypes_.h: New file.
24416 * lib/inttypes.h: Remove file.
24417 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24419 * lib/imaxabs.c: New file.
24421 * lib/imaxdiv.c: New file.
24423 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
24425 New config-h module, so that "make" output needn't be cluttered
24426 by -DHAVE_CONFIG_H.
24427 * MODULES.html.sh (Support for building libraries and executables):
24429 * modules/config-h: New file.
24430 * gnulib-tool (nl, sed_transform_lib_file): New vars.
24431 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24432 the config-h module is used.
24434 New configmake module, so that "make" output needn't be cluttered
24435 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24436 * MODULES.html.sh (Support for building libraries and executables):
24438 * modules/configmake: New file.
24440 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
24442 * m4/config-h.m4: New file.
24444 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
24446 * config/srclist.txt: Add elisp-comp.
24448 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
24450 * MODULES.html.sh (Support for building libraries and executables):
24452 * build-aux/elisp-comp: New file.
24453 * modules/elisp-comp: New file.
24455 2006-08-24 Bruno Haible <bruno@clisp.org>
24457 * gnulib-tool (func_create_testdir): Use non-default values of
24458 sourcebase and m4base.
24460 2006-08-24 Bruno Haible <bruno@clisp.org>
24462 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24465 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
24467 * modules/openat (Depends-on): Add lchown.
24469 2006-08-23 Bruno Haible <bruno@clisp.org>
24471 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24472 of gl_LOCK_EARLY instead of gl_LOCK.
24474 2006-08-23 Bruno Haible <bruno@clisp.org>
24476 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24478 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24480 2006-08-23 Bruno Haible <bruno@clisp.org>
24482 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24485 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24486 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24487 (gl_LOCK): New macro.
24489 2006-08-22 Simon Josefsson <jas@extundo.com>
24491 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24494 2006-08-22 Simon Josefsson <jas@extundo.com>
24496 * MODULES.html.sh: Add "Support for maintaining and release
24499 * build-aux/gnupload: New file, from coreutils.
24501 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24503 Avoid the need for AC_LIBSOURCES in m4 macros.
24504 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24505 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24506 * modules/check-version (EXTRA_DIST): Add check-version.h.
24507 * modules/crc (EXTRA_DIST): Add crc.h.
24508 * modules/des (EXTRA_DIST): Add des.h.
24509 * modules/gc (EXTRA_DIST): Add gc.h.
24510 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24511 * modules/getline (EXTRA_DIST): Add getline.h.
24512 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24513 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24514 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24515 * modules/md2 (EXTRA_DIST): Add md2.h.
24516 * modules/md4 (EXTRA_DIST): Add md4.h.
24517 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24518 * modules/read-file (EXTRA_DIST): Add read-file.h.
24519 * modules/readline (EXTRA_DIST): Add readline.h.
24520 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24521 rijndael-api-fst.h.
24523 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24525 * m4/rijndael.m4 (gl_ARCFOUR):
24526 * m4/arctwo.m4 (gl_ARCTWO):
24527 * m4/check-version.m4 (gl_CHECK_VERSION):
24528 * m4/crc.m4 (gl_CRC):
24529 * m4/des.m4 (gl_DES):
24530 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24531 * m4/gc.m4 (gl_GC):
24532 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24533 * m4/getline.m4 (gl_FUNC_GETLINE):
24534 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24535 * m4/hmac-md5.m4 (gl_HMAC_MD5):
24536 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24537 * m4/md2.m4 (gl_MD2):
24538 * m4/md4.m4 (gl_MD4):
24539 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24540 * m4/read-file.m4 (gl_FUNC_READ_FILE):
24541 * m4/readline.m4 (gl_FUNC_READLINE):
24542 * m4/rijndael.m4 (gl_RIJNDAEL):
24543 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24544 to get the necessary .h files and whatnot.
24546 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24548 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24549 gnulib rather than the other way around.
24550 * config/srclistvars.sh (COREUTILS): Remove.
24552 2006-08-22 Jim Meyering <jim@meyering.net>
24554 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24556 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24558 2006-08-22 Eric Blake <ebb9@byu.net>
24560 * modules/regexprops-generic: New file.
24561 * MODULES.html.sh (Support for building documentation): List it.
24563 2006-08-22 Eric Blake <ebb9@byu.net>
24565 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24566 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24567 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24568 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24570 2006-08-22 Bruno Haible <bruno@clisp.org>
24572 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24573 and lib_LTLIBRARIES like the other lib_* variables.
24575 2006-08-22 Bruno Haible <bruno@clisp.org>
24577 * build-aux/x-to-1.in: New file, from GNU gettext.
24579 2006-08-22 Bruno Haible <bruno@clisp.org>
24581 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24584 2006-08-22 Bruno Haible <bruno@clisp.org>
24586 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24589 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24592 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24594 Problem reported by Bruno Haible.
24596 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24598 Avoid the need for AC_LIBSOURCES in m4 macros.
24599 * modules/acl (EXTRA_DIST): Add acl.h.
24600 * modules/argmatch (Files): Add m4/argmatch.m4.
24601 (configure.ac): Add gl_ARGMATCH.
24602 (EXTRA_DIST): Renamed from lib_SOURCES, for
24603 consistency with the other modules. Remove argmatch.c.
24604 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24605 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24606 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24607 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24608 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24609 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24610 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24611 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24612 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24613 * modules/closeout (EXTRA_DIST): Add closeout.h.
24614 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24615 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24616 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24617 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
24618 dirname.h; remove basename.c and stripslash.c.
24619 * modules/exclude (EXTRA_DIST): Add exclude.h.
24620 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24621 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24622 * modules/file-type (EXTRA_DIST): Add file-type.h.
24623 * modules/filemode (EXTRA_DIST): Add filemode.h.
24624 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24625 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24626 * modules/fpending (EXTRA_DIST): Add __fpending.h.
24627 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24628 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24629 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24630 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24631 * modules/getdate (EXTRA_DIST): Add getdate.c.
24632 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24633 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24634 * modules/getpass (EXTRA_DIST): Add getpass.h.
24635 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24636 * modules/group-member (EXTRA_DIST): Add group-member.h.
24637 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24638 * modules/hash (EXTRA_DIST): Add hash.h.
24639 * modules/human (EXTRA_DIST): Add human.h.
24640 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24641 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24642 * modules/lchown (EXTRA_DIST): Add lchown.h.
24643 * modules/long-options (EXTRA_DIST): Add long-options.h.
24644 * modules/lstat (EXTRA_DIST): Add lstat.h.
24645 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24646 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24647 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24648 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24649 * modules/memxor (EXTRA_DIST): Add memxor.h.
24650 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24651 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24652 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24653 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24654 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24655 * modules/physmem (EXTRA_DIST): Add physmem.h.
24656 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24657 * modules/posixver (EXTRA_DIST): Add posixver.h.
24658 * modules/quote (EXTRA_DIST): Add quote.h.
24659 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24660 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24661 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24662 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24663 regex_internal.h regexec.c.
24664 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24665 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24666 * modules/same (EXTRA_DIST): Add same.h.
24667 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24668 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24669 * modules/savedir (EXTRA_DIST): Add savedir.h.
24670 * modules/sha1 (EXTRA_DIST): Add sha1.h.
24671 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24672 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24673 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24674 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24675 * modules/strdup (EXTRA_DIST): Add strdup.h.
24676 * modules/strftime (EXTRA_DIST): Add strftime.h.
24677 * modules/strndup (EXTRA_DIST): Add strndup.h.
24678 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24679 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24680 * modules/time_r (EXTRA_DIST): Add time_r.h.
24681 * modules/timespec (EXTRA_DIST): Add timespec.h.
24682 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24683 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24684 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24685 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24686 * modules/userspec (EXTRA_DIST): Add userspec.h.
24687 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24688 * modules/utimens (EXTRA_DIST): Add utimens.h.
24689 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24690 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24691 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24692 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24693 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24694 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24695 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24696 * modules/yesno (EXTRA_DIST): Add yesno.h.
24698 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24700 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24702 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24703 * m4/dev-ino.m4, same-inode.m4: Remove.
24705 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24706 * m4/acl.m4 (AC_FUNC_ACL):
24707 * m4/backupfile.m4 (gl_BACKUPFILE):
24708 * m4/c-strtod.m4 (gl_C99_STRTOLD):
24709 * m4/canon-host.m4 (gl_CANON_HOST):
24710 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24711 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24712 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24713 * m4/cloexec.m4 (gl_CLOEXEC):
24714 * m4/close-stream.m4 (gl_CLOSE_STREAM):
24715 * m4/closeout.m4 (gl_CLOSEOUT):
24716 * m4/dirfd.m4 (gl_FUNC_DIRFD):
24717 * m4/dirname.m4 (gl_DIRNAME):
24718 * m4/exclude.m4 (gl_EXCLUDE):
24719 * m4/exitfail.m4 (gl_EXITFAIL):
24720 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24721 * m4/file-type.m4 (gl_FILE_TYPE):
24722 * m4/filemode.m4 (gl_FILEMODE):
24723 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24724 * m4/fpending.m4 (gl_FUNC_FPENDING):
24725 * m4/fprintftime.m4 (gl_FPRINTFTIME):
24726 * m4/fts.m4 (gl_FUNC_FTS):
24727 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24728 * m4/getdate.m4 (gl_GETDATE):
24729 * m4/gethrxtime.m4 (gl_GETHRXTIME):
24730 * m4/getpagesize.m4 (gl_GETPAGESIZE):
24731 * m4/getpass.m4 (gl_FUNC_GETPASS):
24732 * m4/gettime.m4 (gl_GETTIME):
24733 * m4/getugroups.m4 (gl_GETUGROUPS):
24734 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24735 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24736 * m4/hard-locale.m4 (gl_HARD_LOCALE):
24737 * m4/hash.m4 (gl_HASH):
24738 * m4/idcache.m4 (gl_IDCACHE):
24739 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24740 * m4/lchown.m4 (gl_FUNC_LCHOWN):
24741 * m4/long-options.m4 (gl_LONG_OPTIONS):
24742 * m4/lstat.m4 (gl_FUNC_LSTAT):
24743 * m4/md5.m4 (gl_MD5):
24744 * m4/memcasecmp.m4 (gl_MEMCASECMP):
24745 * m4/memcoll.m4 (gl_MEMCOLL):
24746 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24747 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24748 * m4/memxor.m4 (gl_MEMXOR):
24749 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24750 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24751 * m4/modechange.m4 (gl_MODECHANGE):
24752 * m4/mountlist.m4 (gl_MOUNTLIST):
24753 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24754 * m4/openat.m4 (gl_FUNC_OPENAT):
24755 * m4/pathmax.m4 (gl_PATHMAX):
24756 * m4/physmem.m4 (gl_PHYSMEM):
24757 * m4/posixtm.m4 (gl_POSIXTM):
24758 * m4/posixver.m4 (gl_POSIXVER):
24759 * m4/quote.m4 (gl_QUOTE):
24760 * m4/quotearg.m4 (gl_QUOTEARG):
24761 * m4/readtokens.m4 (gl_READTOKENS):
24762 * m4/readutmp.m4 (gl_READUTMP):
24763 * m4/regex.m4 (gl_REGEX):
24764 * m4/safe-read.m4 (gl_SAFE_READ):
24765 * m4/safe-write.m4 (gl_SAFE_WRITE):
24766 * m4/same.m4 (gl_SAME):
24767 * m4/save-cwd.m4 (gl_SAVE_CWD):
24768 * m4/savedir.m4 (gl_SAVEDIR):
24769 * m4/settime.m4 (gl_SETTIME):
24770 * m4/sha1.m4 (gl_SHA1):
24771 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24772 * m4/stat-macros.m4 (gl_STAT_MACROS):
24773 * m4/stat-time.m4 (gl_STAT_TIME):
24774 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24775 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24776 * m4/strdup.m4 (gl_FUNC_STRDUP):
24777 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24778 * m4/strndup.m4 (gl_FUNC_STRNDUP):
24779 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24780 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24781 * m4/time_r.m4 (gl_TIME_R):
24782 * m4/timespec.m4 (gl_TIMESPEC):
24783 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24784 * m4/unlinkdir.m4 (gl_UNLINKDIR):
24785 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24786 * m4/userspec.m4 (gl_USERSPEC):
24787 * m4/utimecmp.m4 (gl_UTIMECMP):
24788 * m4/utimens.m4 (gl_UTIMENS):
24789 * m4/xalloc.m4 (gl_XALLOC):
24790 * m4/xgetcwd.m4 (gl_XGETCWD):
24791 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24792 * m4/xreadlink.m4 (gl_XREADLINK):
24793 * m4/xstrtod.m4 (gl_XSTRTOD):
24794 * m4/yesno.m4 (gl_YESNO):
24795 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24796 to get the necessary .h files and whatnot.
24798 2006-08-21 Mark D. Baushke <mdb@gnu.org>
24799 Bruno Haible <bruno@clisp.org>
24801 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24802 /bin/sh understanding of '!' conditional negation.
24804 2006-08-21 Jim Meyering <jim@meyering.net>
24806 * modules/openat (Depends-on): Really alphabetize.
24808 * modules/acl (Depends-on): Add error and quote.
24810 * check-module (find_included_lib_files): Add at-func.c to the
24811 ok-to-include-more-than-once white list.
24813 * modules/openat (Depends-on): Add lstat. Alphabetize.
24815 2006-08-21 Bruno Haible <bruno@clisp.org>
24817 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24818 Emit a pkgdata_DATA variable only if some snippets add contents to it.
24819 Reported by Martin Lambers <marlam@marlam.de>.
24821 2006-08-21 Bruno Haible <bruno@clisp.org>
24823 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24824 specify an installation location, don't emit a noinst_LIBRARIES or
24825 noinst_LTLIBRARIES assignment.
24827 2006-08-21 Bruno Haible <bruno@clisp.org>
24830 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24831 BeOS has mbrtowc() but no <wctype.h>.
24833 2006-08-21 Bruno Haible <bruno@clisp.org>
24836 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24839 2006-08-21 Bruno Haible <bruno@clisp.org>
24842 * lib/mbchar.h: Include <wctype.h> only if it exists.
24844 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24846 Remove files that are no longer needed by their respective modules.
24847 * m4/obstack.m4: Remove.
24848 * m4/strerror_r.m4: Remove.
24849 * m4/uint32_t.m4: Remove.
24850 * m4/uintptr_t.m4: Remove.
24851 * m4/ullong_max.m4: Remove.
24852 * m4/xstrtoimax.m4: Remove.
24853 * m4/xstrtoumax.m4: Remove.
24855 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24856 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24857 dependencies now capture this.
24859 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24860 Do not use AC_LIBSOURCES, since gnulib modules now do this.
24861 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24862 * m4/human.m4 (gl_HUMAN): Likewise.
24863 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24864 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24866 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24868 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24869 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24871 * m4/human.m4 (gl_HUMAN): Likewise.
24872 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24873 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24874 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24875 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24876 * m4/xstrtol (gl_XSTRTOL): Likewise.
24878 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24879 AC_TYPE_LONG_LONG_INT.
24880 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24881 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24882 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24883 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24885 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24888 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24889 (gl_PREREQ_XSTRTOUL): Remove.
24891 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24893 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24896 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24898 Add and change modules to make it easier for coreutils to use
24900 * modules/backupfile (Files): Remove m4/d-ino.m4.
24901 (Depends-on): Add d-ino.
24902 * modules/cycle-check (Depends-on): Add stdint.
24903 (lib_SOURCES): Add cycle-check.h.
24904 * modules/d-ino: New module.
24905 * modules/d-type: New module.
24906 * modules/error (Files): Remove m4/strerror_r.m4.
24907 * modules/filemode (Files): Add m4/st_dm_mode.m4.
24908 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24909 m4/inttypes_h.m4, m4/uintmax_t.m4.
24910 (Depends-on): Add stdint.
24911 (lib_SOURCES): Add fsusage.h.
24912 * modules/getcwd (Files): Remove d-ino.m4.
24913 (Depends-on): Add d-ino.
24914 * modules/getndelim2 (Depends-on): Add stdint.
24915 * modules/glob (Files): Remove m4/d-type.m4.
24916 (Depends-on): Add d-type.
24917 * modules/host-os: New module.
24918 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24919 m4/inttypes_h.m4, m4/uintmax_t.m4.
24920 * Depends-on: Add stdint.
24921 (lib_SOURCES): Add human.h.
24922 * modules/inttostr (Files): Remove m4/intmax_t.m4,
24923 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24924 m4/uintmax_t.m4, m4/ulonglong.m4.
24925 (Depends-on): Add stdint.
24926 (EXTRA_DIST): Add inttostr.h.
24927 * modules/lchmod: New module.
24928 * modules/link-follow: New module.
24929 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24930 (Depends-on): Add lchmod.
24931 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24932 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24933 (Depends-on): Add stdint.
24934 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24935 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24936 (Depends-on): Add stdint.
24937 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24938 * modules/perl: New module.
24939 * modules/regex (Depends-on): Add stdint.
24940 * modules/rmdir-errno: New module.
24941 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24943 (Depends-on): Add stdint.
24944 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24946 (Depends-on): Add stdint.
24947 * modules/unlink-busy: New module.
24948 * modules/utimecmp (Depends-on): Add stdint.
24949 * modules/uptime: New module.
24950 * modules/winsz-ioctl: New module.
24951 * modules/winsz-termios: New module.
24952 * modules/xnanosleep (Depends-on): Add nanosleep.
24953 * modules/ullong_max: Remove.
24954 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24955 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24956 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24957 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24958 (Depends-on): Add inttypes.
24959 (lib_SOURCES): Add xstrtol.h.
24960 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24961 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24962 * MODULES.html.sh: Move 'assert' into the assert section.
24963 Move 'dummy' into the linking section.
24965 Add section for compatibility checks for POSIX:2001 functions,
24966 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24967 winsz-ioctl, and winsz-termios into it.
24969 Add top-level Misc section and put host-os, perl, and uptime
24972 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24974 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24975 now assume the stdint module. Do not include inttypes.h.
24976 * lib/fsusage.h: Likewise.
24977 * lib/getndelim2.c: Likewise.
24978 * lib/human.h: Likewise.
24979 * lib/inttostr.h: Likewise.
24980 * lib/obstack.c: Likewise.
24981 * lib/regex_internal.h: Likewise.
24982 * lib/tempname.c: Likewise.
24983 * lib/utimecmp.c: Likewise.
24984 * lib/xstrtol.h: Likewise.
24986 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24988 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24989 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24990 * lib/xtime.h: Likewise.
24992 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24994 * modules/openat (Files): Add lib/fchmodat.c.
24995 Fixes problem reported by Jay Youngman.
24997 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24999 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
25000 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
25002 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
25003 Bruno Haible <bruno@clisp.org>
25005 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25006 and is a script that invokes bison. Tighten the code. Add comments.
25008 2006-08-18 Jim Meyering <jim@meyering.net>
25010 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25011 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25012 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
25013 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25015 2006-08-18 Bruno Haible <bruno@clisp.org>
25017 * modules/bison-i18n: New file.
25018 * MODULES.html.sh (Internationalization functions): Add it.
25020 2006-08-18 Bruno Haible <bruno@clisp.org>
25022 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25023 sys/statvfs.h. When getmntinfo was found, check its declaration and
25024 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25026 2006-08-18 Bruno Haible <bruno@clisp.org>
25028 * m4/bison-i18n.m4: New file, from bison.
25030 2006-08-18 Bruno Haible <bruno@clisp.org>
25032 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25033 (ME_DUMMY): Treat "kernfs" as a dummy.
25034 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25036 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
25038 Update from coreutils.
25040 2006-08-15 Jim Meyering <jim@meyering.net>
25042 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25044 2006-01-17 Jim Meyering <jim@meyering.net>
25046 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25048 2006-01-11 Jim Meyering <jim@meyering.net>
25050 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25051 Check for the lchmod function.
25053 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
25055 Update from coreutils.
25057 * lib/__fpending.h: Add copyright notice.
25058 * lib/fprintftime.h: Likewise.
25059 * lib/savedir.c: Use (C) in copyright notice.
25060 * lib/savedir.h: Likewise.
25062 2006-08-15 Jim Meyering <jim@meyering.net>
25064 * lib/at-func.c: New file, with the logic of all emulated at-functions.
25065 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25066 in support of the EXPECTED_ERRNO macro.
25067 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25068 definitions. Instead, define the appropriate symbols and include
25070 * lib/mkdirat.c (mkdirat): Likewise.
25071 * lib/fchmodat.c (fchmodat): Likewise.
25072 (ENOSYS): Remove definition.
25073 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25074 it. Don't include "unistd--.h" -- it wasn't ever used.
25076 2006-01-17 Jim Meyering <jim@meyering.net>
25078 Rewrite fts.c not to change the current working directory,
25079 by using openat, fstatat, fdopendir, etc..
25081 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25082 (HAVE_OPENAT_SUPPORT): Define.
25083 [_LIBC] (fchdir): Don't undef or define; no longer used.
25084 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25085 Now, this `function' always succeeds, and consumes its file descriptor
25086 parameter -- so callers must not close such FDs. Update callers.
25087 (diropen_fd, opendirat, cwd_advance_fd): New functions.
25088 (diropen): Add parameter, SP. Adjust all callers.
25089 Implement using diropen_fd, rather than open.
25090 (fts_open): Initialize new member, fts_cwd_fd.
25091 Remove fts_rft-setting code.
25092 (fts_close): Close fts_cwd_fd, if necessary.
25093 (__opendir2): Define in terms of opendir or opendirat,
25094 depending on whether the FST_NOCHDIR flag is set.
25095 (fts_build): Since fts_safe_changedir consumes its FD, and since
25096 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25097 and close the dup'd file descriptor upon failure.
25098 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25099 (fts_safe_changedir): Tweak semantics to reflect that this function
25100 now calls cwd_advance_fd and hence consumes its FD argument.
25101 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25102 [struct FTS] (fts_rft): Remove now-unused member.
25103 [struct FTS] (fts_cycle.state): Improve comment.
25105 * lib/openat.c (openat_needs_fchdir): New function.
25106 * lib/openat.h (openat_needs_fchdir): Declare it.
25108 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
25110 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25111 Problem and fix reported by Pádraig Brady in
25112 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25114 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25116 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25118 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25120 * lib/memcoll.c (memcoll): Optimize for the common case where the
25121 arguments are bytewise equal.
25123 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25125 * doc/regexprops-generic.texi: Add a copyright notice.
25127 2006-08-15 Bruno Haible <bruno@clisp.org>
25129 * modules/tmpdir (License): Change to LGPL.
25131 2006-08-15 Bruno Haible <bruno@clisp.org>
25133 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25136 2006-08-14 Simon Josefsson <jas@extundo.com>
25138 * config/srclist.txt: Add gnupload.
25140 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25142 Change copyright notice from LGPL 2 to GPL 2, since that's the
25143 standard form used in the gnulib repository.
25144 * tests/test-lock.c: Likewise.
25145 * tests/test-stdint.c: Likewise.
25146 * tests/test-tls.c: Likewise.
25148 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25149 prelude-manager. User shorter URLs for GNU projects, without '?'.
25150 Add copyright notice.
25152 * check-module: Add copyright notice. Output a copyright
25153 notice if "--version" is specified.
25154 * modules/COPYING: New file.
25155 * tests/test-getaddrinfo.c: Add copyright notice.
25156 * tests/test-verify.c: Likewise.
25158 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25160 Change copyright notice from LGPL 2 to GPL 2, since that's the
25161 standard form used in the gnulib repository.
25162 * lib/lock.c: LGPL -> GPL.
25163 * lib/lock.h: Likewise.
25164 * lib/strnlen1.c: Likewise.
25165 * lib/strnlen1.h: Likewise.
25166 * lib/tls.c: Likewise.
25167 * lib/tls.h: Likewise.
25168 * lib/tmpdir.c: Likewise.
25170 * lib/TODO: Remove; this belongs only in coreutils.
25172 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25174 Add copyright notices to long-enough files that lack them, since
25175 otherwise the files aren't clearly free. Use the same notice that
25176 getdate.texi already uses.
25177 * doc/alloca-opt.texi: Add copyright notice.
25178 * doc/alloca.texi: Likewise.
25179 * doc/ctime.texi: Likewise.
25180 * doc/functions.texi: Likewise.
25181 * doc/gcd.texi: Likewise.
25182 * doc/gnulib-tool.texi: Likewise.
25183 * doc/inet_ntoa.texi: Likewise.
25184 * doc/visibility.texi: Likewise.
25186 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25187 * doc/quote.texi: Add copyright notice.
25189 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25190 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
25191 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
25192 Mention SunOS 5.11. Mention that everything before SunOS 5.7
25193 is now obsolete, and give a pointer to the Sun list.
25194 Add copyright notice.
25196 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25198 * config/srclistvars.sh: Add copyright notice.
25200 2006-08-14 Eric Blake <ebb9@byu.net>
25202 Import the following change from libc:
25204 2006-08-12 Ulrich Drepper <drepper@redhat.com>
25207 * lib/misc/error.c: Add space between program name and message if file
25210 2006-08-12 Karl Berry <karl@gnu.org>
25212 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25213 remove, these originate in gnulib now.
25215 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25217 * doc/Makefile (standards.info standards.html standards.dvi):
25218 Also depend on make-stds.texi.
25220 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
25222 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25223 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
25225 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25226 in wchar_t. Problem reported by Eric Blake.
25228 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25229 LEN is smaller than SIZE. Suggested by Bruno Haible.
25230 Also, help the compiler to keep LEN in a register.
25232 2006-08-11 Eric Blake <ebb9@byu.net>
25234 * users.txt: Sort. Add tar.
25236 2006-08-11 Bruno Haible <bruno@clisp.org>
25238 * users.txt: New file.
25240 2006-08-11 Bruno Haible <bruno@clisp.org>
25242 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25243 before <wchar.h>. Needed for OSF/1 and BSD/OS.
25245 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
25247 * modules/snprintf (Depends-on): Remove minmax.
25248 (Maintainer): Add self and Bruno.
25250 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
25252 * lib/.cppi-disable: Add snprintf.h, socket_.h.
25253 * lib/snprintf.c: Include <errno.h> and <limits.h>.
25254 (EOVERFLOW): Define if the system does not.
25255 Do not include "minmax.h"; it wasn't used.
25256 (snprintf): Don't assume size_t promotes to an unsigned type.
25257 Fix bug when generated string was too long for the buffer: the
25258 buffer's contents are supposed to be the initial prefix of the
25259 output. Don't assume vasnprintf returns EOVERFLOW if the size
25260 exceeds INT_MAX; do the check ourselves.
25262 Import the following changes from libc:
25264 2006-06-02 Jakub Jelinek <jakub@redhat.com>
25266 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25267 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
25268 set wc to the byte which couldn't be converted.
25269 (re_string_reconstruct): Don't clear valid_raw_len before calling
25270 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
25271 tip_context using re_string_context_at.
25273 2006-05-02 Ulrich Drepper <drepper@redhat.com>
25275 * lib/posix/regex.h: g++ still cannot handled [restrict].
25277 2006-04-21 Ulrich Drepper <drepper@redhat.com>
25279 * lib/posix/regex.h: Remove special handling for VMS.
25281 2006-08-10 Jim Meyering <jim@meyering.net>
25283 * modules/same-inode: New module.
25284 * modules/dev-ino: New module.
25285 * modules/cycle-check: Depend on these modules, rather than simply
25286 including their .h files.
25287 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25288 required via m4/cycle-check.m4.
25289 * modules/same: Depend on new same-inode module, rather than
25290 including same-inode.h.
25291 * modules/chdir-safer: New file.
25293 * modules/chown (Depends-on): Add stat-macros.
25295 2006-08-10 Jim Meyering <jim@meyering.net>
25297 * m4/cycle-check.m4: New file.
25298 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25299 * m4/dev-ino.m4, m4/same-inode.m4: New files.
25301 2006-08-10 Eric Blake <ebb9@byu.net>
25303 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25304 in from original proposal.
25306 2006-08-10 Eric Blake <ebb9@byu.net>
25307 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25309 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25312 2006-08-10 Bruno Haible <bruno@clisp.org>
25314 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25317 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25319 Sync from coreutils.
25321 2006-07-19 Mike Frysinger <vapier@gentoo.org>
25323 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25324 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25326 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25328 * modules/restrict: Remove; no longer needed now that we assume
25329 Autoconf 2.59 or later.
25330 * MODULES.html.sh: Remove 'restrict'.
25331 * modules/argp (Depends-on): Remove 'restrict'.
25332 * modules/base64 (Depends-on): Likewise.
25333 * modules/gc (Depends-on): Likewise.
25334 * modules/getaddrinfo (Depends-on): Likewise.
25335 * modules/glob (Depends-on): Likewise.
25336 * modules/inet_ntop (Depends-on): Likewise.
25337 * modules/inet_pton (Depends-on): Likewise.
25338 * modules/memxor (Depends-on): Likewise.
25339 * modules/regex (Depends-on): Likewise.
25340 * modules/strtok_r (Depends-on): Likewise.
25341 * modules/time_r (Depends-on): Likewise.
25343 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25345 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25346 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25347 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25348 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25349 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25350 * m4/memxor.m4 (gl_MEMXOR): Likewise.
25351 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
25352 gl_C_RESTRICT replaced by AC_C_RESTRICT.
25354 Merge from coreutils.
25355 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25356 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25357 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25358 * m4/time_r.m4 (gl_TIME_R): Likewise.
25360 2006-08-09 Karl Berry <karl@gnu.org>
25362 * config/srclist.txt: no more gettext-tools, per Bruno.
25364 2006-08-08 Eric Blake <ebb9@byu.net>
25366 * modules/verror: New module.
25367 * MODULES.html.sh: Document it.
25369 2006-08-08 Eric Blake <ebb9@byu.net>
25371 * lib/verror.h, lib/verror.c: New files.
25373 2006-08-08 Eric Blake <ebb9@byu.net>
25375 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25376 verror_at_line output complies with GNU Coding Standards even when
25379 2006-08-07 Bruno Haible <bruno@clisp.org>
25381 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25383 Reported by Ralf Wildenhues.
25385 2006-08-07 Bruno Haible <bruno@clisp.org>
25387 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25388 in an AC_DEFUN. Needed so that the autoconf snippets can use
25391 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25393 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25394 Initialize pkgdata_DATA.
25395 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25398 2006-08-06 Eric Blake <ebb9@byu.net>
25400 * lib/error.h: Fold in some upstream changes from glibc.
25401 * lib/error.c: Likewise.
25403 2006-08-04 Bruno Haible <bruno@clisp.org>
25405 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25406 Make the mostlyclean-local rule depend on mostlyclean-generic.
25407 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25409 2006-07-31 Bruno Haible <bruno@clisp.org>
25411 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25412 <stdlib.h>, <string.h>.
25414 2006-07-30 Bruno Haible <bruno@clisp.org>
25416 * modules/readlink (License): Change to LGPL.
25418 2006-07-30 Bruno Haible <bruno@clisp.org>
25420 * modules/javaversion (Makefile.am): Distribute javaversion.java and
25421 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25422 set PKGDATADIR to point to it.
25424 2006-07-30 Bruno Haible <bruno@clisp.org>
25426 * modules/csharpexec (configure.ac): Comment out macro invocation.
25427 * modules/javaexec (configure.ac): Likewise.
25428 * modules/javacomp-script (configure.ac): Likewise.
25430 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25432 2006-07-30 Bruno Haible <bruno@clisp.org>
25434 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25437 2006-07-30 Bruno Haible <bruno@clisp.org>
25439 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25441 2006-07-30 Bruno Haible <bruno@clisp.org>
25443 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25444 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25447 2006-07-29 Bruno Haible <bruno@clisp.org>
25449 Make it possible for gnulib-tool to work with locally modified or
25450 augmented gnulib repositories.
25451 * gnulib-tool (func_usage): Document --local-dir option.
25452 (local_gnulib_dir): New variable.
25453 Handle --local-dir option.
25454 (func_lookup_file): New function.
25455 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25456 (func_get_description, func_get_filelist, func_get_description,
25457 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25458 func_get_automake_snippet, func_get_include_directive,
25459 func_get_license, func_get_maintainer): Use func_lookup_file.
25460 (func_import, func_create_testdir): Use func_lookup_file.
25462 2006-07-29 Bruno Haible <bruno@clisp.org>
25464 * modules/setenv (Depends-on): Add unistd.
25466 2006-07-29 Bruno Haible <bruno@clisp.org>
25468 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25470 2006-07-29 Bruno Haible <bruno@clisp.org>
25472 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25474 2006-07-29 Bruno Haible <bruno@clisp.org>
25476 * gnulib-tool (import, update): If there is no Makefile.am, look at
25477 aclocal.m4, instead of bailing out.
25479 2006-07-29 Bruno Haible <bruno@clisp.org>
25481 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25482 Categorize the options by when they are useful.
25484 2006-07-29 Bruno Haible <bruno@clisp.org>
25486 * gnulib-tool (func_usage): Document option --no-libtool.
25487 Handle option --no-libtool.
25488 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25489 for changed semantics of $libtool variable.
25490 (func_import): Likewise. If libtool is not used, show this through
25491 an option --no-libtool.
25492 (func_create_testdir): Update.
25494 2006-07-29 Bruno Haible <bruno@clisp.org>
25496 * gnulib-tool (func_import): Extend error message about missing
25499 2006-07-29 Bruno Haible <bruno@clisp.org>
25501 * gnulib-tool (func_import): Don't create the $docbase directory if
25502 there is no file to store there.
25504 2006-07-29 Bruno Haible <bruno@clisp.org>
25506 * gnulib-tool (autoconf_minversion): If a --dir option is given and
25507 relevant, look for configure.ac there, not in the current directory.
25508 Also use a simple search for AC_PREREQ, not "autoconf --trace".
25510 2006-07-29 Bruno Haible <bruno@clisp.org>
25512 * gnulib-tool (SORT): New variable.
25513 (func_usage): Undocument --assume-autoconf option.
25514 Remove --assume-autoconf option handling.
25515 (autoconf_minversion): Determine from the contents of configure.ac.
25516 (func_import): Remove autoconf_minversion handling.
25517 Suggested by Eric Blake.
25519 2006-07-29 Bruno Haible <bruno@clisp.org>
25521 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25523 2006-07-29 Bruno Haible <bruno@clisp.org>
25525 * config/srclist.txt (*setenv.[ch]): Remove rules.
25527 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25529 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25531 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25533 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25536 2006-07-28 Simon Josefsson <jas@extundo.com>
25538 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25539 * modules/inet_pton (Depends-on): Likewise.
25541 2006-07-28 Simon Josefsson <jas@extundo.com>
25543 * m4/netinet_in_h.m4: New file.
25545 2006-07-28 Simon Josefsson <jas@extundo.com>
25547 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25550 2006-07-28 Simon Josefsson <jas@extundo.com>
25552 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25555 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
25557 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25558 setgid on directories only if they set these bits.
25559 * lib/modechange.h: Remove obsolete comment about masks.
25561 2006-07-28 Eric Blake <ebb9@byu.net>
25563 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25566 2006-07-28 Bruno Haible <bruno@clisp.org>
25568 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25570 2006-07-28 Bruno Haible <bruno@clisp.org>
25572 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25574 2006-07-28 Bruno Haible <bruno@clisp.org>
25576 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25577 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25579 Avoids link error on FreeBSD 4.x.
25580 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25582 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25584 * lib/mbswidth.c (iswcntrl): Likewise.
25586 2006-07-27 Bruno Haible <bruno@clisp.org>
25588 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25591 2006-07-27 Bruno Haible <bruno@clisp.org>
25593 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25594 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25597 2006-07-26 Eric Blake <ebb9@byu.net>
25599 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25601 2006-07-26 Eric Blake <ebb9@byu.net>
25603 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25604 like mingw that lack mkstemp.
25605 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25606 avoid compilation warning on mingw.
25608 2006-07-26 Bruno Haible <bruno@clisp.org>
25610 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25611 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25612 INT_FAST*_MIN, INTPTR_MIN.
25614 2006-07-25 Bruno Haible <bruno@clisp.org>
25616 * modules/version-etc (Depends-on): Add stdarg.
25618 2006-07-25 Bruno Haible <bruno@clisp.org>
25620 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25623 2006-07-25 Bruno Haible <bruno@clisp.org>
25625 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25626 defined in <stdarg.h> or config.h.
25628 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25630 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25631 (gl_STDIO_SAFER): Remove.
25633 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25635 * MODULES.html.sh (File stream based Input/Output):
25636 Add fopen-safer, tmpfile-safer; remove stdio-safer.
25637 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25638 * modules/fopen-safer, modules/tmpfile-safer: New files.
25639 * modules/stdio-safer: Remove.
25641 2006-07-24 Bruno Haible <bruno@clisp.org>
25643 * modules/tmpdir: New file.
25644 * MODULES.html.sh (File system functions): Add it.
25646 2006-07-24 Bruno Haible <bruno@clisp.org>
25648 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25649 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25651 2006-07-24 Bruno Haible <bruno@clisp.org>
25653 * modules/clean-temp: New file.
25655 2006-07-24 Bruno Haible <bruno@clisp.org>
25657 * m4/tmpdir.m4: New file, from GNU gettext.
25659 2006-07-24 Bruno Haible <bruno@clisp.org>
25661 * lib/tmpdir.h: New file, from GNU gettext.
25662 * lib/tmpdir.c: New file, from GNU gettext.
25664 2006-07-24 Bruno Haible <bruno@clisp.org>
25666 * lib/clean-temp.h: New file, from GNU gettext.
25667 * lib/clean-temp.c: New file, from GNU gettext.
25669 2006-07-23 Eric Blake <ebb9@byu.net>
25671 * modules/stdio-safer (Files): Add tmpfile-safer.c.
25672 (Depends-on): Add binary-io.
25674 2006-07-23 Eric Blake <ebb9@byu.net>
25676 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25678 2006-07-23 Eric Blake <ebb9@byu.net>
25680 * lib/tmpfile-safer.c: New file.
25681 * lib/stdio-safer.h (fopen_safer): Add prototype.
25682 * lib/stdio--.h (tmpfile): Make safer.
25684 2006-07-23 Bruno Haible <bruno@clisp.org>
25686 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25687 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25688 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25689 gl_linked_remove_at): Use it.
25691 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25692 and Simon Josefsson <jas@extundo.com>
25694 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25696 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25698 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25700 * modules/close-stream: New file.
25701 * modules/closeout (Description): Make it clear that it exits
25702 with a diagnostic on error.
25703 (Depends-on): Add close-stream. Remove fpending, stdbool.
25704 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25706 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25708 * m4/close-stream.m4: New file.
25710 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25712 * lib/close-stream.c, lib/close-stream.h: New files.
25714 2006-07-22 Bruno Haible <bruno@clisp.org>
25716 Merge from GNU gettext 0.15.
25718 2006-05-01 Bruno Haible <bruno@clisp.org>
25720 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25722 2006-07-22 Bruno Haible <bruno@clisp.org>
25724 * modules/javaversion: New file.
25725 * MODULES.html.sh (Java): Add javaversion.
25727 2006-03-12 Bruno Haible <bruno@clisp.org>
25729 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25731 2005-12-04 Bruno Haible <bruno@clisp.org>
25733 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25736 2006-06-21 Bruno Haible <bruno@clisp.org>
25738 Avoid warnings from recent versions of mcs.
25739 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25740 -o, -L, -r any more. Use options documented since mcs-1.0
25741 instead. Similarly for -g.
25743 2005-12-04 Bruno Haible <bruno@clisp.org>
25745 * build-aux/csharpcomp.sh.in: Suffix for resources is
25746 .resources, not .resource.
25748 2005-07-09 Bruno Haible <bruno@clisp.org>
25750 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25752 Reported by Mark Junker <mjscod@gmx.de>.
25754 2006-07-22 Bruno Haible <bruno@clisp.org>
25756 * modules/gettext: Upgrade to gettext-0.15.
25757 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25759 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25761 2006-07-22 Bruno Haible <bruno@clisp.org>
25763 Merge from GNU gettext 0.15.
25765 2006-03-25 Bruno Haible <bruno@clisp.org>
25767 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25769 2006-07-21 Bruno Haible <bruno@clisp.org>
25771 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25774 2006-05-09 Bruno Haible <bruno@clisp.org>
25776 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25777 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25778 for the conftestver execution.
25780 2006-05-01 Bruno Haible <bruno@clisp.org>
25782 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25783 optional target-version argument. Verify that the compiler
25784 groks source of the specified source-version, or add -source
25785 option as necessary. Verify that the compiler produces
25786 bytecode in the specified target-version, or add -target and
25787 -source options as necessary. Make the result of the test
25788 available as variable CONF_JAVAC. Also log error output in
25791 2006-03-11 Bruno Haible <bruno@clisp.org>
25793 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25795 2006-05-09 Bruno Haible <bruno@clisp.org>
25797 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25798 CLASSPATH_SEPARATOR to a semicolon.
25800 2006-03-12 Bruno Haible <bruno@clisp.org>
25802 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25803 available as variable CONF_JAVA, for subsequent autoconf
25804 tests. Also log error output in config.log.
25806 2006-07-19 Bruno Haible <bruno@clisp.org>
25808 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25809 that getline works on glibc2 systems. Needed to avoid trouble
25811 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25813 2005-12-04 Bruno Haible <bruno@clisp.org>
25815 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25816 launcher (untested).
25818 2005-12-04 Bruno Haible <bruno@clisp.org>
25820 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25822 2006-07-22 Bruno Haible <bruno@clisp.org>
25824 * gettext.m4: Update from GNU gettext-0.15.
25825 * nls.m4: Likewise.
25827 * inttypes-pri.m4: Likewise.
25828 * inttypes-h.m4: Renamed from inttypes.m4.
25829 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25831 2006-07-22 Bruno Haible <bruno@clisp.org>
25833 Merge from GNU gettext 0.15.
25835 2005-07-05 Bruno Haible <bruno@clisp.org>
25837 * printf-args.c (printf_fetchargs): Work around broken
25838 definition of wint_t on mingw.
25840 2005-02-12 Bruno Haible <bruno@clisp.org>
25842 * xallocsa.h: Add extern "C" for C++.
25844 2006-05-17 Bruno Haible <bruno@clisp.org>
25846 Cygwin portability.
25847 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25849 2006-04-30 Bruno Haible <bruno@clisp.org>
25851 * progreloc.c: Include <mach-o/dyld.h> if available.
25852 (find_executable): Use _NSGetExecutablePath when possible.
25854 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
25856 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25859 2005-12-29 Bruno Haible <bruno@clisp.org>
25861 * progreloc.c (set_program_name_and_installdir): Fix
25864 2005-12-04 Bruno Haible <bruno@clisp.org>
25866 Cygwin portability.
25867 * progreloc.c: Include <windows.h> also on Cygwin.
25868 (find_executable): Add support for Cygwin.
25869 (set_program_name_and_installdir): Handle also platforms with
25872 2006-07-11 Bruno Haible <bruno@clisp.org>
25874 * javacomp.c: Fix a comment.
25875 Reported by Jim Meyering.
25877 2006-04-30 Bruno Haible <bruno@clisp.org>
25879 * javacomp.h (compile_java_class): Add source_version,
25880 target_version arguments.
25881 * javacomp.c: Rewritten to choose only a compiler that
25882 respects the specified source_version and target_version.
25884 2006-06-27 Bruno Haible <bruno@clisp.org>
25886 Assume correct S_ISDIR macro.
25887 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25889 2006-07-22 Bruno Haible <bruno@clisp.org>
25891 * javaversion.h: New file, from GNU gettext.
25892 * javaversion.c: New file, from GNU gettext.
25893 * javaversion.java: New file, from GNU gettext.
25894 * javaversion.class: New file, from GNU gettext.
25896 2006-05-17 Bruno Haible <bruno@clisp.org>
25898 Cygwin portability.
25899 * javaexec.c (execute_java_class): Test for jview program
25902 2006-04-09 Bruno Haible <bruno@clisp.org>
25904 * fatal-signal.c: Don't include string.h.
25905 (at_fatal_signal): Use a copying loop instead of memcpy.
25907 2005-12-04 Bruno Haible <bruno@clisp.org>
25909 * csharpexec.c: Add support for 'clix' launcher (untested).
25910 (execute_csharp_using_sscli): New function.
25911 (execute_csharp_program): Call it.
25913 2006-06-21 Bruno Haible <bruno@clisp.org>
25915 Avoid warnings from recent versions of mcs.
25916 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25917 -o, -L, -r any more. Use options documented since mcs-1.0
25918 instead. Similarly for -g.
25920 2005-07-09 Bruno Haible <bruno@clisp.org>
25922 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25924 Reported by Mark Junker <mjscod@gmx.de>.
25926 2006-06-17 Bruno Haible <bruno@clisp.org>
25928 * config.charset: Update for NetBSD 3.0.
25930 2006-05-17 Bruno Haible <bruno@clisp.org>
25932 Cygwin portability.
25933 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25935 2006-05-16 Bruno Haible <bruno@clisp.org>
25937 * localcharset.c [CYGWIN]: Include <windows.h>.
25938 (get_charset_aliases): For Cygwin, return the same CPxxx
25939 aliases list as under WIN32.
25940 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25941 the environment variables. Fall back to GetACP().
25943 2006-04-05 Bruno Haible <bruno@clisp.org>
25945 * config.charset: Update Juan Manuel Guerrero's address.
25947 2005-02-12 Bruno Haible <bruno@clisp.org>
25949 * allocsa.h: Add extern "C" for C++.
25951 2005-02-10 Bruno Haible <bruno@clisp.org>
25953 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25954 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25956 2006-07-22 Bruno Haible <bruno@clisp.org>
25958 * gettext.h: Update to GNU gettext-0.15.
25960 2006-07-22 Bruno Haible <bruno@clisp.org>
25962 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25963 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25964 lib-prefix.m4, longdouble.m4, ssize_t.m4.
25966 2006-07-21 Eric Blake <ebb9@byu.net>
25968 * modules/stdlib-safer: New file.
25969 * MODULES.html.sh (File stream based Input/Output): Add
25972 2006-07-21 Eric Blake <ebb9@byu.net>
25974 * lib/stdlib-safer.h: New file from coreutils, required by
25977 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
25979 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25981 2006-07-20 Bruno Haible <bruno@clisp.org>
25983 * gnulib-tool: Recognize new option --assume-autoconf.
25984 (autoconf_minversion): New variable.
25985 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25987 2006-07-20 Bruno Haible <bruno@clisp.org>
25989 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25991 2006-07-19 Derek R. Price <derek@ximbiot.com>
25993 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25994 Reindent and repaginate.
25996 2006-07-19 Derek Price <derek@ximbiot.com>
25998 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
26001 2006-07-17 Bruno Haible <bruno@clisp.org>
26003 * modules/list: New file.
26004 * modules/array-list: New file.
26005 * modules/carray-list, modules/carray-list-tests: New files.
26006 * modules/linked-list, modules/linked-list-tests: New files.
26007 * modules/avltree-list, modules/avltree-list-tests: New files.
26008 * modules/rbtree-list, modules/rbtree-list-tests: New files.
26009 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26010 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26011 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26012 * modules/oset: New file.
26013 * modules/array-oset: New file.
26014 * modules/avltree-oset, modules/avltree-oset-tests: New files.
26015 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26016 * tests/test-carray_list.c: New file.
26017 * tests/test-linked_list.c: New file.
26018 * tests/test-avltree_list.c: New file.
26019 * tests/test-rbtree_list.c: New file.
26020 * tests/test-linkedhash_list.c: New file.
26021 * tests/test-avltreehash_list.c: New file.
26022 * tests/test-rbtreehash_list.c: New file.
26023 * tests/test-avltree_oset.c: New file.
26024 * tests/test-rbtree_oset.c: New file.
26025 * MODULES.html.sh (Container data structures): New section.
26027 2006-07-17 Bruno Haible <bruno@clisp.org>
26029 * m4/gl_list.m4: New file.
26031 2006-07-17 Bruno Haible <bruno@clisp.org>
26033 * lib/gl_list.h: New file.
26034 * lib/gl_list.c: New file.
26035 * lib/gl_array_list.h: New file.
26036 * lib/gl_array_list.c: New file.
26037 * lib/gl_carray_list.h: New file.
26038 * lib/gl_carray_list.c: New file.
26039 * lib/gl_linked_list.h: New file.
26040 * lib/gl_linked_list.c: New file.
26041 * lib/gl_anylinked_list1.h: New file.
26042 * lib/gl_anylinked_list2.h: New file.
26043 * lib/gl_avltree_list.h: New file.
26044 * lib/gl_avltree_list.c: New file.
26045 * lib/gl_anyavltree_list1.h: New file.
26046 * lib/gl_anyavltree_list2.h: New file.
26047 * lib/gl_rbtree_list.h: New file.
26048 * lib/gl_rbtree_list.c: New file.
26049 * lib/gl_anyrbtree_list1.h: New file.
26050 * lib/gl_anyrbtree_list2.h: New file.
26051 * lib/gl_anytree_list1.h: New file.
26052 * lib/gl_anytree_list2.h: New file.
26053 * lib/gl_linkedhash_list.h: New file.
26054 * lib/gl_linkedhash_list.c: New file.
26055 * lib/gl_anyhash_list1.h: New file.
26056 * lib/gl_anyhash_list2.h: New file.
26057 * lib/gl_avltreehash_list.h: New file.
26058 * lib/gl_avltreehash_list.c: New file.
26059 * lib/gl_rbtreehash_list.h: New file.
26060 * lib/gl_rbtreehash_list.c: New file.
26061 * lib/gl_anytreehash_list1.h: New file.
26062 * lib/gl_anytreehash_list2.h: New file.
26064 * lib/gl_oset.h: New file.
26065 * lib/gl_oset.c: New file.
26066 * lib/gl_array_oset.h: New file.
26067 * lib/gl_array_oset.c: New file.
26068 * lib/gl_avltree_oset.h: New file.
26069 * lib/gl_avltree_oset.c: New file.
26070 * lib/gl_rbtree_oset.h: New file.
26071 * lib/gl_rbtree_oset.c: New file.
26072 * lib/gl_anytree_oset.h: New file.
26074 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26076 * m4/mkancesdirs.m4: New file.
26077 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26078 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26079 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26082 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26084 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26085 * lib/mkancesdirs.h: New files.
26086 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26087 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26088 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
26089 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26090 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
26091 callers changed. Revamp internals significantly, by not
26092 attempting to create directories that are temporarily more
26093 permissive than the final results. Do not attempt to use
26094 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26095 This removes some race conditions, fixes some bugs, and simplifies
26096 things. Use new dirchownmod function to do owner and mode changes.
26097 * lib/mkdir-p.h: Likewise.
26098 * lib/modechange.c (octal_to_mode): New function.
26099 (struct mode_change): New member mentioned.
26100 (make_node_op_equals): New arg mentioned. All callers changed.
26101 (mode_compile): Keep track of which mode bits the user has explicitly
26103 (mode_adjust): New arg DIR, so that we implement the X op correctly.
26104 New arg PMODE_BITS, to keep track of which mode bits the user
26105 mentioned; it treats S_ISUID and S_ISGID speciall.
26106 All callers changed.
26107 * lib/modechange.h: Likewise.
26109 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26111 * MODULES.html.sh: Add mkancestors.
26112 * modules/mkancesdirs: New module.
26113 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26114 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26115 The chdir-safer and afs files are now orphans; I'll remove them
26116 unless someone speaks up.
26117 Add lib/dirchownmod.c, lib/dirchownmod.h.
26118 (Depends-on): Remove alloca, chown, save-cwd, dirname.
26119 Add lchown, mkancesdirs.
26120 (Maintainer): Add self.
26122 2006-07-15 Karl Berry <karl@gnu.org>
26124 * gnulib-tool: help message wording/arrangement.
26126 2006-07-14 Simon Josefsson <jas@extundo.com>
26128 * doc/gnulib.texi (Libtool and Windows): New section.
26130 2006-07-12 Simon Josefsson <jas@extundo.com>
26132 * modules/gendocs (License): Fix license, approved by Karl.
26134 2006-07-12 Eric Blake <ebb9@byu.net>
26136 * MODULES.html.sh: Add gendocs.
26138 2006-07-11 Eric Blake <ebb9@byu.net>
26140 * modules/fdl: New module, to install doc/fdl.texi.
26141 * MODULES.html.sh: Add new section for documentation modules.
26142 * gnulib-tool: Avoid space-tab.
26143 (--doc-base): New option, to manage files from doc.
26145 2006-07-11 Eric Blake <ebb9@byu.net>
26147 * m4/absolute-header.m4: Fix comments to match recent change.
26149 2006-07-11 Eric Blake <ebb9@byu.net>
26151 * gnulib-tool: List --doc-base before --tests-base.
26153 2006-07-11 Derek R. Price <derek@ximbiot.com>
26155 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26157 2006-07-11 Bruno Haible <bruno@clisp.org>
26159 * README: Mention where to put documentation.
26161 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26163 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26165 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
26167 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26170 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
26172 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26173 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
26174 "no/such/file/stdint.h" when there is no such file, so that
26175 the resulting C code can be parsed by dodgy compilers.
26176 Problems reported by Bob Proulx.
26178 2006-07-10 Derek R. Price <derek@ximbiot.com>
26180 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26181 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
26182 macros into the GNU _D_EXACT_NAMLEN.
26183 * lib/savedir.c: Likewise.
26184 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26186 2006-07-10 Derek R. Price <derek@ximbiot.com>
26187 and Paul Eggert <eggert@cs.ucla.edu>
26189 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26191 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
26192 macros into the GNU _D_EXACT_NAMLEN.
26194 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26196 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26197 around the absolute name, to work around a problem with the HP-UX
26198 11.23 native C compiler, reported by Bob Proulx.
26200 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26202 * doc/maintain.texi, make-stds.texi: Sync from
26203 <http://savannah.gnu.org/projects/gnustandards>.
26205 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26207 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26209 2006-07-09 Jim Meyering <jim@meyering.net>
26211 * m4/glob.m4: Remove a doubled word in a comment.
26213 2006-07-09 Jim Meyering <jim@meyering.net>
26215 * lib/argp-pv.c: Remove a doubled word in a comment.
26216 * lib/check-version.c (check_version): Likewise.
26217 * lib/javacomp.c (compile_java_class): Likewise.
26219 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
26221 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26222 for the benefit of people using Autoconf 2.60. If you want to
26223 support older Autoconf versions you can copy m4/onceonly_2_57.m4
26224 (or m4/onceonly.m4, if pre-2.57) manually.
26226 2006-07-08 Jim Meyering <jim@meyering.net>
26228 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26230 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26231 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26234 2006-07-08 Jim Meyering <jim@meyering.net>
26236 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26238 2006-07-07 Simon Josefsson <jas@extundo.com>
26240 * tests/test-crc.c: Change expected crc value, the test vector
26241 were probably computed using the old broken crc.c?
26243 2006-07-06 Simon Josefsson <jas@extundo.com>
26245 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26246 now the canonical place for the M4 file).
26248 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26249 from the sys_socket dependency now.
26251 * modules/inet_pton (Files): Ditto.
26253 * modules/inet_ntop (Files): Ditto.
26255 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
26257 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26258 not gl_PREREQ_GETUSERSHELL.
26260 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26262 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26263 with only one argument, for Autoconf 2.60.
26264 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26265 expand to nothing, so add a shell command to avoid syntax error.
26266 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26268 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26270 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26272 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26274 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26275 no longer needed. Check for isblank decl.
26276 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26277 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26280 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26282 * lib/getloadavg.c: Use __VMS, not VMS.
26283 * lib/getopt.c: Likewise.
26284 * lib/getpagesize.h: Likewise.
26285 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26286 and probably does not work.
26288 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26290 * lib/.cppi-disable: Add wcwidth.
26291 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
26292 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26293 (ISGRAPH): Remove. All uses changed to isgraph.
26294 (FOLD) [!defined _LIBC]: Remove special case.
26295 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26296 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26298 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26301 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
26303 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26304 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26305 brackets. Other minor changes to suppress some compiler
26308 2006-07-06 Derek R. Price <derek@ximbiot.com>
26309 and Paul Eggert <eggert@cs.ucla.edu>
26311 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26312 of invoking obsolescent AC_HEADER_DIRENT macro.
26313 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26314 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26315 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26316 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26317 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26318 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26319 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26320 * m4/readdir.m4: Remove; no longer needed.
26322 2006-07-06 Derek R. Price <derek@ximbiot.com>
26323 and Paul Eggert <eggert@cs.ucla.edu>
26325 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26326 Don't worry about this obsolete case any more.
26327 (HAVE_DIR): Remove. All uses removed; we now assume you can read
26329 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26330 worry about this obsolete case any more.
26331 * lib/fts.c: Likewise.
26332 * lib/getcwd.c: Likewise.
26333 * lib/glob.h: Likewise.
26334 * lib/savedir.c: Likewise.
26336 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
26338 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26339 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26340 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26343 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26344 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26345 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26347 * m4/getdate.m4 (gl_GETDATE): Likewise.
26348 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26349 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26350 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26351 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26352 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26353 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26354 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26357 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
26359 * lib/memcasecmp.c: Include <limits.h>.
26360 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26361 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26362 Don't assume isdigit succeeds only on '0' through '9'.
26364 2006-07-05 Eric Blake <ebb9@byu.net>
26366 * modules/getaddrinfo (Depends-on): Add snprintf.
26368 2006-07-05 Eric Blake <ebb9@byu.net>
26370 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26371 to avoid 'header present but could not be compiled' on cygwin.
26373 2006-07-05 Eric Blake <ebb9@byu.net>
26375 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26376 missing from netdb.h.
26377 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26379 2006-07-05 Derek R. Price <derek@ximbiot.com>
26381 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26383 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26384 * m4/getdate.m4 (gl_GETDATE): Likewise.
26385 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26386 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26387 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26388 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26389 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26391 2006-07-05 Derek R. Price <derek@ximbiot.com>
26393 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26394 All uses of is_space replaced by isspace.
26395 * lib/exit.h: Don't talk about STDC_HEADERS.
26396 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
26397 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26398 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
26399 replaced by isprint etc.
26400 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26401 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26402 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26403 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26404 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26405 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26407 2006-07-05 Bruno Haible <bruno@clisp.org>
26409 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26410 the function exists, before testing against AIX.
26411 Reported by Martin Lambers <marlam@marlam.de>.
26413 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
26415 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26416 From Mark D. Baushke.
26418 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
26420 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26421 to the absolute name, not just one, to bypass Sun C 5.8's
26422 "warning: #include of /usr/include/... may be non-portable".
26424 2006-07-04 Eric Blake <ebb9@byu.net>
26426 * modules/dirname-tests: New test module.
26427 * tests/test-dirname.c: New file, replacing dirname.c
26428 TEST_DIRNAME section that was recently deleted.
26430 2006-07-04 Bruno Haible <bruno@clisp.org>
26432 Assume ANSI C header files and <ctype.h> functions.
26433 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26434 (mbsnwidth): Use isprint, iscntrl instead.
26436 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26438 Merge from coreutils.
26439 * MODULES.html.sh: Add xstrtold.
26440 * modules/xstrtold: New file.
26441 * modules/cycle-check (Files): Add lib/same-inode.h.
26442 * modules/dirname (Files): Add m4/double-slash-root.m4.
26443 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26444 * modules/mkdir-p (Files): Add lib/same-inode.h.
26445 * modules/same (Files): Add lib/same-inode.h.
26447 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26449 * m4/absolute-header.m4: Renamed from full-header-path.m4.
26450 This is to keep the terminology clean; POSIX talks about
26451 "absolute pathnames", not "full pathnames", but the GNU
26452 Coding Standards say to use "path" for something else;
26453 so use "absolute" to keep both sides happy.
26454 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26455 Set gl_absolute_header, not gl_full_header_path.
26456 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26457 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26460 Merge from coreutils.
26462 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26464 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26465 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26466 want to require the building of c-strtod.o.
26467 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26468 needs -lm directly.
26469 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26471 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26473 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26474 --as-needed option if available. Problem reported by Albert Chin in
26475 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26476 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26477 cc merely issues a bunch of annoying warnings for --as-needed
26478 (this problem was reported by Bob Proulx). Also, try linking with
26479 -lm to detect a bug in binutils 2.16 (this problem was reported
26480 by Ralf Wildenhues).
26482 2006-06-18 Jim Meyering <jim@meyering.net>
26484 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26485 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26487 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26488 also check for glibc-2.4's abort-inducing bug.
26490 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26491 Low-probability clean-up should be to use rmdir to get rid of
26492 the just-created directory, not unlink.
26494 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26495 configure fail, and request a bug report to inform us about it.
26496 Add a comment that, barring reports to the contrary, in 2007 we'll
26497 assume ftruncate is universally available.
26499 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26501 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26503 2006-03-12 Jim Meyering <jim@meyering.net>
26505 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26506 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26507 * m4/same.m4 (gl_SAME): Likewise.
26508 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26510 2006-03-11 Eric Blake <ebb9@byu.net>
26512 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26513 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26514 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26515 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26517 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26519 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26520 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
26521 reported by Mark D. Baushke, one in
26522 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26524 Merge from coreutils.
26526 * lib/.cppi-disable: Add stdint_.h.
26527 * lib/.cvsignore: Add stdint.h.
26529 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26531 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26532 both double and long double versions.
26533 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
26534 * lib/xstrtold.c: New file.
26535 * lib/xstrtod.h (xstrtold): New decl.
26537 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
26539 * lib/filemode.c (setst): Remove.
26540 (strmode): Rewrite to avoid setst. This makes the code shorter,
26541 (arguably) clearer, and the generated code is a bit smaller on my
26542 Debian GNU/Linux stable x86 host.
26544 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26546 * lib/filemode.c: Include "filemode.h" first, to test the interface.
26547 Assume that filemode.h includes sys/types.h and sys/stat.h.
26548 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26549 (ftypelet): Reorder to put common cases first, for efficiency.
26550 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
26552 (strmode): Renamed from mode_string, and now stores 12 bytes instead
26553 of 10, for compatibility with FreeBSD. All callers changed.
26554 (filemodestring): Now stores 12 bytes instead of 10, and sets file
26555 types that can't be deduced solely from st_mode. First arg is now a
26557 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26558 (strmode): Renamed from mode_string.
26559 (filemodestring): New decl.
26560 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26561 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26563 (S_ISPORT, S_ISWHT): New macros, if not already defined.
26565 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
26567 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26568 fsusage.h now does that. Include fsusage.h first, to test interface.
26569 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
26570 at most one method (the old code could have generated decls that
26571 didn't conform to C89, not that this was ever exercised).
26572 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26574 2006-03-19 Jim Meyering <jim@meyering.net>
26576 Work even in a chroot where d_ino values for entries in "/"
26577 don't match the stat.st_ino values for the same names.
26578 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26579 number, iterate through all entries again, using lstat instead.
26580 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26581 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26583 * lib/getcwd.c (__getcwd): Clarify a comment.
26584 Use memcpy in place of a call to strcpy.
26586 2006-03-12 Jim Meyering <jim@meyering.net>
26588 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26589 matches that of the current directory (which we're about to chdir ".."
26590 out of), then save the dev-ino of the parent, instead.
26592 * lib/same-inode.h (SAME_INODE): New file/macro.
26593 * lib/chdir-safer.c (SAME_INODE): Remove definition.
26594 Include "same-inode.h", instead.
26595 * lib/same.c: Likewise.
26596 * lib/cycle-check.h: Include "same-inode.h".
26597 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26598 * lib/cycle-check.c (SAME_INODE): Remove definition.
26599 * lib/root-dev-ino.h: Include "same-inode.h".
26601 2006-03-11 Eric Blake <ebb9@byu.net>
26603 * lib/same.c (same_name): s/base_name/last_component/
26604 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26605 * lib/filenamecat.c (file_name_concat): Likewise.
26607 2006-03-11 Eric Blake <ebb9@byu.net>,
26608 Paul Eggert <eggert@cs.ucla.edu>
26610 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26611 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26613 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26614 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26615 (last_component): New method.
26616 * lib/dirname.c (dir_len): Determine when drive letters need a
26617 subsequent slash. Preserve // when it is special.
26618 (dir_name): Don't append dot when drive letter is absolute.
26619 [TEST_DIRNAME]: Move into a full-blown gnulib test.
26620 * lib/basename.c (base_name): New semantics - malloc the result.
26621 Preserve // when it is special. Preserve relative files that look
26622 like drive letters.
26623 (base_len): Preserve // when it is special.
26624 (last_component): New method, similar to old base_name semantics.
26625 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26626 base_name. Strip redundant slashes from ///.
26628 2006-07-03 Jim Meyering <jim@meyering.net>
26630 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26631 macro is used before the first cycle_check call.
26633 2006-07-03 Eric Blake <ebb9@byu.net>
26635 * modules/dirname (Depends-on): Add xstrndup.
26637 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26639 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26640 test cases, so that config.log is a bit easier to follow.
26642 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26644 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26645 both are 64 bits, since this seems to be the tradition, and this
26646 prevents gcc -Wformat from warning about usages with PRIuMAX. If
26647 we ever run into a host that prefers long long to long in this
26648 case, we'll need another configure-time test. Problem reported by
26651 2006-07-02 Eric Blake <ebb9@byu.net>
26653 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26655 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26657 * modules/inttypes (Depends-on): No longer depends on stdint.
26658 * modules/stdint (Description): Say more about assumptions.
26659 Say that the fast types might differ. Say macros are used.
26660 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
26661 (Makefile.am): Revise list of substituted symbols to match
26663 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26664 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26665 * tests/test-stdint.c (verify_same_types)
26666 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26667 the code conforms to C99/C89.
26668 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26669 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26671 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26673 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26674 but fix a bug, by requiring at least 64 bits.
26675 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26676 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26677 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
26678 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26680 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26681 changes. Make 2.59 a prerequisite. Check and substitute for
26682 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
26683 inttypes.h. Do not use special include files; just use the
26684 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
26685 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
26686 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26687 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26688 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26689 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26690 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26691 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26692 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26693 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26694 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26695 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26696 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26697 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26698 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26699 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26700 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26701 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26702 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26703 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26704 WINT_MAX. Check for C99 conformance more strictly, by detecting
26705 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
26706 not check for things that C99 does not require, e.g., int8_t. If
26707 a test isn't needed unless <stdint.h> isn't working, and is
26708 unlikely to be needed for any other reason, then don't do it
26709 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
26710 size_t, since we assume C89 freestanding at least. Do not check
26711 for sig_atomic_t, wchar_t, or wint_t, since the code now does
26712 the right thing even if the types are not defined. Instead use:
26713 (gl_STDINT_TYPE_PROPERTIES): New macro.
26714 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
26715 testing whether <sys/types.h> clashes, as Autoconf does this for
26716 us now. All uses removed.
26717 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26718 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26719 (gl_CHECK_TYPE_SAME):
26720 Remove; no longer needed.
26721 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26722 exists, since we'll return 0 anyway in that case.
26723 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26725 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26727 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26728 possible collision with system files.
26729 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26730 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26731 WCHAR_MIN and WCHAR_MAX in this case.
26732 (<stddef.h>): Do not include; no longer needed.
26733 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26734 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26735 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26736 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26737 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26738 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26739 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26740 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26741 !defined(__c99))]: Include in this case too, since it's harmless
26743 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26744 dangerous to do so.
26745 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26746 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26747 (_STDINT_MIN, _STDINT_MAX): New macros.
26748 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26749 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26750 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26751 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26752 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26753 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26754 macros, not typedefs; this simplifies things quite a bit.
26755 Use long int for all types narrower than int64_t.
26756 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26757 Define in terms of long long int or int64_t or long int,
26758 not int64_t or int32_t. This saves some compile-time testing.
26759 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26760 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26761 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26762 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26763 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26764 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26765 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26766 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26767 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26768 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26769 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26770 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26771 undef any previous version and define our own version, for
26772 simplicity and consistency with the new macros for types.
26773 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26774 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26775 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26776 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
26777 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26778 @WINT_T_SUFFIX@ to keep things simple here.
26779 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26780 Simplify by assuming typical 8/16/32/64 host, since we're
26781 already doing that elsewhere anyway.
26782 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26783 and assume long long int is 64 bits if available. This
26784 speeds up 'configure'.
26786 2006-07-01 Eric Blake <ebb9@byu.net>
26788 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26789 Reported by Andreas Buening.
26791 2006-07-01 Eric Blake <ebb9@byu.net>
26793 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26795 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
26797 * lib/getaddrinfo.c: fixed typo
26799 2006-06-29 Jim Meyering <jim@meyering.net>
26801 * modules/strftime (Maintainer): Add my name, since with the
26802 FPRINTFTIME changes strftime.c has forked from glibc.
26804 2006-06-29 Eric Blake <ebb9@byu.net>
26806 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26808 2006-06-29 Eric Blake <ebb9@byu.net>
26810 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26812 2006-06-29 Eric Blake <ebb9@byu.net>
26814 * lib/stat_.h: New file.
26816 2006-06-29 Eric Blake <ebb9@byu.net>
26818 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26819 unused static function.
26821 2006-06-29 Eric Blake <ebb9@byu.net>
26823 * doc/functions.texi (Function Portability): Document missing lstat
26826 2006-06-29 Eric Blake <ebb9@byu.net>
26828 * MODULES.html.sh: Add sys_stat.
26829 * modules/sys_stat: New module.
26830 * modules/mkstemp (Depends-on): Add sys_stat.
26832 2006-06-29 Derek R. Price <derek@ximbiot.com>
26834 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26836 2006-06-29 Derek R. Price <derek@ximbiot.com>
26838 * m4/c-bs-a.m4: Removed.
26840 2006-06-29 Derek R. Price <derek@ximbiot.com>
26842 * lib/strftime.c: Assume strftime() exists.
26844 2006-06-29 Derek Price <derek@ximbiot.com>
26846 * modules/c-bs-a: Removed - \a is C89.
26847 * MODULES.html.sh: Remove c-bs-a.
26849 2006-06-29 Bruno Haible <bruno@clisp.org>
26851 * modules/wcwidth (License): Change to LGPL.
26853 2006-06-28 Simon Josefsson <jas@extundo.com>
26855 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
26858 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26861 2006-06-28 Simon Josefsson <jas@extundo.com>
26863 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26865 2006-06-28 Simon Josefsson <jas@extundo.com>
26867 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26868 functions there. It will succeed on Windows XP, but on Windows
26869 2000 and (presumably) earlier, it will fail, and use the internal
26871 (use_win32_p): New function.
26872 (getaddrinfo): Use strtoul on servname, to support numeric ports.
26873 Support AI_NUMERICSERV to disable getservbyname.
26874 (getnameinfo): New function, only supports
26875 NI_NUMERICHOST|NI_NUMERICSERV for now.
26877 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26878 only have some of them. Add AI_NUMERICSERV. Add prototype for
26881 2006-06-28 Eric Blake <ebb9@byu.net>
26883 * modules/wcwidth: New file.
26884 * modules/mbchar (Depends-on): Add wcwidth.
26885 * modules/mbswidth (Depends-on): Add wcwidth.
26886 * MODULES.html.sh: Add wcwidth.
26888 2006-06-28 Eric Blake <ebb9@byu.net>
26890 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26891 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26893 2006-06-28 Eric Blake <ebb9@byu.net>
26895 * lib/xvasprintf.h: Fix comments.
26897 2006-06-28 Eric Blake <ebb9@byu.net>
26899 * lib/mbchar.h (wcwidth): Include wcwidth.h.
26900 * lib/mbswidth.c (wcwidth): Move from here...
26901 * lib/wcwidth.h: ...to this new file.
26903 2006-06-28 Derek R. Price <derek@ximbiot.com>
26905 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26907 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26909 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26911 2006-06-28 Derek R. Price <derek@ximbiot.com>
26913 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
26914 Autoconf 2.60 says this stuff was obsolete.
26916 2006-06-28 Bruno Haible <bruno@clisp.org>
26918 * modules/wcwidth (Files): Add m4/wchar_t.m4.
26920 2006-06-28 Bruno Haible <bruno@clisp.org>
26922 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26925 2006-06-28 Bruno Haible <bruno@clisp.org>
26927 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26928 declaration for wcwidth.
26929 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26931 2006-06-28 Bruno Haible <bruno@clisp.org>
26933 * lib/mkdtemp.c [MINGW]: Include <io.h>.
26934 (mkdir): Define using _mkdir.
26936 2006-06-28 Bruno Haible <bruno@clisp.org>
26938 * lib/getaddrinfo.h: Fix POSIX URL.
26939 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26941 (use_win32_p): Make static.
26942 (getaddrinfo): Reject service name if it is empty or does not consist
26943 solely of decimal digits, or if its value is > 65535.
26944 (getnameinfo): Remove useless casts.
26946 2006-06-27 Simon Josefsson <jas@extundo.com>
26948 * modules/sys_select: New file, suggested by Bruno Haible, Paul
26949 Eggert and Martin Lambers.
26951 2006-06-27 Simon Josefsson <jas@extundo.com>
26953 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26954 Eggert and Martin Lambers.
26956 2006-06-27 Bruno Haible <bruno@clisp.org>
26958 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26959 result to 0, not to empty.
26960 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26962 2006-06-27 Bruno Haible <bruno@clisp.org>
26964 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26966 2006-06-26 Simon Josefsson <jas@extundo.com>
26968 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26971 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
26973 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26974 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
26975 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26977 2006-06-26 Mark D. Baushke <mdb@gnu.org>
26979 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26981 2006-06-26 Bruno Haible <bruno@clisp.org>
26983 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26985 2006-06-26 Bruno Haible <bruno@clisp.org>
26987 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26989 2006-06-26 Bruno Haible <bruno@clisp.org>
26991 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26992 SGI C compiler in pre-C99 mode.
26993 Suggested by Mark D. Baushke and Larry Jones.
26995 2006-06-26 Bruno Haible <bruno@clisp.org>
26997 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26999 Reported by Mark D. Baushke and Larry Jones.
27001 2006-06-26 Bruno Haible <bruno@clisp.org>
27003 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27005 Suggested by Mark D. Baushke and Larry Jones.
27007 2006-06-23 Simon Josefsson <jas@extundo.com>
27008 Bruno Haible <bruno@clisp.org>
27010 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27011 Emit mostlyclean-local rule.
27012 (func_emit_tests_Makefile_am): Likewise.
27013 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27015 2006-06-23 Mark D. Baushke <mdb@gnu.org>
27017 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27019 2006-06-23 Bruno Haible <bruno@clisp.org>
27021 * tests/test-stdint.c: Update to match ISO C 99 Technical
27024 2006-06-23 Bruno Haible <bruno@clisp.org>
27026 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27028 2006-06-23 Bruno Haible <bruno@clisp.org>
27030 * lib/stdint_.h: Treat IRIX like OpenBSD.
27032 2006-06-23 Bruno Haible <bruno@clisp.org>
27034 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27035 ISO C 99 Technical Corrigendum 1.
27037 2006-06-22 Simon Josefsson <jas@extundo.com>
27039 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27042 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
27044 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27045 needed. Some compiler complained about some of them. Problem reported
27047 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27049 2006-06-21 Simon Josefsson <jas@extundo.com>
27051 * tests/test-getaddrinfo.c: New file.
27053 * modules/getaddrinfo-tests: New file.
27055 * MODULES.html.sh: Add inet_pton.
27057 * modules/inet_pton: New file.
27059 2006-06-21 Simon Josefsson <jas@extundo.com>
27061 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
27062 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
27063 of using the (limited) gnulib implementation on Windows XP.
27065 * m4/inet_pton.m4: New file.
27067 2006-06-21 Simon Josefsson <jas@extundo.com>
27069 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27072 * lib/socket_.h: Don't define WINVER.
27074 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27075 slightly modified to work in gnulib.
27077 2006-06-21 Simon Josefsson <jas@extundo.com>
27079 * doc/gnulib.texi (Windows sockets): Add.
27081 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
27083 * lib/read-file.c (fread_file): Start with buffer allocation of
27084 0 bytes rather than 1 byte; this simplifies the code.
27085 Don't invoke feof; it's not needed. Refactor to avoid duplicate
27086 code to free buffer and save/restore errno.
27087 (internal_read_file): Remove unused local.
27089 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
27091 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27092 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27093 Problem reported by Denis Excoffier in
27094 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27096 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27098 * modules/sys_socket, modules/socklen: Include sys/types since
27099 FreeBSD 4.x's sys/socket.h needs it.
27101 2006-06-19 Simon Josefsson <jas@extundo.com>
27103 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27105 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
27107 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27109 2006-06-19 Bruno Haible <bruno@clisp.org>
27111 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27112 and FULL_PATH_INTTYPES_H in angle brackets.
27113 Reported by Mark D. Baushke <mdb@gnu.org>.
27115 2006-06-17 Eric Blake <ebb9@byu.net>
27117 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27120 2006-06-17 Bruno Haible <bruno@clisp.org>
27122 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27125 2006-06-17 Bruno Haible <bruno@clisp.org>
27127 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27128 whether errno is declared. Assume <errno.h> declares errno.
27130 2006-06-17 Bruno Haible <bruno@clisp.org>
27132 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27134 2006-06-17 Bruno Haible <bruno@clisp.org>
27136 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27137 problem on Solaris 2.5.1.
27139 2006-06-16 Eric Blake <ebb9@byu.net>
27141 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27142 * lib/unicodeio.c [!defined errno]: Likewise.
27143 * lib/strtol.c [!defined errno]: Likewise.
27144 * lib/strtod.c [!defined errno]: Likewise.
27146 2006-06-15 Eric Blake <ebb9@byu.net>
27148 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27150 2006-06-15 Eric Blake <ebb9@byu.net>
27152 * config/srclist.txt (ssize_t.m4): Lose sync.
27154 2006-06-15 Bruno Haible <bruno@clisp.org>
27156 * modules/stdint (Files): Include m4/full-header-path.m4,
27157 m4/size_max.m4, m4/wchar_t.m4.
27158 (Makefile.am): Many more substitutions.
27159 * modules/stdint-tests: New file.
27160 * tests/test-stdint.c: New file.
27162 2006-06-15 Bruno Haible <bruno@clisp.org>
27164 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27165 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27166 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27167 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27168 gl_CHECK_TYPE_SAME): New macros.
27170 2006-06-15 Bruno Haible <bruno@clisp.org>
27172 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27174 2006-06-15 Bruno Haible <bruno@clisp.org>
27176 * lib/stdint_.h: Rewritten to be fully auto-configured.
27177 Fixes bug on HP-UX/IA64.
27179 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
27181 * lib/getdate.y (__attribute__): Don't define if already defined.
27182 Problem reported by Larry Jones.
27183 * lib/utimens.c (__attribute__): Likewise.
27185 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
27187 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27188 reported by Andreas Schwab.
27190 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27191 Bruno Haible <bruno@clisp.org>
27193 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27194 check for the declaration of strnlen and a run test that exposes the
27195 AIX 5.1 strnlen bug. In the failure case, #define strndup to
27198 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27199 Bruno Haible <bruno@clisp.org>
27201 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27203 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27205 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27206 compile test, for Tru64 4.0D.
27208 2006-05-28 Karl Berry <karl@gnu.org>
27210 * config/srclist.txt (printf-args.c): lose sync.
27212 2006-05-26 Martin Lambers <marlam@marlam.de>
27214 * lib/getpass.c: Updates the test for the native W32 API, and adds
27215 missing includes, thus fixing compilation warnings.
27217 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
27219 * lib/exclude.c (exclude_fnmatch): New function.
27220 (excluded_file_name): Call exclude_fnmatch.
27221 * lib/exclude.h (excluded_file_name): New prototype
27223 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
27225 * lib/tempname.c (small_open, large_open): New macros.
27226 (__open, __open64) [!_LIBC]: Remove.
27227 (__gen_tempname): Use small_open and large_open instead of __open
27228 and __open64. This fixes a portability bug on HP-UX 11.11i
27229 reported by Simon Wing-Tang in
27230 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27232 2006-05-24 Bruno Haible <bruno@clisp.org>
27234 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27235 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27236 Reported by Thorsten Maerz <torte@netztorte.de> via
27237 Aaron Stone <aaron@serendipity.cx>.
27239 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
27241 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27242 gl_ rather than jm_. Link, don't run, so that cross-compiles are
27243 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
27244 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27245 not really conditional on the cache.
27246 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27248 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
27250 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27251 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27252 (my_usleep): Don't mishandle maximum value.
27254 2006-05-19 Jim Meyering <jim@meyering.net>
27256 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
27258 2006-05-17 Bruno Haible <bruno@clisp.org>
27260 Cygwin portability.
27261 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27263 2006-05-17 Bruno Haible <bruno@clisp.org>
27265 * lib/stdint_.h: Fix recognition of Cygwin.
27267 2006-05-15 Bruno Haible <bruno@clisp.org>
27269 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27270 on libtool patch by Ralf Wildenhues.
27272 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
27274 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27275 test for C99 conformance; (bool) 0.5 is an integer constant
27276 expression, but (bool) -0.5 is not. Problem reported by Fedor
27277 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27279 2006-05-11 Simon Josefsson <jas@extundo.com>
27281 * m4/xvasprintf.m4: Fix obvious typo.
27283 2006-05-11 Jim Meyering <jim@meyering.net>
27285 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
27288 2006-05-10 Simon Josefsson <jas@extundo.com>
27290 * lib/md4.c: Typo fix, update copyright years.
27291 (K1, K2): Don't use L because it turn computations into 64-bit on
27294 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
27296 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27297 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27298 unwanted sign propagation, e.g., on hosts with 64-bit int.
27299 There still are some problems with reeelly weird theoretical hosts
27300 (e.g., 33-bit int) but it's not worth worrying about now.
27301 * lib/sha1.c (rol): Likewise.
27302 (K1, K2, K3, K4): Remove unnecessary L suffix.
27304 2006-05-10 Bruno Haible <bruno@clisp.org>
27306 * lib/des.c: Cast to avoid warnings.
27308 2006-05-09 Bruno Haible <bruno@clisp.org>
27310 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27311 (Depends-on): Depend also on xsize, stdarg.
27312 (configure.ac): Add gl_XVASPRINTF.
27314 2006-05-09 Bruno Haible <bruno@clisp.org>
27316 * m4/xvasprintf.m4: New file.
27318 2006-05-09 Bruno Haible <bruno@clisp.org>
27320 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27321 (EOVERFLOW): Define fallback value.
27322 (xstrcat): New function.
27323 (xvasprintf): Recognize the special case of a string concatenation.
27325 2006-05-08 Eric Blake <ebb9@byu.net>
27327 * gnulib-tool (func_version): Base copyright year on CVS date.
27328 (func_emit_copyright_notice): New function.
27329 (func_emit_lib_Makefile_am): Use it.
27330 (func_emit_tests_Makefile_am): Likewise.
27331 (func_import): Likewise.
27333 2006-05-08 Bruno Haible <bruno@clisp.org>
27335 * modules/stdarg: New file.
27336 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27338 2006-05-08 Bruno Haible <bruno@clisp.org>
27340 * m4/stdarg.m4: New file, from GNU gettext.
27342 2006-05-08 Bruno Haible <bruno@clisp.org>
27344 * config/srclist.txt (build-aux/config.rpath): different from latest
27347 2006-05-08 Bruno Haible <bruno@clisp.org>
27349 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27351 2006-05-05 Jim Meyering <jim@meyering.net>
27353 * m4/warning.m4: New file, derived from bison's file by the same name.
27355 2006-05-03 Bruno Haible <bruno@clisp.org>
27357 * lib/stdint_.h: Shorter URL.
27358 * lib/inttypes.h: Likewise.
27360 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27362 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27364 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27366 * lib/verify.h: Document the internals better. Most of this change
27367 was written by Bruno Haible.
27369 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27371 * doc/verify.texi: New file, partly based on a proposal by
27374 2006-05-02 Bruno Haible <bruno@clisp.org>
27376 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27378 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27380 2006-04-29 Bruno Haible <bruno@clisp.org>
27382 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27383 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27385 2006-04-29 Bruno Haible <bruno@clisp.org>
27387 * gnulib-tool: Make --update option actually work.
27389 2006-04-29 Bruno Haible <bruno@clisp.org>
27391 * doc/gcd.texi: New file.
27392 * doc/gnulib.texi: Include it.
27394 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
27396 * lib/getdate.y (get_date): When adding relative date, start with the
27397 initial time, not with the result of the first mktime call.
27399 2006-04-25 Bruno Haible <bruno@clisp.org>
27401 * gnulib-tool (func_import): Output the include directives in three
27402 blocks, sorted separately.
27403 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27405 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
27407 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27408 to define main with arguments, for C++. Reported by Eric Blake.
27409 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27410 Prefer 'int main ()' to 'int main (void)', for C++.
27411 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27412 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27413 for 'main', for C99 and C++.
27415 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
27417 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27418 Don't assume that exit status -1 is valid.
27419 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27420 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27421 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27422 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27423 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27424 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27425 not AC_TRY_RUN. Use return, not exit. Don't assume that
27426 functions can be used without declaring them, or that you can
27427 exit with status -1.
27428 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27430 2006-04-24 Karl Berry <karl@gnu.org>
27432 * config/srclist.txt (longdouble.m4): sync lost.
27434 2006-04-24 Eric Blake <ebb9@byu.net>
27436 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27438 2006-04-24 Bruno Haible <bruno@clisp.org>
27440 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27441 poll() implementation in AIX.
27442 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27444 2006-04-24 Bruno Haible <bruno@clisp.org>
27446 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27447 assigned exactly once.
27449 2006-04-23 Claudio Fontana <claudio@gnu.org>
27450 Bruno Haible <bruno@clisp.org>
27452 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27453 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27456 2006-04-23 Bruno Haible <bruno@clisp.org>
27458 * modules/copy-file: Depend on unistd.
27459 * modules/execute: Likewise.
27460 * modules/fatal-signal: Likewise.
27461 * modules/findprog: Likewise.
27462 * modules/mkdtemp : Likewise.
27463 * modules/pipe: Likewise.
27464 * modules/wait-process: Likewise.
27466 2006-04-23 Bruno Haible <bruno@clisp.org>
27468 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27469 condition was already detected.
27470 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27472 2006-04-23 Bruno Haible <bruno@clisp.org>
27474 * lib/copy-file.c: Include <unistd.h> unconditionally.
27475 * lib/execute.c: Likewise.
27476 * lib/fatal-signal.c: Likewise.
27477 * lib/findprog.c: Likewise.
27478 * lib/mkdtemp.c: Likewise.
27479 * lib/pipe.h: Likewise.
27480 * lib/pipe.c: Likewise.
27481 * lib/wait-process.h: Likewise.
27483 2006-04-23 Bruno Haible <bruno@clisp.org>
27485 * gnulib-tool (func_usage): Fix --import description. Document
27487 (func_import): Create temporary file in a temporary directory, if
27488 --dry-run is specified. Silence errors from 'grep' when there are no
27489 m4 files in $m4dir.
27490 (func_create_testdir): Silence errors from 'grep' when there are no
27491 m4 files in $m4dir.
27492 Reported by Karl Berry <karl@freefriends.org>.
27494 2006-04-20 Bruno Haible <bruno@clisp.org>
27496 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27497 one argument, so that the code will be portable to Autoconf 2.60.
27498 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27499 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27500 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27502 2006-04-19 Derek Price <derek@ximbiot.com>
27503 Eric Blake <ebb9@byu.net>
27505 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27506 rather than "/full/path.h". Update comment to match. Shorten &
27507 generalize m4_translit call via AS_TR_CPP.
27509 2006-04-19 Derek Price <derek@ximbiot.com>
27510 Eric Blake <ebb9@byu.net>
27512 * lib/inttypes.h: Correct grammar in comment.
27514 2006-04-18 Derek Price <derek@ximbiot.com>
27515 Paul Eggert <eggert@cs.ucla.edu>
27517 * modules/inttypes: New file.
27518 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27520 2006-04-18 Derek Price <derek@ximbiot.com>
27521 Paul Eggert <eggert@cs.ucla.edu>
27523 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27526 2006-04-18 Derek Price <derek@ximbiot.com>
27527 Paul Eggert <eggert@cs.ucla.edu>
27529 * lib/inttypes.h: New file.
27530 * lib/strtoimax.c: Assume <inttypes.h>.
27532 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
27534 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27535 isn't mounted. Problem reported by Kir Kolyshkin.
27537 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
27539 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27540 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
27542 * lib/regex.h (RE_DUP_MAX): Update comment to match current
27545 2006-04-12 Eric Blake <ebb9@byu.net>
27547 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27548 is now done automatically by the corresponding Autoconf macro.
27550 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
27552 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27555 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27557 Merge regex changes from libc, removing some of our
27558 POSIX-conformance changes that were rejected and redoing them in a
27559 less-intrusive way.
27561 * lib/regcomp.c (re_compile_internal, init_dfa):
27562 Length arg is now size_t, not Idx. All uses changed.
27563 (peek_token): Forward decl now says internal_function.
27564 (__re_error_msgid, __re_error_msgid_idx):
27565 Now static rather than extern with attribute_hidden.
27566 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27567 For some reason libc prefers K&R style defns for external functions.
27568 (regerror) [!defined _LIBC]: Likewise.
27569 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27570 (seek_collating_symbol_entry, lookup_collation_sequence_value):
27571 (build_range_exp, build_collating_symbol):
27572 Use K&R-style defn.
27573 (re_compile_fastmap): Use '\0' to memset, not 0.
27574 (utf8_sb_map): Make the calculations more obvious.
27575 (init_dfa, parse_bracket_exp, build_charclass_op):
27576 Call calloc and cast result, as glibc does.
27577 (init_word_char, fetch_token, peek_token, peek_token_bracket):
27578 (build_range_exp, build_collating_symbol):
27579 Now internal functions.
27581 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27583 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
27584 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27585 Don't depend on VMS; depend on __VMS instead, for POSIX
27586 namespace cleanness.
27587 (regoff_t): Define to ssize_t, not long int.
27589 Remove the REG_ macros named below. Instead, make the old names
27590 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27592 (REG_BACKSLASH_ESCAPE_IN_LISTS):
27593 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27594 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27595 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27596 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27597 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27598 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27599 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27600 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27601 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27602 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27603 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27604 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27605 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27606 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27607 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27608 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27610 Remove. All uses replaced by the old RE_* names.
27611 (RE_BACKSLASH_ESCAPE_IN_LISTS):
27612 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27613 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27614 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27615 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27616 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27617 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27618 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27619 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27620 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27621 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27622 Don't bother having these macros be independent of each others'
27623 values, since they no longer exist in the POSIX name space.
27625 Rename the following member names back to their old names,
27626 unless !__USE_GNU_REGEX. All uses changed back.
27627 (buffer): Renamed from re_buffer.
27628 (allocated): Renamed from re_allocated.
27629 (used): Renamed from re_used.
27630 (syntax): Renamed from re_syntax.
27631 (fastmap): Renamed from re_fastmap.
27632 (translate): Renamed from re_translate.
27633 (can_be_null): Renamed from re_can_be_null.
27634 (regs_allocated): Renamed from re_regs_allocated.
27635 (fastmap_accurate): Renamed from re_fastmap_accurate.
27636 (no_sub): Renamed from re_no_sub.
27637 (not_bol): Renamed from re_not_bol.
27638 (not_eol): Renamed from re_not_eol.
27639 (newline_anchor): Renamed from re_newline_anchor.
27640 (num_regs): Renamed from rm_num_regs.
27641 (start): Renamed from rm_start.
27642 (end): Renamed from rm_end.
27644 (free_state): Move up a bit.
27646 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27647 #define to be empty.
27648 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27649 when that is what is intended.
27650 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27651 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27653 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27654 All uses changed back to re_malloc, etc. It's now the caller's
27655 responsibility to check for overflow; all callers changed.
27656 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27657 (re_x2nrealloc): Remove.
27658 (free_state): Remove decl.
27660 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27661 (re_set_registers, re_exec):
27662 Use K&R-style defn.
27664 2006-01-31 Roland McGrath <roland@redhat.com>
27666 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27667 Reported by Mike Frysinger <vapier@gentoo.org>.
27669 2006-01-15 Andreas Jaeger <aj@suse.de>
27672 * lib/regex_internal.c (re_string_reconstruct): Adjust for
27673 build_wcs_upper_buffer change.
27674 (build_wcs_upper_buffer): Change return type.
27676 2005-12-10 Ulrich Drepper <drepper@redhat.com>
27678 * lib/regex_internal.h: Include <stdint.h> if available.
27680 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
27682 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27684 2005-10-14 Ulrich Drepper <drepper@redhat.com>
27686 * lib/regcomp.c: Adjust for changed secondary hash function.
27688 2005-09-30 Ulrich Drepper <drepper@redhat.com>
27690 * lib/regex.h: Pretty printing.
27691 Clean up namespace a bit.
27693 2005-09-30 Jakub Jelinek <jakub@redhat.com>
27695 * lib/regexec.c (update_cur_sifted_state, check_arrival,
27696 check_arrival_add_next_nodes): Avoid using uninitialized variable.
27698 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
27699 Ulrich Drepper <drepper@redhat.com>
27702 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
27704 (bitset_word_t): Renamed from bitset_word. All uses changed.
27706 2005-09-22 Ulrich Drepper <drepper@redhat.com>
27709 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27710 * lib/regcomp.c: Remove unnecessary uses of
27711 unsigned RE_TRANSLATE_TYPE.
27712 * lib/regex_internal.h: Likewise.
27713 * lib/regex_internal.c: Likewise.
27714 * lib/regexec.c: Likewise.
27715 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27717 2005-09-07 Ulrich Drepper <drepper@redhat.com>
27719 * lib/regexec.c (find_recover_state): Remove unnecessary
27721 (transit_state_bkref): Make DFA a const pointer.
27722 (get_subexp): Likewise.
27723 (check_arrival): Likewise.
27724 (update_cur_sifted_state): Likewise.
27725 (re_search_internal): Likewise.
27726 (prune_impossible_nodes): Likewise.
27727 (acquire_init_state_context): Likewise.
27728 (proceed_next_node): Likewise.
27729 (set_regs): Likewise.
27730 (free_fail_stack_return): Likewise.
27731 (check_arrival_expand_ecl): Mark DFA parameter as const.
27732 (check_arrival_expand_ecl_sub): Likewise.
27733 (check_subexp_limits): Likewise.
27734 (sub_epsilon_src_nodes): Likewise.
27735 (add_epsilon_src_nodes): Likewise.
27736 (merge_state_array): Likewise.
27737 (update_regs): Likewise.
27738 (build_trtable): Likewise.
27739 (sift_states_backward): Mark MCTX parameter as const.
27740 (build_sifted_states): Likewise.
27741 (update_cur_sifted_state): Likewise.
27742 (sift_states_mkref): Likewise.
27743 (check_arrival_expand_ecl): Mark eclosure as const.
27744 (check_dst_limits_calc_pos_1): Likewise.
27745 * lib/regex_internal.h (re_match_context_t): Make dfa a const
27748 2005-09-06 Ulrich Drepper <drepper@redhat.com>
27750 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27751 (transit_state_sb): Likewise.
27752 (transit_state_mb): Likewise.
27753 (sift_states_iter_mb): Likewise.
27754 (check_arrival_add_next_nodes): Likewise.
27755 (check_node_accept_bytes): Change first parameter to pointer-to-const.
27756 [_LIBC] (re_search_2_stub): Use mempcpy.
27758 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27759 mbrtowc for very simple UTF-8 case.
27761 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27762 a pointer-to-const.
27763 (re_acquire_state_context): Likewise.
27764 * lib/regex_internal.h: Adjust prototypes.
27766 * lib/regex.c: Prevent using C++ compilers.
27768 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27769 (re_acquire_state_context): Likewise.
27771 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27773 * modules/regex (Depends-on): Add ssize_t.
27775 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27777 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27780 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27782 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27784 2006-03-29 Mark D. Baushke <mdb@gnu.org>
27785 Bruno Haible <bruno@clisp.org>
27787 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27788 <sys/types.h> and <inttypes.h>.
27790 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27792 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27793 `__error_t_defined', so argp.h will not typedef the former.
27795 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
27797 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27798 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
27799 glibc names. Even if glibc is changed to conform to POSIX, the
27800 traditional names will be available anyway, since regex depends on
27801 the extensions module. Also, fix a longstanding typo in the
27802 implementation of Spencer ERE test #75 from grep 2.3. Problems
27803 reported by Emanuele Giaquinta. Also, change sense of cached
27804 variable, so that the message makes sense.
27806 2006-03-24 Simon Josefsson <jas@extundo.com>
27808 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27809 including some doc fixes.
27810 (base64_encode_alloc): Fix +1 bug on allocation failures.
27812 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27814 * lib/base64.c (base64_encode): Do not read past end of array with
27815 unsanitized input on systems with CHAR_BIT > 8.
27817 2006-03-24 Eric Blake <ebb9@byu.net>
27819 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27821 2006-03-22 Karl Berry <karl@gnu.org>
27823 * config/srclist.txt (*setenv.[ch]): get from coreutils.
27824 * config/srclistvars.sh (COREUTILS): new var.
27826 2006-03-17 Jim Meyering <jim@meyering.net>
27828 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27829 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27831 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
27833 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27834 no longer needs it. Instead, check that regoff_t is as least
27835 as wide as ptrdiff_t.
27837 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27838 so that our regex.h stays compatible with the installed regex.
27839 This is helpful for installers who configure --without-included-regex.
27840 Problem reported by Emanuele Giaquinta.
27842 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
27844 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27845 Typedef to long int, not to off_, as POSIX will likely change
27848 2006-03-15 Eric Blake <ebb9@byu.net>
27850 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27852 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
27854 * lib/argp-help.c (validate_uparams): Fix typo
27855 * lib/argp-parse.c (argp_default_options): Consistently begin help
27856 messages with a lowercase letter.
27858 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
27860 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
27861 overrun buffers and shouldn't be used (much as gets shouldn't be
27863 * lib/time_r.c (asctime_r, ctime_r): Likewise.
27865 2006-03-08 Simon Josefsson <jas@extundo.com>
27867 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27868 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27870 2006-03-08 Simon Josefsson <jas@extundo.com>
27872 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27873 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27875 2006-03-08 Simon Josefsson <jas@extundo.com>
27877 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27878 signal that configure disabled the device.
27880 2006-03-08 Simon Josefsson <jas@extundo.com>
27882 * build-aux/maint.mk: Fix refresh-po, to handle no translated
27885 2006-03-07 Simon Josefsson <jas@extundo.com>
27887 * modules/getopt (Depends-on): Add unistd.
27889 * modules/unistd: New file.
27891 2006-03-07 Simon Josefsson <jas@extundo.com>
27893 * modules/gc-random: New file.
27895 2006-03-07 Simon Josefsson <jas@extundo.com>
27897 * m4/unistd_h.m4: New file.
27899 2006-03-07 Simon Josefsson <jas@extundo.com>
27901 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27902 test to be side-effect free by storing the result in the cache
27903 variable gl_cv_lib_readline, and moving the assignment of
27904 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27905 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27907 2006-03-07 Simon Josefsson <jas@extundo.com>
27909 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
27910 error on missing devices (the functions will return an error).
27912 * m4/gc.m4: Move random stuff to gc-random.m4
27914 2006-03-07 Simon Josefsson <jas@extundo.com>
27916 * lib/unistd_.h: New file.
27918 2006-03-07 Simon Josefsson <jas@extundo.com>
27920 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27922 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27924 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27925 Problem reported by Juan Manuel Guerrero.
27927 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27929 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27931 * lib/getlogin_r.c: Likewise.
27932 * lib/getlogin_r.h: Likewise.
27933 * lib/glob.c: Likewise.
27934 * lib/pagealign_alloc.c: Likewise.
27935 * lib/unistd_.h: Remove; no longer needed.
27937 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27939 * MODULES.html.sh (Support for systems lacking POSIX:2001):
27941 * modules/c-stack (Depends-on): Add unistd.
27942 * modules/getlogin_r: Likewise.
27943 * modules/glob: Likewise.
27944 * modules/pagealign_alloc: Likewise.
27945 * modules/unistd (Files): Remove lib/unistd_.h.
27946 (EXTRA_DIST): Remove.
27947 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27949 (MOSTLYCLEANFILES): Remove unistd.h-t.
27951 2006-03-03 Simon Josefsson <jas@extundo.com>
27953 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27955 2006-03-03 Simon Josefsson <jas@extundo.com>
27957 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27960 2006-03-03 Simon Josefsson <jas@extundo.com>
27962 * build-aux/maint.mk: Add indent target.
27964 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27966 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27967 our replacement poll.h in any case, to avoid a differing
27968 declaration from a system header. Seen on AIX.
27970 2006-03-01 Simon Josefsson <jas@extundo.com>
27972 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27975 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27977 * modules/gettime (Depends-on): Add extensions module.
27978 * modules/nanosleep (Depends-on): Likewise.
27979 * modules/settime (Depends-on): Likewise.
27981 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27983 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27984 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27986 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27987 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27989 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27990 not "==". Reported by Ralf Wildenhues.
27992 2006-03-01 Karl Berry <karl@gnu.org>
27994 * doc/Copyright/request-*: new files, synced from gnuorg.
27996 2006-03-01 Karl Berry <karl@gnu.org>
27998 * config/srclist.txt (Copyright/*): new entries.
28000 2006-02-28 Simon Josefsson <jas@extundo.com>
28002 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28004 2006-02-27 Simon Josefsson <jas@extundo.com>
28006 * lib/base64.h: Indent #define's. From Jim Meyering
28007 <jim@meyering.net>.
28009 2006-02-27 Jim Meyering <jim@meyering.net>
28011 Revert the change of 2006-02-24, so these files can continue
28012 to be sync'd from gettext.
28013 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28016 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
28018 * modules/intprops: New file.
28019 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28021 * modules/getloadavg (Files): Remove lib/intprops.h.
28022 (Depends-on): Add intprops.
28023 * modules/human: Likewise.
28024 * modules/inttostr: Likewise.
28025 * modules/openat: Likewise.
28026 * modules/sig2str: Likewise.
28027 * modules/userspec: Likewise.
28028 * modules/utimecmp: Likewise.
28029 * modules/xnanosleep: Likewise.
28030 * modules/xstrtol: Likewise.
28032 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
28034 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28035 * modules/lock-tests (TESTS): Use $(EXEEXT).
28036 * modules/tls-tests: Likewise.
28037 * modules/argp-tests: Likewise.
28038 (check_PROGRAMS): New var, replacing...
28039 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28041 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28043 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28046 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
28048 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28050 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28052 Sync from coreutils.
28053 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28056 2006-02-22 Jim Meyering <jim@meyering.net>
28058 Sync from coreutils.
28059 * m4/chdir-safer.m4: New file.
28061 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
28063 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28064 AT_FDCWD exceeds INT_MAX.
28065 * lib/openat.h (AT_FDCWD): Likewise.
28067 2006-02-17 Eric Blake <address@hidden>
28069 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28071 2006-02-16 Simon Josefsson <jas@extundo.com>
28073 * modules/getaddrinfo (Depends-on): Add sys_socket.
28075 2006-02-15 Simon Josefsson <jas@extundo.com>
28077 * build-aux/maint.mk: Add dsyntax-check rule.
28079 2006-02-15 Eric Blake <ebb9@byu.net>
28081 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28082 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28083 'present but cannot compile' warnings on cygwin.
28084 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
28085 use ws2tcpip.h if sys/socket.h works.
28086 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28087 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28089 2006-02-14 Simon Josefsson <jas@extundo.com>
28091 * modules/maintainer-makefile (Files): Rename.
28093 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28094 and (the local) Makefile.cfg to maint-cfg.mk.
28096 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28099 * modules/maintainer-makefile: New module.
28101 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28102 severaly stripped to make it possible to build it up from scratch
28103 with reliable tests.
28105 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28106 fixes to permit overriding the default actions when configure and
28107 makefile are not available.
28109 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
28111 Sync from coreutils.
28112 * modules/lstat (Depends-on): Don't depend on xalloc.
28113 (License): Change from GPL to LGPL, since this is now simply a
28114 replacement for a libc function.
28116 2006-02-14 Jim Meyering <jim@meyering.net>
28118 Sync from coreutils.
28120 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28121 failure on deficient systems, and simplify gnulib lgpl dependencies.
28122 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28123 xmalloc/lstat combination. Based on a patch from Bruno Haible.
28125 * lib/xalloc-die.c: Remove unused definition of N_.
28127 2006-02-14 Jim Meyering <jim@meyering.net>
28129 Sync from coreutils.
28130 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28131 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28132 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28133 double-quote uses of that variable, to accommodate the rare case in
28134 which getmntent is available in none of the libraries checked. This
28135 happens at least on FreeBSD 5.0.
28137 2006-02-13 Simon Josefsson <jas@extundo.com>
28139 * gnulib-tool (Usage): Fix --import, from
28140 karl@freefriends.org (Karl Berry).
28142 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
28144 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28146 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
28148 * lib/argp-namefrob.h: Restore changes accidentally lost during the
28149 "autoupdate" on 2005-12-12.
28151 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
28153 * modules/closeout (Depends-on): Remove atexit.
28155 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
28157 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28158 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28160 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
28162 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28163 __EXTENSIONS__ if this causes compilation to fail. Problem
28164 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28165 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28167 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
28169 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28170 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28171 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28174 2006-01-26 Simon Josefsson <jas@extundo.com>
28176 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28177 prototype is visible on mingw32.
28179 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28182 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28185 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
28187 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
28188 attempt to open for write; this always fails, at least on POSIX
28189 hosts. This reinstates the 2006-01-09 change, which was
28190 inadvertently removed.
28192 2006-01-26 Bruno Haible <bruno@clisp.org>
28194 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28195 Reported by Paul Eggert.
28197 2006-01-26 Bruno Haible <bruno@clisp.org>
28198 Paul Eggert <eggert@cs.ucla.edu>
28200 * lib/stdbool_.h (_Bool)
28201 [(! (defined __cplusplus || defined __BEOS__)
28202 && !defined __GNUC__
28203 && !(defined __HP_cc || defined __xlc__
28204 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28205 || defined __sgi))]:
28206 #define to signed char in these cases too; this simplifies
28207 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28208 etc., separately) and makes it more conservative.
28210 2006-01-25 Simon Josefsson <jas@extundo.com>
28212 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28213 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
28214 ws2tcpip.h with WINVER=0x0501. All for mingw32.
28216 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
28218 * lib/argp-namefrob.h: Bugfix. Remove stray #
28220 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
28222 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28223 so that we test the test.
28224 Check for yet another HP-UX cc bug involving *bool |= bool.
28226 2006-01-25 Karl Berry <karl@gnu.org>
28228 * config/srclist.txt (vasnprintf.c): sync lost.
28230 2006-01-25 Jim Meyering <jim@meyering.net>
28232 Sync from the stable (b5) branch of coreutils:
28234 * lib/fts.c (fts_children): Don't let close() clobber errno from
28237 * lib/fts.c (fts_stat): When following a symlink-to-directory,
28238 don't necessarily interpret stat-fails+lstat-succeeds as indicating
28239 a dangling symlink. That can also happen at least for ELOOP.
28240 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28241 FYI, this bug predates the inclusion of fts.c in coreutils.
28243 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28244 in their own block, so pre-c99 compilers don't object.
28246 Avoid the double-free (first in fts_read, second in fts_close) that
28247 would occur when an `active' directory is made inaccessible (e.g.,
28248 via chmod a-x) during a traversal.
28249 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28250 before returning. Reproduce this failure by
28251 mkdir -p a/b; cd a; chmod a-x . b
28252 Reported by Stavros Passas.
28254 2006-01-25 Jim Meyering <jim@meyering.net>
28256 * lib/fileblocks.c: Remove more useless parentheses.
28257 * lib/readutmp.h: Likewise.
28259 2006-01-25 Bruno Haible <bruno@clisp.org>
28261 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28263 Reported by Paul Eggert.
28265 2006-01-25 Bruno Haible <bruno@clisp.org>
28267 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28268 rid of a trap command. For Solaris sh.
28269 Reported by Mark D. Baushke <mdb@gnu.org>.
28271 2006-01-24 Simon Josefsson <jas@extundo.com>
28273 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28276 2006-01-24 Karl Berry <karl@gnu.org>
28278 * config/srclist.txt (argp-namefrob.h): sync lost.
28280 2006-01-24 Jim Meyering <jim@meyering.net>
28282 * modules/openat (Files): Add lib/intprops.h.
28283 From Mark D. Baushke.
28285 2006-01-24 Jim Meyering <jim@meyering.net>
28287 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28288 Reported by Mark D. Baushke.
28290 2006-01-24 Jim Meyering <jim@meyering.net>
28292 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28294 2006-01-24 Bruno Haible <bruno@clisp.org>
28296 * modules/strnlen (Maintainer): Change from glibc to all.
28298 2006-01-24 Bruno Haible <bruno@clisp.org>
28300 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28301 Patch by Paul Eggert.
28303 2006-01-24 Bruno Haible <bruno@clisp.org>
28305 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28307 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
28310 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28311 'signed char' to avoid problems with the built-in _Bool type.
28312 Reported by Paul Eggert on 2005-11-26.
28314 2006-01-24 Bruno Haible <bruno@clisp.org>
28316 * gnulib-tool (func_import): Avoid constructing complicated sed
28317 expressions inside backquote.
28318 Report and solution by Mark D. Baushke <mdb@gnu.org>.
28320 2006-01-23 Ulrich Drepper <drepper@redhat.com>
28322 These changes imported from libc.
28323 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28324 test and two separate function calls.
28325 * lib/strndup.c (__strndup): Add libc_hidden_def.
28327 2006-01-23 Simon Josefsson <jas@extundo.com>
28329 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28330 Remove the test_*_SOURCES variable: automake infers it by default.
28331 * modules/tls-tests: Likewise.
28333 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28335 Work around porting bugs reported by Dieter in
28336 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28337 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28338 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28339 Include "getopt.h" first, to check interface.
28340 (getenv): Declare only if defined HAVE_DECL_GETENV &&
28342 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28343 (__strndup): Revert to K&R-style function dfns, the glibc style.
28344 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28345 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28346 Include strnlen.h first, to get prototype properly.
28347 (strnlen): Renamed from __strnlen.
28350 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28352 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28354 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28356 * config/srclist.txt: Adjust to reflect glibc reorganization.
28357 This affects only comments.
28359 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
28361 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28362 Reported by Bruce Korb <bkorb@gnu.org>.
28364 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
28366 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28367 to pacify gcc -Wswitch-default.
28369 2006-01-22 Bruno Haible <bruno@clisp.org>
28371 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28372 temporary buffer for sprintf, take into account the precision also
28373 for 'd', 'i', 'u', 'o', 'x', 'X'.
28375 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
28377 * modules/argp-tests: New module
28378 * tests/test-argp.c: New file
28379 * tests/test-argp-2.sh: New file
28381 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
28383 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28384 (__argp_base_name): Removed
28385 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28387 (__argp_base_name): Provide macro definition or extern declaration
28388 depending on the configuration
28390 2006-01-20 Simon Josefsson <jas@extundo.com>
28392 * modules/inet_ntop (Depends-on): Depend on sys_socket.
28394 2006-01-20 Simon Josefsson <jas@extundo.com>
28396 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28398 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
28400 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28401 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28402 Suggested by Bruno Haible.
28404 2006-01-20 Karl Berry <karl@gnu.org>
28406 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28407 until changes propagate, I guess.
28409 2006-01-19 Simon Josefsson <jas@extundo.com>
28411 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28413 2006-01-19 Simon Josefsson <jas@extundo.com>
28415 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28417 2006-01-19 Simon Josefsson <jas@extundo.com>
28419 * gnulib-tool: Set check_PROGRAMS.
28421 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28422 modules/des-tests, modules/gc-arcfour-tests,
28423 modules/gc-arctwo-tests, modules/gc-des-tests,
28424 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28425 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28426 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28427 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28428 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28429 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28430 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28433 2006-01-18 Simon Josefsson <jas@extundo.com>
28435 * modules/socklen (Depends-on): Depend on sys_socket.
28437 2006-01-18 Simon Josefsson <jas@extundo.com>
28439 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28440 modules/des-tests, modules/gc-arcfour-tests,
28441 modules/gc-arctwo-tests, modules/gc-des-tests,
28442 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28443 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28444 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28445 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28446 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28447 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28448 $(EXEEXT) to automake TESTS variable, for mingw32.
28450 2006-01-17 Simon Josefsson <jas@extundo.com>
28452 * modules/socklen (Include): Need sys/socket.h.
28454 2006-01-17 Bruno Haible <bruno@clisp.org>
28456 * modules/ssize_t (Include): Add <sys/types.h>.
28458 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
28460 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28461 it's not portable and it doesn't work with cross-compiles.
28462 Problem reported by Bruno Haible. Fix missing-$ typo in
28463 'test "gl_cv_ignore_unused_libraries" ...' that prevented
28464 -zignore from being used with Sun's C compiler.
28466 2006-01-12 Simon Josefsson <jas@extundo.com>
28468 * lib/base64.c: Fix warning, reported by Bruno Haible
28469 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28471 2006-01-12 Bruno Haible <bruno@clisp.org>
28473 * modules/ldd: New file.
28474 * build-aux/ldd.sh.in: New file.
28475 * MODULES.html.sh (Support for building libraries and executables): Add
28478 2006-01-12 Bruno Haible <bruno@clisp.org>
28480 * m4/ldd.m4: New file.
28482 2006-01-12 Bruno Haible <bruno@clisp.org>
28484 * gnulib-tool (func_import, func_create_testdir): Don't go into an
28485 endless loop while replacing $auxdir with build-aux.
28487 2006-01-11 Simon Josefsson <jas@extundo.com>
28489 * lib/stdint_.h (SIZE_MAX): Add missing (.
28491 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
28493 Sync from coreutils.
28494 * lib/md5.c: Fix commentary typos.
28495 (alignof, UNALIGNED_P): No need for a GCC-specific version.
28496 * lib/md5.h (__attribute__): Remove; unused.
28497 * lib/sha1.c: Fix commentary to match md5 better.
28498 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28499 so that we don't need to worry about alignment. All uses changed.
28500 This merges the 2005-10-28 md5 change into sha1.
28502 2006-01-11 Jim Meyering <jim@meyering.net>
28504 Sync from coreutils.
28505 * lib/md5.c (OP): Fix spacing.
28507 2006-01-11 Bruno Haible <bruno@clisp.org>
28509 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28510 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28511 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28513 2006-01-11 Bruno Haible <bruno@clisp.org>
28515 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28516 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28517 the "early" section as well.
28519 2006-01-11 Bruno Haible <bruno@clisp.org>
28521 Avoid "ar: no archive members specified" error on MacOS X.
28522 * gnulib-tool (func_modules_add_dummy): New function.
28523 (func_import, func_create_testdir): Invoke it.
28525 2006-01-11 Bruno Haible <bruno@clisp.org>
28527 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28528 with $auxdir in AC_CONFIG_FILES statements.
28530 2006-01-11 Bruno Haible <bruno@clisp.org>
28532 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28533 Initialize also noinst_HEADERS to empty.
28535 2006-01-11 Bruno Haible <bruno@clisp.org>
28537 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28539 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28542 2006-01-11 Bruno Haible <bruno@clisp.org>
28544 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28545 overridable by the user.
28546 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28548 2006-01-10 Simon Josefsson <jas@extundo.com>
28550 * modules/sys_socket: New file.
28552 2006-01-10 Simon Josefsson <jas@extundo.com>
28554 * m4/sys_socket_h.m4: New file.
28556 2006-01-10 Simon Josefsson <jas@extundo.com>
28558 * lib/socket_.h: New file.
28560 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28562 * modules/readutmp (Maintainer): Add myself.
28564 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28566 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28567 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
28568 People who are still concerned with buggy memcmp implementations
28569 can invoke gl_FUNC_MEMCMP themselves.
28571 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28573 * lib/regex_internal.h (BITSET_WORD_BITS):
28574 Work around a bug in 64-bit PGC (before version 6.1-2), where the
28575 preprocessor mishandles large unsigned values as if they were signed.
28576 Problem reported by Claudio Fontana in
28577 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28579 2006-01-10 Jim Meyering <jim@meyering.net>
28581 Avoid the double-free (first in fts_read, second in fts_close) that
28582 would occur when an `active' directory is made inaccessible (e.g.,
28583 via chmod a-x) during a traversal.
28584 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28585 before returning. Reproduce this failure by
28586 mkdir -p a/b; cd a; chmod a-x . b
28587 Reported by Stavros Passas.
28589 Sync from coreutils.
28590 * lib/sha1.c: Tweak grammar in a comment.
28592 2006-01-10 Jim Meyering <jim@meyering.net>
28594 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28595 Patch by Joerg Sonnenberger.
28597 2006-01-10 Bruno Haible <bruno@clisp.org>
28599 * modules/readutmp: Depend on module free.
28600 * modules/strtok_r: Depend on module restrict.
28602 2006-01-10 Bruno Haible <bruno@clisp.org>
28604 * modules/gettext (configure.ac): Add an invocation of
28605 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28607 2006-01-10 Bruno Haible <bruno@clisp.org>
28609 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28610 Reported by Werner Lemberg <wl@gnu.org>.
28612 2006-01-10 Bruno Haible <bruno@clisp.org>
28614 * lib/localcharset.c: Update from GNU gettext.
28616 2006-01-10 Bruno Haible <bruno@clisp.org>
28618 * lib/argp.h (__const): Remove macro. Use const instead.
28619 * lib/argp-fmtstream.h (__const): Likewise.
28620 * lib/glob_.h (__const): Remove macro.
28621 * lib/glob-libc.h: Use const instead of __const.
28623 2006-01-10 Bruno Haible <bruno@clisp.org>
28625 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28627 Needed to avoid an automake error regarding the 'gettext' module.
28629 2006-01-09 Simon Josefsson <jas@extundo.com>
28631 * modules/inet_ntop (Depends-on): Add restrict.
28633 2006-01-09 Simon Josefsson <jas@extundo.com>
28635 * modules/gc-rijndael-tests (License): Put under LGPL.
28637 * modules/gc-des-tests (License): Likewise.
28639 * modules/gc-arcfour-tests (License): Likewise.
28641 * modules/gc-arctwo-tests (License): Likewise.
28643 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28645 * modules/gc-hmac-sha1-tests (Files): Likewise.
28647 * modules/gc-hmac-md5-tests (License): Likewise.
28649 * modules/gc-sha1-tests (License): Likewise.
28651 * modules/gc-md5-tests (License): Likewise.
28653 * modules/gc-md4-tests (License): Likewise.
28655 * modules/gc-md2-tests (License): Likewise.
28657 * modules/gc-tests (License): Likewise.
28659 * modules/des-tests (License): Likewise.
28661 * modules/md4-tests (License): Likewise.
28663 * modules/md2-tests (License): Likewise.
28665 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28667 Sync from coreutils:
28669 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28670 * modules/lib-ignore: New file.
28671 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28672 chdir-safer.m4, lchmod.m4.
28673 * modules/openat: Add mkdirat.c, openat-priv.h.
28675 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28677 Sync from coreutils.
28678 * m4/lib-ignore.m4: New file.
28679 * m4/lchmod.m4: New file.
28681 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28683 Sync from coreutils.
28684 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28685 for write access: POSIX says that must fail.
28686 * lib/fts.c (diropen): Likewise.
28687 * lib/save-cwd.c (save_cwd): Likewise.
28688 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28689 well, for minor improvements on hosts that lack O_DIRECTORY.
28690 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28691 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28692 Fall back on chown if open failed with EACCES.
28694 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28695 Report an error at compile-time if only a 1-second nominal clock
28696 resolution is found.
28698 * lib/lchmod.h: New file.
28699 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28700 (make_dir_parents): Use lchown rather than chown, and
28701 lchmod rather than chmod.
28703 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28704 dummies too. Problem with "none" reported by Bob Proulx. Problem with
28705 "proc" reported by n0dalus.
28707 * lib/mountlist.c: Include <limits.h>.
28708 (dev_from_mount_options)
28709 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28710 New function. It no longer assumes "dev=" has the System V meaning
28711 on Linux (since it doesn't). It also parses "dev=" more carefully.
28712 (read_file_system_list)
28713 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28714 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28717 * lib/posixtm.h (PDS_PRE_2000): New macro.
28718 * lib/posixtm.c (year): Arg is now syntax_bits rather than
28719 allow_century. All usages changed. Reject dates outside the range
28720 1969-1999 if PDS_PRE_2000 is used.
28722 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28724 Sync from coreutils.
28725 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28726 (Time of day items): Mention the possibility of leap seconds.
28727 Problem reported by Dr. David Alan Gilbert.
28729 2006-01-09 Jim Meyering <jim@meyering.net>
28731 Sync from coreutils.
28733 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28735 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28737 * lib/modechange.c (mode_compile): Reject an invalid mode string
28738 that starts with an octal digit. From Andreas Gruenbacher.
28740 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28741 and dup to open_safer and dup_safer, respectively.
28742 (openat_permissive): Fix typo in comment.
28744 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28745 "gettext.h"; either no longer needed or are guaranteed by openat.h.
28746 (_): Remove; no longer needed.
28747 (openat): Renamed from rpl_openat; no need for rpl_openat
28748 since openat.h renames openat for us.
28749 Replace most of the body with a call to openat_permissive,
28750 to avoid duplicate code.
28751 Port to (probably hypothetical) environments were mode_t is
28753 (openat_permissive): Require mode arg, so that we can check
28754 types better. Put it just after flags. Change cwd failure
28755 indicator from pointer-to-bool to pointer-to-errno-value.
28756 All callers changed.
28757 Invoke openat_save_fail and/or openat_restore_fail if
28758 cwd_errno is null, so that openat can call us.
28759 (openat_permissive, fdopendir, fstatat, unlinkat):
28760 Simplify errno handling to avoid some duplicate code,
28761 as it's OK to set errno on success.
28762 * lib/openat.h: Revamp code so that function macros depend on
28763 __OPENAT_PREFIX only, not also on AT_FDCWD.
28764 (openat_ro): Remove. Caller changed to use openat_permissive.
28765 (openat_permissive): Now a macro, if not a function.
28766 (openat_restore_fail, openat_save_fail): Now always functions,
28767 since mkdirat needs them even if __OPENAT_PREFIX is defined.
28769 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
28771 * lib/mkdirat.c: Include openat-priv.h.
28772 Remove definitions of macros defined therein.
28773 * lib/openat.c: Likewise.
28775 * lib/mkdirat.c (mkdirat): New file and function.
28776 * lib/openat.h (mkdirat): Declare.
28778 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
28780 * lib/openat.h (openat_permissive): Declare.
28781 (openat_ro): Define.
28783 * lib/openat.c (EXPECTED_ERRNO): New macro.
28784 (openat_permissive): New function -- used in remove.c rewrite.
28785 (all functions): Set errno just before returning, only if there
28786 was an actual failure.
28787 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
28789 Emulate openat-family functions using Linux's procfs, if possible.
28790 Idea and some code based on Ulrich Drepper's glibc changes.
28792 * lib/openat.c: (BUILD_PROC_NAME): New macro.
28793 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
28794 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
28795 before falling back on save_cwd and restore_cwd.
28796 (fdopendir, fstatat, unlinkat): Likewise.
28798 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
28799 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
28801 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
28802 as second argument to va_arg. Otherwise, some versions of gcc
28803 warn that `if this code is reached, the program will abort'.
28805 2006-01-09 Jim Meyering <jim@meyering.net>
28807 Sync from coreutils.
28808 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
28809 Require openat-priv.h.
28811 2006-01-09 Bruno Haible <bruno@clisp.org>
28813 * modules/strnlen (Include): Use strnlen.h.
28815 2006-01-09 Bruno Haible <bruno@clisp.org>
28817 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
28819 2006-01-09 Bruno Haible <bruno@clisp.org>
28821 * lib/sysexit_.h (EX_OK): New macro.
28822 Suggested by Martin Lambers <marlam@marlam.de>.
28824 2006-01-09 Bruno Haible <bruno@clisp.org>
28826 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
28827 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
28829 2006-01-09 Bruno Haible <bruno@clisp.org>
28831 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
28834 2006-01-09 Bruno Haible <bruno@clisp.org>
28836 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
28837 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
28838 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
28839 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
28841 2006-01-09 Bruno Haible <bruno@clisp.org>
28843 * build-aux/javacomp.sh.in: New file, moved from lib/.
28844 * modules/javacomp-script (Files): Update.
28845 (configure.ac): Add AC_CONFIG_FILES invocation.
28846 (EXTRA_DIST): Remove variable.
28848 * build-aux/javaexec.sh.in: New file, moved from lib/.
28849 * modules/javaexec (Files): Update.
28850 (configure.ac): Add AC_CONFIG_FILES invocation.
28851 (EXTRA_DIST): Remove javaexec.sh.in.
28853 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
28854 * modules/csharpcomp-script (Files): Update.
28855 (configure.ac): Add AC_CONFIG_FILES invocation.
28856 (EXTRA_DIST): Remove variable.
28858 * build-aux/csharpexec.sh.in: New file, moved from lib/.
28859 * modules/csharpexec (Files): Update.
28860 (configure.ac): Add AC_CONFIG_FILES invocation.
28861 (EXTRA_DIST): Remove csharpexec.sh.in.
28863 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28865 Sync from coreutils.
28867 Add POSIX ACL support
28868 * lib/acl.h (copy_acl, set_acl): Add declarations.
28869 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
28870 systems other than Linux.
28871 (chmod_or_fchmod): New function: use fchmod when possible,
28872 and chmod otherwise.
28873 (file_has_acl): Add a POSIX ACL implementation, with a
28874 Linux-specific subcase.
28875 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
28876 S_ISVTX from one file to another. Fall back to fchmod/chmod when
28877 acls are unsupported.
28878 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
28879 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
28882 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28884 Sync from coreutils.
28885 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
28887 2006-01-07 Bruno Haible <bruno@clisp.org>
28889 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
28892 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28894 * lib/strftime.c (tzname): Don't declare if it is already #defined.
28895 Problem reported for Mingw by Mark Junker.
28897 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28899 * README: Gnulib normally doesn't generate a tarball.
28901 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
28903 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
28904 long int, not int, for nanosecond counts, so that people who are
28905 used to POSIX struct timespec won't be surprised. Reported by Jim
28908 2005-12-28 Bruno Haible <bruno@clisp.org>
28910 * build-aux/config.rpath: Update from GNU gettext.
28912 2005-12-16 Jim Meyering <jim@meyering.net>
28914 * modules/fprintftime: New module.
28915 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
28917 2005-12-16 Jim Meyering <jim@meyering.net>
28919 * m4/fprintftime.m4: New file.
28921 2005-12-16 Jim Meyering <jim@meyering.net>
28923 * lib/fprintftime.c, lib/fprintftime.h: New files.
28925 2005-12-15 Simon Josefsson <jas@extundo.com>
28927 * modules/socklen (configure.ac): Fix M4 macro name, to align with
28930 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28932 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
28933 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
28935 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28937 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
28938 * lib/argp-help.c (fill_in_uparams): Check if the constructed
28939 struct uparams is valid. Fall back to the default values if it is
28942 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28944 * modules/argp (Files): Add argp-pin.c
28945 (Depends-on): dirname
28946 (lib_SOURCES): Add argp-pin.c
28948 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28950 * m4/argp.m4: Check if program_invocation_name and
28951 program_invocation_short_name are declared and define appropriate
28952 macros if they are not.
28954 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28956 * lib/argp-help.c (__argp_base_name): New function
28957 (__argp_short_program_name): Rewrite using __argp_base_name
28958 * lib/argp-namefrob.h: Define program_invocation_name and
28959 program_invocation_short_name if requested
28960 (__argp_base_name): Add prototype
28961 * lib/argp-parse.c (argp_def): Use gettext wrappers
28962 (argp_default_parser): Use __argp_base_name
28963 * lib/argp-pin.c: New file. Defines program_invocation_name and
28964 program_invocation_short_name on systems that lack them.
28966 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28968 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
28969 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28970 porting problem reported by Georg Schwarz in
28971 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28973 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28975 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
28976 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28977 porting problem reported by Georg Schwarz in
28978 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28980 2005-12-05 Bruno Haible <bruno@clisp.org>
28982 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
28983 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
28984 Reported by Mark Junker <mjscod@gmx.de>.
28986 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
28988 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
28989 Use implementation from Albert Chin, with some
28990 comments/corrections by Stepan Kasal and myself.
28992 2005-12-02 Bruno Haible <bruno@clisp.org>
28994 * gnulib-tool (func_import): Accept GPLed build tool modules when
28996 * modules/csharpcomp-script: New file.
28997 * modules/csharpcomp: Depend on it.
28998 * modules/javacomp-script: New file.
28999 * modules/javacomp: Depend on it.
29000 Suggested by Simon Josefsson.
29002 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
29004 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29005 statement, to work around an HP-UX 10.20 compiler bug reported by
29008 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
29010 * modules/savedir (Depends-on): Add openat.
29012 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
29014 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29015 (uintmax_t) [defined uintmax_t]: Do not declare.
29016 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29017 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29018 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
29019 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29020 sake of portability to weird hosts that C allows (though we don't
29021 know of any practical examples).
29023 * lib/savedir.h (fdsavedir): New decl.
29024 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29025 contains most of the former guts of savedir.
29026 (savedir): Use savedirstream.
29027 Include "openat.h".
29029 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
29031 * modules/obstack (Files): Add m4/ulonglong.m4.
29032 Problem reported by Davide Angelocola.
29034 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
29036 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29037 coreutils no longer futzes with rounding modes.
29039 2005-11-14 Jim Meyering <jim@meyering.net>
29041 * lib/mkstemp-safer.c: Include <config.h>, required for possible
29042 replacement of mkstemp.
29044 2005-11-10 Simon Josefsson <jas@extundo.com>
29046 * lib/readline.c: Remove EOL.
29048 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29050 * modules/gethrxtime (Depends-on): Add gettime.
29052 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29054 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29055 or gettimeofday; no longer needed.
29057 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29059 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29061 (gethrxtime) [! (HAVE_NANOUPTIME
29062 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29063 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29064 our own approximation.
29066 2005-11-08 Eric Blake <ebb9@byu.net>
29068 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29070 2005-11-08 Eric Blake <ebb9@byu.net>
29072 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29074 2005-11-04 Bruno Haible <bruno@clisp.org>
29076 * gnulib-tool: Implement --update mode.
29078 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
29080 Fix porting problem reported by Theodoros V. Kalamatianos.
29081 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29082 Don't assume that futimes failing means we must fail.
29084 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
29086 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29087 variables to suggest the intended function of the PATH_MAX check.
29089 2005-10-30 Kean Johnston <jkj@sco.com>
29091 Trivial changes to support SCO systems.
29092 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29094 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29095 where __ptr is null when no I/O is pending.
29097 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
29099 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29100 leave errno alone. Problem reported by Dmitry V. Levin.
29102 2005-10-28 Simon Josefsson <jas@extundo.com>
29104 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29107 * tests/test-gc-md2.c, tests/test-md2.c: New files.
29109 * modules/md2, modules/md2-tests: New files.
29111 2005-10-28 Simon Josefsson <jas@extundo.com>
29113 * m4/inet_ntop.m4: More tests.
29115 * m4/gc-md2.m4, md2.m4: New file.
29117 2005-10-28 Simon Josefsson <jas@extundo.com>
29119 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29120 "restrict" keywords, as per POSIX. Protect the function
29121 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29122 Don't use K&R prototypes. Check the sprintf return values.
29123 Re-define EAFNOSUPPORT if not present. Indent.
29125 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29126 suggested by Bruno Haible <bruno@clisp.org>.
29128 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29130 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
29132 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29135 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
29137 * lib/md2.h, lib/md2.c: New files.
29139 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
29141 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29142 errno alone. Problem reported by Frederic Jolliton.
29144 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
29146 * modules/verify (License): Change from GPL to LGPL. This is a
29147 tiny module and there are apparently near-equivalents that are
29148 under the BSD license.
29150 2005-10-24 Simon Josefsson <jas@extundo.com>
29152 * modules/sha1: Relicense to LGPL.
29154 2005-10-24 Simon Josefsson <jas@extundo.com>
29156 * lib/md4.h: Shrink buffer size, now that we changed the type.
29158 2005-10-23 Simon Josefsson <jas@extundo.com>
29160 * gnulib-tool (func_import): Fix --tests-base.
29162 2005-10-22 Simon Josefsson <jas@extundo.com>
29164 * modules/arcfour (Depends-on): Need stdint.
29166 2005-10-22 Simon Josefsson <jas@extundo.com>
29168 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29169 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
29171 2005-10-22 Simon Josefsson <jas@extundo.com>
29173 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29174 suggested by Bruno Haible <bruno@clisp.org>.
29176 2005-10-22 Simon Josefsson <jas@extundo.com>
29178 * lib/crc.h: Include stddef.h, for size_t.
29180 2005-10-22 Simon Josefsson <jas@extundo.com>
29182 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29183 arcfour_context struct (simplify test vector testing in GNU
29186 2005-10-21 Simon Josefsson <jas@extundo.com>
29188 * modules/des, modules/des-tests: New files.
29190 * modules/gc-des, modules/gc-des-tests: New files.
29192 * tests/test-des.c, tests/test-gc-des.c: New file.
29194 2005-10-21 Simon Josefsson <jas@extundo.com>
29196 * modules/arctwo, modules/arctwo-tests: New files.
29198 * tests/test-arctwo.c: New file.
29200 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29202 * tests/test-gc-arctwo.c: New file.
29204 2005-10-21 Simon Josefsson <jas@extundo.com>
29206 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29207 Bruno Haible <bruno@clisp.org>.
29209 * m4/gc-des.m4: New file.
29211 2005-10-21 Simon Josefsson <jas@extundo.com>
29213 * m4/arctwo.m4: New file.
29215 * m4/gc-arctwo.m4: New file.
29217 2005-10-21 Simon Josefsson <jas@extundo.com>
29219 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29222 2005-10-21 Simon Josefsson <jas@extundo.com>
29224 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29227 * lib/hmac-sha1.c (hmac_sha1): Likewise.
29229 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29230 Bruno Haible <bruno@clisp.org>.
29232 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29235 2005-10-21 Simon Josefsson <jas@extundo.com>
29237 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29239 2005-10-21 Simon Josefsson <jas@extundo.com>
29241 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29243 2005-10-21 Simon Josefsson <jas@extundo.com>
29245 * lib/des.h, lib/des.c: New files.
29247 * lib/gc-gnulib.c: Support DES.c
29249 2005-10-21 Simon Josefsson <jas@extundo.com>
29251 * lib/arctwo.h, lib/arctwo.c: New files.
29253 * lib/gc-gnulib.c: Support ARCTWO.
29255 2005-10-21 Simon Josefsson <jas@extundo.com>
29257 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29258 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29260 2005-10-21 Simon Josefsson <jas@extundo.com>
29262 * gnulib-tool (func_import, func_create_testdir): Define automake
29263 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29264 Makefile.am snippet),
29265 suggested by Bruno Haible <bruno@clisp.org>.
29267 * modules/gc (Makefile.am): Use it.
29269 2005-10-21 Bruno Haible <bruno@clisp.org>
29271 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29274 2005-10-19 Simon Josefsson <jas@extundo.com>
29276 * tests/test-gc-rijndael.c: New file.
29278 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29280 2005-10-19 Simon Josefsson <jas@extundo.com>
29282 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29285 2005-10-19 Simon Josefsson <jas@extundo.com>
29287 * tests/test-gc-arcfour.c: New file.
29289 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29291 2005-10-19 Simon Josefsson <jas@extundo.com>
29293 * modules/gc-md4, modules/gc-md4-tests: New file.
29295 * tests/test-gc-md4.c: New file.
29297 2005-10-19 Simon Josefsson <jas@extundo.com>
29299 * m4/gc-md4.m4: New file.
29301 2005-10-19 Simon Josefsson <jas@extundo.com>
29303 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29304 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29307 2005-10-19 Simon Josefsson <jas@extundo.com>
29309 * m4/gc-arcfour.m4: New file.
29311 * m4/gc-rijndael.m4: New file.
29313 2005-10-19 Simon Josefsson <jas@extundo.com>
29315 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29317 2005-10-19 Simon Josefsson <jas@extundo.com>
29319 * lib/gc-gnulib.c: Support ARCFOUR.
29321 2005-10-19 Simon Josefsson <jas@extundo.com>
29323 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29326 * lib/gc.h: Add ECB enum type.
29328 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29330 2005-10-18 Simon Josefsson <jas@extundo.com>
29332 * tests/test-md5.c: New file.
29334 * modules/md5-tests: New file.
29336 2005-10-18 Simon Josefsson <jas@extundo.com>
29338 * tests/test-md4.c: New file.
29340 * modules/md4, modules/md4-tests: New files.
29342 2005-10-18 Simon Josefsson <jas@extundo.com>
29344 * m4/md4.m4: New file.
29346 2005-10-18 Simon Josefsson <jas@extundo.com>
29348 * lib/md4.h, lib/md4.c: New files, based on md5.?.
29350 2005-10-17 Stepan Kasal <kasal@ucw.cz>
29352 * gnulib-tool (func_create_testdir): Omit the second check whether
29353 BUILT_SOURCES in nonempty.
29355 2005-10-17 Simon Josefsson <jas@extundo.com>
29357 * tests/test-rijndael.c: New file.
29359 2005-10-17 Simon Josefsson <jas@extundo.com>
29361 * modules/sha1: Depend on stdint instead of md5.
29363 * modules/md5: Depend on stdint, remove uint32_t.
29365 2005-10-17 Simon Josefsson <jas@extundo.com>
29367 * modules/gc-sha1-tests: New file.
29369 * tests/test-gc-sha1.c: New file.
29371 2005-10-17 Simon Josefsson <jas@extundo.com>
29373 * m4/md5.m4: Remove call to uint32_t.m4.
29375 2005-10-17 Simon Josefsson <jas@extundo.com>
29377 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29379 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29382 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
29384 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
29386 2005-10-17 Simon Josefsson <jas@extundo.com>
29388 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29390 2005-10-17 Simon Josefsson <jas@extundo.com>
29392 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29394 2005-10-17 Simon Josefsson <jas@extundo.com>
29396 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29398 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29400 2005-10-17 Bruno Haible <bruno@clisp.org>
29402 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29403 that it can also be used in a test.
29405 2005-10-16 Bruno Haible <bruno@clisp.org>
29407 * gnulib-tool (func_emit_tests_Makefile_am): Also define
29408 TESTS_ENVIRONMENT, so that individual tests can augment it.
29410 * gnulib-tool (func_create_testdir): Use an intermediate target for
29411 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29412 macros, like $(ALLOCA_H), which cannot be passed through the command
29415 2005-10-15 Simon Josefsson <jas@extundo.com>
29417 * modules/rijndael-tests: New file.
29419 * modules/rijndael: New file.
29421 2005-10-15 Simon Josefsson <jas@extundo.com>
29423 * m4/rijndael.m4: New file.
29425 2005-10-15 Simon Josefsson <jas@extundo.com>
29427 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29429 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29431 2005-10-14 Simon Josefsson <jas@extundo.com>
29433 * tests/test-arcfour.c: New file.
29435 * modules/arcfour, modules/arcfour-tests: New files.
29437 2005-10-14 Simon Josefsson <jas@extundo.com>
29439 * m4/arcfour.m4: New file.
29441 2005-10-14 Simon Josefsson <jas@extundo.com>
29443 * lib/arcfour.h, lib/arcfour.c: New files.
29445 2005-10-14 Roland McGrath <roland@redhat.com>
29447 Import from libc. [BZ #1331]
29448 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29450 Reported by Matej Vela <vela@debian.org>.
29452 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29454 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29455 include <wchar.h>; no longer needed.
29457 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29459 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29461 2005-10-14 Jakub Jelinek <jakub@redhat.com>
29462 and Ulrich Drepper <drepper@redhat.com>
29465 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29466 instead of inline stream orientation test and two separate
29467 function calls. Pay no attention to USE_IN_LIBIO.
29469 2005-10-13 Simon Josefsson <jas@extundo.com>
29471 * modules/gc-hmac-md5-tests: New file.
29473 * tests/test-gc-hmac-sha1.c: New file.
29475 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29477 * modules/gc-hmac-md5-tests: New file.
29479 * tests/test-gc-md5.c: New file.
29481 * modules/gc-md5-tests: New file.
29483 2005-10-13 Simon Josefsson <jas@extundo.com>
29485 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29486 Move memory allocation outside of loop.
29488 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
29490 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29491 intermediate directory is in a read-only file system. Problem
29492 reported by Eric Blake.
29494 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
29496 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29498 2005-10-12 Simon Josefsson <jas@extundo.com>
29500 * tests/test-hmac-sha1.c: New file.
29502 * modules/hmac-sha1-tests: New file.
29504 * modules/hmac-sha1: New file.
29506 2005-10-12 Simon Josefsson <jas@extundo.com>
29508 * modules/gc-sha1: New file.
29510 2005-10-12 Simon Josefsson <jas@extundo.com>
29512 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29514 * tests/test-gc-pbkdf2-sha1.c: New file.
29516 2005-10-12 Simon Josefsson <jas@extundo.com>
29518 * modules/gc-md5, modules/gc-hmac-md5: New files.
29520 * modules/gc (Files): Remove md5, memxor and hmac files.
29522 2005-10-12 Simon Josefsson <jas@extundo.com>
29524 * m4/gc-pbkdf2-sha1.m4: New file.
29526 * m4/gc-hmac-sha1.m4: New file.
29528 * m4/gc-sha1: New file.
29530 * m4/hmac-sha1.m4: New file.
29532 2005-10-12 Simon Josefsson <jas@extundo.com>
29534 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29536 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29538 2005-10-12 Simon Josefsson <jas@extundo.com>
29540 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29541 suggested by Bruno Haible <bruno@clisp.org>.
29543 2005-10-12 Simon Josefsson <jas@extundo.com>
29545 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29547 2005-10-12 Simon Josefsson <jas@extundo.com>
29549 * lib/gc-pbkdf2-sha1.c: New file.
29551 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29553 2005-10-12 Simon Josefsson <jas@extundo.com>
29555 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29557 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29559 2005-10-12 Simon Josefsson <jas@extundo.com>
29561 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29562 GC_USE_HMAC_MD5, respectively.
29564 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29565 (gc_md5): Fix typo.
29567 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29569 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29571 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29573 2005-10-12 Bruno Haible <bruno@clisp.org>
29575 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29576 Reported by Stepan Kasal <kasal@ucw.cz>.
29578 2005-10-11 Simon Josefsson <jas@extundo.com>
29580 * tests/test-crc.c: New file.
29582 * modules/crc, modules/crc-tests: New files.
29584 2005-10-11 Simon Josefsson <jas@extundo.com>
29586 * m4/crc.m4: New file.
29588 2005-10-11 Simon Josefsson <jas@extundo.com>
29590 * lib/gc.h: Add gc_hash and gc_hash_buffer.
29592 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
29594 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29596 2005-10-11 Simon Josefsson <jas@extundo.com>
29598 * lib/crc.h, lib/crc.c: New files.
29600 * lib/gc.h (gc_hash_buffer): Add doc.
29602 2005-10-11 Bruno Haible <bruno@clisp.org>
29604 * modules/c-strcasestr: New file.
29605 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29607 2005-10-11 Bruno Haible <bruno@clisp.org>
29609 * modules/c-strcase: New file.
29610 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29612 2005-10-11 Bruno Haible <bruno@clisp.org>
29614 * lib/strcasecmp.c: Include limits.h.
29615 (strcasecmp): Avoid integer overflow on exotic platforms.
29616 * lib/strncasecmp.c: Include limits.h.
29617 (strncasecmp): Avoid integer overflow on exotic platforms.
29618 Reported by Paul Eggert.
29620 2005-10-11 Bruno Haible <bruno@clisp.org>
29622 * lib/c-strcasestr.h: New file, from GNU gettext.
29623 * lib/c-strcasestr.c: New file, from GNU gettext.
29625 2005-10-11 Bruno Haible <bruno@clisp.org>
29627 * lib/c-strcase.h: New file, from GNU gettext.
29628 * lib/c-strcasecmp.c: New file, from GNU gettext.
29629 * lib/c-strncasecmp.c: New file, from GNU gettext.
29631 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
29633 * modules/mempcpy (License): GPL -> LGPL.
29634 * modules/strchrnul (License): Likewise.
29635 * modules/sysexits (License): Likewise.
29637 2005-10-08 Simon Josefsson <jas@extundo.com>
29639 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29641 2005-10-07 Simon Josefsson <jas@extundo.com>
29643 * m4/memxor.m4: Remove gl_C_RESTRICT call.
29645 2005-10-06 Simon Josefsson <jas@extundo.com>
29647 * tests/test-hmac-md5.c: New file.
29649 * modules/hmac-md5-tests: New file.
29651 * modules/hmac-md5: New file.
29653 2005-10-06 Simon Josefsson <jas@extundo.com>
29655 * m4/hmac-md5.m4: New file.
29657 * m4/memxor.m4: Require gl_C_RESTRICT.
29659 2005-10-06 Simon Josefsson <jas@extundo.com>
29661 * lib/memxor.c (memxor): Avoid casts and warnings.
29663 2005-10-06 Simon Josefsson <jas@extundo.com>
29665 * lib/hmac-md5.c: New file.
29667 * lib/hmac.h: New file.
29669 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
29671 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29672 promotes to int, not unsigned int, to catch the AIX 5.3
29675 2005-10-05 Simon Josefsson <jas@extundo.com>
29677 * modules/memxor: New file.
29679 * modules/iconv (Files): Move config.rpath to havelib, it is used
29682 * modules/havelib (Files): Add config.rpath.
29684 2005-10-05 Simon Josefsson <jas@extundo.com>
29686 * m4/memxor.m4: New file.
29688 2005-10-05 Simon Josefsson <jas@extundo.com>
29690 * lib/memxor.c (memxor): Fix compiler error.
29692 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29693 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29695 * lib/memxor.h, lib/memxor.c: New files.
29697 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29698 we assume all systems have it, suggested by Jim Meyering
29699 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
29700 any systems lack sys/socket.h; mingw32 is known to lack it, but we
29701 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
29704 2005-10-05 Simon Josefsson <jas@extundo.com>
29706 * config/srclist.txt: Add glibc bug 1423 for md5.h.
29708 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
29710 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29711 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29712 needed, since the source code now assumes these .h files.
29714 2005-10-05 Derek Price <derek@ximbiot.com>
29716 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29718 2005-10-05 Bruno Haible <bruno@clisp.org>
29720 * modules/stdint (License): Change to LGPL.
29722 2005-10-04 Simon Josefsson <jas@extundo.com>
29724 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29725 D. Baushke" <mdb@gnu.org>.
29727 2005-10-04 Bruno Haible <bruno@clisp.org>
29729 * lib/verify.h (verify_true): Provide alternative definition for C++.
29731 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
29733 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
29734 (SSIZE_MAX): New macro, if not already defined.
29735 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29738 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29740 Sync from coreutils.
29741 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29742 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29743 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
29744 ULLONG_MAX doesn't work with 2.7.2.1.
29746 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29748 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29751 * modules/exclude (Depends-on): Depend on verify.
29752 * modules/strtoimax (Depends-on): Likewise.
29753 * modules/utimecmp (Depends-on): Likewise.
29755 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29757 * lib/exclude.c: Include verify.h.
29758 (verify): Remove. All callers changed to use verify.h's version.
29759 * lib/strtoimax.c: Likewise.
29760 * lib/utimecmp.c: Likewis.e
29762 Sync from coreutils.
29763 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
29764 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
29765 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
29766 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
29767 bother returning ENOSYS if settimeofday or stime fails; just let
29768 them return whatever errno they want to return.
29769 * lib/utimens.c: Include unistd.h, for dup2.
29770 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
29771 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
29773 2005-10-02 Jim Meyering <jim@meyering.net>
29775 Sync from coreutils.
29776 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
29777 from glibc-2.2.5 that fails for read-only files.
29779 2005-10-02 Jim Meyering <jim@meyering.net>
29781 Sync from coreutils.
29782 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
29783 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
29784 `#if HAVE_CONFIG_H'.
29785 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
29786 Remove AT_FDCWD test.
29787 Do not consume the fd unless successful.
29788 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
29789 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
29790 block, so that we don't even try to compile it if settimeofday is
29791 available. This works around a compilation failure on OSF1 V5.1,
29792 due to stime requiring a `long int*' while tv_sec is `int'.
29794 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
29796 Sync from coreutils.
29797 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
29798 against `yes', rather than just testing for nonempty.
29800 2005-10-01 Simon Josefsson <jas@extundo.com>
29802 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
29805 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
29806 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
29807 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
29808 freeaddrinfo and gai_strerror are declared by the POSIX headers.
29809 Check if struct addrinfo is declared.
29811 2005-10-01 Simon Josefsson <jas@extundo.com>
29813 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
29814 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
29815 AI_* and EAI_* definitions. Protect function declarations.
29817 2005-10-01 Jim Meyering <jim@meyering.net>
29819 Sync from coreutils.
29821 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
29822 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
29823 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
29824 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29825 in the inet and nsl libraries. Required on Solaris 5.7.
29827 2005-10-01 Jim Meyering <jim@meyering.net>
29829 Sync from coreutils.
29830 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29831 in the inet and nsl libraries. Required on Solaris 5.7.
29833 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
29835 * lib/getdelim.c (getdelim): Remove unused variables.
29837 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
29839 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
29840 so that the code works even with ancient cpp. Portability problem
29841 with GCC 2.7.2.1 reported by Thomas M.Ott.
29843 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
29845 * modules/regex (Depends-on): Add strcase.
29847 * modules/gethostname (Licence): Change from GPL to LGPL, since
29848 gethostname.c is a trivial implementation of a standard library
29850 * modules/poll (License): Change from GPL to LGPL, since it's
29851 derived from LGPL code.
29853 2005-09-27 Jim Meyering <jim@meyering.net>
29855 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
29858 * lib/intprops.h (signed_type_or_expr__): Define.
29859 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
29860 for unsigned types.
29862 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
29864 * lib/verify.h (verify_expr): Remove, replacing with:
29865 (verify_true): New macro that returns true instead of void.
29866 (verify_type__): Remove.
29867 (verify): Use verify_true rather than verify_type__.
29869 2005-09-26 Bruno Haible <bruno@clisp.org>
29871 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
29873 (lib_SOURCES): Remove mbchar.c.
29874 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
29875 (Files): Add m4/mbrtowc.m4.
29876 * modules/mbiter: Likewise.
29877 * modules/mbuiter: Likewise.
29879 2005-09-26 Bruno Haible <bruno@clisp.org>
29881 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
29882 compile mbchar.c if they are not both present.
29883 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
29884 * m4/mbiter.m4 (gl_MBITER): Likewise.
29885 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
29886 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
29887 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
29889 2005-09-25 Jim Meyering <jim@meyering.net>
29891 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
29892 also uses socklen_t.
29894 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
29896 * lib/utimens.c (ENOSYS): Define if not already defined.
29897 (futimens): Support having a null PATH if the file descriptor
29900 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
29902 (__attribute): Define to empty unless GCC 3.1 or later.
29903 This works around a core dump on OpenBSD 3.4, which has GCC
29904 2.95.3, which dumps core when given __attribute__(()). It also
29905 simplifies other tests, since we really don't want to bother with
29906 worrying about which ancient version of GCC supported what.
29907 Original problem reported by Yoann Vandoorselaere, with part of
29908 the fix suggested by Derek Price.
29910 2005-09-24 Jim Meyering <jim@meyering.net>
29912 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
29913 so we can once again use a positive bitfield width of 1 -- now we
29914 don't have to explain why we were using a bitfield width of 2.
29916 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29918 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
29919 and similarly for the other external symbols. Problem reported
29922 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
29923 bug reported by Jim Meyering.
29925 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
29926 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
29927 not needed, since socklen is a prerequisite module.
29929 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29931 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
29932 Problem reported by Eric Blake.
29933 (getaddrinfo): Initialize se so that it's not garbage.
29934 Redo internal storage allocation so that it doesn't make unportable
29935 assumptions about alignment.
29938 * lib/utimens.c (futimens): Use futimesat if available.
29939 Prefer it to futimes since it doesn't have the futimes bug.
29941 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
29942 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
29943 Instead, declare a function that returns a pointer to an array,
29944 and use verify_type__ to declare the size of the array.
29945 Problem and germ of a solution reported by Bruno Haible.
29946 (verify_type__): Use 2, not 1, for bitfield size, to avoid
29947 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
29949 2005-09-23 Jim Meyering <jim@meyering.net>
29951 Sync from coreutils.
29952 Correct build failure (socklen_t not defined) on at least
29953 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
29954 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
29956 2005-09-23 Jim Meyering <jim@meyering.net>
29958 * modules/getaddrinfo (Depends-on): Add socklen.
29960 2005-09-23 Bruno Haible <bruno@clisp.org>
29962 * tests/test-verify.c: New file.
29964 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29966 Sync from coreutils.
29968 * modules/argmatch (Depends-on): Add verify.
29969 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
29971 * modules/save-cwd (Depends-on): Likewise.
29973 * modules/openat (Files): Add lib/openat-die.c.
29974 (Depends-on): Remove error, exitfail.
29977 * modules/verify: New file.
29978 * MODULES.html.sh (Diagnostics <assert.h>): New section,
29979 with "verify" module.
29981 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29983 Sync from coreutils.
29985 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
29986 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
29987 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
29988 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
29989 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
29990 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29991 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29992 Don't bother checking for string.h, stdlib.h, unistd.h.
29993 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29994 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29996 * m4/jm-macros.m4 (gl_MACROS): Likewise.
29997 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29999 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30000 (gl_GETDATE): Use it.
30002 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30004 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30006 Sync from coreutils.
30008 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30010 * lib/argmatch.h: Include verify.h
30011 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30012 (ARGMATCH_ASSERT): Remove; unused.
30013 * lib/canonicalize.c: Assume STDC_HEADERS.
30014 * lib/exclude.c: Include "strcase.h".
30015 * lib/regex_internal.h [!defined _LIBC]: Likewise.
30016 * lib/getusershell.c: Include stdio--.h rather than stdio.h
30018 (getusershell): Call fopen, not fopen_safer.
30019 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30020 Do not include unistd-safer.h.
30021 (save_cwd): Don't call fd_safer; no longer needed
30022 now that we include fcntl--.h.
30024 * lib/getdate.y (relative_time): New type.
30025 (RELATIVE_TIME_0): New constant.
30026 (parser_control): Use relative_time instead of doing it ourselves.
30027 (%union): Add new relative_time rel member.
30028 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30030 (relunit, relunit_snumber): Now of type rel.
30031 (zone, rel, relunit, get_date): Adjust to above changes.
30033 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30034 Do not include unistd-safer.h.
30035 (getloadavg): Don't call fd_safer; no longer needed
30036 now that we include fcntl--.h.
30038 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30039 (make_dir_parents): Treat ENOSYS like EEXIST.
30041 Improve quality of diagnostics on restore_cwd failure.
30042 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
30043 (make_dir_parents): Last arg is now int * (for errno), not bool *.
30044 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30045 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30046 each time through the loop. Do not diagnose restore_cwd failure;
30047 that is the caller's job (and perhaps the caller does not care).
30049 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30050 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30051 If the file already exists but is not a directory, don't bother
30052 to try to make its parents.
30053 Close potential file descriptor leak if we can't chdir("/") (!).
30054 Don't always return true if chdir($PWD) fails; return true only
30055 if the requested action was done successfully (except for the
30057 Don't log final directory unless we actually made it.
30058 Refactor to avoid duplicate code to fix up permissions.
30059 Don't attempt to fix up parent permissions if chdir($PWD) fails.
30061 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30062 to make it a bit faster and (I hope) clearer.
30063 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30064 Fix bug in formats like %2N.
30066 * lib/verify.h: New file.
30068 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30070 Sync from coreutils.
30071 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30073 2005-09-22 Jim Meyering <jim@meyering.net>
30075 Sync from coreutils.
30077 * m4/lstat.m4 (gl_FUNC_LSTAT):
30078 Use AC_LIBSOURCES to require lstat.c and lstat.h.
30079 Remove obsolete comment.
30080 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30081 * m4/xstrtod.m4: Likewise.
30083 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30085 2005-09-22 Jim Meyering <jim@meyering.net>
30087 Sync from coreutils.
30089 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30091 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30092 the .tm_year member, since otherwise gcc-4.0 would now warn about
30093 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30095 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30096 order to avoid an unsuppressible warning from gcc on 64-bit systems.
30098 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30099 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30100 when run in a time zone for which daylight savings time is in effect
30101 for the starting date.
30103 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30104 stop us from restricting permissions of just-created absolute-named
30106 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30107 to restore initial working directory.
30108 * lib/mkdir-p.c (make_dir_parents): New parameter:
30109 different_working_dir, to tell caller if/when we change the working
30110 directory and are unable to return to the initial one.
30111 * lib/mkdir-p.h (make_dir_parents): Update prototype.
30112 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30113 `return false'. This fixes a bug introduced on 2004-07-30.
30115 * lib/openat.c (fdopendir): Be sure to close the supplied
30116 file descriptor before returning. This makes our replacement
30117 implementation a little closer to Solaris's, where fdopendir
30118 ties the file descriptor to the returned DIR* pointer.
30119 * lib/openat.c (unlinkat): New function.
30120 * lib/openat.h (unlinkat): Add prototype.
30121 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30122 (openat_restore_fail): Rename from openat_restore_die.
30123 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30125 Provide an alternative to exiting immediately upon save_cwd or
30126 restore_cwd failure. Now, an application can arrange e.g.,
30127 to perform a longjump in that case.
30128 * lib/openat.c: Include dirname.h.
30129 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30130 (rpl_openat, fdopendir, fstatat): Call openat_save_die
30131 and openat_restore_die rather than calling error directly.
30132 Don't include "error.h" or "exitfail.h"; they're no longer needed.
30134 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30135 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30138 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30139 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30140 int utc, int nanoseconds);
30142 date should not have to allocate a megabyte of virtual memory to
30143 handle a format argument like +%1048575T. When implemented with
30144 strftime, it must allocate such a buffer, use strftime to fill it
30145 in, print it, then free it.
30146 With fprintftime, it simply prints everything and exits.
30147 With no need for memory allocation, that's one fewer way to fail.
30148 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30149 optional field width, not before, so we accept %9:z, not %:9z.
30150 (my_strftime): Be sure to use L_('x') for literals.
30152 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30153 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30154 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30155 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30156 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30157 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30158 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30159 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30160 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30161 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30162 * lib/xgethostname.c, lib/xreadlink.c:
30163 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30165 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30166 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30167 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30168 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30169 and don't include <sys/file.h>).
30171 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
30173 Sync from coreutils.
30175 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30176 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30177 [!LDAV_DONE]: Avoid unused variable warning.
30179 2005-09-21 Bruno Haible <bruno@clisp.org>
30181 * lib/unicodeio.h (unicode_to_mb): New declaration.
30183 2005-09-20 Derek Price <derek@ximbiot.com>
30185 * lib/getaddrinfo.c: Don't include <netdb.h> included from
30188 2005-09-20 Bruno Haible <bruno@clisp.org>
30190 * gnulib-tool: Remove trailing slashes from the values specified for
30191 --source-base, --m4-base, --tests-base, --aux-dir.
30192 Suggested by Simon Josefsson <jas@extundo.com>.
30194 2005-09-20 Bruno Haible <bruno@clisp.org>
30196 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30197 func_modules_to_filelist, func_import, func_create_testdir): Make all
30198 sorting results locale-independent, so that gnulib-cache.m4 doesn't
30199 change when gnulib-tool is invoked in a different locale.
30201 2005-09-19 Simon Josefsson <jas@extundo.com>
30203 * m4/socklen.m4: Fix typo.
30205 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30207 Use a consistent style for including <config.h>.
30208 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30209 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30210 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30211 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30212 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30213 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30214 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30215 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30216 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30217 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30218 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30219 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30220 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30221 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30222 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30223 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30224 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30225 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30226 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30227 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30228 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30229 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30230 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30231 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30232 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30233 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30234 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30235 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30236 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30237 lib/xstrtoumax.c, lib/yesno.c:
30238 Standardize inclusion of config.h.
30239 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30240 lib/inttostr.h: Removed inclusion of config.h from header files.
30241 * lib/inttostr.c: Adjusted in-tree users.
30242 * lib/timespec.h: Remove superfluous warning to include config.h.
30243 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30244 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30245 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30246 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30247 config.h with HAVE_CONFIG_H.
30249 2005-09-19 Jim Meyering <jim@meyering.net>
30251 * modules/pathmax (License): Change to LGPL.
30253 2005-09-19 Derek Price <derek@ximbiot.com>
30255 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30257 2005-09-19 Bruno Haible <bruno@clisp.org>
30259 * gnulib-tool (import): Provide default for --tests-base.
30261 2005-09-19 Bruno Haible <bruno@clisp.org>
30263 * doc/quote.texi: New file, extracted from gnulib.texi.
30264 * doc/ctime.texi: New file, extracted from gnulib.texi.
30265 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30266 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30267 * doc/gnulib.texi: Include them.
30269 2005-09-18 Bruno Haible <bruno@clisp.org>
30272 * gnulib-tool (func_readlink): New function.
30273 (func_ln_if_changed): Use it.
30275 2005-09-18 Bruno Haible <bruno@clisp.org>
30277 * gnulib-tool: Support --with-tests also with --import.
30278 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30279 (func_import): Use variables $testsbase and $inctests. Emit a
30280 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30281 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30282 SUBDIRS += $testsdir.
30283 (func_create_testdir): Update.
30285 2005-09-18 Bruno Haible <bruno@clisp.org>
30287 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30288 instead of $dry_run.
30289 (func_cp_if_changed, func_mv_if_changed): Remove functions.
30290 (func_ln_if_changed): Don't handle dry-run here.
30291 (func_import): In dry-run mode, detect more precisely which actions
30292 would be performed, and don't use "...ing" verbs.
30294 2005-09-18 Bruno Haible <bruno@clisp.org>
30296 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30297 (func_import): Use join on two temporary files instead of three nested
30298 loops, in order to determine which files are new or old.
30300 2005-09-18 Bruno Haible <bruno@clisp.org>
30302 * gnulib-tool (func_import): Comment out code that spits out the
30303 new files with --dry-run.
30305 2005-09-18 Bruno Haible <bruno@clisp.org>
30307 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30309 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30311 * lib/stat-time.h: New file.
30312 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30313 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
30314 in a different way.
30315 (timespec_cmp): New function.
30316 * lib/utimecmp.c: Include stat-time.h.
30317 (SYSCALL_RESOLUTION): Depend on whether various struct stat
30318 members exist, not on the obsolescent ST_MTIM_NSEC.
30319 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30321 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30323 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30325 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30327 * MODULES.html.sh (File system functions): Add stat-time.
30328 * modules/stat-time: New file.
30329 * modules/timespec (Files): Remove m4/st_mtim.m4; this
30330 is now done in a different way, by the stat-time module.
30331 * modules/utimecmp (Depends-on): Add stat-time.
30333 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
30335 * m4/st_mtim.m4: Remove. Superseded by...
30336 * m4/stat-time.m4: New file.
30337 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30338 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30340 2005-09-15 Derek Price <derek@ximbiot.com>
30342 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30344 2005-09-15 Derek Price <derek@ximbiot.com>
30346 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30347 * lib/regex_internal.c: Ditto, using this...
30348 (__GNUC_PREREQ): ...new macro.
30349 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30351 (__GNUC_PREREQ): ...this new macro.
30353 * lib/strstr.h: Include string.h. Define strstr as a macro here.
30355 2005-09-15 Derek Price <derek@ximbiot.com>
30356 Paul Eggert <eggert@cs.ucla.edu>
30358 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30359 changes, consolidating in...
30360 * lib/regex_internal.h: ...this file.
30362 2005-09-13 Jim Meyering <jim@meyering.net>
30364 * lib/canon-host.c: Filter through gnu indent and reword comments
30366 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30368 2005-09-13 Derek Price <derek@ximbiot.com>
30370 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30372 Reported by Jim Meyering <jim@meyering.net>.
30374 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
30376 * lib/base64.c: Typo.
30377 (base64_encode): Put b64str in initialized data section.
30379 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
30381 Merge glibc and coreutils changes into gnulib, plus a few
30383 * lib/md5.c: Use #error rather than a string.
30384 (CYCLIC): New macro, from glibc source. Use it instead of rol.
30385 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30386 (__attribute__): Define to empty for non recent-GCC.
30387 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30388 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30389 Renamed from their non-__ counterparts, with new macros replacing
30390 them if not _LIBC. Add __THROW attribute.
30392 (struct md5_ctx): Align buffer if using GCC.
30393 * lib/sha1.h (struct sha1_ctx): Likewise.
30394 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
30395 The old name was backwards.
30396 (NOTSWAP): Remove; not used.
30397 (rol): New macro, moved here from md5.h.
30398 (sha1_process_block): Remove a FIXME that doesn't make sense.
30400 2005-09-12 Derek Price <derek@ximbiot.com>
30402 Return usable errors from canon-host.
30403 * lib/canon-host.h: New file.
30404 * lib/canon-host.c (canon_host): Wrap...
30405 (canon_host_r): ...this new function, which now relies exclusively on
30407 (ch_strerror): New function.
30408 (last_cherror): New global.
30409 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30411 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
30413 (freeaddrinfo): Free ai->ai_canonname when set.
30415 2005-09-12 Derek Price <derek@ximbiot.com>
30417 Make canon-host require getaddrinfo.
30418 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30419 AC_LIBSOURCE canon-host.h. Call...
30420 (gl_PREREQ_CANON_HOST): ...this new function, which requires
30422 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30424 2005-09-12 Derek Price <derek@ximbiot.com>
30426 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
30428 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
30430 2005-09-12 Derek Price <derek@ximbiot.com>
30432 * lib/gai_strerror.c: Include config.h when available. Include
30433 getaddrinfo.h before other headers to test interface.
30434 Reported by Larry Jones <lawrence.jones@ugs.com>.
30436 2005-09-12 Derek Price <derek@ximbiot.com>
30437 Paul Eggert <eggert@cs.ucla.edu>
30439 * modules/glob (Files): Add glob-libc.h.
30441 2005-09-12 Derek Price <derek@ximbiot.com>
30442 Paul Eggert <eggert@cs.ucla.edu>
30444 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30445 glob_.h, glob-libc.h.
30446 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30448 2005-09-12 Derek Price <derek@ximbiot.com>
30449 Paul Eggert <eggert@cs.ucla.edu>
30451 * lib/glob-libc.h: Renamed from glob_.h. The new version is
30452 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30453 protecting things that should be done only in gnulib contexts.
30454 * lib/glob_.h: New file, containing only the glob things needed for
30456 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
30457 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30458 (glob, globfree, glob_pattern_p): Now defined simply in terms of
30459 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30460 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30461 and to respect the namespace rules better.
30463 2005-09-08 Simon Josefsson <jas@extundo.com>
30465 * modules/socklen: New file.
30467 2005-09-08 Simon Josefsson <jas@extundo.com>
30469 * m4/socklen.m4: New file.
30471 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30473 * modules/utimens (Files): Add m4/utimbuf.m4, since
30474 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30475 Reported by Sergey Poznyakoff.
30477 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30479 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30480 definitions, since that's the preferred style in glibc.
30481 Fix a minor spacing issue, and update copyright notice to match
30484 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30486 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30488 2005-09-06 Simon Josefsson <jas@extundo.com>
30490 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30491 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
30493 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30495 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30498 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30500 * config/srclist.txt: Add glibc bug 1302.
30502 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
30504 Change bitset word type from unsigned int to unsigned long int,
30505 as this has better performance on typical 64-bit hosts.
30506 Port bitset code to hosts with unusual word sizes.
30507 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30508 (build_collating_symbol):
30509 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30510 argument is a bitset. This is merely a style issue, but it makes
30511 it clearer that an entire array is expected.
30512 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30513 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30514 Port to the case where bitset_word is not the same as unsigned int.
30515 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30516 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30518 * lib/regexec.c (check_dst_limits_calc_pos_1,
30519 check_subexp_matching_top):
30520 (build_trtable, group_nodes_into_DFAstates):
30522 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30523 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30524 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30525 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30526 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30527 * lib/regcomp.c (optimize_subexps, lower_subexp):
30528 Work even if bitset_word has holes in its bitwise representation.
30529 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30530 * lib/regexec.c (check_dst_limits_calc_pos_1,
30531 check_subexp_matching_top):
30533 * lib/regex_internal.c (re_string_reconstruct):
30534 Don't assume UCHAR_MAX == 255.
30535 * lib/regex_internal.h (bitset_set_all): Likewise.
30536 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30538 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
30539 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30541 (BITSET_WORD_MAX): New macro.
30542 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30543 (bitset_set_all, bitset_copy): Now inline functions, not macros.
30544 (bitset_empty, bitset_copy):
30545 Prefer sizeof (bitset) to multiplying it out ourselves.
30546 (bitset_not_merge): Remove; unused.
30547 (bitset_contain): Return bool, not unsigned int with one bit on.
30548 All callers changed.
30549 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30550 alignment than re_node_set; do this by defining a new internal
30551 type struct dests_alloc and using it to allocate memory.
30553 2005-09-05 Bruno Haible <bruno@clisp.org>
30555 * gnulib-tool (func_import): Fix comparison in handling of symbolic
30558 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
30560 * modules/size_max (Makefile.am): Add size_max.h
30562 2005-09-04 Derek Price <derek@ximbiot.com>
30564 * gnulib-tool (func_import): Fix reversed $symbolic logic.
30566 2005-09-03 Simon Josefsson <jas@extundo.com>
30568 * gnulib-tool: Fix typo.
30570 2005-09-03 Simon Josefsson <jas@extundo.com>
30572 * config/srclist.txt: Add glibc bug 1293.
30574 2005-09-03 Derek Price <derek@ximbiot.com>
30576 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30577 From Larry Jones <lawrence.jones@ugs.com>.
30579 2005-09-02 Simon Josefsson <jas@extundo.com>
30581 * modules/socklen: New file.
30583 2005-09-02 Simon Josefsson <jas@extundo.com>
30585 * modules/havelib: New module.
30587 * modules/gettext, modules/iconv, modules/lock, modules/readline:
30590 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30592 Check for arithmetic overflow when calculating sizes, to prevent
30593 some buffer-overflow issues. These patches are conservative, in the
30594 sense that when I couldn't determine whether an overflow was possible,
30595 I inserted a run-time check.
30596 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30598 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30599 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30600 (re_xnrealloc, re_x2nrealloc): New inline functions.
30601 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30602 parse_bracket_exp):
30603 (build_equiv_class, build_charclass): Check for arithmetic overflow
30604 in size expression calculations.
30605 * lib/regex_internal.c (re_string_realloc_buffers):
30606 (build_wcs_upper_buffer, re_node_set_add_intersect):
30607 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30608 (re_dfa_add_node, register_state): Likewise.
30609 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30610 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30611 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30612 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30614 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30616 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30617 m4/ulonglong.m4. Problem reported by Martin Lambers.
30619 2005-09-02 Bruno Haible <bruno@clisp.org>
30621 Support for lib vs. lib64 distinction on biarch platforms.
30622 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30623 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30624 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30626 2005-09-02 Bruno Haible <bruno@clisp.org>
30628 * gnulib-tool (import): In the other first-use case, provide defaults
30631 2005-09-02 Bruno Haible <bruno@clisp.org>
30633 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30634 patches not yet found in the latest gettext release.
30636 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30638 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30639 to avoid a collision with bits/local_lim.h in glibc.
30640 All uses changed. Problem reported by Dmitry V. Levin in
30641 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30643 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30644 bugs in int versus size_t comparisons.
30645 (re_string_context_at): Fix bug where the code assumed that
30648 Use bool where appropriate.
30649 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30650 All callers changed.
30651 (calc_eclosure_iter): Likewise, for ROOT arg.
30652 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30653 (build_charclass_op): Likewise, for NON_MATCH arg.
30654 * lib/regex_internal.c (re_string_allocate, re_string_construct):
30655 (re_string_construct_common): Likewise, for ICASE arg.
30656 * lib/regexec.c (re_search_2_stub, re_search_stub):
30657 Likewise, for RET_LEN arg.
30658 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30659 (set_regs): Likewise, for FL_BACKTRACK arg.
30660 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30661 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30662 (calc_eclosure_iter, parse_bracket_exp):
30663 Use bool for internal variables that are booleans.
30664 * lib/regexec.c (re_search_internal, check_matching,
30665 proceed_next_node):
30666 (set_regs, build_sifted_states, sift_states_bkref):
30667 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30668 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30669 (find_collation_sequence_value):
30671 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30672 (re_node_set_compare):
30673 Return bool, not int. All callers changed.
30674 * lib/regexec.c (check_halt_node_context, check_dst_limits):
30675 (build_trtable, check_node_accept): Likewise.
30676 * lib/regex_internal.h: Include stdbool.h.
30678 Fix bugs uncovered when converting to bool.
30679 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30680 failure instead of charging ahead blindly.
30681 * lib/regex_internal.c (register_state): Likewise.
30682 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30683 for freeing internal storage.
30684 (group_nodes_into_DFA_states): Use unsigned int, not int, for
30685 bitset pieces used as boolean, to avoid undefined behavior
30686 on hosts that do int overflow checking.
30688 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30690 * config/srclist.txt: Add glibc bugs 1285-1287.
30692 2005-09-01 Jim Meyering <jim@meyering.net>
30694 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30695 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30696 Require gl_STAT_MACROS, too.
30698 2005-09-01 Bruno Haible <bruno@clisp.org>
30700 * gnulib-tool (import): In the first-use case, provide defaults.
30702 2005-09-01 Bruno Haible <bruno@clisp.org>
30704 * gnulib-tool (func_import): Remove the .tmp files.
30706 2005-09-01 Bruno Haible <bruno@clisp.org>
30708 * gnulib-tool (func_import): Fix handling of symbolic links.
30710 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30712 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30713 old glibc regex code mishandles strings longer than 2**31 bytes.
30714 This patch fixes this when the regex code is used in gnulib
30715 (i.e., outside glibc).
30717 This patch should not affect the use of the regex code inside
30718 glibc. No doubt this problem also needs to be handled for glibc
30719 as well, but the result will be an incompatible change to the
30720 glibc ABI, and the old ABI will have to be supported too. That
30721 can be the the subject for another patch.
30723 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30724 governing whether the rest of this patch is active. By default,
30725 the macro is disabled and the patch has no effect.
30726 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30727 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30728 (struct re_pattern_buffer, re_search, re_search_2, re_match):
30729 (re_match_2, re_set_registers): Use the new types.
30730 * lib/regex_internal.h (Idx, re_hashval_t): New types.
30731 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30733 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30734 (re_string_context_at, bin_tree_t, re_dfastate_t):
30735 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30736 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30737 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30738 (re_string_char_size_at, re_string_wchar_at):
30739 (re_string_elem_size_at):
30740 Use the new types and macros to port to 64-bit hosts.
30741 Use unsigned types for internal values, so that the code
30742 mostly works even for arrays larger than SSIZE_MAX.
30743 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30744 (search_duplicated_node, calc_eclosure_iter, fetch_number):
30745 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30746 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30747 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30748 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30749 (calc_inveclosure, parse_dup_op, build_range_exp):
30750 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
30751 (fetch_number, create_token_tree, mark_opt_subexp):
30753 * lib/regex_internal.c (re_string_construct_common,
30754 create_ci_newstate):
30755 (create_cd_newstate, re_string_allocate, re_string_construct):
30756 (re_string_realloc_buffers, build_wcs_upper_buffer):
30757 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30758 (re_string_reconstruct, re_string_peek_byte_case):
30759 (re_string_fetch_byte_case, re_string_context_at):
30760 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30761 (re_node_set_init_copy, re_node_set_add_intersect):
30762 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30763 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30764 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30765 (re_acquire_state, re_acquire_state_context, register_state):
30767 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
30768 search_cur_bkref_entry):
30769 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
30770 (re_search_internal, re_search_2_stub, re_search_stub)
30771 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
30772 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
30773 (update_cur_sifted_state, check_dst_limits):
30774 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30775 (check_subexp_limits, sift_states_bkref, merge_state_array):
30776 (check_subexp_matching_top, get_subexp, get_subexp_sub):
30777 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
30778 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30779 (expand_bkref_cache, check_node_accept_bytes):
30780 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
30781 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
30782 (acquire_init_state_context, check_halt_node_context):
30783 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
30784 (sift_states_backward, clean_state_log_if_needed):
30785 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
30786 (find_recover_state, transit_state_sb, transit_state_mb):
30787 (transit_state_bkref, build_trtable, match_ctx_clean):
30789 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
30790 to work around an assumption that REG_MISSING is negative.
30792 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
30793 (seek_collating_symbol_entry) [defined _LIBC]:
30794 (lookup_collation_sequence_value) [defined _LIBC]:
30795 (build_range_exp, build_collating_symbol) [defined _LIBC]:
30796 Use prototypes rather than old-style function definitions.
30797 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
30798 (transit_state_sb) [0]:
30799 (find_collation_sequence_value) [defined _LIBC]: Likewise.
30801 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
30804 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
30805 (optimize_subexps, lower_subexp):
30806 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
30807 since the signed shift might overflow. Use 1u<<31 instead.
30808 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30810 * lib/regexec.c (check_dst_limits_calc_pos_1,
30811 check_subexp_matching_top): Likewise.
30813 * lib/regcomp.c (optimize_subexps, lower_subexp):
30814 Use CHAR_BIT rather than 8, for clarity.
30815 * lib/regexec.c (check_dst_limits_calc_pos_1):
30816 (check_subexp_matching_top): Likewise.
30817 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
30818 have to worry about portability issues when shifting it left.
30819 Remove no-longer-needed test for table_size > 0.
30820 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
30821 in a word, as the resulting behavior is undefined.
30822 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
30823 in one case, a <= should have been an <, and in another case the
30824 whole test was missing.
30825 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
30826 the standard name CHAR_BIT.
30827 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
30828 this is not true on one's complement and signed-magnitude hosts.
30830 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
30832 (struct re_dfa_t): Remove unused member states_alloc.
30833 * lib/regcomp.c (init_dfa): Don't initialize unused members.
30835 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30837 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
30838 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
30839 and large-file glibc and in 32-bit large-file Solaris.
30841 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30843 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
30844 lengths fit in regoff_t; this isn't true if regoff_t is the same
30846 * lib/regex.c (re_search_internal): 5th arg is LAST_START
30847 (= START + RANGE) instead of RANGE. This avoids overflow
30848 problems when regoff_t is the same width as size_t.
30849 All callers changed.
30850 (re_search_2_stub): Check for overflow when adding the
30851 sizes of the two strings.
30852 (re_search_stub): Check for overflow when adding START
30853 to RANGE; if it occurs, substitute the extreme value.
30855 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30857 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
30859 2005-08-31 Jim Meyering <jim@meyering.net>
30861 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
30862 a pointer-to-const.
30863 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
30864 (register_state): Likewise.
30865 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
30866 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30867 (group_nodes_into_DFAstates): Likewise.
30869 2005-08-31 Jim Meyering <jim@meyering.net>
30871 * check-module: Add a FIXME comment.
30873 2005-08-31 Eric Blake <ebb9@byu.net>
30875 * modules/unistd-safer (Files): Add unistd--.h.
30876 * modules/stdio-safer (Files): Add stdio--.h.
30878 2005-08-31 Derek Price <derek@ximbiot.com>
30880 * lib/getdelim.c (getdelim): Return EOF on EOF.
30881 Reported by Larry Jones <lawrence.jones@ugs.com>.
30883 2005-08-31 Bruno Haible <bruno@clisp.org>
30885 Avoid unnecessary diffs in the generated lib/Makefile.am.
30886 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
30887 the generated files.
30888 (func_import): Don't set cmd.
30890 2005-08-31 Bruno Haible <bruno@clisp.org>
30892 * lib/strstr.c: Include <stddef.h>, for NULL.
30893 * lib/strcasestr.c: Likewise.
30894 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30896 2005-08-31 Bruno Haible <bruno@clisp.org>
30898 * gnulib-tool: New option --macro-prefix.
30899 (func_import): Use macro_prefix.
30900 (import): Handle option --macro-prefix.
30902 2005-08-31 Bruno Haible <bruno@clisp.org>
30904 * gnulib-tool (import): Rename most ac_* variables to cached_*.
30905 Also use new variables cached_lgpl, cached_libtool.
30907 2005-08-31 Bruno Haible <bruno@clisp.org>
30909 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
30910 always instantiating them.
30912 2005-08-31 Bruno Haible <bruno@clisp.org>
30914 * gnulib-tool (func_import): Read the previous cached settings
30915 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
30916 earlier added by gnulib but are now dropped. Warn when a gnulib file
30917 overwrites a non-gnulib file.
30919 2005-08-31 Bruno Haible <bruno@clisp.org>
30921 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
30922 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
30923 projects that don't keep autogenerated files in CVS. Put into
30924 actioncmd only the specified modules, not the transitive closure.
30926 2005-08-31 Bruno Haible <bruno@clisp.org>
30928 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
30929 Create directories that shall be filled.
30930 (import): Don't look for gl_* macros in configure.ac. Recurse across
30931 all directories containing a gnulib-cache.m4 files, if meaningful.
30933 2005-08-31 Bruno Haible <bruno@clisp.org>
30935 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
30936 (import): Set seen_libtool when we see gl_LIBTOOL.
30938 2005-08-31 Bruno Haible <bruno@clisp.org>
30940 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
30941 declaration macro definitions from generated gnulib.m4.
30943 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
30945 * lib/iconvme.h: Add prototype for iconv_alloc.
30947 2005-08-29 Simon Josefsson <jas@extundo.com>
30949 * lib/iconvme.c: Fix errno.
30951 2005-08-29 Bruno Haible <bruno@clisp.org>
30953 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
30954 that it works when the directory contains spaces.
30956 2005-08-29 Bruno Haible <bruno@clisp.org>
30958 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
30960 2005-08-29 Bruno Haible <bruno@clisp.org>
30962 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
30965 2005-08-29 Bruno Haible <bruno@clisp.org>
30966 and Stepan Kasal <kasal@ucw.cz>
30968 * check-module: If more parameters are given, check each of them
30969 separately; add more exceptions, as noted by Jim Meyering.
30970 (check_module): New procedure.
30971 (%exempt_header): Now contains all exceptions.
30973 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
30975 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
30977 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
30979 * lib/iconvme.c: Split iconv_string into iconv_alloc.
30981 2005-08-28 Bruno Haible <bruno@clisp.org>
30983 * m4/gnulib-tool.m4: New file.
30985 2005-08-27 Jim Meyering <jim@meyering.net>
30987 * modules/unistd-safer (Files): Add pipe-safer.c.
30988 * modules/fcntl-safer (Files): Add creat-safer.c.
30990 2005-08-27 Jim Meyering <jim@meyering.net>
30992 * m4/stdlib-safer.m4: New file. From coreutils.
30993 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30994 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30995 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30996 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30997 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30999 2005-08-27 Jim Meyering <jim@meyering.net>
31001 * lib/fopen-safer.c: Merge minor changes from coreutils.
31002 * lib/dup-safer.c: Likewise.
31003 * lib/fd-safer.c: Likewise.
31005 Merge from coreutils.
31006 * lib/stdio--.h: New file.
31007 * lib/stdlib--.h: New file.
31008 * lib/mkstemp-safer.c: New file.
31010 GNU tar needs these.
31011 * lib/pipe-safer.c: New file.
31012 * lib/creat-safer.c: New file.
31013 * lib/fcntl--.h (creat): Define to creat_safer.
31014 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31015 * lib/unistd--.h (pipe): Define to pipe_safer.
31016 * lib/unistd-safer.h: Declare pipe_safer.
31018 2005-08-26 Simon Josefsson <jas@extundo.com>
31020 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31021 Haible <bruno@clisp.org>.
31023 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
31025 * lib/regex_internal.h: Remove all references to
31026 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31028 (bitset_not, bitset_merge, bitset_not_merge):
31029 (bitset_mask, re_string_allocate, re_string_construct):
31030 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31031 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31032 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31033 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31034 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31035 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31036 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31037 (re_acquire_state_context):
31038 Remove unnecessary forward decls.
31039 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31040 Put __attribute at function definition,
31041 now that the function decl has been removed.
31042 * lib/regex_internal.c (re_string_peek_byte_case):
31043 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31046 2005-08-25 Stepan Kasal <kasal@ucw.cz>
31048 * m4/regex.m4: Add AC_PREREQ(2.50).
31049 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31051 2005-08-25 Simon Josefsson <jas@extundo.com>
31053 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31056 2005-08-25 Simon Josefsson <jas@extundo.com>
31058 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
31059 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
31060 GLIBC specific code.
31062 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31064 Make regex safe for g++. This fixes one real bug (an "err"
31065 that should have been "*err"). g++ problem reported by
31067 * lib/regex_internal.h (re_calloc): New macro, consistent with
31068 re_malloc etc. All callers of calloc changed to use re_calloc.
31069 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31070 not int. All callers changed.
31071 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31072 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31073 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31074 (find_recover_state): Change "err" to "*err"; this fixes what
31075 appears to be a real bug.
31076 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31079 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31081 * modules/regex (Depends-on): Add malloc, since the code
31082 assumes that !malloc(0) means failure.
31084 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31086 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31088 alloca modernization/simplification for regex.
31089 * lib/regex.c: Remove portability cruft for alloca. This no longer
31090 needs to be at the start of the file, and can be moved into
31091 regex_internal.h and simplified.
31092 * lib/regex_internal.h: Include <alloca.h>.
31093 (__libc_use_alloca) [!defined _LIBC]: New macro.
31094 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31095 now works outside glibc.
31097 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31099 * config/srclist.txt: Add glibc bugs 1241, 1245.
31101 2005-08-25 Jim Meyering <jim@meyering.net>
31103 * lib/open-safer.c: Include <config.h>.
31104 Otherwise, we'd lose LARGEFILE support in any file using
31107 2005-08-25 Bruno Haible <bruno@clisp.org>
31109 * m4/minmax.m4: Require autoconf 2.52.
31110 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31111 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31112 alternatives of translit over the alphabet.
31113 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31115 2005-08-24 Simon Josefsson <jas@extundo.com>
31117 * tests/test-getpass.c: New file.
31119 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31121 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31122 for GNU regex features.
31124 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31126 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31127 * lib/regex.h (regerror): Likewise.
31129 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31130 requires this. (The code never needed it.)
31132 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31133 All uses of recently-renamed identifiers changed to use the new,
31134 POSIX-compliant names. The code will build and run just fine
31135 without these changes, but it's better to eat our own dog food
31136 and use the standard-conforming names.
31138 * lib/regex.h: Fix a multitude of POSIX name space violations.
31139 These changes have an effect only for programs that define
31140 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31141 do not change anything for programs compiled in the normal way.
31142 Also, there is no effect on the ABI.
31144 (_REGEX_SOURCE): New macro.
31145 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31146 defined and _GNU_SOURCE is not; this fixes a name space violation.
31148 Rename the following macros to obey POSIX requirements.
31149 The old names are still visible as macros if _REGEX_SOURCE is defined.
31150 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31151 RE_BACKSLASH_ESCAPE_IN_LISTS.
31152 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31153 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31154 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31155 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31156 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31157 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31158 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31159 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31160 (REG_INTERVALS): renamed from RE_INTERVALS.
31161 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31162 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31163 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31164 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31165 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31166 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31167 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31168 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31169 RE_UNMATCHED_RIGHT_PAREN_ORD.
31170 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31171 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31172 (REG_DEBUG): renamed from RE_DEBUG.
31173 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31174 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
31175 unusual, since we can't clash with the POSIX REG_ICASE.
31176 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31177 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31178 (REG_NO_SUB): renamed from RE_NO_SUB.
31179 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31180 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31181 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31182 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31183 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31184 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31185 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31186 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31187 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31188 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31189 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31190 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31191 RE_SYNTAX_POSIX_MINIMAL_BASIC.
31192 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31193 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31194 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31195 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
31196 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31197 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31198 (REG_FIXED): Renamed from REGS_FIXED.
31199 (REG_NREGS): Renamed from RE_NREGS.
31201 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31202 of other REG_* macros, since POSIX says the user is allowed to
31203 #undef these macros selectively.
31205 (reg_errcode_t): Update comment stating what other tables need
31208 Rename the following enum values to obey POSIX requirements.
31209 The old names are still visible as macros.
31210 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
31211 is not defined, since GNU is supposed to be a superset of POSIX as
31212 much as possible, and since we want reg_errcode_t to be a signed
31213 type for implementation consistency.
31214 (_REG_NOERROR): Renamed from REG_NOERROR.
31215 (_REG_NOMATCH): Renamed from REG_NOMATCH.
31216 (_REG_BADPAT): Renamed from REG_BADPAT.
31217 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31218 (_REG_ECTYPE): Renamed from REG_ECTYPE.
31219 (_REG_EESCAPE): Renamed from REG_EESCAPE.
31220 (_REG_ESUBREG): Renamed from REG_ESUBREG.
31221 (_REG_EBRACK): Renamed from REG_EBRACK.
31222 (_REG_EPAREN): Renamed from REG_EPAREN.
31223 (_REG_EBRACE): Renamed from REG_EBRACE.
31224 (_REG_BADBR): Renamed from REG_BADBR.
31225 (_REG_ERANGE): Renamed from REG_ERANGE.
31226 (_REG_ESPACE): Renamed from REG_ESPACE.
31227 (_REG_BADRPT): Renamed from REG_BADRPT.
31228 (_REG_EEND): Renamed from REG_EEND.
31229 (_REG_ESIZE): Renamed from REG_ESIZE.
31230 (_REG_ERPAREN): Renamed from REG_ERPAREN.
31231 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31232 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31233 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31234 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31236 (_REG_RE_NAME, _REG_RM_NAME): New macros.
31237 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
31238 changed. But support the old name if the new one is not defined
31239 and if _REGEX_SOURCE.
31241 Change the following member names in struct re_pattern_buffer.
31242 The old names are still supported if !_REGEX_SOURCE.
31243 The new names are always supported, regardless of _REGEX_SOURCE.
31244 (re_buffer): Renamed from buffer.
31245 (re_allocated): Renamed from allocated.
31246 (re_used): Renamed from used.
31247 (re_syntax): Renamed from syntax.
31248 (re_fastmap): Renamed from fastmap.
31249 (re_translate): Renamed from translate.
31250 (re_can_be_null): Renamed from can_be_null.
31251 (re_regs_allocated): Renamed from regs_allocated.
31252 (re_fastmap_accurate): Renamed from fastmap_accurate.
31253 (re_no_sub): Renamed from no_sub.
31254 (re_not_bol): Renamed from not_bol.
31255 (re_not_eol): Renamed from not_eol.
31256 (re_newline_anchor): Renamed from newline_anchor.
31258 Change the following member names in struct re_registers.
31259 The old names are still supported if !_REGEX_SOURCE.
31260 The new names are always supported, regardless of _REGEX_SOURCE.
31261 (rm_num_regs): Renamed from num_regs.
31262 (rm_start): Renamed from start.
31263 (rm_end): Renamed from end.
31265 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31266 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31267 Prepend __ to parameter names.
31269 Undo yesterday's changes.
31271 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31273 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31274 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
31277 2005-08-24 Jim Meyering <jim@meyering.net>
31279 Sync from coreutils.
31280 * m4/fcntl-safer.m4: New file.
31282 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31283 and object files for this module.
31285 2005-08-24 Jim Meyering <jim@meyering.net>
31287 Sync from coreutils.
31288 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31290 2005-08-24 Jim Meyering <jim@meyering.net>
31292 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31293 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31295 2005-08-24 Jim Meyering <jim@meyering.net>
31297 * modules/fcntl-safer: New module.
31298 * modules/fts (Depends-on): Add fcntl-safer.
31299 * MODULES.html.sh (File descriptor based Input/Output):
31302 2005-08-24 Bruno Haible <bruno@clisp.org>
31304 Support for unit test modules.
31305 * modules/README: Mention tests modules.
31306 * modules/TEMPLATE-TESTS: New file.
31307 * gnulib-tool: New options --extract-tests-module, --with-tests and
31308 --tests-base (unused for the moment).
31309 (testsbase, inctests): New variables.
31310 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31311 (func_verify_module): Exclude TEMPLATE-TESTS.
31312 (func_verify_nontests_module, func_verify_tests_module): New functions.
31313 (func_get_dependencies): Add implicit dependency for tests modules.
31314 (func_get_tests_module): New function.
31315 (func_modules_transitive_closure): When --with-tests was specified,
31316 include the unit tests as well, unless explicitly avoided.
31317 (func_emit_lib_Makefile_am): Ignore the tests modules here.
31318 (func_emit_tests_Makefile_am): New function.
31319 (func_create_testdir): When --with-tests was specified, emit a
31321 * MODULES.html.sh (Future developments): Update.
31323 2005-08-24 Bruno Haible <bruno@clisp.org>
31325 * modules/tls-tests: New file.
31326 * tests/test-tls.c: New file, from GNU gettext.
31328 2005-08-24 Bruno Haible <bruno@clisp.org>
31330 * modules/lock-tests: New file.
31331 * tests/test-lock.c: New file, from GNU gettext.
31333 2005-08-24 Bruno Haible <bruno@clisp.org>
31335 * lib/lock.h: Add multiple inclusion guard.
31336 * lib/tls.h: Add multiple inclusion guard.
31338 2005-08-24 Bruno Haible <bruno@clisp.org>
31340 * gnulib-tool: Add support for the --aux-dir option to
31341 --create-testdir, --create-megatestdir, --test, --megatest.
31342 (func_create_testdir, func_create_megatestdir): Optionally emit a
31343 AC_CONFIG_AUX_DIR directive.
31344 (create-testdir, create-megatestdir, test, megatest): Provide a
31345 default value for $auxdir.
31347 2005-08-24 Bruno Haible <bruno@clisp.org>
31349 * gnulib-tool (import): Use compound statement instead of subshell
31352 2005-08-24 Bruno Haible <bruno@clisp.org>
31354 * gnulib-tool (import): Change --aux-dir default to "build-aux".
31356 2005-08-24 Bruno Haible <bruno@clisp.org>
31358 * gnulib-tool (func_version): Update.
31360 2005-08-24 Bruno Haible <bruno@clisp.org>
31362 * gnulib-tool (func_import, func_create_testdir,
31363 func_create_megatestdir): Quote all autoconf macro arguments.
31365 2005-08-24 Bruno Haible <bruno@clisp.org>
31367 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31368 option --force, because --force causes the aclocal.m4 of each
31369 subdirectory to be newer than the corresponding config.h.in.
31371 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31373 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31374 All contents moved to gl_REGEX.
31375 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31376 assume that it does.
31378 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31380 * lib/regex.h (REG_NOSYS)
31381 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31382 Define, since POSIX requires it as of 2001.
31384 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31385 New private symbol, used to keep the enum signed in all cases.
31386 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31388 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31390 * lib/regex_internal.c (re_string_skip_chars, register_state):
31392 Remove forward decls; no longer needed now that we use prototypes.
31393 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31394 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31395 (clean_state_log_if_needed): Likewise.
31397 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31399 * config/srclist.txt: Add glibc bugs 1231-1233.
31401 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31403 Fix problems reported by Sam Steingold in
31404 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31405 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31406 assumed that reg_errcode_t is a signed type, which is not
31407 necessarily true if _XOPEN_SOURCE is not defined.
31408 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31409 since some compilers warn about it otherwise.
31411 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31413 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31414 (init_word_char, create_initial_state, duplicate_node_closure):
31415 (fetch_token, peek_token_bracket, build_range_exp):
31416 (build_collating_symbol): Remove forward decls; no longer needed
31417 now that we use prototypes.
31420 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31421 (re_compile_fastmap_iter, regcomp, regerror, regfree):
31422 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31423 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31424 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31425 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31426 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31427 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31428 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31429 (build_range_exp, build_collating_symbol, parse_bracket_exp):
31430 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31431 (build_charclass, build_charclass_op, fetch_number, create_tree):
31432 (create_token_tree, mark_opt_subexp, duplicate_tree):
31433 Use prototypes rather than old-style definitions.
31435 * lib/regex_internal.c:
31436 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31437 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31438 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31439 (re_string_reconstruct, re_string_peek_byte_case):
31440 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31441 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31442 (re_node_set_init_copy, re_node_set_add_intersect):
31443 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31444 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31445 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31446 (re_acquire_state, re_acquire_state_context, register_state):
31447 (create_ci_newstate, create_cd_newstate, free_state):
31449 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31451 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31452 (re_search_internal, prune_impossible_nodes):
31453 (acquire_init_state_context, check_matching, static):
31454 (check_halt_node_context, check_halt_state_context, proceed_next_node):
31455 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31456 (update_regs, sift_states_backward, build_sifted_states):
31457 (clean_state_log_if_needed, merge_state_array):
31458 (update_cur_sifted_state, add_epsilon_src_nodes):
31459 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31460 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31461 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31462 (find_recover_state, check_subexp_matching_top, transit_state_mb):
31463 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31464 (check_arrival, check_arrival_add_next_nodes):
31465 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31466 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31467 (check_node_accept_bytes, check_node_accept, extend_buffers):
31468 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31469 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31473 * lib/regex_internal.h:
31474 (re_string_allocate, re_string_construct, re_string_reconstruct):
31475 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31476 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31477 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31478 (re_string_context_at, re_string_peek_byte_case):
31479 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31480 is defined, since we now use prototypes always.
31482 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
31483 C89 or better. All uses removed.
31485 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31487 * config/srclist.txt: Add glibc bugs 1220-1227.
31489 2005-08-20 Jim Meyering <jim@meyering.net>
31491 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31492 of unused local, dfa.
31494 2005-08-20 Bruno Haible <bruno@clisp.org>
31496 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31498 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31500 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31501 (re_node_set_insert_last, re_dfa_add_node):
31502 Rename local variables to avoid GCC shadowing warnings.
31504 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31506 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31507 [defined lint]: Suppress bogus uninitialized-variable warnings.
31509 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31510 and let the caller return REG_ESPACE if out of space. This
31511 removes an uninitialied-variable warning with GCC 4.0.1, and also
31512 avoids taking the address of a local variable. All callers
31515 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31517 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31518 $LIBCSRC/posix/regexec.c.
31519 Add glibc bug 1217 for regcomp.c.
31521 2005-08-19 Jim Meyering <jim@meyering.net>
31523 * lib/regexec.c (proceed_next_node): Redo local variables to
31524 avoid GCC shadowing warnings.
31526 2005-08-18 Bruno Haible <bruno@clisp.org>
31528 * lib/strstr.c (strstr): Fix return value in multibyte case.
31529 * lib/strcasestr.c (strcasestr): Likewise.
31531 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
31533 * lib/regex.h: Remove useless space-before-tab. From coreutils.
31535 2005-08-17 Jim Meyering <jim@meyering.net>
31537 Make the %s format (seconds since the epoch) work for a negative
31538 number and when used with a zero-padded field width, e.g. %015s.
31540 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31541 label so that it precedes the code to set `digits'. Otherwise,
31542 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
31543 print `00-22'. Now, it prints `-0022', as it should.
31545 2005-08-17 Bruno Haible <bruno@clisp.org>
31547 * modules/strstr (Files): Add m4/mbrtowc.m4.
31548 (Depends-on): Add mbuiter.
31550 2005-08-17 Bruno Haible <bruno@clisp.org>
31552 * modules/strcasestr: New file.
31553 * MODULES.html.sh (String handling, based on ANSI C 89): Add
31556 2005-08-17 Bruno Haible <bruno@clisp.org>
31558 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31560 2005-08-17 Bruno Haible <bruno@clisp.org>
31562 * modules/mbuiter: New file.
31563 * MODULES.html.sh (Extended multibyte and wide character utilities):
31566 2005-08-17 Bruno Haible <bruno@clisp.org>
31568 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31569 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31571 2005-08-17 Bruno Haible <bruno@clisp.org>
31573 * m4/strcasestr.m4: New file.
31575 2005-08-17 Bruno Haible <bruno@clisp.org>
31577 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31578 * lib/strstr.c: Completely rewritten, with multibyte locale support.
31580 2005-08-17 Bruno Haible <bruno@clisp.org>
31582 * lib/strcasestr.h: New file.
31583 * lib/strcasestr.c: New file.
31585 2005-08-17 Bruno Haible <bruno@clisp.org>
31587 * lib/strcasecmp.c: Use mbuiter.h.
31589 2005-08-17 Bruno Haible <bruno@clisp.org>
31591 * lib/mbuiter.h: New file.
31593 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
31595 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31596 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
31597 and gl_GETOPT are both invoked via different paths (as happens
31598 with GNU tar CVS because it uses both argp and getopt), the former
31601 2005-08-16 Bruno Haible <bruno@clisp.org>
31603 * modules/tls: New file.
31604 * MODULES.html.sh (Multithreading): Add tls.
31606 2005-08-16 Bruno Haible <bruno@clisp.org>
31608 * modules/strnlen1: New file.
31609 * MODULES.html.sh (String handling): Add strnlen1.
31611 2005-08-16 Bruno Haible <bruno@clisp.org>
31613 * modules/strcase (Files): Add m4/mbrtowc.m4.
31614 (Depends-on): Add strnlen1, mbchar.
31616 2005-08-16 Bruno Haible <bruno@clisp.org>
31618 * modules/mbiter: New file.
31619 * MODULES.html.sh (Extended multibyte and wide character utilities):
31622 2005-08-16 Bruno Haible <bruno@clisp.org>
31624 * modules/mbfile: New file.
31625 * MODULES.html.sh (Extended multibyte and wide character utilities):
31628 2005-08-16 Bruno Haible <bruno@clisp.org>
31630 * modules/mbchar: New file.
31631 * MODULES.html.sh (Extended multibyte and wide character utilities):
31634 2005-08-16 Bruno Haible <bruno@clisp.org>
31636 * m4/tls.m4: New file, from GNU gettext.
31638 2005-08-16 Bruno Haible <bruno@clisp.org>
31640 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31642 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31644 2005-08-16 Bruno Haible <bruno@clisp.org>
31646 * m4/mbiter.m4: New file.
31648 2005-08-16 Bruno Haible <bruno@clisp.org>
31650 * m4/mbfile.m4: New file.
31652 2005-08-16 Bruno Haible <bruno@clisp.org>
31654 * m4/mbchar.m4: New file.
31656 2005-08-16 Bruno Haible <bruno@clisp.org>
31658 * lib/tls.h: New file, from GNU gettext.
31659 * lib/tls.c: New file, from GNU gettext.
31661 2005-08-16 Bruno Haible <bruno@clisp.org>
31663 * lib/strnlen1.h: New file.
31664 * lib/strnlen1.c: New file.
31666 2005-08-16 Bruno Haible <bruno@clisp.org>
31668 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31669 (mbi_init): Update.
31670 (mbi_avail, mbi_advance): Let the iteration end before the terminating
31671 NUL byte, not after it.
31673 2005-08-16 Bruno Haible <bruno@clisp.org>
31675 * lib/strcase.h (strcasecmp): Add note in comments.
31676 * lib/strncasecmp.c: Use code from strcasecmp.c.
31677 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31678 (strcasecmp): Work correctly in multibyte locales.
31680 2005-08-16 Bruno Haible <bruno@clisp.org>
31682 * lib/mbiter.h: New file.
31684 2005-08-16 Bruno Haible <bruno@clisp.org>
31686 * lib/mbfile.h: New file.
31688 2005-08-16 Bruno Haible <bruno@clisp.org>
31690 * lib/mbchar.h: New file.
31691 * lib/mbchar.c: New file.
31693 2005-08-16 Bruno Haible <bruno@clisp.org>
31695 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31696 the valid ones. Makes the comparison operations transitive:
31697 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31698 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31700 2005-08-15 Simon Josefsson <jas@extundo.com>
31702 * modules/ssize_t (License): Change to 'unlimited'.
31704 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31706 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
31708 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31709 Add comments for each pending glibc patch.
31711 2005-08-15 Bruno Haible <bruno@clisp.org>
31713 * lib/regex.h (__restrict_arr): Don't define to __restrict if
31714 __cplusplus is defined.
31716 2005-08-14 Jim Meyering <jim@meyering.net>
31718 Sync from coreutils.
31720 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31721 Use the hash-table-based cycle-detection code not just when
31722 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31723 Reported by James Youngman in
31724 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31725 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31726 FTS_TIGHT_CYCLE_CHECK.
31727 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31728 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31730 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31731 * lib/fts.c (fd_safer): Remove decl.
31732 Include fcntl--.h rather than unistd-safer.h
31733 (fts_safe_changedir): Don't call fd_safer; no longer needed
31734 now that we include fcntl--.h.
31736 2005-08-12 Simon Josefsson <jas@extundo.com>
31738 * modules/getndelim2: Use ssize_t module.
31739 * modules/getnline: Likewise.
31740 * modules/safe-read: Likewise.
31741 * modules/xreadlink: Likewise.
31743 * modules/ssize_t: New file.
31745 2005-08-12 Simon Josefsson <jas@extundo.com>
31747 * m4/readline.m4: Look for termcap, curses or ncurses if required.
31749 2005-08-12 Simon Josefsson <jas@extundo.com>
31751 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31754 2005-08-12 Simon Josefsson <jas@extundo.com>
31756 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
31757 readline, getdelim and check_version.
31758 (Support for systems lacking ISO C 99: Sizes of integer types):
31761 2005-08-12 Bruno Haible <bruno@clisp.org>
31763 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
31765 2005-08-11 Simon Josefsson <jas@extundo.com>
31767 * modules/readline: New file.
31769 * modules/strnlen (Files): Add strnlen.h.
31771 2005-08-11 Simon Josefsson <jas@extundo.com>
31773 * m4/readline.m4: New file.
31775 2005-08-11 Simon Josefsson <jas@extundo.com>
31777 * lib/readline.h, readline.c: New file.
31779 2005-08-11 Simon Josefsson <jas@extundo.com>
31781 * doc/gnulib.texi (Initial import, Finishing touches): Mention
31784 2005-08-11 Bruno Haible <bruno@clisp.org>
31786 * lib/strnlen.h (strnlen): Change parameter name to match comment.
31788 2005-08-10 Stepan Kasal <kasal@ucw.cz>
31790 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
31792 2005-08-10 Simon Josefsson <jas@extundo.com>
31794 * tests/test-iconvme.c: New file.
31796 2005-08-10 Simon Josefsson <jas@extundo.com>
31798 * m4/strnlen.m4: New file.
31800 * m4/strndup.m4: Don't check for strnlen declaration, done in
31803 2005-08-10 Simon Josefsson <jas@extundo.com>
31805 * lib/strndup.c: Use strnlen.h.
31807 * lib/strnlen.h: New file.
31809 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
31813 2005-08-02 Simon Josefsson <jas@extundo.com>
31815 * modules/readline: New file.
31817 2005-08-02 Simon Josefsson <jas@extundo.com>
31819 * modules/getdelim: New file.
31821 * modules/getline: Rewrite, don't use getndelim2.
31823 2005-08-02 Simon Josefsson <jas@extundo.com>
31825 * m4/getline.m4: Separate out getdelim stuff into separate module.
31827 * m4/getdelim.m4: New file.
31829 2005-08-02 Simon Josefsson <jas@extundo.com>
31831 * lib/getline.h, getline.c: Rewrite.
31833 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
31835 2005-07-31 Bruno Haible <bruno@clisp.org>
31837 * lib/lock.h (gl_lock_initializer): New macro.
31838 (gl_lock_define_initialized): Use it.
31839 (gl_rwlock_initializer): New macro.
31840 (gl_rwlock_define_initialized): Use it.
31841 (gl_recursive_lock_initializer): New macro.
31842 (gl_recursive_lock_define_initialized): Use it.
31844 2005-07-30 Karl Berry <karl@gnu.org>
31846 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
31847 Report from Ben Pfaff, regarding getopt.
31849 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
31851 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
31853 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
31854 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
31855 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
31856 (gl_GETOPT): Use the new macros. Most of the implementation
31857 is moved to the new macros. This is for programs like Emacs
31858 that don't want all the functionality of gl_GETOPT.
31860 2005-07-26 Bruno Haible <bruno@clisp.org>
31862 * m4/lock.m4: Update from GNU gettext.
31864 2005-07-26 Bruno Haible <bruno@clisp.org>
31866 * lib/lock.h: Update from GNU gettext.
31867 * lib/lock.c: Update from GNU gettext.
31869 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
31871 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
31872 obsolescent AC_TRY_RUN. Include the default includes files, for
31875 2005-07-24 Bruno Haible <bruno@clisp.org>
31877 * modules/visibility: New file.
31878 * MODULES.html.sh (Misc): Add visibility.
31880 2005-07-24 Bruno Haible <bruno@clisp.org>
31882 * m4/visibility.m4: New file.
31884 2005-07-24 Bruno Haible <bruno@clisp.org>
31886 * doc/visibility.texi: New file.
31888 2005-07-22 Bruno Haible <bruno@clisp.org>
31890 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
31891 $(ALLOCA_H), redundant through BUILT_SOURCES.
31892 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
31893 redundant through BUILT_SOURCES.
31894 * modules/byteswap (Makefile.am): Remove explicit dependency on
31895 $(BYTESWAP_H), redundant through BUILT_SOURCES.
31896 * modules/fnmatch (Makefile.am): Remove explicit dependency on
31897 $(FNMATCH_H), redundant through BUILT_SOURCES.
31898 * modules/getopt (Makefile.am): Remove explicit dependency on
31899 $(GETOPT_H), redundant through BUILT_SOURCES.
31900 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
31901 redundant through BUILT_SOURCES.
31902 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
31903 redundant through BUILT_SOURCES.
31904 * modules/stdbool (Makefile.am): Remove explicit dependency on
31905 $(STDBOOL_H), redundant through BUILT_SOURCES.
31906 * modules/stdint (Makefile.am): Remove explicit dependency on
31907 $(STDINT_H), redundant through BUILT_SOURCES.
31908 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
31909 Remove explicit dependency on $(SYSEXITS_H).
31910 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
31912 2005-07-18 Simon Josefsson <jas@extundo.com>
31914 * lib/check-version.c (check_version): Accept identical versions too.
31916 2005-07-18 Bruno Haible <bruno@clisp.org>
31918 * modules/lock: New file.
31919 * MODULES.html.sh (Multithreading): New section.
31921 2005-07-18 Bruno Haible <bruno@clisp.org>
31923 * m4/lock.m4: New file, from GNU gettext.
31925 2005-07-18 Bruno Haible <bruno@clisp.org>
31927 * lib/lock.h: New file, from GNU gettext.
31928 * lib/lock.c: New file, from GNU gettext.
31930 2005-07-18 Bruno Haible <bruno@clisp.org>
31932 * lib/lock.h (gl_once_t): New type.
31933 (gl_once_define, gl_once): New macros.
31934 * lib/lock.c (fresh_once): New variable.
31935 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
31938 2005-07-16 Simon Josefsson <jas@extundo.com>
31940 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
31941 workaround, suggested by Bruno.
31943 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31945 * modules/xalloc (Depends-on): Add xalloc-die.
31946 * modules/xvasprintf (Depends-on): Add xalloc-die.
31948 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31950 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
31951 with a minor change.
31953 2005-07-15 Bruno Haible <bruno@clisp.org>
31955 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
31956 When using lib/poll.c, define poll as rpl_poll.
31958 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
31960 * modules/argp (Depends-on): Remove unlocked-io.
31962 2005-07-14 Derek Price <derek@ximbiot.com>
31964 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
31965 for glob symlink bug.
31967 2005-07-14 Bruno Haible <bruno@clisp.org>
31969 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
31970 Instead, test for *_unlocked function declarations directly.
31972 2005-07-11 Simon Josefsson <jas@extundo.com>
31974 * modules/size_max: New file.
31976 * modules/xsize: Depend on size_max module for size_max.m4.
31978 2005-07-11 Simon Josefsson <jas@extundo.com>
31980 * lib/size_max.h: New file.
31982 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
31984 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
31985 copyright symbol and the year.
31986 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
31987 (version_etc_va): Use parameterized copyright notice.
31988 Reword to conform to the current GNU coding standards.
31990 2005-07-11 Karl Berry <karl@gnu.org>
31992 * doc/gnulib.texi (Quoting): new node.
31993 (Initial import): more info, from Patrice.
31995 2005-07-11 Bruno Haible <bruno@clisp.org>
31997 * gnulib-tool (func_usage): Document option --avoid.
31998 (Command line options): Handle --avoid.
31999 (func_acceptable): New function.
32000 (func_modules_transitive_closure): Use it.
32002 2005-07-11 Bruno Haible <bruno@clisp.org>
32004 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32005 Reported by Jim Meyering.
32007 2005-07-10 Bruno Haible <bruno@clisp.org>
32009 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32010 Needed when size_t is smaller than 'unsigned int'.
32011 Reported by Paul Eggert.
32013 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
32015 * modules/argp (Depends-on): Add unlocked-io
32017 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
32019 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32022 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
32024 * config/srclist.txt: Comment out regcomp.c, since we have a porting
32027 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
32028 and Paul Eggert <eggert@cs.ucla.edu>
32030 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32031 in wint_t, not wchar_t. Remove now-unnecessary cast.
32033 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32035 * modules/regex (Files): Add lib/regex_internal.c,
32036 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32037 (Depends-on): Add extensions.
32038 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32040 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32042 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32044 * m4/same.m4 (gl_SAME): Likewise.
32045 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32047 * m4/regex.m4: Adjust to new libc regex implementation.
32048 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32049 all the .c and .h parts of (the new) regex.
32050 Quote the m4 stuff better.
32051 Check for RE_ICASE bug of old gnulib.
32052 Check for REG_STARTEND of recent libc.
32053 Rename local variables from jm_* to gl_*.
32054 Quote operand of "test -f".
32055 Say "recent enough" version of libc, not "version 2".
32056 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32057 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
32058 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32059 Remove check for btowc, isascii.
32060 Require AM_LANGINFO_CODESET.
32062 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32064 * lib/regex.c, regex.h: Sync from libc.
32065 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32067 New files, synced from libc, except that regex_internal.h
32068 currently has a small porting fix.
32070 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32072 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32073 regex_internal.c, regexec.c.
32074 Add regex_internal.h too, but as a comment, since the libc version
32075 is currently broken in gnulib mode.
32077 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
32079 Support programs like Emacs that use gnulib but not gettext.
32080 * MODULES.html.sh (Internationalization functions): Add gettext-h.
32081 * modules/gettext-h: New file.
32082 * modules/gettext (Files): Remove lib/gettext.h.
32083 (Depends-on): Add gettext-h.
32084 (Makefile.am): Remove lib_SOURCES.
32085 * modules/argmatch, modules/c-stack, modules/closeout:
32086 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32087 * modules/execute, modules/file-type, modules/getaddrinfo:
32088 * modules/getopt, modules/human, modules/javacomp:
32089 * modules/javaexec, modules/mkdir-p, modules/obstack:
32090 * modules/openat, modules/pagealign_alloc, modules/pipe:
32091 * modules/quotearg, modules/regex, modules/rpmatch:
32092 * modules/unicodeio, modules/userspec, modules/version-etc:
32093 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32095 Depend on gettext-h, not gettext.
32097 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
32099 * gnulib-tool (func_import): Add support for 'public domain' license.
32100 * modules/alloca, modules/atexit, modules/memmove:
32101 Now public domain, not GPL.
32102 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32103 * modules/realloc, modules/strerror, modules/strtod:
32106 2005-07-05 Bruno Haible <bruno@clisp.org>
32108 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32109 autoconf CVS. Needed for mingw.
32111 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32113 Remove the dependency of the strftime module on the tzset module.
32114 * modules/strftime (Depends-on): Remove dependency on tzset.
32116 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32118 Remove the dependency of the strftime module on the tzset module.
32119 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32120 gl_FUNC_TZSET_CLOBBER.
32122 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32124 Remove the dependency of the strftime module on the tzset module.
32125 * lib/strftime.c (my_strftime)
32126 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32127 Copy the input structure, to work around some of the bug with
32128 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
32129 Solaris releases, you should also use the tzset module, but we won't
32130 require it as a dependency any more since we don't want LGPLed code
32131 to depend on GPLed code.
32133 2005-07-02 Jim Meyering <jim@meyering.net>
32135 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32136 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32137 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32138 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32140 2005-07-02 Jim Meyering <jim@meyering.net>
32142 * lib/backupfile.c (backup_args): Change a `0' to NULL.
32144 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
32146 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32147 declares only 'struct timespec;' (!).
32149 2005-07-01 Jim Meyering <jim@meyering.net>
32151 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32152 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32153 * lib/save-cwd.c, tempname.c:
32154 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32155 and don't include <sys/file.h>).
32157 2005-06-29 Jim Meyering <jim@meyering.net>
32159 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32160 type name. Use the variable name instead.
32161 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32164 2005-06-28 Simon Josefsson <jas@extundo.com>
32166 * modules/check-version (Files): Add check-version.m4.
32168 2005-06-28 Simon Josefsson <jas@extundo.com>
32170 * m4/check-version.m4: New file, suggested by Jim Meyering
32171 <jim@meyering.net>.
32173 2005-06-28 Simon Josefsson <jas@extundo.com>
32175 * lib/check-version.h, lib/check-version.c: New files.
32177 2005-06-28 Simon Josefsson <jas@extundo.com>
32179 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
32180 collision with global variable. Better indentation. Don't
32181 increment buffer pointer beyond buffer end. Based on comments
32182 from Paul Eggert <eggert@cs.ucla.edu>.
32184 * lib/base64.h: Indent.
32186 2005-06-28 Simon Josefsson <jas@extundo.com>
32188 * doc/gnulib.texi (Library version handling): New section.
32190 2005-06-28 Jim Meyering <jim@meyering.net>
32192 * check-module (find_included_lib_files): Hard-code another
32193 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32194 but modules/fts-lgpl (correctly) does not list those files.
32196 * modules/canonicalize (Files): Add lib/pathmax.h.
32198 2005-06-25 Simon Josefsson <jas@extundo.com>
32200 * modules/check-version: New file.
32202 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
32204 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32205 initializer of struct addrinfo, as an indication that we don't
32206 care how many members the structure has.
32208 2005-06-24 Derek Price <derek@ximbiot.com>
32209 and Bruno Haible <bruno@clisp.org>
32211 Remove stat module & update lstat.
32212 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32213 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32214 * m4/stat.m4: Remove this file.
32216 2005-06-24 Derek Price <derek@ximbiot.com>
32217 and Bruno Haible <bruno@clisp.org>
32219 Remove stat module & update lstat.
32220 * lib/stat.c: Remove this file...
32221 (slash_aware_lstat): ...moving this content and its support...
32222 * lib/lstat.c (rpl_lstat): ...into here.
32223 * lib/lstat.h: New file.
32225 2005-06-24 Derek Price <derek@ximbiot.com>
32226 and Bruno Haible <bruno@clisp.org>
32228 Remove stat module & update lstat.
32229 * config/srclist.txt (libc sources): Remove stat.
32231 2005-06-24 Derek Price <derek@ximbiot.com>
32232 and Bruno Haible <bruno@clisp.org>
32234 Remove stat module & update lstat.
32235 * MODULES.html.sh (stat): Remove.
32236 * MODULES.html: Regenerated.
32237 * modules/lstat (Description): Correct function name.
32238 (Files): Add "lstat.h".
32239 (Depends-on): Remove stat, add xalloc, stat-macros.
32240 * modules/stat: Remove this file.
32241 (Include): Add "lstat.h", remove <sys/stat.h>.
32243 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
32245 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
32246 (ranged_convert): Don't save conversion in a temporary struct.
32247 This causes a warning with GCC 4.0.0, and anyway in the typical
32248 case it's not worth the extra 100 bytes or so of code.
32249 (ranged_convert, __mktime_internal): When calling a function via a
32250 pointer P, use P () rather than (*P) (), as we now assume C89 or
32253 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
32255 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32256 "who -r" failed to give output. Problem reported by Tim Waugh.
32258 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32259 (xcalloc): Use it to avoid needless tests.
32260 Problem reported by Jim Meyering.
32262 2005-06-20 Derek Price <derek@ximbiot.com>
32264 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32265 unnecessary for Autoconfs > 2.59c.
32267 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32269 * lib/argp.h (__option_is_short): Check upper limit of
32270 __key. Isprint() requires its argument to have the value
32271 of an unsigned char or EOF.
32273 2005-06-16 Jim Meyering <jim@meyering.net>
32275 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32276 when either N or S is zero.
32278 2005-06-16 Derek Price <derek@ximbiot.com>
32280 * m4/bison.m4: Declare YACC & YFLAGS precious.
32282 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
32284 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32285 multibyte string or pattern, fall back on unibyte matching.
32286 Problem reported by James Youngman.
32288 2005-06-08 Bruno Haible <bruno@clisp.org>
32290 * modules/csharpcomp: New file.
32291 * MODULES.html.sh (C#): Add csharpcomp.
32293 2005-06-08 Bruno Haible <bruno@clisp.org>
32295 * m4/csharpcomp.m4: New file, from GNU gettext.
32297 2005-06-08 Bruno Haible <bruno@clisp.org>
32299 * lib/csharpcomp.h: New file, from GNU gettext.
32300 * lib/csharpcomp.c: New file, from GNU gettext.
32301 * lib/csharpcomp.sh.in: New file, from GNU gettext.
32303 2005-06-08 Bruno Haible <bruno@clisp.org>
32305 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32308 2005-06-07 Derek Price <derek@ximbiot.com>
32311 * lib/glob_.h: Indent nested #ifdef.
32313 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32315 Sync from coreutils.
32316 Use "file name" when talking about file names, instead of "filename"
32317 or "path", as per the GNU coding standards.
32318 * lib/mkdir-p.c: Renamed from makepath.c.
32319 (make_dir_parents): Renamed from make_path. All callers changed.
32320 * lib/mkdir-p.h: Likewise. All includers changed.
32321 * lib/filenamecat.c: Renamed from path-concat.c.
32322 (file_name_concat): Renamed from path_concat. All callers changed.
32323 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32324 * lib/filenamecat.h: Likewise. All includers changed.
32325 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32326 in comments or local variable names.
32327 * lib/basename.c: Likewise.
32328 * lib/canonicalize.c, canonicalize.h: Likewise.
32329 * lib/dirname.c, dirname.h: Likewise.
32330 * lib/euidaccess.c: Likewise.
32331 * lib/exclude.c: Likewise
32332 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32333 * lib/fsusage.c, fsuage.h: Likewise.
32334 * lib/fts.c, fts_.h: Likewise.
32335 * lib/getcwd.c: Likewise.
32336 * lib/getloadavg.c: Likewise.
32337 * lib/mkstemp.c: Likewise.
32338 * lib/mountlist.c, mountlist.h: Likewise.
32339 * lib/openat.c, openat.h: Likewise.
32340 * lib/readlink-stub.c: Likewise.
32341 * lib/readutmp.c, readutmp.h: Likewise.
32342 * lib/rename.c: Likewise.
32343 * lib/rmdir.c: Likewise.
32344 * lib/same.c: Likewise.
32345 * lib/savedir.c: Likewise.
32346 * lib/stripslash.c: Likewise.
32347 * lib/tempname.c: Likewise.
32348 * lib/xreadlink.c: Likewise.
32349 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32351 * lib/exclude.h: Likewise.
32353 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32354 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32355 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32356 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32357 * lib/pathmax.h: Include <limits.h> unconditionally, since other
32358 files have been getting away with it for years (MORE/BSD 4.3
32360 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32361 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32363 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32364 Define to 256, not 255, as per modern POSIX.
32366 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32368 Sync from coreutils.
32369 Use "file name" when talking about file names, instead of "filename"
32370 or "path", as per the GNU coding standards.
32371 * MODULES.html.sh: mkdir-p renamed from makepath.
32372 filenamecat renamed from path-concat.
32373 * modules/filenamecat: Renamed from modules/path-concat.
32374 (Files): filenamecat.h and filenamecat.c renamed from
32375 path-concat.h and path-concat.c.
32376 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32377 (Include): filenamecat.h, not path-concat.h.
32378 * modules/mkdir-p: Renamed from modules/makepath.
32379 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32381 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32382 (Include): mkdir-p.h, not makepath.h.
32384 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32386 Sync from coreutils.
32387 * m4/mkdir-p.m4: Renamed from makepath.m4.
32388 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
32389 Rename files from makepath.c to mkdir-p.c, and from
32390 makepath.h to mkdir-p.h.
32391 * m4/filenamecat.m4: Renamed from path-concat.m4.
32392 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
32393 Rename files from path-concat.c to filenamecat.c,
32394 and from path-concat.h to filenamecat.h.
32395 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32396 "file name" in local variables or comments.
32397 * m4/rename.m4: Likewise.
32399 2005-06-01 Bruno Haible <bruno@clisp.org>
32401 * modules/csharpexec: New file.
32402 * MODULES.html.sh (C#): New section.
32404 2005-06-01 Bruno Haible <bruno@clisp.org>
32406 * m4/csharp.m4: New file, from GNU gettext.
32407 * m4/csharpexec.m4: New file, from GNU gettext.
32409 2005-06-01 Bruno Haible <bruno@clisp.org>
32411 * lib/csharpexec.h: New file, from GNU gettext.
32412 * lib/csharpexec.c: New file, from GNU gettext.
32413 * lib/csharpexec.sh.in: New file, from GNU gettext.
32415 2005-05-31 Derek Price <derek@ximbiot.com>
32416 Paul Eggert <eggert@cs.ucla.edu>
32419 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32421 2005-05-31 Derek Price <derek@ximbiot.com>
32422 Paul Eggert <eggert@cs.ucla.edu>
32425 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32427 2005-05-29 Derek Price <derek@ximbiot.com>
32429 * config/srclist.txt (glob_.h, glob.c): Add these files.
32431 2005-05-29 Derek Price <derek@ximbiot.com>
32433 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32434 * modules/glob: New file.
32435 * modules/getlogin_r: Add link to POSIX spec in description.
32437 2005-05-29 Derek Price <derek@ximbiot.com>
32438 Paul Eggert <eggert@cs.ucla.edu>
32440 * m4/glob.m4: New file.
32442 2005-05-29 Derek Price <derek@ximbiot.com>
32443 Paul Eggert <eggert@cs.ucla.edu>
32445 * lib/glob_.h, lib/glob.c: New files.
32447 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32449 * modules/fts (Files): Remove m4/inttypes-pri.m4.
32450 * modules/fts-lgpl (Depends-on): Remove gettext.
32452 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32454 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32455 and don't require gt_INTTYPES_PRI.
32457 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32459 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32461 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32462 the configuration hassle isn't worth it.
32463 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32464 (LONGEST_MODIFIER, PRIuMAX): Remove.
32466 2005-05-27 Bruno Haible <bruno@clisp.org>
32468 * lib/getlogin_r.h: Remove second include of <stddef.h>.
32470 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
32472 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32473 _POSIX_PTHREAD_SEMANTICS for Solaris.
32475 2005-05-25 Derek Price <derek@ximbiot.com>
32477 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32479 2005-05-25 Derek Price <derek@ximbiot.com>
32480 Paul Eggert <eggert@cs.ucla.edu>
32482 * modules/getlogin_r, m4/getlogin_r.m4: New files.
32483 * lib/getlogin_r.c, getlogin_r.h: New files.
32485 2005-05-25 Bruno Haible <bruno@clisp.org>
32486 Derek Price <derek@ximbiot.com>
32488 * lib/getlogin_r.h: Simplify API documentation.
32490 2005-05-23 Derek Price <derek@ximbiot.com>
32492 * modules/minmax (Files): Add m4/minmax.m4.
32493 (configure.ac): Add gl_MINMAX.
32495 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
32497 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32498 so that unistd-safer.h (GPL'ed code) need not be included.
32500 2005-05-22 Bruno Haible <bruno@clisp.org>
32502 * m4/minmax.m4: New file.
32503 Based on a patch by Derek Price <derek@ximbiot.com>.
32505 2005-05-22 Bruno Haible <bruno@clisp.org>
32507 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32508 (INT64_MIN): Fix definition.
32509 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32511 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32512 NEED_SIGNED_INT_TYPES.
32514 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32515 HAVE_SYSTEM_INTTYPES.
32517 2005-05-22 Bruno Haible <bruno@clisp.org>
32519 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32520 Also include <sys/param.h> if it defines MIN, MAX.
32521 Based on a patch by Derek Price <derek@ximbiot.com>.
32523 2005-05-21 Jim Meyering <jim@meyering.net>
32525 * modules/fts (Files): Add m4/inttypes-pri.m4.
32526 (Depends-on): Add lstat and remove gettext. Alphabetize.
32528 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32531 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32532 (setup_dir, free_dir): New functions.
32533 (enter_dir, leave_dir): Define trivial
32534 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
32535 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
32536 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32537 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32538 Move to fts-cycle.c.
32539 (fts_open): Use setup_dir.
32540 (fts_close): Use free_dir.
32541 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32542 This adds a label and some gotos, but the alternatives were messier.
32543 Check for memory allocation failure when entering a dir.
32544 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32545 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32546 (FTS): New member fts_cycle, that is a union that contains the
32547 old active_dir_ht and cycle_state. All uses changed to mention
32548 fts_cycle.ht and fts_cycle.state.
32549 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32550 fts.c, with the following changes:
32551 (setup_dir, free_dir): New functions.
32552 (enter_dir): Now returns bool. Return true if successful, false
32553 if memory exhausted. All callers changed.
32554 Do not bother partly cleaning up on
32555 memory allocation failure; that is free_dir's job.
32556 However, free ad if hash_insert fails, to avoid memory leak.
32557 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32558 fts->fts_options to see which union member to use.
32560 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32562 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32563 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32565 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32567 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32569 2005-05-20 Jim Meyering <jim@meyering.net>
32571 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32572 Now a macro, to pacify GCC.
32574 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32576 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32579 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32581 * lib/chown.c (rpl_chown): Return -1 on failure.
32583 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32585 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32586 Don't check for stddef.h.
32587 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32588 don't use its results.
32589 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32590 since we include them unconditionally. Don't require
32591 AM_STDBOOL_H, since stdbool is a prerequisite.
32592 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32593 since we assume C89 or better.
32594 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32595 as we don't use their results.
32596 Don't check for fchdir, memmove, memset, strrchr, as we use
32597 them unconditionally.
32598 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32599 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32601 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32603 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32604 Include <stddef.h> unconditionally, since we assume C89 now.
32605 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32606 * lib/fts.c: Include fts_.h first, to check interface.
32607 Do not include intprops.h; no longer needed.
32608 Include cycle-check.h and hash.h, since fts_.h no longer does.
32609 Remove unnecessary casts of closedir to void.
32610 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32611 decide whether to decrement nlinks.
32612 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32613 (FTS): Use struct hash_table * instead of Hash_table, so that
32614 we no longer need to include hash.h here.
32616 2005-05-18 Jim Meyering <jim@meyering.net>
32618 * modules/dirfd (License): Change to LGPL. Most of the code
32619 is already in the public domain.
32621 2005-05-18 Jim Meyering <jim@meyering.net>
32623 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32624 Reported by Yoann Vandoorselaere.
32626 2005-05-17 Jim Meyering <jim@meyering.net>
32628 * m4/fts.m4: New file, from coreutils.
32630 2005-05-17 Jim Meyering <jim@meyering.net>
32632 * lib/fts.c, lib/fts_.h: New files, from coreutils.
32634 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32636 Sync from coreutils.
32637 * m4/unlinkdir.m4: New file.
32639 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32641 Sync from coreutils.
32642 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32643 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32644 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32645 White space changes only.
32646 * lib/makepath.c (make_path): Port to hosts where leading "//" is
32648 * lib/yesno.c: Include getline.h, not ctype.h.
32649 (yesno): Don't remove leading white space; POSIX doesn't allow it.
32650 Use getline to remove arbitrary restriction on response length.
32652 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32654 * config/srclist-update: Spell out "Street" in FSF postal
32655 mail address; this is the style the FSF seems to prefer.
32657 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32658 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32659 this updates FSF postal mail address.
32661 Sync from coreutils.
32662 * modules/unlinkdir: New file.
32663 * modules/yesno (Depends-on): Add getline.
32664 * MODULES.html.sh (File system functions): Add unlinkdir.
32666 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
32668 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32670 Change the initial comment to refer to GPL, not LGPL.
32671 gnulib-tool will change it to LGPL as needed.
32673 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32674 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32675 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32676 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32677 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32678 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32679 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32680 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32681 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32682 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32683 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32684 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32685 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32686 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32687 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32688 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32689 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32690 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32691 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32692 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32693 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32694 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32695 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32696 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32697 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32698 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32699 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32700 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32701 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32702 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32703 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32704 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32705 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32706 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32707 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32708 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32709 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32710 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32711 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32712 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32713 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32714 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32715 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32716 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32717 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32718 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32719 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32720 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32721 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32722 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32723 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32724 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32725 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32726 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32727 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32728 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32729 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32730 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32731 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32732 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32733 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32734 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32735 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32736 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32737 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32738 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32739 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32740 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32741 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32742 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32743 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32744 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32745 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32746 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32747 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32748 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32749 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32750 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
32751 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
32752 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
32753 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
32754 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
32755 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
32756 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
32757 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
32758 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
32759 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
32760 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
32761 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
32762 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
32763 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
32764 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
32765 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
32766 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
32767 lib/yesno.c, lib/yesno.h:
32768 Update FSF postal mail address.
32770 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
32772 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
32773 tests/test-memmem.c, tests/test-stpncpy.c:
32774 Update FSF postal mail address.
32776 2005-05-13 Bruno Haible <bruno@clisp.org>
32778 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
32779 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
32780 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
32781 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
32782 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
32783 Add support for 64-bit integers in the MSVC compiler.
32785 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32787 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
32789 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
32791 * gnulib-tool (func_import): Sort and uniquify recommended includes.
32793 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
32795 * doc/getdate.texi (General date syntax): Don't say that date
32796 date --iso-8601=ns generates acceptable dates; it doesn't yet.
32797 Problem reported by Nic Ferrier.
32799 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32801 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
32802 specified in ai_socktype. Fix invalid ai_protocol
32803 check. ai_protocol is usually set to 0 or depending on
32804 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
32805 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
32806 ai_socktype / ai_protocol in the returned addrinfo structure.
32808 2005-05-10 Simon Josefsson <jas@extundo.com>
32810 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
32811 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32813 2005-05-10 Karl Berry <karl@gnu.org>
32815 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
32816 (from http://www.gnu.org/licenses).
32817 * doc/COPYING.LIB: also rename to COPYING.LESSER.
32818 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
32821 2005-05-10 Karl Berry <karl@gnu.org>
32823 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
32824 (COPYING.DOC): remove.
32826 * config/srclist-update: new FSF address.
32828 2005-05-10 Derek Price <derek@ximbiot.com>
32830 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
32833 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32834 Bruno Haible <bruno@clisp.org>
32836 * modules/inet_ntop: New file.
32837 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32840 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32841 Bruno Haible <bruno@clisp.org>
32843 * m4/inet_ntop.m4: New file.
32845 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32846 Bruno Haible <bruno@clisp.org>
32848 * lib/inet_ntop.h: New file.
32849 * lib/inet_ntop.c: New file, from glibc with modifications.
32851 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
32853 * modules/time_r (License): Change to LGPL.
32854 * modules/extensions (License): Change to LGPL. Actually,
32855 the license is more permissive than that, but currently gnulib-tool
32856 doesn't know how to handle more-permissive licenses.
32858 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
32859 Problem reported by Dave Love.
32861 2005-05-08 Jim Meyering <jim@meyering.net>
32863 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
32866 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
32868 * modules/argmatch (Depends-on): Add stdbool.
32869 * modules/backupfile (Depends-on): Likewise.
32870 * modules/chdir-long (Depends-on): Likewise.
32871 * modules/closeout (Depends-on): Likewise.
32872 * modules/cycle-check (Depends-on): Likewise.
32873 * modules/dirname (Depends-on): Likewise.
32874 * modules/fnmatch (Depends-on): Likewise.
32875 * modules/fsusage (Depends-on): Likewise.
32876 * modules/fwriteerror (Depends-on): Likewise.
32877 * modules/getcwd (Depends-on): Likewise.
32878 * modules/getloadavg (Depends-on): Likewise.
32879 * modules/hard-locale (Depends-on): Likewise.
32880 * modules/makepath (Depends-on): Likewise.
32881 * modules/mountlist (Depends-on): Likewise.
32882 * modules/nanosleep (Depends-on): Likewise.
32883 * modules/posixtm (Depends-on): Likewise.
32884 * modules/quotearg (Depends-on): Likewise.
32885 * modules/readtokens (Depends-on): Likewise.
32886 * modules/readtokens0 (Depends-on): Likewise.
32887 * modules/readutmp (Depends-on): Likewise.
32888 * modules/save-cwd (Depends-on): Likewise.
32889 * modules/strftime (Depends-on): Likewise.
32890 * modules/userspec (Depends-on): Likewise.
32891 * modules/utimecmp (Depends-on): Likewise.
32892 * modules/xgetcwd (Depends-on): Likewise.
32893 * modules/xnanosleep (Depends-on): Likewise.
32894 * modules/xstrtod (Depends-on): Likewise.
32895 * modules/yesno (Depends-on): Likewise.
32897 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
32899 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
32902 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32904 Merge from coreutils. Among other things,
32905 add bulletproofing for cases where stdin, stdout, or stderr are closed.
32906 * lib/fd-safer.c: New file.
32907 * lib/fcntl-safer.h, open-safer.c: Remove.
32908 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
32909 * lib/dup-safer.c: Include unistd-safer.h first.
32910 Don't include errno.h.
32911 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
32912 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
32913 * lib/file-type.c: Rely on file-type.h change.
32914 * lib/getloadavg.c: Include unistd-safer.h.
32915 (getloadavg): Use safer open.
32916 * lib/getusershell.c: Include "stdio-safer.h".
32917 (getusershell): Use safer fopen.
32918 * lib/long-options.c (long_options): Use NULL rather than 0.
32919 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
32921 * lib/modechange.c: Likewise.
32922 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
32923 (MODE_DONE): New constant.
32924 (struct mode_change): Remove 'next' member.
32925 (make_node_op_equals): New function; like the old one of the
32926 same name, except it allocates an array.
32927 (mode_compile, mode_create_from_ref): Use it.
32928 (mode_compile): Allocate result as an array, not a linked list.
32929 Parse octal string ourself, so that we catch mistakes like "+0".
32930 (mode_adjust): Arg is an array, not a linked list.
32931 * lib/modechange.c: Include stat-macros.h, xalloc.h.
32932 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
32933 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
32934 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
32935 Remove. This is now stat-macros.h's job.
32936 (talloc): Remove. All callers replaced by xalloc, so that
32937 our invokers don't have to worry about reporting memory failures.
32938 (make_node_op_equals): Remove.
32939 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32941 (struct mode_change): Moved here from modechange.h.
32942 (mode_append_entry): Remove.
32943 (mode_compile): Remove MASKED_OPS arg, since it encouraged
32944 apps to have incorrect behavior. Use simpler algorithm for head
32945 and tail. Don't futz with umask; that's now the job of mode_adjust.
32946 Detect more invalid usages rather than having somewhat-random behavior.
32947 Don't insert an "a=" action, as that leads to incorrect behavior.
32948 (mode_compile, mode_create_from_ref): Return NULL on error instead
32949 of an enum, since now there's only one way to have an error. All
32951 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
32952 at the correct time. Simplify calculation of "+u" and its ilk.
32953 Don't mishandle "+X".
32954 (mode_free): Remove "register" and localize decls.
32955 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32956 (struct mode_change): Move to modechange.c; callers don't
32957 need to see this stuff.
32958 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
32959 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
32960 (mode_change, mode_adjust): Reflect the new signatures noted above.
32961 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
32962 that might redefine system include files.
32963 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
32964 (my_usleep): Use NULL rather than (void *) 0.
32965 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
32966 Use siginterrupt to specify that system calls should be interrupted.
32967 (rpl_nanosleep): Move initialization of suspended closer to call of
32969 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
32970 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
32971 (desirable_utmp_entry): New function.
32972 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
32973 using x2nrealloc, to simplify logic.
32974 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
32975 size calculation. Do not assume utmp file is a regular file.
32976 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
32977 (READ_UTMP_CHECK_PIDS): New constant.
32978 * lib/save-cwd.c: Include unistd-safer.h.
32979 (save_cwd): Use fd_safer.
32980 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
32981 [!_LIBC] Include "stat-macros.h" instead.
32982 * lib/unistd-safer.h (fd_safer): New decl.
32984 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32986 * modules/getloadavg (Depends-on): Add unistd-safer.
32987 * modules/getusershell (Depends-on): Add stdio-safer.
32988 * modules/lstat (Depends-on): Remove xalloc.
32989 * modules/mkstemp (Depends-on): Add stat-macros.
32990 * modules/modechange (Depends-on): Remove xstrtol.
32991 Add stat-macros, xalloc.
32992 * modules/save-cwd (Depends-on): Add unistd-safer.
32993 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32994 * modules/unistd-safer (Files): Add lib/fd-safer.c
32995 (Makefile.am): Remove lib_SOURCES.
32997 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32998 Remove fcntl-safer; unistd-safer supersedes it.
33000 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33002 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33004 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33005 (gl_PREREQ_CHOWN): Remove.
33006 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33007 it. Don't require AC_HEADER_STAT.
33008 (gl_PREREQ_LSTAT): Remove.
33009 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33010 Don't require AC_HEADER_STAT.
33011 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33012 (gl_PREREQ_RMDIR): Remove.
33013 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33014 mention stat-macros.h or AC_HEADER_STAT, since we'll make
33015 the stat-macros module a prerequisite.
33016 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33017 * m4/filemode.m4 (gl_FILEMODE): Likewise.
33018 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33019 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33020 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33022 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33023 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
33025 * m4/fcntl-safer.m4: Remove.
33026 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33027 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33028 Invoke gl_PREREQ_FD_SAFER.
33029 (gl_PREREQ_FD_SAFER): New macro.
33030 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33031 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33032 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33033 Remove duplicate call to AC_LIBOBJ(readutmp).
33034 (gl_PREREQ_READUTMP): Remove. All uses inlined.
33036 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33037 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
33039 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33041 * MODULES.html.sh (Misc): Add byteswap.
33043 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33045 * modules/getcwd (Depends-on): Add extensions.
33046 * modules/openat (Depends-on): Likewise.
33048 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33050 * modules/byteswap: New file.
33052 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33054 * m4/byteswap.m4: New file.
33056 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33058 * lib/byteswap_.h: New file.
33060 2005-04-25 Karl Berry <karl@gnu.org>
33062 * m4/gettext.m4: Update from GNU gettext 0.14.4.
33064 2005-04-25 Albert Chin <china@thewrittenword.com>
33066 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33069 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
33071 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33072 (func_ln_if_changed) Remove forcibly for no error message
33073 in case file does not exist.
33075 2005-04-19 Simon Josefsson <jas@extundo.com>
33077 * gnulib-tool (Options): Make --symlink mean --symbolic.
33079 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
33081 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
33083 2005-04-16 Simon Josefsson <jas@extundo.com>
33085 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33087 2005-04-15 Simon Josefsson <jas@extundo.com>
33089 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33091 2005-04-15 Simon Josefsson <jas@extundo.com>
33093 * gnulib-tool: Rename --symlink to --symbolic.
33095 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
33097 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33098 symbolic links to files instead of copying/moving. Add --aux-dir,
33099 specifying directory relative --dir where auxiliary build tools
33102 2005-04-14 Bruno Haible <bruno@clisp.org>
33104 * modules/allocsa (License): Change to LGPL.
33105 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33107 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
33109 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33110 that "UTC +1 second" continues to work. Problem reported
33111 by Dmitry V. Levin.
33112 (relunit_snumber): New rule.
33115 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
33117 * lib/getdate.y (universal_time_zone_table): New constant.
33118 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33119 universal_time_zone_table.
33120 (lookup_zone): Prefer universal_time_zone_table to
33121 local_time_zone_table, so that "GMT" time stamps are allowed in
33122 London during the summer. Problem reported by Ian Abbott.
33124 2005-04-12 Jim Meyering <jim@meyering.net>
33126 * lib/human.c (humblock): Set *options even when returning due to
33127 xstrtoumax conversion failure. Thanks to a used-uninitialized
33128 warning from gcc-4.
33130 2005-04-09 Jim Meyering <jim@meyering.net>
33132 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33133 -Wuninitialized: initialize tm0.tm_year.
33135 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
33137 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33138 count, since there's no maximum. All uses changed.
33139 Add member dsts_seen.
33140 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33142 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33143 Use pc_rels_seen to decide whther a date is absolute.
33145 * lib/getdate.y (number): Don't overwrite year.
33146 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33149 2005-04-02 Simon Josefsson <jas@extundo.com>
33151 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33152 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33154 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
33156 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33157 where no absolute path name can be longer than PATH_MAX.
33159 2005-03-27 Jim Meyering <jim@meyering.net>
33161 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33163 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
33165 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33166 "one's complement" -> "ones' complement" in comment, as per Knuth.
33167 "value of type" -> "type or expression" in comment.
33168 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33170 2005-03-26 Jim Meyering <jim@meyering.net>
33173 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33174 Correct typos: s/or/of/.
33176 2005-03-26 Jim Meyering <jim@meyering.net>
33178 * modules/check-include-files: Move to ../ and rename to...
33179 * check-module: ...this.
33181 2005-03-25 Jim Meyering <jim@meyering.net>
33183 * modules/xvasprintf (Files): Add xalloc.h.
33185 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
33187 * modules/gettext (Files): config/config.rpath ->
33188 build-aux/config.rpath
33189 * modules/iconv (Files): Likewise.
33190 Problem reported by Oskar Liljeblad.
33192 2005-03-23 Jim Meyering <jim@meyering.net>
33194 * modules/check-include-files: New script to check for
33195 missing dependencies, multiple includes, etc.
33197 * modules/c-strtold (Depends-on): Add xalloc.
33198 * modules/c-strtod (Depends-on): Add xalloc.
33199 * modules/hash (Depends-on): Add xalloc.
33200 (Files): Remove lib/xalloc.h.
33202 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33203 * modules/userspec (Files): Add lib/inttostr.h.
33205 2005-03-23 Jim Meyering <jim@meyering.net>
33207 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33209 2005-03-22 Jim Meyering <jim@meyering.net>
33211 * modules/stat-macros: New module.
33212 * modules/canonicalize, modules/euidaccess, modules/file-type,
33213 * modules/filemode, modules/lchown, modules/makepath,
33214 * modules/rmdir, modules/stat: Depend on new stat-macros module
33215 rather than listing lib/stat-macros.h manually.
33216 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33218 2005-03-22 Jim Meyering <jim@meyering.net>
33220 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33222 2005-03-22 Bruno Haible <bruno@clisp.org>
33224 * config/srclist.txt: Replace target directory 'config' with
33226 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33227 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33230 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
33232 * modules/chdir-long (Depends-on): Add mempcpy.
33234 * modules/acl, modules/backupfile, modules/c-strtod,
33235 modules/c-strtold, modules/canon-host, modules/canonicalize,
33236 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33237 modules/exclude, modules/exitfail, modules/file-type,
33238 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33239 modules/getdate, modules/getline, modules/getpagesize,
33240 modules/getpass, modules/getugroups, modules/group-member,
33241 modules/hard-locale, modules/hash, modules/human, modules/idcache,
33242 modules/inttostr, modules/long-options, modules/makepath,
33243 modules/md5, modules/memcasecmp, modules/memcoll,
33244 modules/modechange, modules/mountlist, modules/path-concat,
33245 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33246 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33247 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33248 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33249 modules/strftime, modules/strndup, modules/strverscmp,
33250 modules/timespec, modules/unlocked-io, modules/userspec,
33251 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33253 Remove lib_SOURCES line from Makefile.am section, as this is now
33254 done automatically by the corresponding Autoconf macro.
33256 2005-03-21 Jim Meyering <jim@meyering.net>
33258 Changes imported from coreutils.
33260 * lib/cycle-check.c: Don't include xalloc.h.
33262 * lib/path-concat.c: Don't include assert.h.
33263 (path_concat): Remove assertion that would have triggered
33264 for ABASE starting with more than one slash.
33265 Reported by Andreas Schwab.
33267 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33268 properly when ABASE is an absolute file name.
33269 Correct the description of this function.
33270 Include <assert.h>.
33271 Add an assertion and a test driver.
33272 This fixes a bug introduced on 2004-07-02.
33273 Andreas Schwab reported the resulting failure of cp --parents:
33274 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33276 2005-03-21 Jim Meyering <jim@meyering.net>
33278 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33279 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33281 2005-03-21 Jim Meyering <jim@meyering.net>
33282 and Paul Eggert <eggert@cs.ucla.edu>
33284 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33285 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33286 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33287 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33288 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33289 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33290 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33291 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33292 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33293 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33294 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33295 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33296 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33297 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33298 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33299 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33300 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33303 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
33305 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33306 (which shouldn't happen), generate nothing instead of returning 0
33307 immediately, so that nstrftime (NULL, ...) doesn't return 0.
33309 2005-03-16 Bruno Haible <bruno@clisp.org>
33311 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33312 HAVE_LONGLONG_64BIT.
33314 2005-03-16 Bruno Haible <bruno@clisp.org>
33316 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33317 HAVE_LONGLONG_64BIT.
33319 2005-03-16 Bruno Haible <bruno@clisp.org>
33321 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33322 HAVE_LONGLONG_64BIT.
33324 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
33326 * lib/strftime.c (my_strftime): Prepend space to format so that we can
33327 reliably distinguish strftime failure from empty output on POSIX
33330 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
33332 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33333 (iconv_string): Don't guess a size-zero buffer, as that might cause
33334 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
33335 result would be 'too large', where 'too large' is (heuristically)
33336 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33337 overflow concerns. This will prevent some unwanted malloc failures
33338 when the inputs are very large.
33340 2005-03-15 Karl Berry <karl@gnu.org>
33342 * config/srclist.txt (config.rpath): from gettext.
33343 * config/config.rpath: update.
33345 2005-03-15 Bruno Haible <bruno@clisp.org>
33347 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33350 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33353 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33356 2005-03-14 Simon Josefsson <jas@extundo.com>
33358 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33361 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
33363 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33364 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33366 * lib/strtol.c: Likewise.
33368 2005-03-14 Jim Meyering <jim@meyering.net>
33370 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33371 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33372 to be nonzero so that we (and caller) can detect the difference
33373 between a valid zero-length expansion and an error return, even
33374 when the underlying strftime fails before writing anything into
33377 2005-03-14 Bruno Haible <bruno@clisp.org>
33379 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33380 Update from GNU gettext 0.14.3.
33382 2005-03-10 Jim Meyering <jim@meyering.net>
33384 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33386 2005-03-10 Jim Meyering <jim@meyering.net>
33388 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33389 so that this module works on systems without fchdir.
33391 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
33393 Factor int-properties macros into a single file, except for
33394 glibc-related files.
33395 * lib/intprops.h: New file.
33396 * lib/getloadavg.c: Include it instead of limits.h.
33397 (INT_STRLEN_BOUND): Remove.
33398 * lib/human.c: Include intprops.h.
33399 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33400 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33402 * lib/inttostr.h: Include intprops.h instead of limits.h.
33403 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33404 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33405 for consistency with intprops.h.
33406 (time_t_is_integer, twos_complement_arithmetic): Use them.
33407 * lib/sig2str.h: Include <signal.h>, intprops.h.
33408 (INT_STRLEN_BOUND): Remove.
33409 * lib/strftime.c (TYPE_SIGNED): Remove.
33410 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33411 * lib/strtol.c: Adjust comments to match intprops.h.
33412 * lib/userspec.c: Include intprops.h.
33413 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33414 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33415 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33416 instead of rolling our own expressions.
33417 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33419 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
33421 (my_strftime): Do not mishandle years close to INT_MAX, by doing
33422 the right thing even if adding 1900 would overflow. Similarly
33423 for tm_mon + 1 and tm_yday + 1.
33424 Make %Y always equivalent to %C%y, and similarly for %G and %g.
33425 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33426 (DO_SIGNED_NUMBER): New macro.
33427 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33429 2005-03-07 Bruno Haible <bruno@clisp.org>
33431 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33433 2005-03-07 Bruno Haible <bruno@clisp.org>
33435 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33437 2005-03-04 Derek R. Price <derek@ximbiot.com>
33439 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33440 (func_import): Only replace files via --import when they have actually
33443 2005-03-03 Derek R. Price <derek@ximbiot.com>
33445 * m4/mmap-anon.m4: New file.
33446 * m4/pagealign_alloc.m4: New file.
33448 2005-03-03 Derek R. Price <derek@ximbiot.com>
33449 Bruno Haible <bruno@clisp.org>
33451 * modules/pagealign_alloc: New file.
33452 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33454 2005-03-03 Derek R. Price <derek@ximbiot.com>
33455 Bruno Haible <bruno@clisp.org>
33457 * lib/pagealign_alloc.h: New file.
33458 * lib/pagealign_alloc.c: New file.
33460 2005-03-03 Bruno Haible <bruno@clisp.org>
33462 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33463 Use an all-permissive copyright notice, recommended by RMS.
33465 2005-03-02 Bruno Haible <bruno@clisp.org>
33467 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33468 of AIX, the replacement has to be done only after <string.h> is
33469 included, therefore not in config.h. stpncpy.h does the replacement,
33470 and stpncpy.c uses it.
33472 2005-03-02 Bruno Haible <bruno@clisp.org>
33474 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33477 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33479 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33480 The workaround isn't strictly needed for POSIX conformance, and
33481 it's too much of a pain to configure and maintain. We'll ask
33482 people to fix their kernels instead.
33483 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33484 (NANOSLEEP_BUG_WORKAROUND): Remove.
33485 (xnanosleep): Remove the workaround.
33487 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33489 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33490 Reported by Derek Price.
33491 (Include): Add "timespec.h".
33493 * modules/xnanosleep (Depends-on): Remove gethrxtime.
33495 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33497 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33498 to detect nanosleep bug.
33500 2005-03-01 Bruno Haible <bruno@clisp.org>
33502 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33504 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
33506 * modules/gethrxtime: New file.
33507 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33508 (Depends-on): Add gethrxtime.
33509 (configure.ac): Add gl_XNANOSLEEP.
33510 (Makefile.am): Remove lib_SOURCES line.
33512 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33514 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33515 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33517 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33519 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33520 * lib/timespec.h (gettime): Return void, since it always
33521 succeeds now. All uses changed.
33522 * lib/gettime.c (gettime) Likewise.
33523 [HAVE_NANOTIME]: Prefer nanotime.
33524 Assume gettimeofday succeeds, as POSIX requires.
33525 Assime time () succeeds, since other code already does.
33526 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33527 (timespec_subtract): Remove.
33528 (NANOSLEEP_BUG_WORKAROUND): New constant.
33529 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33530 things considerably. Use it only on GNU/Linux hosts, since the
33531 workaround shouldn't be needed elsewhere.
33533 2005-02-24 Bruno Haible <bruno@clisp.org>
33535 * modules/gettext (Files): Add m4/glibc2.m4.
33537 2005-02-24 Bruno Haible <bruno@clisp.org>
33539 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33540 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33542 Update from GNU gettext 0.14.2.
33543 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33545 2005-02-24 Bruno Haible <bruno@clisp.org>
33547 * lib/localcharset.c: Update from GNU gettext 0.14.2.
33548 * lib/config.charset: Update from GNU gettext 0.14.2.
33550 2005-02-24 Bruno Haible <bruno@clisp.org>
33552 * lib/gettext.h: Update from GNU gettext 0.14.2.
33554 2005-02-23 Simon Josefsson <jas@extundo.com>
33556 * m4/iconvme.m4: New file.
33558 2005-02-23 Jim Meyering <jim@meyering.net>
33560 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33562 Thanks to Bruno Haible for catching it.
33564 2005-02-22 Simon Josefsson <jas@extundo.com>
33566 * modules/iconvme: New file.
33568 * MODULES.html.sh: Add iconvme.
33570 2005-02-22 Simon Josefsson <jas@extundo.com>
33572 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33574 2005-02-22 Simon Josefsson <jas@extundo.com>
33576 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33578 2005-02-22 Jim Meyering <jim@meyering.net>
33580 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33583 2005-02-20 Neil Conway <neilc@samurai.com>
33585 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33586 returned by OSX/Darwin if the specified buffer is not large
33587 enough for the hostname.
33589 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33591 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33592 pass it to _help, otherwise the latter coredumps trying to
33593 dereference state.root_argp.
33595 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33597 * modules/chdir-long (Depends-on): Add memrchr.
33598 * modules/memrchr (Files): Add lib/memrchr.h.
33599 (Include): "memrchr.h".
33601 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33603 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33605 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33607 * lib/memrchr.h: New file.
33608 * lib/chdir-long.c: Include it.
33609 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33610 Don't bother including stddef.h.
33612 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
33614 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33616 Include <sys/types.h>, for dev_t.
33617 (ME_DUMMY, ME_REMOTE): Move from here....
33618 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33619 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
33621 Include mountlist.h first, to test the interface.
33623 2005-01-29 Bruno Haible <bruno@clisp.org>
33625 * lib/progname.c (program_name): Initialize.
33626 Needed when linking statically on MacOS X.
33628 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33630 Sync from coreutils.
33631 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33632 (Depends-on): Add c-strtod.
33633 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33635 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33637 Sync from coreutils.
33638 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33640 Remove files that are specific to coreutils.
33641 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33643 2005-01-28 Bruno Haible <bruno@clisp.org>
33645 * modules/javacomp: New file.
33646 * MODULES.html.sh (Java): Add javacomp.
33648 2005-01-28 Bruno Haible <bruno@clisp.org>
33650 * m4/javacomp.m4: New file, from GNU gettext.
33652 2005-01-28 Bruno Haible <bruno@clisp.org>
33654 * lib/javacomp.sh.in: New file, from GNU gettext.
33655 * lib/javacomp.h: New file, from GNU gettext.
33656 * lib/javacomp.c: New file, from GNU gettext.
33658 2005-01-26 Simon Josefsson <jas@extundo.com>
33660 * lib/gai_strerror.c: Use GPL in header.
33662 2005-01-26 Bruno Haible <bruno@clisp.org>
33664 * modules/javaexec: New file.
33665 * MODULES.html.sh (Java): Add javaexec.
33667 2005-01-26 Bruno Haible <bruno@clisp.org>
33669 * m4/javaexec.m4: New file, from GNU gettext.
33671 2005-01-26 Bruno Haible <bruno@clisp.org>
33673 * lib/javaexec.sh.in: New file, from GNU gettext.
33674 * lib/javaexec.h: New file, from GNU gettext.
33675 * lib/javaexec.c: New file, from GNU gettext.
33677 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33679 * modules/lchown (Depends-on): Remove lchown.h
33681 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33683 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33684 must be defined if the header file was not found, in order
33685 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33687 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33689 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33690 initializers for struct pentry_state.
33691 (__argp_error): Check return value of __asprintf
33692 (__argp_failure): Translate error message
33694 * lib/argp-parse.c: Removed braces around the expansion of N_()
33696 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
33698 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33699 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33700 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33701 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33702 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33703 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33704 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33705 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33706 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33707 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33708 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33709 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33710 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33711 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33712 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33713 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33714 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33715 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33716 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33717 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33718 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33719 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33720 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33721 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33722 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33723 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33724 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33725 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33726 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33727 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33728 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33729 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33730 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33731 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33732 xstrtol.m4, xstrtoumax.m4, yesno.m4:
33733 Use an all-permissive copyright notice, recommended by RMS.
33735 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
33737 * modules/chdir-long (Depends-on): Remove mempcpy.
33739 2005-01-21 Jim Meyering <jim@meyering.net>
33741 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33742 same value as for Solaris 9.
33744 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33745 component length. This included changing the parameter to be
33746 of type `char *' rather than `char const *'.
33747 * lib/chdir-long.h (chdir_long): Update prototype.
33749 * lib/openat.c (fdopendir, fstatat): New functions.
33750 * lib/openat.h: Include headers required for use of DIR and struct
33752 [AT_SYMLINK_NOFOLLOW]: Define.
33753 (fdopendir, fstatat): Add prototypes.
33755 2005-01-21 Bruno Haible <bruno@clisp.org>
33757 * modules/classpath: New file.
33758 * MODULES.html.sh (Java): Add classpath.
33760 2005-01-21 Bruno Haible <bruno@clisp.org>
33762 * lib/classpath.h: New file, from GNU gettext.
33763 * lib/classpath.c: New file, from GNU gettext.
33765 2005-01-20 Simon Josefsson <jas@extundo.com>
33767 * modules/version-etc-fsf: New file.
33769 2005-01-20 Simon Josefsson <jas@extundo.com>
33771 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
33772 * lib/version-etc.c: Remove version_etc_copyright.
33773 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
33774 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
33776 2005-01-20 Simon Josefsson <jas@extundo.com>
33778 * lib/base64.h (isbase64): Add.
33780 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
33781 using a unsigned prototype, don't inline.
33782 (base64_decode): Use it.
33784 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33786 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
33789 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33791 * lib/save-cwd.c (save_cwd): Remove code to support the case
33792 where fchdir is missing or flaky.
33794 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33796 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
33798 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
33800 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
33801 AC_LIBSOURCES now does this.
33802 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
33803 with new ullong_max module.
33805 2005-01-19 Bruno Haible <bruno@clisp.org>
33807 * modules/sh-quote: New file.
33808 * MODULES.html.sh (Executing programs): Add sh-quote.
33810 2005-01-19 Bruno Haible <bruno@clisp.org>
33812 * lib/sh-quote.h: New file, from GNU gettext.
33813 * lib/sh-quote.c: New file, from GNU gettext.
33815 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33817 Merge from coreutils.
33818 * m4/ullong_max.m4: New file.
33819 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
33820 (gl_MACROS): Assume localeconv exists.
33822 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33824 Merge changes from coreutils, as described below in several
33825 changelogs dated today.
33827 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
33828 (O_DIRECTORY): Remove; not needed here, since "." must be
33829 a directory. All uses removed.
33830 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
33831 universal on Suns, and we also need to test for IRIX.
33832 Revamp code to use 'if' rather than '#if'.
33833 Avoid unnecessary comparison of cwd->desc to 0.
33835 * lib/utimens.c (futimens): Robustify the previous patch, by checking
33836 for known valid error numbers rather than observed invalid ones.
33838 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33840 * modules/ullong_max: New file.
33842 * modules/chdir-long, modules/openat: New files.
33843 * modules/save-cwd (Depends-on): Depend on chdir-long.
33844 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
33846 2005-01-18 Jim Meyering <jim@meyering.net>
33848 Merge from coreutils.
33849 * m4/chdir-long.m4, m4/openat.m4: New files.
33850 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
33851 save-cwd.h. Add AC_LIBOBJ for save-cwd.
33852 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
33853 is sane and DOES follow symlinks. Besides, testing 20 different
33854 systems found no broken chown implementations.
33855 Prompted by a change in rsync's copy of this macro.
33856 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
33858 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
33860 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
33861 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
33862 NULL-means-set-to-current-time semantics.
33863 Remove temporary file immediately, rather than waiting
33864 for configure's at-exit trap code to do it.
33866 2005-01-18 Jim Meyering <jim@meyering.net>
33868 * lib/version-etc.c (version_etc_copyright): Update copyright date.
33870 * lib/utimens.c (futimens): Account for the fact that futimes
33871 can also fail with errno == ENOSYS or errno == ENOENT.
33872 Patch from Dmitry V. Levin.
33874 Change the name of the robust chdir function from chdir to chdir_long.
33875 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
33876 (restore_cwd): Use chdir_long, not chdir.
33877 * lib/chdir-long.c: Renamed from chdir.c.
33878 * lib/chdir-long.h: Renamed from chdir.h.
33879 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
33882 2005-01-18 Bruno Haible <bruno@clisp.org>
33884 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
33885 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
33886 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
33887 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
33888 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
33889 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
33890 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
33891 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
33892 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
33893 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
33894 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
33895 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
33896 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
33897 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
33898 Use an all-permissive copyright notice, recommended by RMS.
33900 2005-01-18 Bob Proulx <bob@proulx.com>
33902 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
33903 simplify offsetof() macro construct to avoid compile failure with
33904 native HP-UX 11.0 ANSI C compiler.
33906 2005-01-17 Bruno Haible <bruno@clisp.org>
33908 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
33909 redundant because stpncpy.m4 takes care of it.
33911 2005-01-17 Bruno Haible <bruno@clisp.org>
33913 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
33915 2005-01-17 Bruno Haible <bruno@clisp.org>
33917 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
33920 2005-01-17 Bruno Haible <bruno@clisp.org>
33922 * lib/fwriteerror.h (fwriteerror): Change specification to include
33924 * lib/fwriteerror.c: Include <stdbool.h>.
33925 (fwriteerror): At the end, close the file stream. Record whether
33926 stdout was already closed.
33928 2005-01-17 Bruno Haible <bruno@clisp.org>
33930 * lib/execute.c (environ): Declare if needed.
33931 * lib/pipe.c (environ): Likewise.
33932 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
33934 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33936 * modules/argp: Depend on vsnprintf
33938 2005-01-10 Jim Meyering <jim@meyering.net>
33940 * modules/closeout (Depends-on): Add atexit.
33942 2005-01-06 Bruno Haible <bruno@clisp.org>
33944 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
33946 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
33948 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
33949 definitions to be after all include files, to avoid collisions.
33950 Problem reported by Bob Proulx.
33952 2005-01-04 Jim Meyering <jim@meyering.net>
33954 Changes imported from coreutils.
33955 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
33956 as the mkstemp template, use a temporary directory and an
33957 8.3-friendly template to avoid trouble on systems like DJGPP.
33958 Reported by Juan M. Guerrero via Stepan Kasal.
33959 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
33960 close. Remove the temporary directory right away, rather than waiting
33961 for configure's at-exit trap code to do it.
33962 Suggestion from Stepan Kasal.
33964 2005-01-01 Simon Josefsson <jas@extundo.com>
33966 * gnulib-tool: Print #include directives when --import'ing.
33968 2004-12-28 Simon Josefsson <jas@extundo.com>
33970 * tests/test-base64.c: Include required header files. Remove
33973 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33975 * modules/error (Depends-on): Remove gettext.
33977 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33979 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
33980 not needed. This removes a dependency on the gettext module.
33981 [defined _LIBC]: Do not include <libintl.h>; not needed.
33983 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33985 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
33986 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
33988 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33990 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33993 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33995 * modules/getdate (Depends-on): Remove alloca-opt.
33997 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33999 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34001 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
34003 * lib/argp-parse.c: Include <stddef.h>.
34004 (alignof, alignto): New macros.
34005 (parser_init): Don't assume that void * is aligned sufficiently
34008 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34009 need to extend the stack.
34010 (YYINITDEPTH): New macro, so that the initial stack isn't overly
34013 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34015 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34017 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
34019 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34020 (2004-10-24) change. Apparently this was a false alarm.
34022 * modules/getdate: Depend on alloca-opt, not alloca.
34024 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
34026 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34027 Remove now-obsolete comment about AIX.
34028 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34029 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34030 (YYMAXDEPTH): New macro.
34032 2004-12-18 Simon Josefsson <jas@extundo.com>
34034 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34036 2004-12-18 Bruno Haible <bruno@clisp.org>
34038 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34040 2004-12-18 Bruno Haible <bruno@clisp.org>
34042 * lib/fatal-signal.c (fatal_signals): Make non-const.
34043 (init_fatal_signals): New function.
34044 (uninstall_handlers, install_handlers): Ignore signals that were set to
34046 (at_fatal_signal): Call init_fatal_signals.
34047 (init_fatal_signal_set): Likewise. Ignore signals that were set to
34049 Reported by Paul Eggert.
34051 2004-12-18 Bruno Haible <bruno@clisp.org>
34053 * doc/alloca.texi: New file.
34054 * doc/alloca-opt.texi: New file.
34056 2004-12-17 Jim Meyering <jim@meyering.net>
34058 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34059 Otherwise, install-sh could exit with improper exit status when
34060 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
34062 2004-12-16 Simon Josefsson <jas@extundo.com>
34064 * tests/test-base64.c: Add license.
34066 2004-12-15 Stepan Kasal <address@hidden>
34068 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34070 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
34072 * modules/getcwd (Files): Add m4/d-ino.m4.
34073 Suggested by Mark D. Baushke.
34075 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
34077 * lib/getdate.y (textint): New member "negative".
34078 (time_zone_hhmm): New function.
34079 Expect 14 shift-reduce conflicts, not 13.
34080 (o_colon_minutes): New rule.
34081 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34082 (yylex): Set the "negative" member of signed numbers.
34084 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
34086 * doc/getdate.texi (Time of day items, Time zone items):
34087 Describe new formats +00:00, UTC+00:00.
34089 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
34091 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34092 spurious "-l"s. Problem reported by Stepan Kasal.
34094 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
34096 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34097 in Autoconf 2.59. Problem reported by Mark D. Baushke.
34099 2004-12-04 Simon Josefsson <jas@extundo.com>
34101 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34102 Vandoorselaere <yoann@prelude-ids.org>.
34104 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34106 Changes imported from coreutils.
34107 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34109 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34111 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34113 Changes imported from coreutils.
34114 * lib/hard-locale.c: Assume <locale.h> exists.
34115 Include "strdup.h".
34116 (GLIBC_VERSION): New macro.
34117 (hard_locale): Assume setlocale exists.
34118 Rewrite to avoid #ifdef.
34119 Use strdup rather than malloc + strcpy.
34120 * lib/human.c: Assume <locale.h> exists.
34121 (human_readable): Assume localeconv exists.
34123 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34125 * modules/hard-locale (Depends-on): Add strdup.
34127 2004-12-01 Jakub Jelinek <jakub@redhat.com>
34129 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34130 convert T2, not T. (Imported from libc.)
34132 2004-11-30 Simon Josefsson <jas@extundo.com>
34134 * modules/restrict (License): Change to LGPL.
34136 2004-11-30 Simon Josefsson <jas@extundo.com>
34138 * m4/restrict.m4: Add copyright and copying conditions.
34140 2004-11-30 Simon Josefsson <jas@extundo.com>
34142 * m4/base64.m4: New file.
34144 2004-11-30 Simon Josefsson <jas@extundo.com>
34146 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34149 * tests/test-base64.c: New file.
34151 * modules/base64: New file.
34153 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
34155 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34156 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34158 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34160 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
34162 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34163 (__getcwd.c): Don't restore errno; glibc doesn't.
34164 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34165 first, falling back to our code only if its results look suspicious.
34166 Ensure that the resulting buffer is only as large as necessary.
34168 * lib/readutmp.c: Include readutmp.h first.
34169 Include <errno.h>, since readutmp.h no longer does that.
34170 * lib/readutmp.h: Don't include <errno.h>,
34171 <sys/param.h>, <time.h>; not needed to establish interface.
34172 (errno): Remove decl.
34173 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34174 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34175 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34177 2004-11-28 Simon Josefsson <jas@extundo.com>
34179 * lib/base64.h, base64.c: New file.
34181 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
34183 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34185 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
34187 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34188 (Depends-on): Remove pathmax, same. Add mempcpy.
34189 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34190 (Makefile.am): Append getcwd.h to lib_SOURCES.
34191 (Include): Add getcwd.h.
34192 (Maintainer): Change from Jim Meyering to "all, glibc",
34193 since getdate now uses intended-for-glibc code.
34194 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34195 (Depends-on): Depend on getcwd. Do not depend on pathmax.
34197 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
34199 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34200 HP's ANSI C compiler.
34201 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34202 Declaring int functions causes warnings on some modern systems and
34203 shouldn't be needed to compile on ancient ones.
34204 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34207 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34208 with the following changes.
34209 (__set_errno): Parenthesize properly.
34210 Include <stdbool.h>.
34211 (MIN, MAX, MATCHING_INO): New macros.
34212 (__getcwd): Define with prototype, not K&R form.
34213 Use heuristics to allocate default buffer on stack if possible.
34214 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34215 behavior, and to avoid the PATH_MAX limit when computing
34217 Use MATCHING_INO to compare inode number to file.
34218 Check for arithmetic overflow in size calculations.
34219 Fix bug in reallocation of dot array that caused getcwd to fail
34220 on directories nested deeper than 75.
34221 Be more careful about saving errno on error.
34222 Do not use realloc; use only free+malloc, as this is a bit
34223 more flexible and avoids a needless copy operation.
34224 Do not inspect st_dev and st_ino for symbolic links; POSIX
34225 doesn't specify the latter.
34226 Check for closedir errors.
34227 Avoid needless casts.
34228 Use "#ifdef weak_alias" around weak_alias, to be like other
34230 The following changes to getcwd.c have effect only when used in
34231 gnulib; they have no effect inside glibc proper.
34232 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34233 as alloca isn't used.
34234 (alloca, __alloca): Likewise.
34235 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34236 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34237 unconditionally, as gnulib assumes C89 or better.
34238 Do not include <sys/param.h>.
34239 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34240 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34242 (NULL) [!defined NULL]: Remove; we assume C89 or better.
34243 Include <dirent.h> in a way that is compatible with modern Autoconf.
34244 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34245 New macros, if not already defined.
34246 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34247 Use "_LIBC", not "defined _LIBC", for consistency.
34248 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34250 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34251 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
34252 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34253 credit only to Jim Meyering and adjust the copyright dates.
34254 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34255 <stdlib.h>, <unistd.h>, "pathmax.h".
34256 Instead, include "xgetcwd.h" (first) and "getcwd.h".
34257 (INITIAL_BUFFER_SIZE): Remove.
34258 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34260 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
34262 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34263 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
34264 Use the _ONCE methods, for efficiency.
34265 Check for fcntl.h. In test program, include <errno.h>
34266 and <fcntl.h> if available. Remove old K&R cruft from
34267 test program. Check for common errors in GNU/Linux,
34268 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
34269 don't do AC_LIBOBJ, as that's getcwd.m4's job.
34270 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34271 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
34273 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
34274 accommodate new getcwd.c.
34275 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34276 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34277 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34278 that's all we need now.
34280 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34282 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34283 argp-parse.c depends on getopt internals, that means we should
34284 always use our getopt, to be on the safe side.
34285 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34286 order not to spoil the result of an eventual previous invocation
34287 of gl_GETOPT_SUBSTITUTE.
34289 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34291 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34292 redefinition warnings. To avoid them, include the defines
34293 in `#if !defined __need_getopt ... #endif'. The only place
34294 where __getopt_argv_const is used is in definitions
34295 of getopt_long and getopt_long_only below, which are as well
34296 protected by `#ifndef __need_getopt'.
34297 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34298 __need_getopt after including <stdio.h> and <unistd.h> These
34299 headers might have defined it.
34301 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
34303 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34305 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
34307 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34308 (futimens): New function, which uses futimes if available.
34309 (futimens, utimens): Support timespec==NULL, with same semantics
34310 as utime and utimens.
34311 * lib/utimens.h (futimens): New decl.
34313 2004-11-23 Jim Meyering <jim@meyering.net>
34315 * lib/getopt_.h: Remove trailing blanks.
34317 2004-11-23 Jim Meyering <jim@meyering.net>
34319 * lib/__fpending.c: Add comment.
34321 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
34323 * modules/canonicalize (Depends-on): Add xreadlink.
34324 Problem reported by James Youngman.
34326 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
34328 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34330 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34331 optopt): Use them instead of invoking ## directly; otherwise, the
34332 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34334 2004-11-19 Bruno Haible <bruno@clisp.org>
34336 * lib/strtok_r.c: Move comments from here...
34337 * lib/strtok_r.h: ... to here.
34339 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
34341 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34342 implementations that mishandle size_t overflow.
34344 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
34346 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34347 might fail. Problem reported by Yoann Vandoorselaere.
34348 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34349 implementations that mishandle size_t overflow.
34351 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34353 * modules/canon-host (Depends-on): Add strdup.
34355 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34357 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34359 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34361 * lib/canon-host.c: Include "strdup.h".
34362 (canon_host): Use getaddrinfo if available, so that IPv6 works.
34363 Use strdup instead of malloc/strcpy to duplicate strings.
34365 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34366 (human_space_before_unit): New constant.
34367 * lib/human.c (human_readable): Support it.
34369 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34370 (xgetcwd): Set errno correctly when failing.
34371 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34372 the failure is actually due to a PATH_MAX problem.
34374 Further getopt changes to make it more likely that glibc will
34375 buy the changes back.
34376 * lib/getopt.c (POSIXLY_CORRECT): New constant.
34377 (getopt): Use it, so to preserve glibc semantic
34378 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34379 when compiling for libc.
34380 * lib/getopt_.h (__getopt_argv_const): Bring it back.
34381 (getopt_long, getopt_long_only): Use it.
34383 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34384 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
34385 (getopt): Argv is now char * const *, as per standard.
34386 (_getopt_internal_r, _getopt_internal): Argv is now char **,
34387 not char *__getopt_argv_const *.
34388 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34389 _getopt_long_only_r): Likewise.
34390 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34391 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34392 _getopt_long_r, _getopt_long_only_r): Likewise.
34393 * lib/getopt_.h (__getopt_argv_const): Remove.
34394 (getopt): Argv is now char * const *, as per standard.
34396 * lib/getdate.y (tORDINAL): New token.
34397 (day, relunit): Allow it for relative times.
34398 (relative_time_table): Use tORDINAL for ordinals.
34400 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34402 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34403 Document that "second" isn't allowed as an ordinal number.
34405 2004-11-16 Jim Meyering <jim@meyering.net>
34407 * modules/closeout (Depends-on): Add fpending.
34409 2004-11-15 Jim Meyering <jim@meyering.net>
34411 * lib/closeout.c: Include "__fpending.h" once again.
34412 Include <stdbool.h>.
34413 (close_stdout): Don't fail just because stdout was closed initially,
34414 since some programs don't write to stdout in the normal course of
34415 operation (other than --version and --help), and we don't want this
34416 function to make e.g. `touch file >&-' fail.
34417 But do fail if it was closed and someone has tried to write to it.
34418 E.g., `printf foo >&-' must fail.
34420 2004-11-13 Jim Meyering <jim@meyering.net>
34422 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34424 2004-11-12 Simon Josefsson <jas@extundo.com>
34426 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34427 small doc fix is still pending.
34429 2004-11-11 Simon Josefsson <jas@extundo.com>
34431 * modules/strtok_r: New file.
34433 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34436 2004-11-11 Simon Josefsson <jas@extundo.com>
34438 * m4/strtok_r.m4: New file.
34440 * m4/getopt.m4: Replace opterr.
34442 2004-11-11 Simon Josefsson <jas@extundo.com>
34444 * lib/strtok_r.h, strtok_r.c: New file.
34446 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34448 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34449 of replacing opterr, getopt, etc. This should handle the
34450 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34452 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34454 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34455 we can stop lying to compilers about the constness of argv when we
34456 are compiled outside glibc.
34457 (getopt, getopt_long, getopt_long_only): Use it.
34458 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34459 _getopt_internal, getopt): Likewise.
34460 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34461 _getopt_long_only_r): Likewise.
34462 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34463 _getopt_long_r, _getopt_long_only_r): Likewise.
34465 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34466 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34467 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34468 the other external symbols.
34469 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34470 declaration, since the above renaming now works around collisions.
34472 2004-11-11 Jim Meyering <jim@meyering.net>
34474 * lib/linebreak.c: Remove trailing blanks.
34475 * lib/alloca_.h: Likewise.
34476 * lib/acosl.c: Likewise.
34477 * lib/euidaccess.c: Likewise.
34478 * lib/allocsa.h: Likewise.
34480 2004-11-10 Simon Josefsson <jas@extundo.com>
34482 * m4/getaddrinfo.m4: New file.
34484 2004-11-10 Simon Josefsson <jas@extundo.com>
34486 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34488 2004-11-10 Simon Josefsson <jas@extundo.com>
34490 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34493 * modules/getaddrinfo: New file.
34495 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34497 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34499 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34501 * lib/mktime.c (SHR): New macro, which is a portable
34502 substitute for >> that should work even on Crays.
34503 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34504 Problem reported by Mark D. Baushke in
34505 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34506 * lib/getdate.y (SHR): Likewise.
34508 * lib/strftime.c (SHR): Likewise.
34510 * lib/quotearg.c (struct quoting_options): Use unsigned int for
34511 quote_these_too, so that right shifts are well defined. All uses
34514 2004-11-10 Jim Meyering <jim@meyering.net>
34516 Ensure that no close failure goes unreported.
34517 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
34518 return early when it seems there's nothing to flush.
34519 Don't include __fpending.h.
34521 2004-11-10 Jim Meyering <jim@meyering.net>
34523 * modules/closeout (Depends-on): Remove fpending.
34525 2004-11-10 Jim Meyering <jim@meyering.net>
34527 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34529 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34531 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
34533 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34534 and AC_REQUIRE when possible, to avoid duplicate checks.
34535 Check for <wchar.h>.
34537 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34539 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34541 2004-11-09 Bruno Haible <bruno@clisp.org>
34543 * m4/sockpfaf.m4: New file.
34545 2004-11-05 Bruno Haible <bruno@clisp.org>
34547 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34548 Reported by Mark D. Baushke <mdb@cvshome.org>.
34550 2004-11-04 Bruno Haible <bruno@clisp.org>
34552 2004-09-11 Bruno Haible <bruno@clisp.org>
34553 * allocsa.valgrind: New file.
34554 2004-02-06 Bruno Haible <bruno@clisp.org>
34555 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34556 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34557 Reported by Christopher Seip <chris.seip@hp.com>.
34559 2004-11-04 Bruno Haible <bruno@clisp.org>
34561 * modules/allocsa (Files): Add lib/allocsa.valgrind.
34562 (Makefile.am): Distribute it.
34564 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
34566 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34567 with errno == ERANGE if the buffer is too small.
34568 Problem reported by Mark D. Baushke.
34570 2004-11-03 Albert Chin <china@thewrittenword.com>
34571 Paul Eggert <eggert@cs.ucla.edu>
34573 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34574 equivalent, substitute $ac_type for equivalent type rather than
34575 blindly using uint32_t *always* which won't work if uint32_t is not
34576 available. Define _UINT32_T to work around typedef of uint32_t if
34577 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34580 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34582 * m4/jm-macros.m4: Sync from coreutils.
34583 (gl_MACROS): Check for mbrlen, for pathchk.
34584 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34586 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34588 * lib/xreadlink.c (MAXSIZE): New macro.
34589 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
34590 size does not exceed MAXSIZE. Avoid cast.
34591 As suggested by Mark D. Baushke in
34592 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34593 if readlink fails with buffer size just under MAXSIZE, try again
34596 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34598 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34600 2004-11-02 Derek R. Price <derek@ximbiot.com>
34601 and Paul Eggert <eggert@cs.ucla.edu>
34603 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34604 (get_date): Overparenthesize to avoid GCC warning.
34606 2004-11-02 Bruno Haible <bruno@clisp.org>
34608 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34611 2004-11-02 Bruno Haible <bruno@clisp.org>
34613 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34614 function returns void.
34616 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34618 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34619 fflush_unlocked, flockfile, funlockfile, funlockfile,
34620 fputs_unlocked, putc_unlocked.
34622 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34624 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34625 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34628 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34630 * modules/getdate (Files): Add doc/getdate.texi.
34631 (Depends-on): Add setenv, xalloc.
34633 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34635 * lib/getdate.y: Add support for TZ="foo" within a date string.
34636 Fix some bugs near time_t boundaries. Reject dates with
34637 out-of-range components, e.g., "Sept 31".
34638 Include <stdlib.h>, "setenv.h", "xalloc.h".
34639 (ISDIGIT_LOCALE): Remove; unused.
34640 Note that the TZ and time functions used here are not reentrant.
34641 (mktime_ok, get_tz): New functions.
34642 (TZBUFSIZE): New constant.
34643 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
34644 This requires that we sometimes generate our own TZ="XXX..." setting.
34646 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34648 * doc/getdate.texi: New file, from coreutils with modifications for
34649 the new TZ parsing.
34651 2004-10-27 Derek R. Price <derek@ximbiot.com>
34653 * lib/mktime.c (not_equal_tm): Remove redundant check.
34655 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34657 * modules/regex (lib_SOURCES): Add regex.c.
34658 Reported by James Youngman in
34659 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34661 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34663 * lib/getdate.y: Use Bison 1.875 features, and some minor
34664 code cleanups. This change does not affect semantics.
34665 Don't include <stdlib.h>; no longer needed.
34666 Don't include unlocked-io.h; only the "#if TEST" code uses
34667 stdio, and performance isn't crucial there.
34668 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34669 Bison 1.875 features as described below.
34670 All uses of "PC." replaced by "pc->".
34671 (YYSTYPE): Add a forward declaration.
34672 (yylex, yyerror): Use full prototypes in forward decls.
34673 Use "%pure-parser" rather than obsolescent "%pure_parser".
34674 Use %parse-param and %lex-param instead of obsolescent
34675 YYPARSE_PARAM and YYLEX_PARAM.
34676 (meridian_table, month_and_day_table, time_units_table,
34677 relative_time_table, time_zone_table, military_table,
34678 lookup_zone, lookup_word, get_date):
34679 Use NULL instead of 0 where appropriate.
34680 (to_hour): Avoid abort (), to avoid a dependency on
34682 (yyerror, yylex): Now accepts parser_control * arg.
34683 (main) [TEST]: Use '\0' rather than 0 for char.
34685 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34687 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34689 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34691 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34692 It's now the caller's responsibility to handle the case where
34693 !HAVE_GETPAGESIZE && !defined getpagesize.
34695 * lib/mktime.c (leapyear): Arg is long int, not int.
34697 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
34699 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34701 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
34703 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34704 missing. Problem reported by James Youngman.
34706 2004-10-16 Simon Josefsson <jas@extundo.com>
34708 * gnulib-tool: Fix comments. Fix parse problem.
34709 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34711 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
34713 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34714 implementation of getopt_long. Problem reported by Alexander Taler in:
34715 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34717 2004-10-15 Bruno Haible <bruno@clisp.org>
34719 * gnulib-tool: Untabify. Initialize supplied_libname.
34720 (func_usage): More homogenous output.
34721 (func_modules_transitive_closure, func_modules_to_filelist,
34722 func_emit_lib_Makefile_am): New functions.
34723 (func_import): New function, extracted from big case statement. Use
34724 func_get_license, func_modules_transitive_closure,
34725 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34726 opt_lgpl. Don't use test -a, as it's not portable.
34727 (func_create_testdir): Use func_modules_transitive_closure,
34728 func_modules_to_filelist, func_emit_lib_Makefile_am.
34730 2004-10-15 Bruno Haible <bruno@clisp.org>
34732 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34734 2004-10-15 Bruno Haible <bruno@clisp.org>
34736 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34737 the portions belonging to each module.
34738 Suggested by Derek Robert Price <derek@ximbiot.com>.
34740 2004-10-12 Simon Josefsson <jas@extundo.com>
34742 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34743 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34746 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34748 * modules/vsnprintf: New file.
34750 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34752 * m4/vsnprintf.m4: New file.
34754 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34756 * lib/vsnprintf.h: New file.
34757 * lib/vsnprintf.c: New file.
34759 2004-10-11 Bruno Haible <bruno@clisp.org>
34761 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
34764 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
34766 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
34768 2004-10-07 Bruno Haible <bruno@clisp.org>
34770 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
34771 fits into the provided buffer.
34773 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
34775 * lib/diacrit.c, diacrit.h: Add GPL notice.
34777 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
34779 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
34780 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
34781 This avoids a potential constant-folding bug.
34783 2004-10-05 Bruno Haible <bruno@clisp.org>
34785 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
34786 for the declaration of strsep.
34788 2004-10-05 Bruno Haible <bruno@clisp.org>
34790 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
34792 2004-10-04 Simon Josefsson <jas@extundo.com>
34794 * modules/memmem: New file.
34795 * tests/test-memmem.c: New file.
34796 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
34798 2004-10-04 Simon Josefsson <jas@extundo.com>
34800 * m4/memmem.m4: New file.
34802 2004-10-04 Simon Josefsson <jas@extundo.com>
34804 * lib/memmem.h: New file.
34805 * lib/memmem.c: New file, taken from glibc.
34807 2004-10-04 Simon Josefsson <jas@extundo.com>
34809 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
34810 '#ifdef USE_UNLOCKED_IO'.
34812 2004-10-04 Simon Josefsson <jas@extundo.com>
34814 * config/srclist.txt: Add memmem from glibc.
34816 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34818 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
34820 * modules/argmatch, modules/argp, modules/closeout, modules/error,
34821 modules/exclude, modules/getdate, modules/getline,
34822 modules/getndelim2, modules/getpass, modules/getpass-gnu,
34823 modules/getusershell, modules/linebuffer, modules/md5,
34824 modules/mountlist, modules/posixtm, modules/readtokens,
34825 modules/readutmp, modules/regex, modules/sha1,
34826 modules/version-etc, modules/yesno:
34827 Remove dependency on unlocked-io.
34829 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34831 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
34833 * m4/unlocked-io.m4: Add copyright notice.
34834 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
34836 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34838 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
34839 * lib/xmalloc.c (xmemdup): Likewise.
34840 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
34841 XFREE): Remove these long-obsolescent macros.
34842 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
34843 * lib/xstrdup.c: Remove.
34845 * lib/regex.c (re_comp): Cast gettext return value to char *,
34846 Problem reported by Martin Neitzel via Mark D. Baushke.
34848 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34850 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
34851 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
34852 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
34853 regex.c, sha1.c, version-etc.c, yesno.c:
34854 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
34855 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
34856 the includer's responsibility.
34858 Sync from coreutils.
34860 * lib/modechange.c (mode_compile): Don't decrement a pointer that
34861 points to the start of a string, as the C Standard says the
34862 resulting behavior is undefined.
34864 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
34865 simple -> simple_backups, numbered_existing ->
34866 numbered_existing_backups, numbered -> numbered_backups
34867 to avoid shadowing problems. All uses changed.
34868 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
34869 * lib/backupfile.c (check_extension, numbered_backup):
34870 Rename locals to avoid shadowing 'basename'.
34871 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
34874 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
34875 * lib/.cvsignore: Add getopt.h.
34877 2004-10-04 Bruno Haible <bruno@clisp.org>
34879 * modules/README: New file.
34880 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
34883 2004-10-02 Jim Meyering <jim@meyering.net>
34885 * lib/dirfd.h, getpagesize.h: Add copyright notice.
34887 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34889 * modules/strsep: New file.
34891 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34893 * m4/strsep.m4: New file.
34895 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34897 * lib/strsep.h: New file.
34898 * lib/strsep.c: New file.
34900 2004-10-01 Simon Josefsson <jas@extundo.com>
34902 * lib/snprintf.c (snprintf): Handle size==0.
34904 2004-10-01 Simon Josefsson <jas@extundo.com>
34905 Bruno Haible <bruno@clisp.org>
34907 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
34908 (snprintf): Declare 'args'.
34910 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
34912 * lib/snprintf.c: Remove comments as to why each header is needed.
34914 2004-10-01 Bruno Haible <bruno@clisp.org>
34916 * MODULES.html.sh: Add strsep.
34918 2004-09-30 Simon Josefsson <jas@extundo.com>
34920 * modules/snprintf: New file.
34922 2004-09-30 Simon Josefsson <jas@extundo.com>
34924 * m4/snprintf.m4: New file.
34926 2004-09-30 Simon Josefsson <jas@extundo.com>
34928 * lib/snprintf.h, lib/snprintf.c: New files.
34930 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34932 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
34933 (hol_entry_help): Never translate an empty string.
34934 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
34935 * lib/argp.h (OPTION_NO_TRANS): New option.
34937 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34939 * modules/argp (Maintainer): Replace Simon Josefsson
34940 by Sergey Poznyakoff.
34942 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34944 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
34945 changes merged back into glibc.
34947 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34949 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
34951 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
34953 * lib/xvasprintf.c: Include xalloc.h.
34954 (xvasprintf): Use xalloc_die, not xmalloc_die.
34956 2004-09-29 Bruno Haible <bruno@clisp.org>
34958 * modules/alloca-opt: New file, derived from modules/alloca.
34959 * modules/allocsa: Depend on alloca-opt instead of alloca.
34960 * modules/setenv: Likewise.
34961 * modules/vasnprintf: Likewise.
34962 * MODULES.html.sh: Add alloca-opt.
34964 2004-09-28 Simon Josefsson <jas@extundo.com>
34966 * gnulib-tool: New parameter --lgpl, to asseert that modules are
34967 LGPL, and to replace license template from GPL to LGPL.
34969 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34971 * modules/dummy: Change license to LGPL.
34973 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34975 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
34977 2004-09-24 Simon Josefsson <jas@extundo.com>
34979 * modules/minmax (License): Change from GPL to LGPL.
34981 2004-09-23 Simon Josefsson <jas@extundo.com>
34983 * gnulib-tool (--import): Typo.
34985 2004-09-23 Simon Josefsson <jas@extundo.com>
34987 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
34989 2004-09-22 Bruno Haible <bruno@clisp.org>
34991 * modules/*: Add 'License' field.
34992 * gnulib-tool: Accept --extract-license option.
34993 (func_get_license): New function.
34995 2004-09-21 Bruno Haible <bruno@clisp.org>
34997 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34998 Reported by Simon Josefsson.
35000 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
35002 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35003 gl_AC_TYPE_LONG_LONG.
35005 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
35007 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35009 2004-09-18 Simon Josefsson <jas@extundo.com>
35010 and Paul Eggert <eggert@cs.ucla.edu>
35012 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35013 calls with autoreconf. Define GL_LIB.
35015 2004-09-14 Karl Berry <karl@gnu.org>
35017 * config/srclist.txt: unsync setenv.c, sigh.
35019 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
35021 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35022 Problem reported by Bruno Haible in:
35023 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35025 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
35027 * config/srclist.txt: Comment out argp-pvh.c.
35029 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
35031 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35032 in case some system header has #define'd it. Problem reported by
35033 Soeren D. Schulze in
35034 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35036 2004-09-09 Karl Berry <karl@gnu.org>
35038 * regex.[ch]: delete from the root. These were supposed to be
35039 synced with emacs cvs, but this has not happened for about
35040 a year, and anyway nothing else uses emacs regex.[ch].
35041 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35042 lib/regex[.ch] is untouched.
35044 2004-09-09 Bruno Haible <bruno@clisp.org>
35046 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35048 2004-09-09 Bruno Haible <bruno@clisp.org>
35050 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35052 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35054 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
35056 * modules/xvasprintf: New file.
35057 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35059 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
35061 * lib/xvasprintf.h: New file.
35062 * lib/xvasprintf.c: New file.
35063 * lib/xasprintf.c: New file.
35065 2004-09-08 Bruno Haible <bruno@clisp.org>
35067 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35069 2004-09-08 Bruno Haible <bruno@clisp.org>
35071 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35072 length is > INT_MAX.
35073 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35076 2004-09-08 Bruno Haible <bruno@clisp.org>
35078 * lib/stdint_.h: New file, taken from GNU clisp.
35080 2004-09-08 Bruno Haible <bruno@clisp.org>
35081 Oskar Liljeblad <oskar@osk.mine.nu>
35083 * modules/stdint: New file.
35084 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35086 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35088 Import from coreutils.
35089 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35090 strings on unbounded length. alloca's performance benefits aren't
35091 that important here.
35092 (V_STRDUP): Remove.
35093 (parse_with_separator): New function, with most of the internals
35094 of the old parse_user_spec. Allow user to omit both user and group,
35095 for compatibility with FreeBSD.
35096 Clone only the user name, not the entire spec.
35097 Do not set *uid, *gid unless entirely successful.
35098 Avoid memory leak in some failing cases.
35099 Fix regression for USER.GROUP reported by Dmitry V. Levin in
35100 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35101 (parse_user_spec): Rewrite to use parse_with_separator.
35103 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35105 * modules/userspec: Don't depend on alloca.
35107 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35109 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35111 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
35113 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35114 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35115 utimecmp, utimens, xnanosleep. Rename sha to sha1.
35117 2004-08-16 Simon Josefsson <jas@extundo.com>
35119 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35120 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35121 Add --dry-run for --import.
35122 Let user provided command line parameters override configure.ac
35125 2004-08-12 Simon Josefsson <jas@extundo.com>
35127 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35128 as discussed with Paul Eggert in threads rooted at
35129 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35131 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35132 Before, the test was empty, and relied on ELIDE_CODE in source
35134 (gl_PREREQ_GETOPT): New macro.
35135 (gl_GETOPT): Use them.
35137 2004-08-12 Simon Josefsson <jas@extundo.com>
35139 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35140 * lib/getopt_.h: Renamed from getopt.h.
35142 2004-08-12 Simon Josefsson <jas@extundo.com>
35144 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35145 Change default library name from libfoo to libgnu.
35146 Now, if you have a configure.ac that says:
35149 gl_MODULES(error getopt etcetera)
35151 you can import all you need by running:
35152 ../gnulib/gnulib-tool --import
35154 * modules/getopt (Files): Rename getopt.h to getopt_.h.
35155 (Makefile.am): Rewrite, use logic from argz.
35156 (Include): Use <getopt.h> instead of "getopt.h".
35158 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35160 * modules/argp (Files): Add m4/unlocked-io.m4.
35161 (Depends-on): Add extensions.
35163 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35165 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35166 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35167 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35168 Check for program_invocation_name, program_invocation_short_name,
35169 flockfile, funlockfile, features.h, _getopt_long_only_r.
35171 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35173 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35174 its complicated substitute.
35175 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35176 and program_invocation_name.
35177 (__argp_basename) [!_LIBC]: Remove; the only use was
35178 replaced by its body.
35179 (__argp_short_program_name): Change condition from
35180 !defined __argp_short_program_name to
35181 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35182 to match argp-namefrob.h.
35183 (__argp_failure): Don't assume strerror_r returns char *.
35184 * lib/argp-parse.c (N_): Define unconditionally.
35185 (argp_default_options): Fill out initializers with 0 to avoid
35188 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35190 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35193 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35195 Merge from coreutils.
35197 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35199 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35200 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35202 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35204 Merge from coreutils.
35206 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35207 wmemchr or wmemcpy. Problem reported by Robert Dahlem
35208 for Reliant Unix 5.43.
35210 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35211 (union fooround): Use uintmax_t, not long int.
35212 The rest is a merge from libc:
35213 [defined _LIBC]: Include <shlib-compat.h>.
35214 (_obstack) [defined _LIBC]: Remove after 2.3.4.
35216 * lib/settime.c (settime): Recode to avoid warning with
35219 * lib/strverscmp.c: Convert to UTF-8.
35221 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35223 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35226 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35228 * modules/xalloc-die: New file.
35229 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35231 * modules/md5 (Files): Add m4/uint32_t.m4.
35232 * modules/sha1: Renamed from modules/sha.
35234 Rename lib/sha.h to lib/sha1.h.
35235 Rename lib/sha.c to lib/sha1.c.
35236 Rename m4/sha.m4 to m4/sha1.m4.
35237 (lib_SOURCES): Likewise.
35238 (configure.ac): Rename gl_SHA to gl_SHA1.
35239 (Include): sha.h -> sha1.h.
35241 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35243 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35244 * m4/sha1.m4: Renamed from sha.m4.
35245 (gl_SHA1): Renamed from gl_SHA. All uses changed.
35247 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35249 * lib/obstack.h (obstack_empty_p):
35250 Don't assume that chunk->contents is suitably aligned.
35251 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35252 Likewise. Problem reported by Benno in
35253 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35255 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35256 readable. This could be improved further but it'd take some work.
35258 2004-08-08 Simon Josefsson <jas@extundo.com>
35260 * modules/xgethostname (Depends-on): Remove exit and error (not
35263 * modules/getpass-gnu: Add getpass.h.
35264 (Depends-on): Add stdbool.
35265 * modules/getpass: Add getpass.h.
35267 2004-08-08 Simon Josefsson <jas@extundo.com>
35269 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35270 Check getpass declaration.
35272 2004-08-08 Simon Josefsson <jas@extundo.com>
35274 * lib/xgethostname.c: Don't include error.h (not used).
35276 * lib/getpass.h: Add.
35277 * lib/getpass.c: Include getpass.h first.
35279 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
35281 * lib/xalloc-die.c: New file.
35282 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35284 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35285 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35287 (_, N_, xalloc_die): Move to xalloc-die.c.
35288 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35289 so that we needn't mess with xalloc_msg_memory_exhausted.
35291 * lib/sha1.h: Renamed from sha.h.
35292 (SHA1_H): Renamed from _SHA_H.
35293 (sha1_ctx): Renamed from sha_ctx.
35294 (sha1_init_ctx): Renamed from sha_init_ctx.
35295 (sha1_process_block): Renamed from sha_process_block.
35296 (sha1_process_bytes): Renamed from sha_process_bytes.
35297 (sha1_finish_ctx): Renamed from sha_finish_ctx.
35298 (sha1_read_ctx): Renamed from sha_read_ctx.
35299 (sha1_stream): Renamed from sha_stream.
35300 (sha1_buffer): Renamed from sha_buffer.
35301 * lib/sha1.c: Likewise; renamed from sha.c.
35302 Do not include <sys/types.h>.
35303 Include <stddef.h> rather than <stdlib.h>.
35305 2004-08-08 Bruno Haible <bruno@clisp.org>
35307 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35308 FILESYSTEM_PREFIX_LEN.
35309 * lib/progreloc.c: Likewise.
35310 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35312 2004-08-06 Simon Josefsson <jas@extundo.com>
35314 * modules/progname (Depends-on): Don't depend on stdbool.
35316 2004-08-06 Simon Josefsson <jas@extundo.com>
35318 * modules/getsubopt: New file.
35319 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35322 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35324 More merge from coreutils.
35326 * m4/utimens.m4, m4/utimecmp.m4: New files.
35327 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35328 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35329 prereq.m4, sha.m4: Import changes from coreutils.
35331 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35333 More merge from coreutils.
35334 * modules/raise, modules/readtokens0, modules/utimens:
35335 * modules/utimecmp, module/xnanosleep: New files.
35336 * modules/strftime: Add lib/strftime.h.
35337 Change include from <time.h> to "strftime.h".
35338 * modules/yesno: Add lib/yesno.h.
35339 * modules/backupfile: Remove lib/addext.c.
35340 * modules/euidaccess: Add stat-macros.h.
35341 * modules/canonicalize, modules/euidaccess,
35342 modules/filemode, modules/lchown, modules/makepath,
35343 modules/rmdir, modules/stat: Likewise.
35345 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35348 * lib/argp-help.c (make_hol, hol_append): Don't assume that
35349 SIZE_MAX is a valid preprocessor constant.
35350 (__argp_basename): Change from "#ifndef _LIBC"
35351 to "#ifndef __argp_short_program_name", so that
35352 we don't compile these functions for tar.
35354 More merges from coreutils.
35355 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35356 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35357 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35358 * lib/addext.c: Remove; no longer needed.
35359 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35360 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35361 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35362 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35363 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35364 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35365 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35366 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35367 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35368 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35369 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35370 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35371 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35372 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35373 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35374 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35375 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35376 Import changes from coreutils.
35378 2004-08-05 Simon Josefsson <jas@extundo.com>
35380 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35382 2004-08-05 Simon Josefsson <jas@extundo.com>
35384 * m4/getsubopt.m4: New file.
35386 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35388 Merge from coreutils.
35390 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35391 * m4/getcwd-path-max.m4: New files.
35393 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35394 FILESYSTEM_PREFIX_LEN ->
35395 FILE_SYSTEM_PREFIX_LEN.
35396 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35397 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35398 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35399 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35401 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35402 prerequisite modules now handle the DOS stuff.
35403 Don't check for unistd.h.
35405 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35407 Merge from coreutils.
35409 * lib/.gdb-history: Remove; this doesn't belong here.
35411 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35412 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35413 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35414 * lib/getcwd.c: New files.
35416 * lib/dirname.h: Include <stdbool.h>.
35417 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35418 for consistency with POSIX terminology. All uses changed.
35419 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35420 (strip_trailing_slashes): Use bool for booleans.
35421 * lib/stripslash.c (strip_trailing_slashes): Likewise.
35423 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35424 sometimes returns a positive errno value even when it succeeds.
35425 (print_errno_message) [!LIBC]: Fall back on strerror if
35426 __strerror_r fails.
35428 * lib/path-concat.c (mempcpy): Don't define if a system header defines
35429 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35430 (longest_relative_suffix): New function.
35431 (path_concat): Use it. Assume first argument is not NULL.
35432 Port to DOS. Omit redundant separators.
35433 Report an error instead of returning NULL.
35434 Use mempcpy instead of memcpy.
35435 (xpath_concat): Remove: not declared or used.
35437 * lib/same.h: Include <stdbool.h>
35438 (same_name): Return bool, not int.
35439 * lib/same.c (same_name): Likewise.
35440 (errno): Don't declare; we assume C89 or better now.
35442 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35443 if not already defined.
35445 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35446 * lib/dup-safer.c (errno): Likewise.
35448 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35450 Merge from coreutils.
35451 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35452 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35453 * modules/path-concat: Don't depend on strdup.
35455 2004-08-03 Simon Josefsson <jas@extundo.com>
35457 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35458 * lib/progname.h: Don't include stdbool.h.
35460 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35462 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35463 * MODULES.html.sh (func_all_modules): Remove fatal.
35465 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35467 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35469 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35471 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35474 2004-08-02 Simon Josefsson <jas@extundo.com>
35476 * lib/getsubopt.h: New file, with comments from Bruno Haible.
35477 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35478 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35480 2004-08-01 Simon Josefsson <jas@extundo.com>
35482 * lib/xgetdomainname.c: Include stdlib.h, for free().
35484 2004-07-19 Bruno Haible <bruno@clisp.org>
35486 * MODULES.html.sh (func_all_modules): Add dummy.
35488 2004-07-16 Simon Josefsson <jas@extundo.com>
35490 * modules/dummy: New file.
35492 2004-07-16 Simon Josefsson <jas@extundo.com>
35494 * lib/dummy.c: New file.
35496 2004-07-16 Bruno Haible <bruno@clisp.org>
35498 * lib/backupfile.h: Add extern "C" for C++.
35499 * lib/closeout.h: Likewise.
35500 * lib/copy-file.h: Likewise.
35501 * lib/findprog.h: Likewise.
35502 * lib/full-write.h: Likewise.
35503 * lib/pathname.h: Likewise.
35504 * lib/progname.h: Likewise.
35505 * lib/stpcpy.h: Likewise.
35506 * lib/stpncpy.h: Likewise.
35507 * lib/strcase.h: Likewise.
35508 * lib/strstr.h: Likewise.
35509 * lib/xalloc.h: Likewise.
35511 * lib/mbswidth.h: Add extern "C" for C++.
35512 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35514 2004-07-13 Robert Millan <robertmh@gnu.org>
35516 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35518 2004-07-09 Simon Josefsson <jas@extundo.com>
35520 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
35521 failed without this.)
35523 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35525 * modules/chown (Files): Add lib/fchown-stub.c, since
35526 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35528 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35530 * lib/fchown-stub.c: New file.
35532 2004-06-24 Jim Meyering <jim@meyering.net>
35534 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35536 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35538 * modules/argz: Omit "#include".
35540 * MODULES.html.sh (func_all_modules): Add calloc, to match
35541 2004-06-01 addition of calloc module.
35543 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35545 * m4/argz.m4: New file, which is autoupdated from libtool.
35547 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35549 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35552 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35554 * config/srclist-update: Don't insist on "USA." before the
35555 close-comment, as libtool omits the period and puts the */ on a
35557 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35558 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35560 2004-06-22 Gary V. Vaughan <gary@gnu.org>
35562 * modules/argz: New file.
35563 * MODULES.html.sh (func_all_modules): Add argz.
35565 2004-06-12 Jim Meyering <jim@meyering.net>
35566 and Paul Eggert <eggert@cs.ucla.edu>
35568 * modules/hash (Files): Add lib/xalloc.h.
35569 * modules/pipe (Depends-on): Add wait-process.
35570 * modules/stat (Depends-on): Add xalloc.
35571 * modules/userspec (Files): Add lib/userspec.h.
35574 Upgrade from gettext-0.13.
35575 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35576 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35577 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35579 2004-06-10 Jim Meyering <jim@meyering.net>
35581 * lib/calloc.c: New file.
35583 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
35585 * lib/getdate.y (yylex): Allow space between sign and number.
35586 Problem reported by Dan Jacobson.
35588 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35590 Merge from coreutils CVS.
35592 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35593 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35594 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35595 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35596 xstrtol.m4: Fix copyright date and/or serial number.
35598 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35599 See if we need an fchown replacement.
35600 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35601 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35602 and use the replacement function if we detect either defect.
35604 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35607 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35608 and Jim Meyering <jim@meyering.net>
35610 Merge from coreutils CVS.
35612 * lib/stat-macros.h: New file, with contents from file-type.h
35613 and coreutils' system.h.
35614 * lib/file-type.c: Include "stat-macros.h".
35615 * lib/file-type.h (file_type): Move all macro definitions to new file,
35618 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35619 Wrap old code with this conditional.
35620 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35621 function that does not dereference symlinks.
35622 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35624 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35625 dependency problems.
35626 (xreadlink): Accept new arg SIZE, for efficiency.
35627 All decls and uses changed.
35628 * lib/xreadlink.h: Include <stddef.h>, for size_t.
35630 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35631 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35633 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35636 2004-06-01 Jim Meyering <jim@meyering.net>
35638 * m4/calloc.m4: New file.
35640 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
35642 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35643 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
35644 Also, fix a typo in a diagnostic.
35646 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35648 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35649 or AC_FUNC_REALLOC.
35651 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35653 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35654 macros to be defined.
35655 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35656 the allocator returns NULL because the requested size is zero.
35658 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
35660 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35661 var. Add comment explaining why libc still defines it. This
35662 merges the following patch from glibc:
35663 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35665 2004-05-20 Andreas Schwab <schwab@suse.de>
35667 * m4/free.m4: Replace free if it not known to work, not the other
35670 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
35672 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
35673 present in glibc since revision 1.1 of this file.
35674 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35675 obstack_alignment_mask, obstack_alloc, obstack_base,
35676 obstack_blank, obstack_blank_fast, obstack_chunk_size,
35677 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35678 obstack_grow0, obstack_init, obstack_int_grow,
35679 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35680 obstack_next_free, obstack_object_size, obstack_ptr_grow,
35681 obstack_ptr_grow_fast, obstack_room): Remove declarations of
35682 nonexistent functions.
35684 2004-05-18 Karl Berry <karl@gnu.org>
35686 * config/srclist.txt: break link for vasnprintf.c.
35688 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35690 Port obstack to the AS/400, where pointers are 16 bytes wide and
35691 you cannot cast an integer to a valid pointer. This patch is
35692 currently waiting to be integrated into glibc; see
35693 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35695 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35696 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35697 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35698 (struct obstack): temp member is now a union of a pointer and
35699 an integer, instead of an integer. All integer uses changed.
35700 This does not affect the physical layout of struct obstack,
35701 except on hosts (like the AS/400) where the size or alignment of
35702 void * is greater than that of ptrdiff_t.
35703 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35704 __STDC__)]: Store temporary in pointer member of union, not
35706 * lib/obstack.c: Include <stddef.h>, for offsetof.
35707 (struct fooalign): Remove; it doesn't need a name.
35708 (union fooround): Change double to long double, and add void *.
35709 (DEFAULT_ALIGNMENT): Use offsetof to compute.
35710 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35711 not a macro. Hence the values are always int; so remove all
35712 casts-to-int in uses.
35714 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35716 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35717 we can get this patch merged into glibc.
35719 2004-05-17 Derek R. Price <derek@ximbiot.com>
35720 Paul Eggert <eggert@cs.ucla.edu>
35722 * m4/argp: Depend on alloca.
35724 2004-05-17 Derek R. Price <derek@ximbiot.com>
35725 Paul Eggert <eggert@cs.ucla.edu>
35727 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35730 2004-05-17 Bruno Haible <bruno@clisp.org>
35732 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35733 precision that consists of a '.' followed by an empty digit string.
35734 Patch by Tor Lillqvist <tml@iki.fi>.
35736 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
35738 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35739 for backward compatibility with older code. We need our own
35740 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
35741 it under some other name, and our alloca.h will define it.
35743 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
35744 Derek Price <derek@ximbiot.com>
35746 * lib/alloca.c: Include <alloca.h>, to get our interface.
35747 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35748 include <alloca.h> first. Use C89 prototype for alloca; this
35749 requires including <stddef.h> for size_t. Use extern "C" if C++.
35750 Use #elif for simplicity, since we can assume C89 now.
35751 Don't try to source the system alloca.h since it will not be found
35752 and to prevent recursively including its replacement.
35753 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
35754 * lib/regex.c: Likewise.
35756 2004-05-16 Derek Price <derek@ximbiot.com>
35757 Paul Eggert <eggert@cs.ucla.edu>
35759 getline cleanup. This changes the getndelim2 API: both order of
35760 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
35763 * lib/getline.c: Don't include stddef.h or stdio.h, since our
35764 interface does that.
35765 (getline): Always use getdelim, so that we don't have two
35766 copies of this code.
35767 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
35769 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
35770 (GETNDELIM2_MAXIMUM): New macro.
35771 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
35772 instead of the old practice of delim2==0. All callers changed.
35773 Return -1 on overflow, instead of returning junk.
35774 Do not set *linesize unless allocation succeeds.
35775 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
35776 that we include sys/types.h.
35777 * lib/getnline.h: Likewise.
35778 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
35779 (getndelim2): Reorder arguments.
35780 * lib/getnline.c (getnline, getndelim):
35781 Don't discard the NMAX argument.
35782 (getnline): Invoke getndelim, to avoid code duplication.
35783 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
35784 of (size_t) -1 by callers of the getnline family.
35786 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
35788 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
35789 Check for gettimeofday.
35790 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
35791 Check for settimeofday, stime.
35793 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
35795 * lib/nanosleep.c (suspended): Change its type from int to
35796 sig_atomic_t volatile.
35797 (first_call): Make it private to rpl_nanosleep, and have it
35798 be zero initially as that's a bit faster.
35799 (my_usleep): Round up fractional times instead of truncating them,
35800 as this is the usual meaning for 'sleep'.
35802 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
35804 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
35805 (ENOSYS): Define if not defined.
35806 (settime): Fall back on stime if it exists and settimeofday fails.
35807 But don't bother with fallbacks if a method fails with errno == EPERM.
35809 2004-05-11 Jim Meyering <jim@meyering.net>
35811 Prior to this change, the save_cwd caller required read access to the
35812 current directory on most systems (ones with the fchdir function).
35814 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
35815 fails, try write-only, and finally, resort to using xgetcwd.
35817 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
35819 * lib/obstack.c, obstack.h: Import changes from libc.
35821 2004-04-28 Bruno Haible <bruno@clisp.org>
35823 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
35824 also implicitly appends .exe to executables.
35825 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
35826 accepts Windows pathnames.
35827 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35828 Treat Cygwin like Windows, since it now accepts Windows pathnames.
35829 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35830 Treat Cygwin like Windows, since it now accepts Windows pathnames.
35831 Reported by Derek Robert Price <derek@ximbiot.com>.
35833 2004-04-21 Karl Berry <karl@gnu.org>
35835 * config/srclist.txt (localcharset.c): break sync.
35837 2004-04-20 Paul Eggert <eggert@twinsun.com>
35839 * m4/host-os.m4: Add a copyright notice.
35841 2004-04-20 Jim Meyering <jim@meyering.net>
35843 Change UTILS_ to gl_ in AC_DEFINE'd names.
35844 Change utils_- and jm_-prefixed variables, too.
35845 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
35846 UTILS_FUNC_MKDIR_TRAILING_SLASH.
35847 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
35849 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
35850 Don't emit trailing blanks.
35851 Also rename jm_-prefixed variables to have gl_ prefix.
35853 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
35854 Also rename jm_-prefixed variables to have gl_ prefix.
35856 * m4/jm-macros.m4: Reflect the renamings.
35857 * m4/prereq.m4: Likewise.
35859 2004-04-20 Jim Meyering <jim@meyering.net>
35861 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
35864 2004-04-20 Jim Meyering <jim@meyering.net>
35865 Bruno Haible <bruno@clisp.org>
35867 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
35868 memory when realloc fails.
35870 2004-04-19 Jim Meyering <jim@meyering.net>
35872 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
35873 now that readutmp.c may call `free (0)'.
35875 2004-04-19 Bruno Haible <bruno@clisp.org>
35877 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
35878 * m4/inttypes_h.m4: Likewise.
35879 * m4/stdint_h.m4: Likewise.
35880 * m4/intmax_t.m4: Likewise.
35881 * m4/uintmax_t.m4: Likewise.
35883 2004-04-18 Jim Meyering <jim@meyering.net>
35885 * m4/prereq.m4: Don't forbid jm_ prefix.
35887 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
35888 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
35889 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
35890 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
35891 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
35892 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
35893 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
35894 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
35895 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
35896 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
35897 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
35898 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
35899 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
35900 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
35901 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
35902 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
35903 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
35904 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
35905 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
35907 2004-04-18 Jim Meyering <jim@meyering.net>
35909 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
35910 failure, don't leak memory and do call END_UTMP_ENT.
35912 2004-04-16 Jim Meyering <jim@meyering.net>
35914 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
35915 coreutils' stat program.
35916 (gl_PREREQ): Don't require jm_PREREQ_STAT.
35918 2004-04-11 Paul Eggert <eggert@twinsun.com>
35920 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
35922 (CHAR_BIT): Remove, since we assume C89.
35923 Include <stdint.h> if available, as per current Autoconf CVS advice.
35925 2004-03-31 Jim Meyering <jim@meyering.net>
35927 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
35928 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
35929 * m4/xalloc.m4: Likewise.
35931 2004-03-30 Paul Eggert <eggert@twinsun.com>
35933 Merge from coreutils.
35935 * m4/inttostr.m4: New file.
35936 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
35937 Require AM_STDBOOL_H and gl_TIMESPEC instead.
35938 Require gl_CLOCK_TIME.
35939 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
35941 2004-03-30 Paul Eggert <eggert@twinsun.com>
35943 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
35944 not bool, to be more consistent with Unix conventions.
35945 Suggested by Bruno Haible.
35947 Merge from coreutils.
35949 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
35950 * lib/umaxtostr.c: New files.
35952 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
35953 the usual <time.h> dance.
35954 (get_date): Change signature to support fractional time stamps.
35955 All callers changed.
35956 * lib/getdate.y: Include "getdate.h" first, as we can now
35957 assume C89 and don't need to worry about 'const'.
35958 Similarly, include "unlocked-io.h" near start, not in middle.
35959 Include <limits.h>.
35960 (textint.value): Use long int rather than int.
35961 (textint.digits): Use size_t rather than int.
35962 (BILLION, LOG10_BILLION): New constants.
35963 (parser_control): New member rel_ns. Members day_ordinal,
35964 time_zone, month, day, hour, minutes, rel_year, rel_month,
35965 rel_day, rel_hour, rel_minutes, rel_seconds
35966 are now long int, not int. Member seconds is now struct timespec,
35967 not int. New member timespec_seen. Members dates_seen, days_seen,
35968 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
35970 (%union.intval): Now long int, not int.
35971 New member timespec.
35972 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
35973 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
35974 (spec): Now is a timespec or an item list.
35975 (timespec, items): New nonterminals.
35976 (time, rel, relunit, number, get_date):
35977 Add support for fractional seconds.
35978 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
35979 (gmtime, localtime, mktime): Remove decls; not needed with C89.
35980 (to_hour): First arg is now long int, not int.
35981 (to_year): Returns long int, not int.
35982 Don't treat year -70 like 70.
35983 (tm_diff): Returns long int, not int.
35984 (lookup_word): Use bool instead of int when appropriate.
35985 (yylex): Use size_t for count, not int.
35986 Detect overflow when parsing large integer constants.
35987 Add support for fractions.
35988 (get_date): Make pointers 'const' if possible.
35989 Use more-portable code to detect integer overflow.
35990 (main) [TEST]: Adjust to above changes. Test for localtime failure.
35991 Don't use ctime; it's not reliable if the year has >4 digits.
35993 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35994 This is for compatibility with BSD.
35996 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35997 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35998 From coreutils' system.h.
36000 * lib/userspec.c: Don't include "posixver.h".
36001 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36002 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36003 compatible extension. Simplify code by removing a boolean int
36004 that was always nonzero if a string was nonnull.
36006 2004-03-30 Jim Meyering <jim@meyering.net>
36008 Merge from coreutils.
36010 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36011 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36012 on some systems one must include <grp.h> before it.
36013 Reported by Christian Krackowizer.
36015 2004-03-30 Jim Meyering <jim@meyering.net>
36017 Merge from coreutils.
36019 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36021 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36022 an empty input stream.
36024 * lib/readtokens.c: Include <stdbool.h>.
36025 (readtoken): Use `size_t' rather than int/long.
36026 All callers adjusted.
36027 Use `bool' rather than `int' where appropriate.
36028 Use memset rather than an explicit loop.
36029 Use x2nrealloc rather than xrealloc.
36030 Allow the use of `\0' as a delimiter.
36031 (readtokens): Likewise.
36032 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36034 2004-03-30 Jim Meyering <jim@meyering.net>
36036 * m4/realloc.m4: Remove file, since now it does no more than
36037 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36038 the `configure.ac' section of module/realloc.
36039 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36041 2004-03-30 Bruno Haible <bruno@clisp.org>
36043 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36046 2004-03-29 Paul Eggert <eggert@twinsun.com>
36048 Merge changes to getloadavg.c from coreutils and Emacs.
36050 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36051 Define to an expression, not to the empty string.
36052 Include cloexec.h and xalloc.h.
36053 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36054 Use set_cloexec_flag rather than rolling our own.
36055 * lib/cloexec.c, lib/cloexec.h: New files.
36057 2004-03-29 Paul Eggert <eggert@twinsun.com>
36059 * m4/cloexec.m4: New file.
36061 2004-03-18 Paul Eggert <eggert@twinsun.com>
36063 * lib/getopt.h: Sync with libc CVS.
36065 2004-03-18 Paul Eggert <eggert@twinsun.com>
36066 Bruno Haible <bruno@clisp.org>
36068 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36071 2004-03-18 Paul Eggert <eggert@twinsun.com>
36072 Bruno Haible <bruno@clisp.org>
36074 * lib/mbswidth.h: Include <wchar.h> only if
36075 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36077 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36079 2004-03-09 Paul Eggert <eggert@twinsun.com>
36081 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36082 Sync with libc CVS.
36083 * lib/getopt_int.h: New file, also synced from libc.
36085 2004-03-09 Paul Eggert <eggert@twinsun.com>
36087 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36088 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
36089 Bring back getopt.c, getopt.h, getopt1.c.
36091 2004-03-07 Paul Eggert <eggert@twinsun.com>
36093 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36094 All uses changed. Check for sa_sigaction member; this fixes
36095 a bug first reported by Jason Andrade in
36096 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36098 2004-03-07 Paul Eggert <eggert@twinsun.com>
36100 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
36101 '#if' expressions. Unlike the code it replaces, it does not
36102 depend on (defined _SC_PAGESIZE). However, it does depend on
36103 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36104 first reported by Jason Andrade in
36105 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36107 2004-02-25 Simon Josefsson <jas@extundo.com>
36109 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36111 2004-02-25 Simon Josefsson <jas@extundo.com>
36113 * lib/strdup.h: New file.
36114 * lib/strdup.c: Include it.
36115 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36116 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36118 2004-02-23 Karl Berry <karl@gnu.org>
36120 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36121 (from fencepost.gnu.org:/gd/gnuorg).
36123 2004-02-23 Karl Berry <karl@gnu.org>
36125 * config/srclistvars.sh (GNUORG) [karl]: redefine.
36126 * config/srclist.txt: add maintain/standards documents.
36128 2004-02-18 Bruno Haible <bruno@clisp.org>
36130 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36131 Reported by Derek Robert Price <derek@ximbiot.com>.
36133 2004-02-16 Karl Berry <karl@gnu.org>
36135 * config/mkinstalldirs, install-sh: update from automake.
36137 2004-02-06 Karl Berry <karl@gnu.org>
36139 * m4/po.m4: update from gettext 0.14.1.
36141 2004-02-06 Karl Berry <karl@gnu.org>
36143 * lib/config.charset: update from gettext 0.14.1.
36145 2004-02-05 Paul Eggert <eggert@twinsun.com>
36147 Add comments and code, prompted by suggestions from Bruno Haible
36149 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
36150 describing the enum quoting_style values.
36151 * lib/quotearg.c (quotearg_alloc): New function.
36152 (quotearg_buffer_restyled): Treat lone { and } as special.
36153 Treat = as special. Work around bug with older shells
36154 that "see" a '\' that is really the 2nd byte of a multibyte char.
36155 Quote empty string with shell_quoting_style.
36157 2004-02-03 Bruno Haible <bruno@clisp.org>
36159 * m4/pipe.m4: New file, from GNU gettext.
36161 2004-02-03 Bruno Haible <bruno@clisp.org>
36163 * lib/pipe.h: New file, from GNU gettext.
36164 * lib/pipe.c: New file, from GNU gettext.
36166 2004-01-27 Bruno Haible <bruno@clisp.org>
36168 * m4/execute.m4: New file, from GNU gettext.
36170 2004-01-27 Bruno Haible <bruno@clisp.org>
36172 * lib/execute.h: New file, from GNU gettext.
36173 * lib/execute.c: New file, from GNU gettext.
36174 * lib/w32spawn.h: New file, from GNU gettext.
36176 2004-01-24 Paul Eggert <eggert@twinsun.com>
36178 Merge from diffutils.
36180 * lib/file-type.c (file_type): Add typed memory objects.
36181 * lib/file-type.h (S_TYPEISTMO): New macro.
36183 * lib/c-stack.h (c_stack_action): Remove argv argument.
36184 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
36185 (die): Don't calculate message unless segv_action returns.
36186 (get_stack_location, min_address_from_argv, max_address_from_argv,
36187 volatile stack_base, volatile_stack_size): Remove.
36188 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36189 that every segmentation violation is a stack overflow. (Ouch!)
36190 See Debian bug 136249 (still outstanding) for more info about why
36191 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36193 2004-01-24 Paul Eggert <eggert@twinsun.com>
36195 Exit-status fix from coreutils.
36197 Use exit_failure consistently in place of EXIT_FAILURE,
36198 so that program exit statuses are consistent on failure.
36200 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36201 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36202 * lib/argmatch.h: Comment fix to match the above.
36203 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36204 Now a macro referring to exit_failure, instead of a separate
36205 variable. Include "exitfail.h" to get it.
36206 * lib/xstrtol.h: Include "exitfail.h".
36207 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36209 * lib/long-options.c (parse_long_options): Use prototype
36210 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
36213 2004-01-21 Jim Meyering <jim@meyering.net>
36215 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36216 so as not to conflict with a different-sized __mktime_internal
36217 function in GNU libc.
36218 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36219 Problem building statically-linked `ls' reported by Michael Brunnbauer.
36221 2004-01-20 Karl Berry <karl@gnu.org>
36223 * config/config.guess: update from config.
36225 * config/srclistvars.sh: GNUWWWLICENSES for karl.
36227 2004-01-20 Bruno Haible <bruno@clisp.org>
36229 Safer stack allocation.
36230 * lib/setenv.c: Include allocsa.h.
36231 (alloca): Remove fallback definition.
36232 (freea): Remove macro.
36233 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36236 2004-01-20 Bruno Haible <bruno@clisp.org>
36238 * m4/eealloc.m4: New file, from GNU gettext.
36240 2004-01-20 Bruno Haible <bruno@clisp.org>
36242 * m4/allocsa.m4: New file, from GNU gettext.
36244 2004-01-20 Bruno Haible <bruno@clisp.org>
36246 * lib/xallocsa.h: New file, from GNU gettext.
36247 * lib/xallocsa.c: New file, from GNU gettext.
36249 2004-01-20 Bruno Haible <bruno@clisp.org>
36251 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36253 2004-01-20 Bruno Haible <bruno@clisp.org>
36255 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36256 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36259 2004-01-20 Bruno Haible <bruno@clisp.org>
36261 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36264 2004-01-20 Bruno Haible <bruno@clisp.org>
36266 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36268 2004-01-20 Bruno Haible <bruno@clisp.org>
36270 * lib/eealloc.h: New file.
36272 2004-01-20 Bruno Haible <bruno@clisp.org>
36274 * lib/binary-io.h: Avoid warnings on Cygwin.
36276 2004-01-20 Bruno Haible <bruno@clisp.org>
36278 * lib/allocsa.h: New file, from GNU gettext.
36279 * lib/allocsa.c: New file, from GNU gettext.
36281 2004-01-18 Karl Berry <karl@gnu.org>
36283 * doc/gpl.texi, doc/lgpl.texi: new files.
36285 2004-01-18 Karl Berry <karl@gnu.org>
36287 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36288 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36290 2004-01-15 Paul Eggert <eggert@twinsun.com>
36292 Merge from coreutils.
36294 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36295 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36296 (gl_DEFAULT_POSIX2_VERSION): Move
36297 the documentation from 'configure' into 'config.hin',
36298 so that 'configure --help' isn't burdened by it and
36299 we don't have to worry about its formatting there.
36300 Reword the documentation so that it's more succinct
36301 and can be run together into a single paragraph.
36302 * m4/same.m4 (gl_SAME): Check for pathconf.
36304 2004-01-15 Paul Eggert <eggert@twinsun.com>
36306 Merge from coreutils.
36308 * lib/posixver.c: Include posixver.h.
36310 * lib/same.c: Include <stdbool.h>, <limits.h>.
36311 (_POSIX_NAME_MAX): Define if not defined.
36313 (same_name): If file names are silently truncated, report
36314 that the file names are the same if they are the same after
36315 the silent truncation.
36317 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36318 conversion function.
36319 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
36320 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
36323 2004-01-15 Jim Meyering <jim@meyering.net>
36325 Merge from coreutils.
36327 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36328 if no library is required.
36329 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36330 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36331 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36332 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36333 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36334 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36335 value, $ac_cv_search_crypt, if it's "none required".
36336 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36337 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36338 not gl_FUNC_GETLOADAVG.
36339 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36340 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36342 2004-01-15 Jim Meyering <jim@meyering.net>
36344 Merge from coreutils.
36346 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
36347 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
36348 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36350 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36351 optional configure-time default.
36353 * lib/version-etc.c (version_etc_copyright): Update copyright date.
36355 * lib/xreadlink.c (xreadlink): Correct outdated comment.
36357 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
36359 Merge from coreutils.
36361 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36362 value, $ac_cv_search_nanosleep, if it's "none required".
36364 2004-01-14 Paul Eggert <eggert@twinsun.com>
36366 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36367 with like-named macro in fnmatch.c.
36368 (EXT): Use an internal constant instead.
36370 Merge fnmatch patches from glibc.
36371 * lib/fnmatch.c (mbsinit): Remove define.
36372 Add libc_hidden_ver (__fnmatch, fnmatch).
36373 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36374 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36376 2004-01-14 Karl Berry <karl@gnu.org>
36378 * config/install-sh: update from automake.
36380 2004-01-13 Karl Berry <karl@gnu.org>
36382 * config/install-sh: update from automake.
36384 2004-01-09 Karl Berry <karl@gnu.org>
36386 * config/install-sh: update from automake.
36388 2004-01-05 Karl Berry <karl@gnu.org>
36390 * config/config.{sub,guess}: update from config.
36392 2003-12-31 Karl Berry <karl@gnu.org>
36394 * config/depcomp: update from automake.
36396 2003-12-14 Karl Berry <karl@gnu.org>
36398 * lib/config.charset: update from gettext-runtime.
36400 2003-12-03 Paul Eggert <eggert@twinsun.com>
36402 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36403 Bug reported by Alfred M. Szmidt.
36405 2003-12-03 Bruno Haible <bruno@clisp.org>
36407 * m4/gettext.m4: Upgrade from gettext-0.13.
36408 * m4/po.m4: Upgrade from gettext-0.13.
36409 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36410 * m4/intmax.m4: New file, from gettext-0.13.
36411 * m4/printf-posix.m4: New file, from gettext-0.13.
36413 2003-11-29 Karl Berry <karl@gnu.org>
36415 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36417 2003-11-25 Paul Eggert <eggert@twinsun.com>
36418 Bruno Haible <bruno@clisp.org>
36420 * lib/printf-parse.h: Don't include sys/types.h.
36421 (ARG_NONE): New macro.
36422 (char_directive): Change type of *arg_index fields to size_t.
36423 * lib/printf-parse.c: Don't include sys/types.h.
36424 (SSIZE_MAX): Remove macro.
36425 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36426 Remove unnecessary overflow check.
36427 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36430 2003-11-25 Bruno Haible <bruno@clisp.org>
36432 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36434 2003-11-25 Bruno Haible <bruno@clisp.org>
36436 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36439 2003-11-24 Paul Eggert <eggert@twinsun.com>
36441 * modules/alloca: Remove dependency on xalloc.
36443 2003-11-24 Paul Eggert <eggert@twinsun.com>
36445 * lib/alloca.c: Remove dependency on xalloc module.
36446 (xalloc_die): Remove.
36447 (memory_full) [!defined emacs]: New macro.
36448 [!defined emacs]: Don't include xalloc.h.
36449 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36450 address arithmetic overflows. Change datatypes a bit to avoid
36453 2003-11-22 Jim Meyering <jim@meyering.net>
36455 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36458 2003-11-21 Karl Berry <karl@gnu.org>
36460 * config/config.{sub,guess}: update from config.
36462 2003-11-18 Karl Berry <karl@gnu.org>
36464 * config/config.{sub,guess}: update from config.
36466 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36468 2003-11-17 Paul Eggert <eggert@twinsun.com>
36470 * README: Mention that S+T cannot overflow if S is the size of
36471 an existing object and T is sufficiently small.
36473 2003-11-17 Jim Meyering <jim@meyering.net>
36475 On systems without utime and without a utimes function capable of
36476 dealing with a NULL struct utimbuf* argument, this utime replacement
36477 could -- in unusual circumstances -- leak a file descriptor.
36478 * lib/utime.c: Include <unistd.h> and <errno.h>.
36479 (utime_null): Be sure to close `fd' and to preserve errno.
36480 Reported by Geoff Collyer via Arnold Robbins.
36482 2003-11-17 Bruno Haible <bruno@clisp.org>
36484 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36485 (Depends-on): Add xsize.
36487 2003-11-17 Bruno Haible <bruno@clisp.org>
36489 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36491 2003-11-17 Bruno Haible <bruno@clisp.org>
36493 * lib/vasnprintf.c (alloca): Remove fallback definition.
36494 (freea): Remove definition.
36495 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36496 Reported by Paul Eggert.
36498 2003-11-16 Paul Eggert <eggert@twinsun.com>
36499 Bruno Haible <bruno@clisp.org>
36501 Protect against address arithmetic overflow.
36502 * lib/printf-args.h: Include stddef.h.
36503 (arguments): Change type of field 'count' to size_t.
36504 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36505 'unsigned int' where appropriate.
36506 * lib/printf-parse.h: Include sys/types.h.
36507 (char_directive): Change type of *arg_index fields to ssize_t.
36508 (char_directives): Change type of fields 'count', max_*_length to
36510 * lib/printf-parse.c: Include sys/types.h and xsize.h.
36511 (SSIZE_MAX): Define fallback value.
36512 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36513 instead of 'int' where appropriate. Check a_allocated, d_allocated
36514 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36515 * lib/vasnprintf.c: Include xsize.h.
36516 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36517 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36518 overflow. Avoid wraparound when converting a width or precision from
36521 2003-11-16 Bruno Haible <bruno@clisp.org>
36523 Update from GNU gettext.
36524 * lib/printf-parse.c: Generalize to it can be compiled for wide
36526 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36527 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36528 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36529 SNPRINTF): New macros.
36530 Don't include <alloca.h> if the file is used inside libintl.
36531 (local_wcslen): New function, for Solaris 2.5.1.
36532 (VASNPRINTF): Use it instead of wcslen.
36534 2003-11-16 Bruno Haible <bruno@clisp.org>
36536 * lib/xsize.h (xmax): New function.
36537 (xsum, xsum3, xsum4): Declare as "pure" functions.
36539 2003-11-12 Paul Eggert <eggert@twinsun.com>
36541 * modules/xalloc (Files): Undo latest change, since xalloc.h
36542 no longer needs SIZE_MAX or PTRDIFF_MAX.
36544 2003-11-12 Paul Eggert <eggert@twinsun.com>
36546 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36549 2003-11-12 Paul Eggert <eggert@twinsun.com>
36551 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36552 "return", to pacify some unknown compiler. Problem reported
36553 by Joerg Schilling.
36555 2003-11-12 Paul Eggert <eggert@twinsun.com>
36557 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36558 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36559 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
36560 heuristic is just as accurate as far as we know, and it removes a
36561 dependency on size_max.m4 and ptrdiff_max.m4.
36563 2003-11-11 Bruno Haible <bruno@clisp.org>
36565 * modules/xsize (Files): Add m4/size_max.m4.
36566 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36568 2003-11-11 Bruno Haible <bruno@clisp.org>
36570 * m4/size_max.m4: New file.
36571 * m4/ptrdiff_max.m4: New file.
36572 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36573 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36574 (gl_XALLOC): Invoke it.
36576 2003-11-11 Bruno Haible <bruno@clisp.org>
36578 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36579 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36582 2003-11-10 Paul Eggert <eggert@twinsun.com>
36584 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36585 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36586 rejected some allocations of exactly SIZE_MAX - 2 bytes.
36588 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36589 not (size_t) -1, since it's defined here.
36591 2003-11-09 Karl Berry <karl@gnu.org>
36593 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36595 2003-11-06 Paul Eggert <eggert@twinsun.com>
36597 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36598 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36599 Reject sizes of exactly SIZE_MAX bytes.
36600 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36601 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36603 2003-11-05 Bruno Haible <bruno@clisp.org>
36605 * lib/xsize.h: Include limits.h, to avoid a possible collision with
36606 SIZE_MAX defined in <limits.h> on Solaris.
36608 2003-11-04 Jim Meyering <jim@meyering.net>
36610 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36611 variable names, rather than @VAR@.
36612 * modules/poll: Likewise.
36614 2003-11-04 Bruno Haible <bruno@clisp.org>
36616 * modules/xsize: New file.
36617 * modules/linebreak: Depend on xsize.
36618 * MODULES.html.sh (func_all_modules): Add xsize.
36620 2003-11-04 Bruno Haible <bruno@clisp.org>
36622 * m4/xsize.m4: New file.
36624 2003-11-04 Bruno Haible <bruno@clisp.org>
36626 * lib/xsize.h: New file.
36627 * lib/linebreak.c: Include xsize.h.
36628 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36629 argument for overflow.
36630 Suggested by Paul Eggert.
36632 2003-11-03 Karl Berry <karl@gnu.org>
36634 * config/config.{guess,sub}: update from config.
36636 2003-11-03 Jim Meyering <jim@meyering.net>
36638 * modules/userspec (lib_SOURCES): Add userspec.h.
36639 (Include): Add "userspec.h".
36640 Improve description.
36642 2003-11-03 Jim Meyering <jim@meyering.net>
36644 * lib/userspec.c: Include "userspec.h".
36645 * lib/userspec.h: New file.
36647 2003-11-03 Bruno Haible <bruno@clisp.org>
36649 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36651 2003-11-03 Bruno Haible <bruno@clisp.org>
36653 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36654 available, to avoid (extremely rare) race condition.
36655 Suggested by Paul Eggert.
36657 2003-11-02 Karl Berry <karl@gnu.org>
36659 * config/srclist.txt (vasprintf.c): sync broken, sigh.
36661 2003-10-31 Paul Eggert <eggert@twinsun.com>
36663 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36664 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36665 (read_filesystem_list): Set and use me_type_malloced.
36666 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36667 whatever the type happens to be), for brevity and consistency.
36668 Check for size calculation overflow on Alphas running OSF/1.
36670 2003-10-31 Jim Meyering <jim@meyering.net>
36672 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36674 * lib/linebuffer.c: Include <string.h> for declaration of memset.
36676 2003-10-30 Paul Eggert <eggert@twinsun.com>
36677 Bruno Haible <bruno@clisp.org>
36679 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36680 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36682 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
36684 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36685 netbsd*-gnu*. Suggested by Robert Millan.
36687 2003-10-29 Paul Eggert <eggert@twinsun.com>
36689 * modules/group-member: Depend on stdbool.
36691 2003-10-29 Paul Eggert <eggert@twinsun.com>
36693 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36695 2003-10-29 Paul Eggert <eggert@twinsun.com>
36697 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
36698 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
36699 after the 'gnu' in these cases. This fixes some bugs in the
36700 previous change, and is based on suggestions by Robert Millan.
36702 2003-10-29 Paul Eggert <eggert@twinsun.com>
36704 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36705 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
36707 * lib/quotearg.c (quotearg_n_options): Use it.
36708 * lib/group-member.c: Include <stdbool.h>.
36709 (free_group_info): Arg is now const *; don't free arg.
36710 (get_group_info): Now returns bool and accepts struct group_info *,
36711 rather than returning a malloc'ed struct group_info *.
36712 All uses changed. Check for overflow in internal size calculation.
36714 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36715 rather than xmalloc/xrealloc.
36716 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36717 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
36718 conformance bug: the old code used a pointer after freeing the
36719 storage that it addressed.
36720 * lib/hash.c (hash_initialize): Simplify the code by using
36721 xalloc_oversized rather than doing it by hand.
36722 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36723 the buffer preserved. Use free and xmalloc instead.
36724 * lib/quotearg.c (quotearg_n_options): Likewise.
36725 Use a simpler test for size overflow. Don't use xalloc_oversized
36726 because unsigned int might be wider than size_t (!); this suggests
36727 that we should switch from unsigned int to size_t for slot numbers.
36729 2003-10-28 Paul Eggert <eggert@twinsun.com>
36731 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36732 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
36733 NetBSD kernels. Requested by Richard Stallman.
36735 2003-10-27 Paul Eggert <eggert@twinsun.com>
36737 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36738 to allocate the returned structure. Do not allocate a subarray,
36739 as x2nrealloc will do that.
36740 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36741 instead of xnrealloc.
36742 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36744 2003-10-27 Bruno Haible <bruno@clisp.org>
36746 * lib/stdbool_.h: Better support for BeOS.
36748 2003-10-26 Paul Eggert <eggert@twinsun.com>
36750 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
36753 2003-10-26 Paul Eggert <eggert@twinsun.com>
36755 * lib/xalloc.h (xalloc_oversized): New static inline function, for
36756 callers that want to do their own size-overflow checking. Include
36757 <stdbool.h>, since xalloc_oversized returns bool.
36758 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
36759 to use xalloc_oversized.
36761 Add two functions x2realloc, x2nrealloc, for programs that grow
36762 arrays dynamically by doubling their sizes.
36763 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
36764 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
36767 Port to C99 semantics for 'inline' of external functions.
36768 Bug reported by Bruno Haible.
36769 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
36770 with the old contents of xnmalloc.
36771 (xnmalloc, xmalloc): Use it.
36772 (xnrealloc_inline): New static inline function,
36773 with the old contents of xnrealloc.
36774 (xnrealloc, xrealloc): Use it.
36776 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
36779 2003-10-26 Karl Berry <karl@gnu.org>
36781 * config/srclist.txt (COPYING.DOC): no longer available from
36782 /gd/gnuorg; don't know where the ultimate source is.
36784 2003-10-25 Paul Eggert <eggert@twinsun.com>
36786 Fix several address-calculation bugs in the hash modules,
36787 plus some minor code cleanup.
36789 * lib/hash.h: Include <stdbool.h>, for bool.
36790 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
36791 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
36792 hash_get_n_entries, hash_get_max_bucket_length,
36793 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
36794 hash_rehash): Use size_t rather than unsigned.
36795 * lib/hash.c (struct hash_table, hash_get_n_buckets,
36796 hash_get_n_buckets_used, hash_get_n_entries,
36797 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
36798 hash_get_entries, hash_do_for_each, hash_string, is_prime,
36799 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
36801 (SIZE_MAX): Define if not defined.
36802 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
36803 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
36805 Use const * when possible.
36806 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
36807 (check_tuning): Fix bug: if tuning parameters were very close to
36808 0 or 1, rounding errors could have caused subscript violations.
36809 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
36810 (hash_initialize): Add 'fail:' label
36811 to free table and return NULL, and use it to simplify code.
36812 Use calloc rather than clearing the storage ourself.
36813 (hash_initialize, hash_rehash): Check for arithmetic overflow in
36814 buffer size calculations.
36815 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
36816 Include <stddef.h>, for size_t.
36817 * lib/hash-pjw.c (hash_pjw): Likewise.
36818 Switch to method described by Bruno Haible.
36819 Include <limits.h>, for CHAR_BIT.
36820 (SIZE_BITS): New macro.
36822 2003-10-23 Paul Eggert <eggert@twinsun.com>
36824 * m4/getline.m4 (AM_FUNC_GETLINE):
36825 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
36826 hosts. Problem reported by Derek Robert Price in
36827 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
36828 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
36829 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
36831 2003-10-21 Paul Eggert <eggert@twinsun.com>
36833 * lib/getndelim2.c (getndelim2): When size calculation overflows,
36834 ceiling the allocation at NMAX bytes rather than silently
36835 discarding input bytes before NMAX is reached. This makes
36836 a difference only if NMAX exceeds SIZE_MAX / 2.
36838 * lib/obstack.c: Merge from glibc.
36839 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
36840 Add libc_hidden_def (_obstack_newchunk).
36841 (_obstack_free) [! defined _LIBC]: Remove.
36842 [defined _LIBC]: Make a strong alias from obstack_free, rather than
36843 a clone of the function body.
36844 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
36845 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
36847 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
36849 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
36852 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
36853 (obstack_ptr_grow_fast, obstack_int_grow_fast):
36854 Don't use lvalue casts, as GCC plans to remove support for them
36855 in GCC 3.5. Reported by Joseph S. Myers. This bug
36856 was also present in the non-GCC version, indicating that this
36857 code had always been buggy and had never been widely used.
36858 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
36859 Use the fast variant of each macro, rather than copying the
36860 definiens of the fast variant; that way, we'll be more likely to
36861 catch future bugs in the fast variants.
36863 2003-10-20 Bruno Haible <bruno@clisp.org>
36865 * modules/wait-process: New file.
36866 * MODULES.html.sh (func_all_modules): Add wait-process.
36868 2003-10-20 Bruno Haible <bruno@clisp.org>
36870 * m4/wait-process.m4: New file.
36872 2003-10-20 Bruno Haible <bruno@clisp.org>
36874 * lib/wait-process.h: New file, from GNU gettext.
36875 * lib/wait-process.c: New file, from GNU gettext.
36877 2003-10-19 Jim Meyering <jim@meyering.net>
36879 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
36882 2003-10-18 Karl Berry <karl@gnu.org>
36884 * config/config.guess: update from config.
36886 2003-10-16 Paul Eggert <eggert@twinsun.com>
36888 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
36889 (getgroups): First arg is int, not size_t.
36890 Don't let 'free' mangle errno.
36892 2003-10-16 Paul Eggert <eggert@twinsun.com>
36894 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
36896 2003-10-16 Karl Berry <karl@gnu.org>
36898 * config/config.{guess,sub}: update from config.
36900 2003-10-16 Jim Meyering <jim@meyering.net>
36902 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
36905 2003-10-15 Paul Eggert <eggert@twinsun.com>
36907 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
36908 (SIZE_MAX): Remove.
36909 (new_exclude, add_exclude_file): Initial size no longer needs to
36911 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
36912 our own address arithmetic overflow checking.
36914 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
36915 (fnmatch): Do not alloca more than 2000 wide characters;
36916 instead, use malloc for large buffers.
36917 Check for address arithmetic overflow, and return -1
36918 with errno set to ENOMEM in that case.
36919 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
36920 (NEW_PATTERN): Do not alloca more than 8000 bytes;
36921 instead, return -1. Check for address arithmetic overflow.
36923 2003-10-14 Paul Eggert <eggert@twinsun.com>
36925 Handle invalid suffixes and overflow independently, so that
36926 callers can treat them independently as needed. Fix some bugs in
36927 suffix handling, e.g., "100k@" was not diagnosed as an invalid
36928 suffix for a human-readable blocksize. The major caller-visible
36929 change is the addition of a new
36930 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
36931 that both overflow and suffix chars were found.
36933 * lib/human.c (humblock): Don't check separately for invalid suffix
36934 char; that is xstrtoumax's job (now that its bug is fixed).
36935 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
36936 INTMAX_MAX]: New macros.
36937 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
36938 TYPE_MAXIMUM): New macros.
36939 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
36940 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
36941 if overflow occurs, as it's what __strtol does and it's more useful
36943 (__xstrtol): If __strtol reports some error other than ERANGE,
36944 reflect it to the caller as LONGINT_INVALID. If it reports
36945 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
36946 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
36947 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
36949 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
36950 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
36951 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
36952 [defined UINTMAX_MAX]: New macros.
36954 2003-10-14 Bruno Haible <bruno@clisp.org>
36956 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
36958 2003-10-14 Bruno Haible <bruno@clisp.org>
36960 * m4/sig_atomic_t: New file, from GNU gettext.
36961 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
36963 2003-10-14 Bruno Haible <bruno@clisp.org>
36965 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
36966 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
36967 Also use volatile where needed.
36969 2003-10-12 Paul Eggert <eggert@twinsun.com>
36971 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
36972 Change maintainer from Bruno Haible to 'all'.
36974 2003-10-12 Paul Eggert <eggert@twinsun.com>
36976 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
36978 2003-10-12 Paul Eggert <eggert@twinsun.com>
36980 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
36981 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
36982 and define in terms of the other primitives.
36983 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
36984 (SIZE_MAX): Define if not already defined.
36985 (array_size_overflow): New function.
36986 (xalloc_die): Abort instead of exiting if 'error' returns.
36987 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
36988 (xmalloc, xrealloc): Use them.
36989 (xcalloc): Check for address arithmetic overflow.
36990 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36991 a bit faster than strcpy.
36993 2003-10-10 Simon Josefsson <jas@extundo.com>
36995 * modules/argp (Depends-on): Add restrict and strcase.
36997 2003-10-10 Simon Josefsson <jas@extundo.com>
36999 * m4/argp.m4: Add AC_C_INLINE.
37001 2003-10-08 Paul Eggert <eggert@twinsun.com>
37003 Merge getpass from libc, plus a few fixes.
37005 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37006 Include <stdbool.h>.
37007 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37008 __fsetlocking to empty.
37009 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37010 do include <bits/libc-lock.h>.
37011 Do not include <fcntl.h>; not needed.
37012 [_LIBC]: Include <wchar.h>.
37013 (NOTCANCEL_MODE): New macro.
37014 (flockfile, funlockfile) [_LIBC]: New macros.
37015 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37016 [!_LIBC]: New macros.
37017 (call_fclose): New function.
37018 (getpass): Use it. Save tty stream separately; this simplifies the
37019 code and makes it more reliable if stdin happens to equal stdout.
37020 Invoke __fsetlocking on tty.
37021 Handle thread cancellation if needed.
37022 Namespace cleanup (use __tcgetattr, __getline).
37023 Use bool for Booleans.
37024 [USE_IN_LIBIO]: Handle wide streams.
37025 [!_LIBC]: Unconditionally do the fseek, since we don't know what
37026 stream might go where.
37028 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37029 doesn't have to include <stdio.h> before us.
37030 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37031 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37032 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37033 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37034 if not declared, so that we can use getpass.c code from libc without
37036 (flockfile, ftrylockfile, funlockfile): New macros.
37038 2003-10-08 Paul Eggert <eggert@twinsun.com>
37040 * modules/getpass: Depend on stdbool.
37042 2003-10-08 Paul Eggert <eggert@twinsun.com>
37044 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37046 2003-10-07 Karl Berry <karl@gnu.org>
37048 * config/config.{guess,sub}: update from config.
37050 2003-10-06 Jim Meyering <jim@meyering.net>
37051 Bruno Haible <bruno@clisp.org>
37053 This lets translators provide better translations for the
37054 "Written by ..." part of --version output.
37055 * lib/version-etc.h: Include stdarg.h.
37056 (version_etc_copyright): Declare as readonly.
37057 (version_etc): Make this function variadic with a NULL-terminated list
37058 of author name strings.
37059 (version_etc_va): New declaration.
37060 * lib/version-etc.c: Include stdarg.h, stdlib.h.
37061 (version_etc_copyright): Declare as readonly.
37062 (version_etc_va): New function. Provide a different translatable string
37063 for each possible number of authors < 10. Abbreviate when there are 10
37065 (version_etc): Make this function variadic. Call version_etc_va.
37066 Suggestion from Gary V. Vaughan.
37068 * lib/long-options.h (parse_long_options): Change prototype: the
37069 authors string is moved to the end and becomes variadic.
37070 * lib/long-options.c: Include stdarg.h.
37071 (parse_long_options): Make this function variadic, too.
37072 Call version_etc_va, not version_etc.
37074 2003-10-06 Bruno Haible <bruno@clisp.org>
37076 * modules/version-etc-2: Remove file.
37077 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37079 2003-10-06 Bruno Haible <bruno@clisp.org>
37081 * modules/fatal-signal: New file.
37082 * MODULES.html.sh (func_all_modules): Add fatal-signal.
37084 2003-10-06 Bruno Haible <bruno@clisp.org>
37086 * m4/fatal-signal.m4: New file.
37087 * m4/signalblocking.m4: New file, from GNU gettext.
37089 2003-10-06 Bruno Haible <bruno@clisp.org>
37091 * lib/version-etc-2.h: Remove file.
37092 * lib/version-etc-2.c: Remove file.
37094 2003-10-06 Bruno Haible <bruno@clisp.org>
37096 * lib/fatal-signal.h: New file, from GNU gettext.
37097 * lib/fatal-signal.c: New file, from GNU gettext.
37099 2003-10-05 Paul Eggert <eggert@twinsun.com>
37101 * README: Rework advice for preventing empty .o files.
37102 Don't recommend ELIDE constructs. Recommend <stddef.h>,
37105 2003-10-04 Karl Berry <karl@gnu.org>
37107 * lib/argp*: update from libc.
37109 2003-10-04 Karl Berry <karl@gnu.org>
37111 * config/config.{guess,sub}: update from config.
37113 2003-10-02 Bruno Haible <bruno@clisp.org>
37115 * modules/lchown (Include): Add lchown.h.
37116 * modules/time_r (Include): Use "..." syntax.
37117 * modules/xgetdomainname (Include): Add xgetdomainname.h.
37119 2003-10-01 Simon Josefsson <jas@extundo.com>
37121 * MODULES.html.sh (func_all_modules): Move gethostname from section
37122 'based on' to section 'lacking' POSIX:2001.
37124 2003-10-01 Larry Jones <lawrence.jones@eds.com>
37126 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37127 to output mode on the same stream.
37129 2003-09-29 Paul Eggert <eggert@twinsun.com>
37131 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37132 Fix arg typo in previous patch.
37134 2003-09-28 Jim Meyering <jim@meyering.net>
37136 * lib/error.c: Correct cpp indentation.
37138 2003-09-27 Paul Eggert <eggert@twinsun.com>
37140 * modules/free: New file.
37142 2003-09-27 Paul Eggert <eggert@twinsun.com>
37144 * m4/free.m4: New file.
37146 2003-09-27 Paul Eggert <eggert@twinsun.com>
37148 * lib/minmax.h (MIN, MAX)
37149 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37150 Omit the special code that used __typeof__, since we worry that
37151 it could be more trouble than it's worth. See:
37152 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37153 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37155 * lib/free.c: New file.
37157 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
37159 Trivial fixes to Makefile.am parts of module listings.
37160 * modules/strstr: Append strstr.h to lib_SOURCES.
37161 * modules/strcase: Likewise, for strcase.h.
37163 2003-09-27 Karl Berry <karl@gnu.org>
37165 * config/mkinstalldirs: update from automake.
37167 2003-09-26 Paul Eggert <eggert@twinsun.com>
37169 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37170 (error_tail): Do not loop, reallocating temporary buffer, since
37171 the output cannot contain more wide characters than the input
37172 contains bytes, the size must be big enough already. This avoids
37173 one potential size overflow calculation. Check for size overflow
37174 when calculating temporary buffer size. Free temporary buffer
37175 when done, if it was allocated with malloc; this plugs a memory
37176 leak. Remove casts from void * to pointers, that are no longer
37177 needed now that we're assuming C89 or better.
37179 Merge error changes from glibc.
37181 * lib/error.c, error.h: Update copyright notice header to match glibc.
37182 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37183 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37184 Disable cancellation while printing error.
37185 * lib/error.h: Prepend __ to parameter names.
37187 2003-09-26 Jim Meyering <jim@meyering.net>
37189 * lib/error.c (error_tail): Move some declarations
37190 into inner scope where the local variables are used.
37192 2003-09-26 Bruno Haible <bruno@clisp.org>
37194 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37196 Don't define stpncpy through config.h; it's now done through stpncpy.h.
37198 2003-09-26 Bruno Haible <bruno@clisp.org>
37200 * lib/stpncpy.h (gnu_stpncpy): New declaration.
37201 (stpncpy): Define as alias for gnu_stpncpy.
37202 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37204 2003-09-25 Simon Josefsson <jas@extundo.com>
37206 * lib/xgetdomainname.h: New file.
37207 * lib/xgetdomainname.c: New file.
37209 2003-09-25 Simon Josefsson <jas@extundo.com>
37210 Bruno Haible <bruno@clisp.org>
37212 * modules/getdomainname: New file.
37213 * modules/xgetdomainname: New file.
37214 * MODULES.html.sh (func_all_modules): Add getdomainname,
37217 2003-09-25 Simon Josefsson <jas@extundo.com>
37218 Bruno Haible <bruno@clisp.org>
37220 * m4/getdomainname.m4: New file.
37222 2003-09-25 Simon Josefsson <jas@extundo.com>
37223 Bruno Haible <bruno@clisp.org>
37225 * lib/getdomainname.h: New file.
37226 * lib/getdomainname.c: New file.
37228 2003-09-25 Karl Berry <karl@gnu.org>
37230 * lib/argp-fmtstream.c, argp-help.c: update from libc.
37232 2003-09-25 Karl Berry <karl@gnu.org>
37234 * config/install-sh: update from automake.
37236 2003-09-25 Bruno Haible <bruno@clisp.org>
37238 * modules/version-etc-2: New file, from modules/version-etc with
37240 * MODULES.html.sh (func_all_modules): Add version-etc-2.
37242 2003-09-25 Bruno Haible <bruno@clisp.org>
37244 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37245 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37247 2003-09-24 Simon Josefsson <jas@extundo.com>
37249 * modules/xgethostname: Add xgethostname.h.
37251 2003-09-24 Paul Eggert <eggert@twinsun.com>
37253 * lib/linebuffer.c (freebuffer): Don't free the argument, just
37254 the buffer associated with the argument. Bug reported by
37257 2003-09-24 Paul Eggert <eggert@twinsun.com>
37259 * README: Document assumptions that 'int' is at least 32 bits
37260 wide, that integer arithmetic is 2's complement without overflow,
37261 that there are no holes in integer values, that adding sizes of
37262 two nonoverlapping objects can't overflow, and that all-bits-zero
37263 yields scalar zero. Fix spelling and capitalization typos.
37265 2003-09-19 Karl Berry <karl@gnu.org>
37267 * lib/argp.h: update from libc.
37269 2003-09-17 Paul Eggert <eggert@twinsun.com>
37271 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37272 to avoid spurious warnings like "AC_RUN_IFELSE was called before
37273 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37275 2003-09-17 Paul Eggert <eggert@twinsun.com>
37277 * gnulib-tool: Use "test -h", not "test -L", for portability
37278 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
37279 (tags_regexp): Remove, since \| doesn't conform to POSIX.
37280 (sed_extract_prog): Issue s commands one-by-one, rather than
37281 using \| in one s command.
37283 2003-09-16 Paul Eggert <eggert@twinsun.com>
37285 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37286 input error, instead of returning NULL the next time we are called
37287 (and therefore losing track of errno).
37289 2003-09-16 Bruno Haible <bruno@clisp.org>
37291 * gnulib-tool (func_create_testdir): Warn about duplicated
37294 2003-09-15 Paul Eggert <eggert@twinsun.com>
37296 * modules/argmatch, modules/fatal, modules/obstack,
37297 modules/xalloc, modules/xgethostname: Sort dependencies by
37298 importance, not alphabetically.
37300 2003-09-15 Paul Eggert <eggert@twinsun.com>
37302 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37303 fails, so that the caller gets the proper errno.
37305 * lib/readutmp.c (read_utmp): Likewise.
37306 Check for fstat error. Close stream and free storage
37309 2003-09-14 Karl Berry <karl@gnu.org>
37311 * config/srclist.txt (strdup.c): disable for c89 changes.
37313 2003-09-14 Jim Meyering <jim@meyering.net>
37315 * lib/getloadavg.c: Correct cpp indentation.
37316 * lib/strdup.c: Likewise.
37317 * lib/vasnprintf.c: Likewise.
37319 2003-09-14 Bruno Haible <bruno@clisp.org>
37321 * modules/fwriteerror: New file.
37322 * MODULES.html.sh (func_all_modules): Add fwriteerror.
37324 2003-09-14 Bruno Haible <bruno@clisp.org>
37326 * lib/fwriteerror.h: New file.
37327 * lib/fwriteerror.c: New file.
37329 2003-09-12 Paul Eggert <eggert@twinsun.com>
37331 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37332 modules/xgethostname, modules/xalloc: Depend on exit.
37334 2003-09-12 Paul Eggert <eggert@twinsun.com>
37336 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37338 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37339 and AC_MINIX, too, so that their extensions are available.
37341 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
37342 This macro has been superseded by gl_BACKUPFILE.
37344 More patches to assume C89 or better.
37346 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37348 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37350 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37351 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37352 Include <string.h>, <stdlib.h> unconditionally.
37353 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37354 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37355 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37356 headers or for string.h.
37357 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37360 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37362 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37363 * m4/userspec.m4 (gl_USERSPEC): Likewise.
37364 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37365 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37366 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37367 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37369 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37370 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37371 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37373 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37374 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37375 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37378 2003-09-12 Paul Eggert <eggert@twinsun.com>
37380 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37381 * lib/obstack.c [!defined _LIBC]: Likewise.
37382 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37383 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37384 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37386 More changes to assume C89 or better.
37388 * lib/error.c (error_tail): Assume vprintf.
37390 * lib/argmatch.c (getenv): Remove decl.
37391 * lib/progreloc.c (get_full_program_name): Define via prototype.
37392 * lib/setenv.c (clearenv): Likewise.
37393 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37395 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37396 (malloc, memcpy): Remove decls.
37397 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37398 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37399 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37400 (memcpy): Remove macro.
37401 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37402 (__P): Remove. All uses removed.
37403 (PTR): Remove. All uses changed to void *.
37404 (CHAR_BIT, NULL): Remove.
37405 (spaces, zeros, memset_space, memset_zero)
37406 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37408 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37409 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37410 Define with prototype.
37411 Remove now-unnecessary prototype decl.
37412 (extra_args_spec): Assume ANSI C. All uses changed.
37413 (extra_args_spec_iso): Remove.
37414 (my_strftime, emacs_strftimeu): Define via prototype.
37415 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37417 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37418 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37419 (strtoul, strtol): Remove decls.
37420 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37422 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37423 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
37424 (LOCALE_PARAM_PROTO): New macro.
37425 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37426 (INTERNAL (strtol), strtol): Define with a prototype.
37427 (PARAMS): Remove. All uses removed.
37428 * lib/tempname.c: Include <string.h> unconditionally.
37429 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37430 * lib/xgethostname.c (main): Define with a prototype.
37431 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37432 Include <stdlib.h> unconditionally.
37433 (calloc, malloc, realloc, free): Remove decls.
37434 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37435 Include <stdlib.h> unconditionally. Sort include file names.
37437 (xstrtod): Define with a prototype.
37438 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37439 (strtol, strtoul): Remove decls.
37441 2003-09-11 Paul Eggert <eggert@twinsun.com>
37443 More patches to assume C89 or better.
37444 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37445 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37446 string.h, memchr, STDC_HEADERS.
37448 2003-09-11 Paul Eggert <eggert@twinsun.com>
37450 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37451 Include <stdlib.h>, <string.h> unconditionally.
37452 Remove now-unnecessary cast to char *.
37453 * lib/strnlen.c: Include <string.h> unconditionally.
37454 * lib/yesno.c (yesno): Define with a prototype.
37456 2003-09-11 Bruno Haible <bruno@clisp.org>
37458 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37460 2003-09-10 Jim Meyering <jim@meyering.net>
37462 * lib/error.c: Correct indentation of cpp directives.
37464 2003-09-10 Bruno Haible <bruno@clisp.org>
37466 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37467 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37468 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37469 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37470 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37471 <stdlib.h> and <string.h> checks.
37472 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37473 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37475 2003-09-10 Bruno Haible <bruno@clisp.org>
37477 * lib/strcspn.c: Include <string.h> unconditionally.
37478 * lib/strpbrk.c: Include <string.h> unconditionally.
37479 * lib/strstr.c: Include <string.h> unconditionally.
37480 * lib/unicodeio.c: Include <string.h> unconditionally.
37481 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37482 * lib/unsetenv.c: Likewise.
37483 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37484 * lib/yesno.c: Include <stdlib.h> unconditionally.
37485 (rpmatch): Add prototype.
37487 2003-09-09 Paul Eggert <eggert@twinsun.com>
37489 More patches to assume C89 or better.
37490 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37491 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37492 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37494 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37496 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37498 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37500 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37501 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37502 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37504 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37505 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37507 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37509 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37510 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37511 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37512 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37513 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37514 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37516 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37517 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37518 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37519 C headers, or for string.h.
37520 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37521 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37522 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37523 headers, memory.h, stdlib.h, string.h, strings.h.
37524 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37525 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37526 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37528 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37529 headers, memory.h, string.h.
37530 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37531 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37533 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37535 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37536 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37537 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37538 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37539 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37541 2003-09-09 Paul Eggert <eggert@twinsun.com>
37545 * lib/acosl.c (main): Use a prototype.
37546 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37549 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37551 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37552 (getopt, etopt_long, getopt_long_only, _getopt_internal)
37553 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37555 * lib/getopt.c (const): Remove macro.
37556 Include <string.h> unconditionally.
37557 (my_index): Remove; all uses changed to strchr.
37558 (strlen): Remove decl.
37559 (exchange): Remove forward decl; no longer needed.
37560 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37561 Define with prototype.
37562 * lib/getopt1.c (const): Remove macro.
37563 (getopt_long, getopt_long_only, main): Define with prototype.
37565 * lib/getugroups.c: Include <string.h> unconditionally.
37567 * lib/getusershell.c: Include <stdlib.h> unconditionally.
37568 (getusershell, setusershell, endusershell, readname, main):
37569 Define with prototypes.
37571 * lib/group-member.c: Include group-member.h first.
37572 Include <stdlib.h> unconditionally.
37574 * lib/hard-locale.c: Include hard-locale.h first.
37575 Include <stdlib.h>, <string.h> unconditionally.
37577 * lib/hash.c (free, malloc): Remove decls.
37578 Include <stdlib.h> unconditionally.
37580 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37581 (getenv): Do not declare.
37583 * lib/idcache.c: Include <string.h> unconditionally.
37585 * lib/long-options.c: Include long-options.h first, to test interface.
37586 Include <stdlib.h> unconditionally.
37588 * lib/makepath.c: Include makepath.h first, to test interface.
37589 Include <stdlib.h> and <string.h> unconditionally.
37591 * lib/linebuffer.c: Include <stdlib.h>.
37592 (free): Remove decl.
37594 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37595 stddef.h. rpl_malloc returns void *, not char *.
37596 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
37599 * lib/md5.h: Include <limits.h> unconditionally.
37600 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37601 (__P): Remove; all uses removed.
37602 * lib/md5.c: Include "md5.h" first.
37603 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37604 md5_buffer, md5_process_bytes, md5_process_block):
37605 Define with prototypes.
37606 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
37607 * lib/sha.c: Include "sha.h" first.
37608 Include <stdlib.h>, <string.h> unconditionally.
37610 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37611 * lib/memcmp.c (__ptr_t): Likewise.
37612 * lib/memrchr.c (__ptr_t): Likewise.
37613 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37614 Include <string.h> unconditionally.
37615 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37616 * lib/memchr.c: Include <stdlib.h> unconditionally.
37617 * lib/memchr.c (LONG_MAX): Remove.
37618 * lib/memrchr.c (LONG_MAX): Likewise.
37619 * lib/memchr.c (__memchr): Define via a prototype.
37620 * lib/memrchr.c (__memrchr): Likewise.
37621 * lib/memcmp.c (__P): Remove, and remove all uses.
37622 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37623 Remove forward decls; no longer needed.
37624 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37625 Use types required by C89 in prototype.
37627 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37628 * lib/savedir.c: Likewise.
37629 * lib/mkdir.c (free): Remove decl.
37630 * lib/rmdir.c (rmdir): Define with a prototype.
37631 * lib/savedir.c: Include savedir.h first, to test interface.
37633 * lib/mktime.c (STDC_HEADERS): Remove.
37634 Include <stdlib.h>, <string.h> unconditionally.
37636 * lib/modechange.c: Include <stdlib.h> unconditionally.
37637 (malloc): Remove decl.
37639 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37640 (free): Remove decl.
37642 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37643 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37644 (This type really should be intptr_t, but that's a C99ism.)
37645 (_obstack_memcpy): Remove: all uses changed to memcpy.
37646 Include <string.h> unconditionally.
37647 (struct obstack): Assume __STDC__ for types of members
37648 chunkfun, freefun, extra_arg.
37649 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37650 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37651 obstack_begin, obstack_specify_allocation,
37652 obstack_specify_allocation_with_arg, obstack_chunkfun,
37653 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37654 Remove unprototyped decls and the macros that use them.
37655 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
37656 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37657 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37658 (defined __STDC__ && __STDC__)]:
37659 Remove nonprototyped code.
37660 Include <stdlib.h> unconditionally.
37661 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37662 _obstack_allocated_p, _obstack_free, obstack_free,
37663 _obstack_memory_used, print_and_abort):
37664 Define using prototypes.
37665 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37666 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37667 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37668 obstack_next_free, obstack_object_size, obstack_room) [0]:
37669 Remove unused, unprototyped code.
37671 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37673 * lib/physmem.c (physmem_total, physmem_available, main): Define
37676 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37677 (main): Define with a prototype.
37679 * lib/posixver.c (getenv): Remove decl.
37681 * lib/putenv.c (malloc): Returns void *, not char *.
37682 Include <string.h> unconditionally.
37683 (strchr, memcpy, NULL): Do not define.
37685 * lib/readtokens.c: Include readtokens.h first, to test interface.
37686 Include <stdlib.h>, <string.h> unconditionally.
37687 (init_tokenbuffer): Define with a prototype.
37689 * lib/regex.c (PARAMS): Remove. All uses removed.
37690 All uses of _RE_ARGS removed, too.
37691 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37693 (bzero): Assume memset exists.
37694 (memcmp, memcpy, NULL): Remove.
37695 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37696 char, or assignments to local vars of type signed char.
37697 (init_syntax_once, PREFIX(extract_number_and_incr),
37698 PREFIX(print_partial_compiled_pattern),
37699 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37700 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37701 PREFIX(regex_grow_registers), PREFIX(regex_compile),
37702 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37703 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37704 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37705 wcs_compile_range, byte_compile_range, truncate_wchar,
37706 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37707 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37708 count_mbs_length, wcs_re_match_2_internal,
37709 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37710 PREFIX(alt_match_null_string_p),
37711 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37712 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37713 regfree, PREFIX(extract_number)): Define with prototype. Remove
37714 now-unnecessary declaration, if any.
37715 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37717 Remove now-unnecessary casts among pointer types.
37718 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
37720 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37721 (free): Remove decl.
37723 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37725 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37726 (free): Remove decl.
37728 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37729 * lib/xgetcwd.c: Likewise.
37731 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37732 (free): Remove decl.
37734 * lib/strchrnul.c (strchrnul): Define with a prototype.
37735 Fix bug: c_in was not converted to char before searching.
37737 The following changes are not K&R related:
37739 * lib/group-member.h: Include <sys/types.h>, so that this file is
37741 * lib/makepath.h: Likewise.
37743 * lib/getusershell.c (readname, default_index, line_size, readname):
37744 Use size_t, not int, for sizes.
37745 (readname): If the size overflows, report an error instead of
37748 2003-09-09 Paul Eggert <eggert@twinsun.com>
37750 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
37753 2003-09-09 Paul Eggert <eggert@twinsun.com>
37755 * README: New section: portability guidelines.
37757 2003-09-09 Derek Robert Price <derek@ximbiot.com>
37759 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
37762 2003-09-09 Derek Robert Price <derek@ximbiot.com>
37764 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
37766 2003-09-08 Paul Eggert <eggert@twinsun.com>
37768 Assume C89 or better; remove K&R cruft.
37769 A few of these changes were first proposed by Derek Robert Price
37770 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
37772 * lib/addext.c: Include <string.h> unconditionally.
37773 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
37774 Don't declare getenv or malloc.
37776 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
37777 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
37779 (find_stack_direction, alloca): Use prototypes.
37781 * lib/atexit.c (atexit): Define using a prototype.
37783 * lib/basename.c, dirname.c, stripslash.c:
37784 Include <string.h> unconditionally.
37786 * lib/bcopy.c: Include <stddef.h>.
37787 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
37789 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
37791 * lib/error.h (error, error_at_line, error_print_progname)
37792 [! (defined (__STDC__) && __STDC__)]: Remove decls.
37793 * lib/error.c: Include error.h first, to check interface.
37794 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37795 (VA_START): Remove; all uses changeed to va_start.
37796 (exit, strerror): Remove decls.
37797 (error_print_progname): Prototype uncondionally.
37798 Don't include <errno.h>; no longer needed.
37799 (private_strerror): Remove.
37800 (error_tail): Always define.
37801 (error, error_at_line): Assume C89 or better; always use prototypes.
37802 * lib/fatal.c: Include "fatal.h" first, to test interface.
37803 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37804 (VA_START): Remove; all uses changed to va_start.
37805 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
37807 (exit): Remove decl.
37808 (fatal): Prototype unconditionally. Assume va_start works.
37809 Abort at end, to pacify gcc.
37811 * lib/euidaccess.c (main): Define with a prototype.
37813 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
37815 * lib/exitfail.c: Include <stdlib.h> unconditionally.
37817 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
37819 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
37820 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
37821 (getenv): Remove decl.
37822 (fnmatch): Define using a prototype.
37823 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
37824 (FCT): Define using a prototype.
37826 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
37828 * lib/gethostname.c: Include <stddef.h>.
37829 (gethostname): Define with prototype. Length is size_t, not int.
37831 2003-09-08 Paul Eggert <eggert@twinsun.com>
37833 Assume C89 or better; remove K&R cruft.
37834 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
37835 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
37836 string.h, getenv, malloc.
37837 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
37839 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
37840 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
37841 do not check for strerror.
37842 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
37843 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
37844 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
37845 do not check for doprnt or vprintf.
37846 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
37847 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
37849 2003-09-08 Paul Eggert <eggert@twinsun.com>
37851 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
37852 getversion.c should have been removed then, but was accidentally
37855 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
37856 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
37858 2003-09-08 Karl Berry <karl@gnu.org>
37860 * config/config.sub, config.guess, srclistvars.sh: update from savannah
37861 config, forget about prep.
37863 * config/depcomp, missing: update from automake.
37865 2003-09-07 Paul Eggert <eggert@twinsun.com>
37867 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
37868 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37870 2003-09-07 Paul Eggert <eggert@twinsun.com>
37872 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
37873 copy_tm_result. Bug reported by Simon Josefsson in
37874 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37876 2003-09-06 Paul Eggert <eggert@twinsun.com>
37878 * m4/time_r.m4: New file.
37879 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
37880 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
37881 is. Check for timegm declaration.
37882 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
37883 Do not check for gmtime_r.
37884 Replace mktime if __mktime_internal does not exist and if mktime
37885 hasn't been replaced already.
37887 2003-09-06 Paul Eggert <eggert@twinsun.com>
37889 * lib/time_r.c, lib/time_r.h: New files.
37891 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
37893 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
37894 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
37896 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
37898 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
37899 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
37900 Include <time_r.h>.
37902 * lib/timegm.c: Switch to glibc implementation, with the following
37904 [defined HAVE_CONFIG_H]: Include <config.h>.
37905 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
37906 (__mktime_internal) [!defined _LIBC]: New decl.
37907 (__gmtime_r) [!defined _LIBC]: New macro and function.
37908 (timegm): Use a prototype, since gnulib assumes C89.
37909 Do not bother declaring tmp to be const, as it's not really usefu.
37910 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
37911 (timegm): Declare only if HAVE_DECL_TIMEGM.
37913 2003-09-06 Paul Eggert <eggert@twinsun.com>
37915 * MODULES.html.sh (func_all_modules): Add time_r.
37916 * modules/time_r: New file.
37917 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
37918 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
37920 2003-09-03 Paul Eggert <eggert@twinsun.com>
37922 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
37923 Bug reported by Lute Kamstra in
37924 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
37926 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
37927 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
37928 course with correspondingly smaller numbers for tomorrow and
37929 yesterday. From Tadayoshi Funaba. Originally installed into
37930 sh-utils on 1999-08-07, but the patch got lost (I guess during the
37933 2003-08-31 Simon Josefsson <jas@extundo.com>
37935 * modules/timegm: New file.
37936 * MODULES.html.sh (func_all_modules): Add timegm.
37938 2003-08-31 Simon Josefsson <jas@extundo.com>
37940 * m4/timegm.m4: New file.
37942 2003-08-31 Simon Josefsson <jas@extundo.com>
37944 * lib/timegm.h: New file.
37945 * lib/timegm.c: New file. Based on
37946 wget-1.8.2/src/http.c:mktime_from_utc.
37948 2003-08-31 Karl Berry <karl@gnu.org>
37950 * lib/argp.h: update from libc.
37952 2003-08-28 Bruno Haible <bruno@clisp.org>
37954 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
37955 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
37956 followed by '#define fnmatch fnmatch_posix' gives an error.
37958 2003-08-28 Bruno Haible <bruno@clisp.org>
37960 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
37961 warning on QNX, which defines O_BINARY to 000000.
37963 2003-08-27 Jim Meyering <jim@meyering.net>
37965 * m4/mkstemp.m4: Require that the system mkstemp be able to create
37966 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
37967 would fail after 32. Reported by Danny Levinson. Details here:
37968 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
37970 2003-08-24 Bruno Haible <bruno@clisp.org>
37972 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
37973 MSVC7 <stdio.h> is included later.
37975 2003-08-22 Simon Josefsson <jas@extundo.com>
37977 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
37979 2003-08-20 Karl Berry <karl@gnu.org>
37981 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
37983 2003-08-20 Bruno Haible <bruno@clisp.org>
37985 * modules/progname: New file.
37986 * MODULES.html.sh (func_all_modules): Add progname.
37988 2003-08-20 Bruno Haible <bruno@clisp.org>
37990 * lib/progname.h: New file, from GNU gettext.
37991 * lib/progname.c: New file, from GNU gettext.
37992 * lib/progreloc.c: New file, from GNU gettext.
37994 2003-08-19 Jim Meyering <jim@meyering.net>
37996 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37997 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37999 2003-08-19 Bruno Haible <bruno@clisp.org>
38001 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38004 2003-08-19 Bruno Haible <bruno@clisp.org>
38006 * lib/xstrdup.c: Assume <string.h> exists.
38008 2003-08-18 Paul Eggert <eggert@twinsun.com>
38010 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
38013 2003-08-18 Jim Meyering <jim@meyering.net>
38015 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38016 * m4/lib-ld.m4: Likewise.
38018 2003-08-18 Jim Meyering <jim@meyering.net>
38020 * lib/setenv.h: Indent nested cpp directive.
38021 * lib/vasnprintf.c: Remove trailing blanks.
38023 2003-08-17 Simon Josefsson <jas@extundo.com>
38025 * modules/xstrndup: New file.
38026 * MODULES.html.sh (func_all_modules): Add xstrndup.
38028 2003-08-17 Simon Josefsson <jas@extundo.com>
38030 * modules/argp: Fix autoconf macro name. Add more dependencies.
38032 2003-08-17 Simon Josefsson <jas@extundo.com>
38034 * m4/xstrndup.m4: New file.
38036 2003-08-17 Simon Josefsson <jas@extundo.com>
38038 * m4/argp.m4: New file.
38040 2003-08-17 Simon Josefsson <jas@extundo.com>
38041 Bruno Haible <bruno@clisp.org>
38043 * lib/xstrndup.h: New file.
38044 * lib/xstrndup.c: New file.
38046 2003-08-17 Bruno Haible <bruno@clisp.org>
38048 * modules/strndup (Files, Include): Add lib/strndup.h.
38050 2003-08-17 Bruno Haible <bruno@clisp.org>
38052 * modules/euidaccess (Files): Add lib/euidaccess.h.
38054 2003-08-17 Bruno Haible <bruno@clisp.org>
38056 * lib/strndup.h: New file.
38058 2003-08-17 Bruno Haible <bruno@clisp.org>
38060 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38061 like AC_GNU_SOURCE.
38062 * modules/extensions (configure.ac): Comment out the invocation of
38063 gl_USE_SYSTEM_EXTENSIONS.
38065 2003-08-16 Paul Eggert <eggert@twinsun.com>
38067 Merges from coreutils, etc.
38068 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38069 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
38070 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38072 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38073 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38075 2003-08-16 Paul Eggert <eggert@twinsun.com>
38077 Document merge from coreutils.
38078 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38079 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38080 * modules/utime: Add m4/utimes-null.m4.
38082 2003-08-16 Paul Eggert <eggert@twinsun.com>
38084 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38085 space, undoing this 2003-08-12 change:
38086 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38088 2003-08-16 Paul Eggert <eggert@twinsun.com>
38090 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38091 strtoul.c from libc, undoing this 2003-08-12 change:
38092 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38094 2003-08-16 Jim Meyering <jim@meyering.net>
38096 Merges from coreutils.
38097 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38098 prefix. Adjust cache variables similarly. Create 500 rather than
38099 just 300 files, to exercise bug on Darwin6.5, too.
38100 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38102 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38103 AM_SYS_POSIX_TERMIOS.
38104 Reported by mkc@mathdogs.com.
38105 Also change use of $am_cv_sys_posix_termios
38106 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
38107 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38108 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38109 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38110 in /proc/mounts until it finds one with matching device number. This
38111 is unnecessary when the FILE argument *is* a mount point. No stat call
38112 is necessary in that case. So, disable the statvfs-testing code on
38113 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
38114 as RedHat bug# 84846.
38115 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38116 to 1MB, so as not to render systems with no stack size limit (e.g.,
38117 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
38118 Include <unistd.h>. On some systems,
38119 it is required for the definition of _SC_PAGESIZE.
38121 2003-08-16 Jim Meyering <jim@meyering.net>
38123 Merge from coreutils.
38124 * lib/xstrtoimax.c: #else #if -> #elif.
38125 * lib/xstrtoumax.c: Likewise.
38127 2003-08-16 Jim Meyering <jim@meyering.net>
38129 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38130 * m4/utimes.m4: Removed.
38131 * m4/utimes-null.m4: Renamed from utimes.m4.
38133 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38134 to 1MB, so as not to render systems with no stack size limit (e.g.,
38135 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
38136 Include <unistd.h>. On some systems,
38137 it is required for the definition of _SC_PAGESIZE.
38139 2003-08-16 Jim Meyering <jim@meyering.net>
38140 and Paul Eggert <eggert@cs.ucla.edu>
38142 Merges from coreutils, etc.
38144 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38145 using the latest version from cvs. This avoids problems with #line
38146 directives using a vendor (Sun) compiler.
38147 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38148 Don't set GETGROUPS_LIB here; now it's
38149 done via getgroups.m4's wrapper function.
38150 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38151 rather than just in sh-util/configure.in, so that the
38152 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38154 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38155 AC_FUNC_GETLOADAVG where to find getloadavg.c.
38156 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38157 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38158 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38159 Remove code that is now done by the newly-required macros.
38160 Append $(EXEEXT) to DF_PROG.
38161 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38162 Do not invoke or require the following here,
38163 since prereq.m4 or some gnulib .m4 now does this for us:
38164 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38165 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38166 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38167 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38168 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38169 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38170 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38172 Do not replace the following functions, as this is now the job
38173 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38174 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38175 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38176 atexit getpass, strdup, getpagesize.
38178 Do not check for the following functions, as this is now the job
38179 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38180 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
38182 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38183 Check for sys/sysctl.h.
38184 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38185 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
38186 of checking for ssize_t ourselves.
38188 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38189 Require every macro that gnulib/modules/* suggests for us.
38190 (jm_PREREQ_ADDEXT): New macro.
38191 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38192 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38194 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38195 (gl_PHYSMEM): Use it.
38196 Also check for `table' function.
38197 Check for new headers and functions.
38198 Add check for sys/sysmp.h.
38199 With suggestions from Kaveh Ghazi.
38200 Ignore headers that are present but cannot be compiled. This
38201 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38204 2003-08-15 Paul Eggert <eggert@twinsun.com>
38206 Document merge from coreutils.
38207 * modules/userspec: Depend on posixver.
38208 * modules/strftime: Depend on tzset.
38210 2003-08-15 Paul Eggert <eggert@twinsun.com>
38212 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38213 rather than tab, after '#' in shell-script copyright notices.
38214 Suggested by Bruno Haible.
38216 2003-08-15 Paul Eggert <eggert@twinsun.com>
38218 * config/srclist-update: Use three spaces, rather than tab, after '#'
38219 in shell-script copyright notices. Suggested by Bruno Haible.
38220 Remove unnecessary parenthesization in regular expression.
38222 2003-08-15 Jim Meyering <jim@meyering.net>
38224 Merge from coreutils.
38225 * lib/xgethostname.c: Include <stdlib.h>.
38226 (xghostname): Don't exit for anything other than memory-related
38227 failure; just return NULL.
38228 * lib/userspec.c: Include "posixver.h".
38229 (parse_user_spec): Accept `.' as a separator only
38230 in pre-POSIX-200112 mode.
38231 * lib/strtoimax.c: Use #elif rather than #else #if.
38232 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38233 Remove function, now that we can rely on a working tzset function.
38234 [!_LIBC]: Ensure that the required autoconf test has been run.
38235 [!defined _NL_CURRENT && HAVE_STRFTIME]:
38236 Use underlying_strftime for %r.
38237 * lib/sha.c: Merge in some clean-up and optimization changes from
38239 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38240 Ensure that it is a multiple of 64.
38241 Rearrange loop exit tests so as to avoid performing an
38242 additional fread after encountering an error or EOF.
38243 * lib/realloc.c: Update copyright date.
38245 2003-08-15 Jim Meyering <jim@meyering.net>
38246 and Paul Eggert <eggert@twinsun.com>
38248 Merge from coreutils.
38249 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38250 member but strut utmpx does not. Needed for AIX 4.3.3.
38251 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38253 2003-08-15 Jim Meyering <jim@meyering.net>
38254 and Paul Eggert <eggert@cs.ucla.edu>
38256 Merges from coreutils, etc.
38257 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38258 Require gl_FUNC_TZSET_CLOBBER.
38259 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38260 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38263 2003-08-14 Paul Eggert <eggert@twinsun.com>
38265 Help the merge from coreutils.
38266 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38267 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38268 * m4/tzset.m4: Use it too.
38270 2003-08-14 Paul Eggert <eggert@twinsun.com>
38272 * modules/tzset: New file.
38274 2003-08-14 Jim Meyering <jim@meyering.net>
38276 Merges from coreutils.
38277 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38278 variable names, rather than @FNMATCH_H@.
38279 * modules/alloca: Likewise for $(ALLOCA_H).
38281 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38282 the three copies of the literal target, `fnmatch.h'.
38283 * modules/alloca (alloca.h): Likewise.
38285 2003-08-14 Jim Meyering <jim@meyering.net>
38287 Merge from coreutils.
38288 * m4/tzset.m4: New file.
38289 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38290 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38291 otherwise, AIX 5.1 systems would end up using the latter.
38292 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38293 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
38294 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38295 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
38297 2003-08-14 Jim Meyering <jim@meyering.net>
38299 Merge from coreutils.
38300 * lib/obstack.h: Whitespace changes.
38301 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38302 and xcalloc return values.
38303 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38304 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
38305 hang on OSF/1 5.1 for DIR on both local and remote file systems.
38306 Reported by (and fix confirmed by) Nelson H. F. Beebe.
38307 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38309 Use mntctl's return value to drive the entry-processing loop, since
38310 we can't rely on the value of the vmt_length member in the last
38311 entry. On some systems doing so could result in exhausting
38312 virtual memory. Based in part on a patch from Mike Jetzer.
38314 2003-08-14 Jim Meyering <jim@meyering.net>
38315 and Paul Eggert <eggert@twinsun.com>
38317 Merges from coreutils, plus other fixes.
38318 * lib/physmem.c: Merge in portability changes from gcc/libiberty
38319 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
38320 for credits and details. Thanks to Kaveh Ghazi for helping
38321 to keep these files in sync.
38322 (ARRAY_SIZE): Define it.
38323 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38324 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38325 (memcasecmp): Don't assume size_t fits in unsigned int.
38326 Remove casts and duplicate code.
38327 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38328 (memcpy): Remove definition.
38329 Merge in some clean-up and optimization changes from glibc.
38330 [BLOCKSIZE]: Move definition to top of file.
38331 Ensure that it is a multiple of 64.
38332 Rearrange loop exit tests so as to avoid performing an
38333 additional fread after encountering an error or EOF.
38334 * lib/md5.h (md5_uintptr): Define.
38335 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38336 return to the initial working directory. Preserve errno
38338 * lib/idcache.c: Include "xalloc.h".
38339 (xmalloc, xrealloc): Remove decls.
38340 (getuser): Remove casts no longer required in C89.
38341 * lib/human.c: Include stdio.h, for sprintf.
38342 * lib/group-member.c: Include "xalloc.h".
38343 (xmalloc, xrealloc): Remove decls.
38344 (get_group_info): Remove casts no longer required in C89.
38345 * lib/getusershell.c (readname): Remove casts no longer required in
38347 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38348 * lib/getline.c: Whitespace fix, from coreutils.
38350 2003-08-13 Paul Eggert <eggert@twinsun.com>
38352 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38355 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38356 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38357 Undo previous (whitespace-only) change.
38359 2003-08-13 Paul Eggert <eggert@twinsun.com>
38361 * lib/exclude.c: Include <ctype.h>
38362 (IN_CTYPE_DOMAIN): New macro.
38363 (is_space): New fn.
38364 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38367 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38368 Undo previous (whitespace-only) change.
38370 2003-08-13 Paul Eggert <eggert@twinsun.com>
38372 * config/srclist-update: Change update back to the old behavior,
38373 leaving whitespace alone. Use one 'sed' command rather than a
38375 (fixlicense): Now a variable, not a function.
38376 (remove_trailing_blanks): Remove.
38377 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38378 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38379 Undo previous (whitespace-only) change.
38381 2003-08-12 Paul Eggert <eggert@twinsun.com>
38383 Merge from coreutils.
38384 * modules/euidaccess: Add lib_SOURCES, include for new
38387 2003-08-12 Paul Eggert <eggert@twinsun.com>
38389 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38390 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38391 Normalize leading white space and remove trailing white space.
38393 Merge from coreutils
38394 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38396 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38397 0.12.1. These files are now being upgraded automatically by
38398 ../config/srclist-update.
38400 2003-08-12 Paul Eggert <eggert@twinsun.com>
38402 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38403 Normalize leading white space and remove trailing white space.
38404 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38405 notice, as per ../config/srclist-update.
38407 Merge from coreutils.
38408 * lib/euidaccess.h: New file.
38409 * lib/euidaccess.c: Include it.
38410 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38411 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
38412 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38414 2003-08-12 Paul Eggert <eggert@twinsun.com>
38416 * config/srclist-update: Add copyright notice.
38417 (remove_id_lines, remove_trailing_blanks): New constants.
38418 (fixfile): Use them to normalize spacing a bit in copied files.
38419 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38420 Normalize leading white space and remove trailing white space.
38422 * config/texinfo.tex: Sync with texinfo.
38424 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38425 strtoul.c from libc, to merge coreutils whitespace changes.
38427 * config/srclist.txt: Get the following m4 files from gettext:
38428 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38429 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38430 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38433 2003-08-12 Karl Berry <karl@gnu.org>
38435 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38438 2003-08-11 Paul Eggert <eggert@twinsun.com>
38440 * modules/gnu-source, m4/gnu-source.m4:
38441 Remove; we're assuming Autoconf 2.54 or later now.
38442 Suggested by Bruno Haible.
38443 * MODULES.html.sh (func_all_modules): Remove gnu-source.
38445 2003-08-11 Bruno Haible <bruno@clisp.org>
38447 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38449 2003-08-11 Bruno Haible <bruno@clisp.org>
38451 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38452 (vasnprintf): Use it instead of wcslen.
38454 2003-08-11 Bruno Haible <bruno@clisp.org>
38456 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38457 value to ensure that _Bool promotes to int. Use #define for _Bool when
38458 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38460 2003-08-10 Karl Berry <karl@gnu.org>
38462 * lib/regex.h: update from libc (whitespace fix).
38464 2003-08-09 Paul Eggert <eggert@twinsun.com>
38466 Merge some files from coreutils. These changes were
38467 originally made by Jim Meyering.
38468 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38469 many older Unixes require this.
38470 * lib/alloca.c (alloca): Remove cast to argument of free;
38471 no longer needed in C89.
38472 * lib/alloca_.h, regex.h: Fix white space to match
38473 what GNU indent does.
38475 2003-08-09 Paul Eggert <eggert@twinsun.com>
38477 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38478 apparently Emacs's Unicode mode got confused before my 2003-08-05
38481 2003-08-08 Paul Eggert <eggert@twinsun.com>
38483 * m4/extensions.m4: New file.
38484 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38485 Require gl_USE_SYSTEM_EXTENSIONS.
38486 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38487 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38489 2003-08-08 Paul Eggert <eggert@twinsun.com>
38491 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38492 * modules/extensions, modules/gnu-source: New files.
38493 * modules/timespec, modules/unlocked-io: Depend on extensions.
38495 2003-08-07 Paul Eggert <eggert@twinsun.com>
38497 * modules/restrict: New file.
38498 * MODULES.html.sh (func_all_modules): Add restrict.
38499 * modules/regex: Depend on restrict.
38501 2003-08-07 Paul Eggert <eggert@twinsun.com>
38503 * m4/restrict.m4: New file.
38504 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38506 2003-08-07 Bruno Haible <bruno@clisp.org>
38508 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38509 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38511 2003-08-07 Bruno Haible <bruno@clisp.org>
38513 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38514 makes the module 'getndelim2' compatible with the module 'getline'.
38516 2003-08-05 Paul Eggert <eggert@twinsun.com>
38518 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38519 byte with "\201" to avoid glitches when editing that source file
38520 with multi-gnome-terminal.
38522 2003-08-05 Paul Eggert <eggert@twinsun.com>
38524 * lib/bumpalloc.h: Remove.
38526 2003-08-05 Paul Eggert <eggert@twinsun.com>
38528 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38529 * modules/bumpalloc: Remove.
38531 2003-08-04 Paul Eggert <eggert@twinsun.com>
38533 * lib/getloadavg.c: Change copyright notice and spacing to conform to
38536 Merge from coreutils.
38537 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38539 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38540 from Karl Berry, implemented by Jim Meyering.
38541 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38542 from Dmitry V. Levin.
38543 Remove anachronistic cast of xrealloc.
38544 * lib/fnmatch_.h (__const): Remove. Use 'const'.
38545 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38546 type. Otherwise, it wouldn't compile with at least /bin/cc on
38547 ymp-cray-unicos9.0.2.X.
38548 Combine two mostly-identical uses of alloca into one.
38549 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38551 2003-08-04 Dave Love <d.love@dl.ac.uk>
38555 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
38556 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
38557 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38558 obsolete NLIST_NAME_UNION.
38559 [__GNU__]: Undef BSD and FSCALE.
38560 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38562 2003-08-03 Paul Eggert <eggert@twinsun.com>
38564 * lib/stdbool_.h (_Bool): Make it signed char, instead of
38565 an enum type, so that it's guaranteed to promote to int. See:
38566 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38568 2003-08-03 Karl Berry <karl@gnu.org>
38570 * config/depcomp: update from automake.
38572 2003-07-31 Paul Eggert <eggert@twinsun.com>
38574 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
38575 (strerror): Don't assume that a printable int fits in 14 bytes.
38577 2003-07-31 Bruno Haible <bruno@clisp.org>
38579 * modules/getpass-gnu: New file.
38580 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38582 2003-07-31 Bruno Haible <bruno@clisp.org>
38584 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38586 2003-07-24 Karl Berry <karl@gnu.org>
38588 * config/missing: update from automake.
38590 2003-07-24 Derek Robert Price <derek@ximbiot.com>
38591 Bruno Haible <bruno@clisp.org>
38593 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38594 * lib/getline.c (getline, getdelim): Likewise.
38595 Remove _GNU_SOURCE define; now it's defined in config.h through
38598 2003-07-23 Karl Berry <karl@gnu.org>
38600 * config/config.sub: update from prep.
38602 2003-07-22 Paul Eggert <eggert@twinsun.com>
38604 * modules/xalloc (Depends-on): Add exitfail.
38605 * modules/xmemcoll: Likewise.
38607 2003-07-22 Paul Eggert <eggert@twinsun.com>
38609 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38610 over-parenthesization in macros.
38612 Sync with coreutils.
38614 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38617 Use `exit_failure' for xalloc and xmemcoll instead of their own
38618 private exit-failure variables.
38619 * lib/xalloc.h (xalloc_exit_failure): Remove.
38620 * lib/xmalloc.c: Likewise. Include exitfail.h.
38621 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38622 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38623 * lib/xmemcoll.c: Likewise. Include exitfail.h.
38624 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38626 2003-07-20 Jim Meyering <jim@meyering.net>
38628 * modules/closeout (Depends-on): Add exitfail.
38629 Suggestion from Bruno Haible.
38631 2003-07-19 Karl Berry <karl@gnu.org>
38633 * config/config.sub: update from prep.
38635 2003-07-18 Paul Eggert <eggert@twinsun.com>
38637 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38639 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
38640 to test that it can stand by itself. Include "exitfail.h".
38641 Clients should set exit_failure instead.
38642 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
38644 2003-07-18 Bruno Haible <bruno@clisp.org>
38646 * modules/getndelim2: New file.
38647 * modules/getline: Share files with module getndelim2.
38648 * modules/getnline: Depend on getndelim2 instead of sharing files with
38649 it. Add getnline.c to lib_SOURCES.
38650 * MODULES.html.sh (func_all_modules): Add getndelim2.
38652 2003-07-18 Bruno Haible <bruno@clisp.org>
38654 * m4/getndelim2.m4: New file.
38655 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38656 invoke gl_PREREQ_GETNDELIM2.
38657 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38658 gl_PREREQ_GETNDELIM2.
38659 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38662 2003-07-18 Bruno Haible <bruno@clisp.org>
38664 * lib/getndelim2.h: New file.
38665 * lib/getndelim2.c: Make into a module of its own. Include config.h,
38667 (getndelim2): Make non-static. Change return type to ssize_t.
38668 * lib/getline.h: Change argument names.
38669 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38670 * lib/getnline.c: Include getndelim2.h.
38672 2003-07-18 Andreas Schwab <schwab@suse.de>
38674 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38676 2003-07-17 Karl Berry <karl@gnu.org>
38678 * config/config.sub: update from prep.
38680 2003-07-17 Bruno Haible <bruno@clisp.org>
38682 * modules/getnline: New file.
38683 * modules/getline: Add lib/getndelim2.c to source file list.
38684 * MODULES.html.sh (func_all_modules): Add getnline.
38686 2003-07-17 Bruno Haible <bruno@clisp.org>
38688 * m4/getnline.m4: New file.
38690 2003-07-17 Bruno Haible <bruno@clisp.org>
38692 * m4/Makefile.am.in: Remove file.
38693 * m4/Makefile.am: Remove file.
38694 * m4/Makefile.in: Remove file.
38696 2003-07-17 Bruno Haible <bruno@clisp.org>
38698 * lib/getnline.h: New file.
38699 * lib/getnline.c: New file.
38700 * lib/getndelim2.c: New file, extracted from getline.c.
38701 (getndelim2): Renamed from getdelim2, with added nmax argument.
38702 * lib/getline.c: Include getndelim2.c.
38703 (getdelim2): Moved out to getndelim2.c.
38704 (getline, getdelim): Update.
38706 2003-07-17 Bruno Haible <bruno@clisp.org>
38708 * lib/Makefile.am: Remove file.
38709 * lib/Makefile.in: Remove file.
38711 2003-07-17 Bruno Haible <bruno@clisp.org>
38713 * configure.in: Remove file.
38714 * Makefile.in: Remove file.
38716 2003-07-17 Bruno Haible <bruno@clisp.org>
38718 * MODULES.html.sh: Put the </BODY> right before </HTML>.
38720 2003-07-16 Karl Berry <karl@gnu.org>
38722 * config/srclist-update: was running fixlicense twice, which caused
38723 texinfo.tex to be nullified for some reason. Simplify,
38724 $gplsrc is no longer needed as far as I can see?
38726 2003-07-16 Jim Meyering <jim@meyering.net>
38728 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
38730 2003-07-15 Paul Eggert <eggert@twinsun.com>
38732 * config/srclist.txt: Get the following files from gettext-runtime/intl
38733 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38734 ref-del.sin. From Bruno Haible.
38735 * config/srclist-update (fixfile): Change grep pattern again, since the
38736 previous fix didn't work (there was another trailing $). Use
38737 '[$]' to escape the $s.
38739 2003-07-15 Karl Berry <karl@gnu.org>
38741 * lib/vasnprintf.c: update from gettext.
38743 2003-07-15 Karl Berry <karl@gnu.org>
38745 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38746 gets expanded when surrounded by '$'.
38748 2003-07-15 Jim Meyering <jim@meyering.net>
38750 * modules/save-cwd: Don't depend on error. From Derek Price.
38752 2003-07-15 Jim Meyering <jim@meyering.net>
38754 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
38756 2003-07-14 Simon Josefsson <jas@extundo.com>
38758 * modules/mempcpy: New file.
38759 * MODULES.html.sh (func_all_modules): Add mempcpy.
38761 2003-07-14 Simon Josefsson <jas@extundo.com>
38763 * m4/mempcpy.m4: New file.
38765 2003-07-14 Simon Josefsson <jas@extundo.com>
38767 * lib/mempcpy.h: New file.
38768 * lib/mempcpy.c: New file.
38770 2003-07-14 Paul Eggert <eggert@twinsun.com>
38772 * modules/getdate, modules/posixtm: Depend on mktime.
38774 2003-07-14 Paul Eggert <eggert@twinsun.com>
38776 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
38777 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
38778 unicodeio.c, unicodeio.h, unlocked-io.h:
38779 Switch from LGPL to GPL.
38781 2003-07-14 Paul Eggert <eggert@twinsun.com>
38783 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
38784 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
38785 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
38786 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
38787 vasprintf.c, vasprintf.h: Regenerate. These files are now being
38788 updated automatically by ../config/srclist-update. This changes
38789 their license from LPGL to GPL.
38791 2003-07-14 Paul Eggert <eggert@twinsun.com>
38793 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
38794 assumed to refer to the root of the most recent stable gettext version.
38795 * config/srclistvars.sh: Add defaults for eggert.
38796 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
38797 Match "This program" as well as "The program". This is needed
38800 2003-07-14 Jim Meyering <jim@meyering.net>
38802 Don't emit diagnostics. Let callers do that.
38803 * lib/save-cwd.c: Don't include "error.h".
38804 (save_cwd): Don't call error. Ensure that errno is valid
38805 when returning nonzero.
38807 * lib/save-cwd.h (restore_cwd): Update prototype.
38808 * lib/save-cwd.c (restore_cwd): Remove two parameters.
38809 Simplify. Don't call error upon failure. Let callers do that.
38810 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
38811 when auditing is enabled. But don't bother updating the #if.
38813 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
38815 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
38816 it breaks C++ compilation.
38817 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
38819 2003-07-10 Simon Josefsson <jas@extundo.com>
38821 * modules/strchrnul (Makefile.am): Add strchrnul.h.
38823 2003-07-10 Jim Meyering <jim@meyering.net>
38825 * m4/clock_time.m4: Remove trailing blank.
38826 * m4/intmax_t.m4: Likewise.
38828 2003-07-10 Jim Meyering <jim@meyering.net>
38830 * lib/vasnprintf.c: Remove trailing blanks.
38831 Make cpp indentation consistent.
38833 2003-07-09 Paul Eggert <eggert@twinsun.com>
38835 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
38836 posixver.c, strftime.c, strnlen.c, strverscmp.c:
38837 Switch from LGPL to GPL.
38839 2003-07-09 Paul Eggert <eggert@twinsun.com>
38841 * config/srclist.txt: Sort sublists. Add
38842 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
38843 that differ from gnulib for one reason or another; we'd like this list
38844 to be smaller but for now let's document what we have.
38846 2003-07-08 Paul Eggert <eggert@twinsun.com>
38848 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
38849 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
38850 and sweeter "eval x=$x".
38851 * config/srclist.txt: Get lib/argp* from glibc.
38853 2003-07-07 Paul Eggert <eggert@twinsun.com>
38855 * lib/mktime.c: Fix some boundary cases and remove need for floating
38858 Issue a compile-time diagnostic if time_t is floating point, or if
38859 two's complement arithmetic is not in effect, or if arithmetic
38860 right shift does not propagate the sign. These assumptions were
38861 all in the original code but they weren't checked.
38863 (TIME_T_MIDPOINT, verify): New macros.
38864 (__isleap): Remove; it has integer overflow problems.
38865 (leapyear): New function, without those problems.
38866 (ydhms_tm_diff): Remove; splitting into two parts.
38867 (ydhms_diff): New function, containing the arithmetic part of
38868 the old ydhms_tm_diff function. Issue a compile-time
38869 diagnostic if we are not using C99 integer division.
38870 Avoid casts when possible.
38871 (guess_time_tm): New function, containing the checking part of
38872 the old ydhms_tm_diff function. Return the new value, rather than
38873 the difference between it and the old. Accept a new argument T
38874 so that *T specifies the old value. Check for overflow in the result.
38876 (__mktime_internal): Use a time_t offset, not a long int offset.
38877 This undoes the 2003-06-04 change, which is no longer needed now
38878 that we have better overflow checking.
38879 (localtime_offset): Likewise.
38881 (__mktime_internal): Avoid harmful overflow on hosts where time_t
38882 and long are 64-bit but int is only 32-bit.
38883 (ydhms_diff): Use long int to store year1 and yday1.
38884 Issue a compile-time diagnostic if long int is not wide enough.
38886 (__mktime_internal): Use long int to store adjusted year and yday.
38887 Use plain C rather than preprocessor commands, if that doesn't
38889 Check for overflow (and try to repair) after each probe
38890 rather than checking only at the very end. This avoids some bugs
38891 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
38892 does not equal GMT offset at maximum time).
38893 Use integer to check for overflow rather than floating point; this
38894 is more portable to non-IEEE hosts, and is a tad faster.
38895 When we detect that we are oscillating between two values,
38896 don't check whether tm_isdst has the requested value, since
38897 we already know the answer. When tm_isdst has the wrong value,
38898 use a different heuristic to find the right one, based on the
38899 extreme values actually observed in practice in tz2003a,
38900 rather than the (overly optimistic) "previous 3 calendar quarters".
38902 (not_equal_tm, print_tm, check_result): Use "const T" rather than
38903 "T const" to accommodate glibc style.
38904 (check_result): Use less-confusing report format. "long" -> "long int.
38906 Don't loop if the iteration overflows time_t.
38907 Allow a negative step in the iteration.
38909 2003-07-06 Karl Berry <karl@gnu.org>
38911 * config/depcomp: update from automake.
38912 * config/config.sub: update from prep.
38914 2003-07-03 Karl Berry <karl@gnu.org>
38916 * config/config.guess: update from prep.
38918 2003-07-01 Paul Eggert <eggert@twinsun.com>
38920 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
38921 xreadlink.c now includes it unconditionally.
38923 2003-07-01 Paul Eggert <eggert@twinsun.com>
38925 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
38926 having it depend on HAVE_SYS_TYPES_H.
38928 2003-07-01 Bruno Haible <bruno@clisp.org>
38930 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
38931 <sys/types.h> should be sufficient.
38932 Reported by Paul Eggert.
38934 2003-06-26 Karl Berry <karl@gnu.org>
38936 * config/depcomp: update from automake.
38938 2003-06-26 Bruno Haible <bruno@clisp.org>
38940 * modules/human: Depend on module stdbool.
38942 2003-06-25 Bruno Haible <bruno@clisp.org>
38944 * modules/readlink: New file.
38945 * modules/xreadlink: Depend on it.
38946 * MODULES.html.sh (func_all_modules): Add readlink.
38948 2003-06-25 Bruno Haible <bruno@clisp.org>
38950 * m4/readlink.m4: New file.
38952 2003-06-25 Bruno Haible <bruno@clisp.org>
38954 * lib/readlink.c: New file.
38956 2003-06-22 Karl Berry <karl@gnu.org>
38958 * config/srclist.txt: update mkinstalldirs from automake.
38959 * config/mkinstalldirs: update.
38961 2003-06-22 Bruno Haible <bruno@clisp.org>
38963 Portability to mingw32.
38964 * m4/ssize_t.m4: New file, from GNU gettext.
38965 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
38966 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
38968 2003-06-22 Bruno Haible <bruno@clisp.org>
38970 * modules/safe-read: Add m4/ssize_t.m4.
38971 * modules/xreadlink: Add m4/ssize_t.m4.
38973 2003-06-20 Bruno Haible <bruno@clisp.org>
38975 Assume C89, so PARAMS isn't needed.
38976 * lib/unicodeio.h (PARAMS): Remove.
38977 * lib/unicodeio.c: Don't use PARAMS.
38979 2003-06-18 Karl Berry <karl@gnu.org>
38981 * config/config.{guess,sub}: update from prep.
38983 2003-06-18 Jim Meyering <jim@meyering.net>
38985 Merge changes from coreutils.
38986 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
38987 Remove explicit declarations of xmalloc and realloc.
38989 (read_utmp): Remove anachronistic cast of xmalloc.
38991 2003-06-17 Paul Eggert <eggert@twinsun.com>
38993 Assume C89, so PARAMS isn't needed.
38994 * lib/backupfile.h (PARAMS): Remove. All uses removed.
38995 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38996 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38997 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38998 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38999 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39000 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39001 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39002 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39003 lib/xstrtod.h, lib/xstrtol.h: Likewise.
39004 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39005 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39006 no longer needed. Anyway, config.h should always be included before any
39009 2003-06-11 Simon Josefsson <jas@extundo.com>
39011 * modules/sysexits: New file.
39012 * MODULES.html.sh (func_all_modules): Add sysexits.
39014 2003-06-11 Simon Josefsson <jas@extundo.com>
39016 * lib/sysexit_.h: New file.
39018 2003-06-11 Derek Price <derek@ximbiot.com>
39020 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39023 2003-06-11 Bruno Haible <bruno@clisp.org>
39025 * m4/sysexits.m4: New file.
39027 2003-06-10 Simon Josefsson <jas@extundo.com>
39029 * lib/argp.h: New file, from glibc.
39030 * lib/argp-ba.c: New file, from glibc.
39031 * lib/argp-eexst.c: New file, from glibc.
39032 * lib/argp-fmtstream.c: New file, from glibc.
39033 * lib/argp-fmtstream.h: New file, from glibc.
39034 * lib/argp-fs-xinl.c: New file, from glibc.
39035 * lib/argp-help.c: New file, from glibc.
39036 * lib/argp-namefrob.h: New file, from glibc.
39037 * lib/argp-parse.c: New file, from glibc.
39038 * lib/argp-pv.c: New file, from glibc.
39039 * lib/argp-pvh.c: New file, from glibc.
39040 * lib/argp-xinl.c: New file, from glibc.
39042 2003-06-10 Simon Josefsson <jas@extundo.com>
39044 * modules/strchrnul: New file.
39046 2003-06-10 Simon Josefsson <jas@extundo.com>
39048 * modules/argp: New file.
39050 2003-06-10 Simon Josefsson <jas@extundo.com>
39052 * m4/strchrnul.m4: New file.
39054 2003-06-10 Simon Josefsson <jas@extundo.com>
39056 * lib/strchrnul.h: New file.
39057 * lib/strchrnul.c: New file.
39059 2003-06-10 Bruno Haible <bruno@clisp.org>
39061 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39063 2003-06-07 Karl Berry <karl@gnu.org>
39065 * config/config.{guess,sub}: update from prep.
39067 2003-06-07 Jim Meyering <jim@meyering.net>
39069 * modules/strtod: Use $(...) notation, not @...@ for
39070 AC_REPLACE'd variables.
39071 * modules/localcharset: Likewise.
39073 2003-06-07 Jim Meyering <jim@meyering.net>
39075 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39076 in place of my name in the copyright comment.
39077 Remove definition and uses of __P.
39080 * lib/stat.c: Don't declare xmalloc explicitly.
39081 Instead, include "xalloc.h".
39082 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39083 xrealloc, and xcalloc return values.
39084 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39086 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39088 2003-06-07 Bruno Haible <bruno@clisp.org>
39090 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39091 avoid AC_CONFIG_LINKS.
39092 * modules/fnmatch (Makefile.am): Use explicit creation rule for
39093 fnmatch.h, to avoid AC_CONFIG_LINKS.
39094 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39096 2003-06-07 Bruno Haible <bruno@clisp.org>
39098 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39099 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39100 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39102 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39103 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39106 2003-06-06 Jim Meyering <jim@meyering.net>
39108 Merge from coreutils.
39109 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39110 Consolidate declarations and initializations of *_base* locals.
39112 Merge from coreutils.
39113 This avoids a core dump on systems without GNU putenv,
39114 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39115 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39116 (unsetenv): New static function, from GNU libc.
39117 (rpl_putenv): Use it.
39119 * lib/modechange.c: Remove trailing blanks.
39121 Merge from coreutils.
39122 * lib/fsusage.c: Remove declaration of statfs.
39123 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39125 * lib/posixtm.c: Include <stdbool.h> unconditionally.
39127 2003-06-06 Jim Meyering <jim@meyering.net>
39129 * lib/stdbool_.h: Renamed from stdbool.h.in.
39131 2003-06-06 Jim Meyering <jim@meyering.net>
39132 Bruno Haible <bruno@clisp.org>
39134 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39135 Adjust Makefile.am snippet not to redirect directly to target.
39136 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39138 2003-06-05 Paul Eggert <eggert@twinsun.com>
39140 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39141 mismatch, look in future quarters as well as past. This fixes a
39142 bug when processing fall-backwards gaps immediately after a long
39143 period of daylight-saving time.
39145 * lib/mktime.c: Assume freestanding C89 or better.
39146 (HAVE_LIMITS_H): Remove. Assume it's 1.
39147 (__P): Remove; not used.
39148 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39149 (mktime, not_equal_tm, print_tm, check_result,
39150 main): Use prototypes. Use const * where appropriate.
39151 (main): Fix typo in testing code that uncovered by above changes.
39152 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39154 2003-06-04 Paul Eggert <eggert@twinsun.com>
39156 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
39157 locale.h, localeconv. This merges changes from coreutils.
39159 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39160 It can be removed after the next Autoconf is released.
39161 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39164 2003-06-04 Paul Eggert <eggert@twinsun.com>
39166 * lib/mktime.c: Fix Debian bug 177940
39167 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39168 (localtime_offset): Now long int, not time_t, because we want it
39169 to be guaranteed to be signed. All uses changed.
39170 (__mktime_internal): If overflow would occur when adding offset,
39173 Merge 'human' changes from coreutils. Rewrite to support
39174 locale-specific notations like thousands separators.
39175 * lib/human.c: Simplify authorship notice.
39176 Include human.h immediately after config.h.
39177 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39178 <limits.h>: Do not include, since human.h does.
39179 (SIZE_MAX, UINTMAX_MAX): New macros.
39180 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39181 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39182 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39183 (power_letter): Renamed from suffixes.
39184 (generate_suffix_backwards): Remove.
39185 (adjust_value): Now takes int style (because of human.h changes)
39186 and long double value (for greater precision on some platforms).
39187 (group_number): New function.
39188 (human_readable): Use it. Use integer options, not enum.
39189 Put the options before the sizes in the arg list.
39190 Support all the new options.
39191 The old human_readable function has been removed;
39192 use inttostr.h instead.
39193 (human_readable, default_block_size, humblock):
39194 Use uintmax_t, not int, for block sizes.
39195 (human_readable_inexact, block_size_types): Remove.
39196 (block_size_opts): New constant.
39197 (human_options): Renamed from human_block_size, with new signature
39198 that allows block sizes up to UINTMAX_MAX. All callers changed.
39199 * lib/human.h: Add copyright and authorship notice.
39200 Include <limits.h> and <stdbool.h> unconditionally.
39201 (PARAMS): Remove. All uses removed.
39202 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39203 (enum human_inexact_style): Remove tag; now a nameless enum.
39204 (human_floor, human_ceiling, human_round_to_even): Now have
39205 values 2, 0, 1 rather than -1, 1, 0.
39206 (human_group_digits, human_suppress_point_zero, human_autoscale,
39207 human_base_1024, human_SI, human_B): New constants.
39208 (human_readable_inexact, human_block_size): Remove.
39209 (human_readable): Size args are now uintmax_t, not int.
39210 (human_options): New decl.
39212 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39213 unnecessary now that we assume C89 or better. This change
39214 imported from coreutils.
39216 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39217 arbitrarily. This is the same patch as 2003-05-28, but it got lost
39218 in the 2003-05-30 sync from glibc.
39220 .h files should stand alone, but we shouldn't include <sys/types.h>
39221 if we can get away with just <stddef.h>.
39223 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39224 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39225 rather than <sys/types.h>, as we merely need size_t.
39226 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39228 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39229 Include <stdio.h>, to get FILE.
39230 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39231 memcasecmp.h has included <stddef.h> and all we need is size_t.
39232 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39233 our interface, instead of including <sys/types.h>
39235 2003-06-04 Paul Eggert <eggert@twinsun.com>
39237 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39238 now, as glibc mktime is buggy on non-glibc systems.
39240 2003-06-03 Karl Berry <karl@gnu.org>
39242 * config/config.sub: update from prep.
39244 2003-06-02 Paul Eggert <eggert@twinsun.com>
39247 Fix some minor time-related bugs with POSIX time arguments.
39248 Some valid time stamps were being rejected (notably -1, and
39249 time stamps before 1900 on 64-bit hosts). And some invalid
39250 time stamps were being accepted, e.g. September 31.
39252 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39253 that we can return (time_t) -1 successfully.
39254 * lib/posixtm.c: Likewise.
39255 [HAVE_STDBOOL_H]: Include <stdbool.h>.
39256 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39257 (t): Remove static var.
39258 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39259 of static var. All uses changed.
39260 (year): Do not reject years before 1900; they can occur with
39262 (posix_time_parse): Do not check for out-of-range components;
39263 that is now the caller's responsibility, since our checks were
39264 only approximations.
39265 (posixtime): Use mktime to check for out-of-range components,
39266 since it knows them exactly.
39267 If mktime returns (time_t) -1, check whether an error actually occurred
39268 by invoking localtime on -1.
39269 (main) [TEST_POSIXTIME]: Check for input data errors, and report
39270 posixtime failures better.
39271 Improve the test data (in comments only).
39273 2003-06-02 Karl Berry <karl@gnu.org>
39275 * config/mkinstalldirs (version): new variable.
39276 (--version): new option.
39277 (usage): improve message.
39279 2003-05-30 Karl Berry <karl@gnu.org>
39281 * lib/mktime.c: update from libc.
39283 2003-05-30 Bruno Haible <bruno@clisp.org>
39285 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39286 * config/config.rpath: Upgrade to gettext-0.12.1.
39288 2003-05-30 Bruno Haible <bruno@clisp.org>
39290 * m4/gettext.m4: Upgrade to gettext-0.12.1.
39291 * m4/nls.m4: New file, from gettext-0.12.1.
39292 * m4/po.m4: New file, from gettext-0.12.1.
39293 * m4/progtest.m4: Upgrade to gettext-0.12.1.
39295 2003-05-30 Bruno Haible <bruno@clisp.org>
39297 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39298 * lib/localcharset.h: Likewise.
39299 * lib/localcharset.c: Likewise.
39301 2003-05-29 Karl Berry <karl@gnu.org>
39303 * config/config.rpath: update from gettext.
39305 2003-05-28 Paul Eggert <eggert@twinsun.com>
39307 Assume the headers required for C89 freestanding compilers.
39308 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39309 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39310 * m4/human.m4 (gl_HUMAN): Likewise.
39311 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39312 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39313 * m4/userspec.m4 (gl_USERSPEC): Likewise.
39314 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39315 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39316 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39318 2003-05-28 Paul Eggert <eggert@twinsun.com>
39320 Assume the headers required for C89 freestanding compilers.
39321 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39322 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39323 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39324 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39325 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39326 define, since <limits.h> is guaranteed to do that.
39327 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39328 * lib/exclude.c: Include <stdbool.h> unconditionally.
39329 * lib/tempname.c: Include <stddef.h> unconditionally.
39330 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39331 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39332 <stddef.h> does that.
39333 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39334 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39335 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39337 * lib/xstrtol.c: Likewise.
39338 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39339 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39341 * lib/addext.c (addext): Use assignment rather than cast, to avoid
39342 warnings on some platforms.
39344 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39347 2003-05-26 Jim Meyering <jim@meyering.net>
39349 Merge in a change from coreutils:
39350 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39351 that is guaranteed to be `no'. Use `no_such_member' to indicate
39352 that condition, rather than `-1' which is slightly misleading.
39353 Change the name of the cache variable to have the gl_ prefix.
39354 Prompted by a patch from Richard Dawe for DJGPP.
39356 2003-05-24 Karl Berry <karl@gnu.org>
39358 * config/config.guess: update from prep.
39360 2003-05-22 Karl Berry <karl@gnu.org>
39362 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39364 2003-05-20 Karl Berry <karl@gnu.org>
39366 * config/config.guess: update from prep.
39368 2003-05-18 Karl Berry <karl@gnu.org>
39370 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39371 might actually be set by the user.
39373 * config/depcomp, install-sh, mdate-sh: update from automake.
39375 2003-05-17 Bruno Haible <bruno@clisp.org>
39377 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39378 invalid expansion for AC_EGREP_CPP.
39379 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39380 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39381 Suggested by Akim Demaille <akim@epita.fr> in
39382 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39384 2003-05-12 Jim Meyering <jim@meyering.net>
39386 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39387 the space-padded-by-default conversion specifiers, %e, %k, %l.
39389 2003-05-12 Bruno Haible <bruno@clisp.org>
39391 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39392 the string is longer than 4 KB.
39394 2003-05-11 Karl Berry <karl@gnu.org>
39396 * config/config.{guess,sub}: update from prep.
39398 2003-05-09 Bruno Haible <bruno@clisp.org>
39400 * modules/error: Add m4/strerror_r.m4 to file list.
39402 2003-05-03 Bruno Haible <bruno@clisp.org>
39404 Upgrade to Unicode-4.0.
39405 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39406 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39407 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39408 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39409 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39410 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39411 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39412 Change width of U+E0100..U+E01EF from 1 to 0.
39414 2003-04-25 Jim Meyering <jim@meyering.net>
39416 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39417 of type size_t, not int.
39419 2003-04-25 Bruno Haible <bruno@clisp.org>
39421 * lib/copy-file.c: Include <stddef.h>, for size_t.
39423 2003-04-21 Paul Eggert <eggert@twinsun.com>
39425 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39426 code which expansion is under static control. Patch imported from
39427 Akim Demaille's patch to Bison; see
39428 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39430 2003-04-14 Bruno Haible <bruno@clisp.org>
39432 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39434 2003-04-11 Jim Meyering <jim@meyering.net>
39436 Merge changes from Coreutils.
39438 2003-03-22 Jim Meyering <jim@meyering.net>
39440 * lib/strftime.c (widen): Cast alloca return value to proper type.
39442 2003-01-19 Ulrich Drepper <drepper@redhat.com>
39445 * lib/strftime.c (my_strftime): Handle very large width
39446 specifications for numeric values correctly. Improve checks for
39449 2003-01-19 Jim Meyering <jim@meyering.net>
39451 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39453 (nl_get_alt_digit) [! defined my_strftime]: Define.
39454 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39455 _nl_get_alt_digit and _nl_get_walt_digit.
39457 * lib/strftime.c (my_strftime): Merge in locale-related changes from
39458 libc. These changes have no effect outside of _LIBC.
39460 2003-04-10 Bruno Haible <bruno@clisp.org>
39462 * modules/findprog: New file.
39463 * MODULES.html.sh (func_all_modules): Add it.
39465 2003-04-10 Bruno Haible <bruno@clisp.org>
39467 * m4/findprog.m4: New file.
39468 * m4/eaccess.m4: New file.
39470 2003-04-10 Bruno Haible <bruno@clisp.org>
39472 * lib/findprog.h: New file, from GNU gettext.
39473 * lib/findprog.c: New file, from GNU gettext.
39475 2003-04-05 Jim Meyering <jim@meyering.net>
39477 Merge changes from Coreutils.
39479 * lib/exclude.h (PARAMS): Remove definition and uses.
39480 * lib/exclude.c: Remove uses of `PARAMS'.
39482 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39483 Add test-cases for DOS filenames. Declare program_name.
39484 (main): Set up program_name. Patch by Rich Dawe.
39486 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39488 Use mntctl's return value to drive the entry-processing loop, since
39489 we can't rely on the value of the vmt_length member in the last
39490 entry. On some systems doing so could result in exhausting
39491 virtual memory. Based in part on a patch from Mike Jetzer.
39493 2003-04-04 Bruno Haible <bruno@clisp.org>
39495 * modules/linebreak: New file.
39496 * MODULES.html.sh (func_all_modules): Add it.
39498 2003-04-04 Bruno Haible <bruno@clisp.org>
39500 * m4/linebreak.m4: New file.
39502 2003-04-04 Bruno Haible <bruno@clisp.org>
39504 * lib/linebreak.h: New file, from GNU gettext.
39505 * lib/linebreak.c: New file, from GNU gettext with slight
39507 * lib/lbrkprop.h: New file, from GNU gettext.
39509 2003-04-03 Bruno Haible <bruno@clisp.org>
39511 * modules/utf8-ucs4: New file.
39512 * modules/utf16-ucs4: New file.
39513 * modules/ucs4-utf8: New file.
39514 * modules/ucs4-utf16: New file.
39515 * MODULES.html.sh (func_all_modules): Add them.
39517 2003-04-03 Bruno Haible <bruno@clisp.org>
39519 * m4/utf-ucs4.m4: New file.
39520 * m4/ucs4-utf.m4: New file.
39522 2003-04-03 Bruno Haible <bruno@clisp.org>
39524 * lib/utf8-ucs4.h: New file, from GNU gettext.
39525 * lib/utf16-ucs4.h: New file, from GNU gettext.
39526 * lib/ucs4-utf8.h: New file, from GNU gettext.
39527 * lib/ucs4-utf16.h: New file, from GNU gettext.
39529 2003-04-02 Bruno Haible <bruno@clisp.org>
39531 * modules/binary-io: New file.
39532 * MODULES.html.sh (func_all_modules): Add it.
39534 2003-04-02 Bruno Haible <bruno@clisp.org>
39536 * lib/binary-io.h: New file, from GNU gettext.
39538 2003-04-01 Bruno Haible <bruno@clisp.org>
39540 * modules/pathname: New file.
39541 * MODULES.html.sh (func_all_modules): Add it.
39543 2003-04-01 Bruno Haible <bruno@clisp.org>
39545 * lib/pathname.h: New file, from GNU gettext.
39546 * lib/concatpath.c: New file, from GNU gettext.
39548 2003-03-30 Bruno Haible <bruno@clisp.org>
39550 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39552 2003-03-30 Bruno Haible <bruno@clisp.org>
39554 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39555 function chown() doesn't exist.
39557 2003-03-28 Bruno Haible <bruno@clisp.org>
39559 * modules/copy-file: New file.
39560 * MODULES.html.sh (func_all_modules): Add it.
39562 2003-03-28 Bruno Haible <bruno@clisp.org>
39564 * m4/copy-file.m4: New file.
39566 2003-03-28 Bruno Haible <bruno@clisp.org>
39568 * lib/copy-file.h: New file, from GNU gettext.
39569 * lib/copy-file.c: New file, from GNU gettext.
39571 2003-03-18 Jim Meyering <jim@meyering.net>
39573 * lib/quote.c (quote_n): Fix typo in comment.
39575 2003-03-18 Bruno Haible <bruno@clisp.org>
39577 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39579 * m4/onceonly_2_57.m4: Likewise.
39581 2003-03-17 Bruno Haible <bruno@clisp.org>
39583 * m4/onceonly.m4: Require autoconf 2.54 or newer.
39584 (m4_quote): Remove macro.
39585 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39587 2003-03-14 Jim Meyering <jim@meyering.net>
39589 Merge changes from Coreutils.
39590 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39591 to be const, in order to avoid warnings.
39592 (obstack_room): Likewise.
39593 (obstack_empty_p): Likewise.
39595 2003-03-14 Bruno Haible <bruno@clisp.org>
39597 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39598 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39600 2003-03-13 Paul Eggert <eggert@twinsun.com>
39602 Merge changes from Bison.
39603 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39604 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39605 when compiling Bison 1.875's `bitset bset = obstack_alloc
39606 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
39607 * lib/hash.c: Include <stdbool.h> unconditionally.
39609 2003-03-13 Paul Eggert <eggert@twinsun.com>
39611 * m4/onceonly.m4 (m4_quote): New macro.
39612 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39613 Quote AC_FOREACH variable-expansions properly.
39615 2003-03-13 Paul Eggert <eggert@twinsun.com>
39617 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39619 2003-03-09 Paul Eggert <eggert@twinsun.com>
39621 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39622 Reported by Bruce Becker; see:
39623 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39625 2003-03-03 Paul Eggert <eggert@twinsun.com>
39626 Bruno Haible <bruno@clisp.org>
39628 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39629 Reported by John Hughes, see
39630 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39632 2003-02-20 Bruno Haible <bruno@clisp.org>
39634 * MODULES.html.sh (func_all_modules): Add poll.
39636 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39638 * modules/poll: New file.
39640 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39642 * lib/poll_.h: New file.
39643 * lib/poll.c: New file.
39645 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39647 * m4/poll.m4: New file.
39649 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39651 * modules/mathl: New file.
39653 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39655 * lib/mathl.h: New file.
39656 * lib/acosl.c: New file.
39657 * lib/asinl.c: New file.
39658 * lib/atanl.c: New file.
39659 * lib/ceill.c: New file.
39660 * lib/cosl.c: New file.
39661 * lib/expl.c: New file.
39662 * lib/floorl.c: New file.
39663 * lib/frexpl.c: New file.
39664 * lib/ldexpl.c: New file.
39665 * lib/logl.c: New file.
39666 * lib/sincosl.c: New file.
39667 * lib/sinl.c: New file.
39668 * lib/sqrtl.c: New file.
39669 * lib/tanl.c: New file.
39670 * lib/trigl.c: New file.
39671 * lib/trigl.h: New file.
39673 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39675 * m4/mathl.m4: New file.
39677 2003-02-18 Bruno Haible <bruno@clisp.org>
39679 * MODULES.html.sh (func_all_modules): Add mathl.
39681 2003-02-17 Bruno Haible <bruno@clisp.org>
39683 * modules/mkdtemp: New module.
39684 * MODULES.html.sh (func_all_modules): Add it.
39686 2003-02-17 Bruno Haible <bruno@clisp.org>
39688 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39690 2003-02-17 Bruno Haible <bruno@clisp.org>
39692 * lib/mkdtemp.h: New file, from GNU gettext.
39693 * lib/mkdtemp.c: New file, from GNU gettext.
39695 2003-02-02 Jim Meyering <jim@meyering.net>
39697 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39700 2003-01-31 Bruno Haible <bruno@clisp.org>
39702 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39704 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39706 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39708 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39711 2003-01-31 Bruno Haible <bruno@clisp.org>
39713 * lib/rename.c: #undef rename before defining rpl_rename.
39714 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39716 2003-01-30 Bruno Haible <bruno@clisp.org>
39718 * modules/vasnprintf, modules/vasprintf: New modules.
39719 * MODULES.html.sh (func_all_modules): Add them.
39721 2003-01-30 Bruno Haible <bruno@clisp.org>
39723 * m4/signed.m4: New file, from GNU gettext.
39724 * m4/longdouble.m4: New file, from GNU gettext.
39725 * m4/wchar_t.m4: New file, from GNU gettext.
39726 * m4/wint_t.m4: New file, from GNU gettext.
39727 * m4/vasnprintf.m4: New file.
39728 * m4/vasprintf.m4: New file.
39730 2003-01-30 Bruno Haible <bruno@clisp.org>
39732 * lib/printf-args.h: New file, from GNU gettext.
39733 * lib/printf-args.c: New file, from GNU gettext.
39734 * lib/printf-parse.h: New file, from GNU gettext.
39735 * lib/printf-parse.c: New file, from GNU gettext.
39736 * lib/vasnprintf.h: New file, from GNU gettext.
39737 * lib/vasnprintf.c: New file, from GNU gettext.
39738 * lib/asnprintf.c: New file, from GNU gettext.
39739 * lib/vasprintf.h: New file, from GNU gettext with modifications.
39740 * lib/vasprintf.c: New file, from GNU gettext.
39741 * lib/asprintf.c: New file, from GNU gettext.
39743 2003-01-29 Bruno Haible <bruno@clisp.org>
39745 * modules/stpncpy: New module.
39746 * MODULES.html.sh (func_all_modules): Add it.
39748 2003-01-29 Bruno Haible <bruno@clisp.org>
39750 * m4/stpncpy.m4: New file.
39752 2003-01-29 Bruno Haible <bruno@clisp.org>
39754 * lib/stpncpy.h: New file, from GNU gettext with modifications.
39755 * lib/stpncpy.c: New file, from GNU gettext with modifications.
39757 2003-01-28 Bruno Haible <bruno@clisp.org>
39759 * modules/c-ctype: New module.
39760 * MODULES.html.sh (func_all_modules): Add it.
39762 2003-01-28 Bruno Haible <bruno@clisp.org>
39764 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
39766 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
39769 2003-01-27 Bruno Haible <bruno@clisp.org>
39771 * modules/xsetenv: New module.
39772 * MODULES.html.sh (func_all_modules): Add it.
39774 2003-01-27 Bruno Haible <bruno@clisp.org>
39776 * lib/xsetenv.h: New file, from GNU gettext.
39777 * lib/xsetenv.c: New file, from GNU gettext.
39779 2003-01-23 Jim Meyering <jim@meyering.net>
39781 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
39782 from working on systems without dirfd (at least Irix and OSF1/Tru64).
39784 2003-01-23 Bruno Haible <bruno@clisp.org>
39786 * modules/minmax: New module.
39787 * MODULES.html.sh (func_all_modules): Add it.
39789 2003-01-23 Bruno Haible <bruno@clisp.org>
39791 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
39794 2003-01-22 Bruno Haible <bruno@clisp.org>
39796 * modules/exit: New module.
39797 * MODULES.html.sh (func_all_modules): Add it.
39799 2003-01-22 Bruno Haible <bruno@clisp.org>
39801 * lib/exit.h: New file, from GNU gettext.
39803 2003-01-19 Bruno Haible <bruno@clisp.org>
39805 * gnulib-tool: Recognize option --extract-maintainer.
39806 (func_get_maintainer): New function.
39807 * modules/*: Add Maintainer entry.
39809 2003-01-16 Jim Meyering <jim@meyering.net>
39811 * m4/regex.m4: The `regex' struct is both input and output.
39812 Initialize it before each use. Patch by Tim Waugh.
39814 2003-01-16 Bruno Haible <bruno@clisp.org>
39816 * MODULES.html.sh: Add a table of contents. Add the module name as
39817 leftmost column. Add hyperlinks.
39819 2003-01-15 Bruno Haible <bruno@clisp.org>
39821 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
39823 2003-01-15 Bruno Haible <bruno@clisp.org>
39825 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
39826 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
39829 2003-01-15 Bruno Haible <bruno@clisp.org>
39831 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
39833 2003-01-15 Bruno Haible <bruno@clisp.org>
39835 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
39836 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
39838 2003-01-14 Jim Meyering <jim@meyering.net>
39840 * lib/same.c (same_name): Tweak a comment.
39842 2003-01-14 Bruno Haible <bruno@clisp.org>
39844 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
39845 when a string comparison is sufficient.
39847 2003-01-14 Bruno Haible <bruno@clisp.org>
39849 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
39852 2003-01-14 Bruno Haible <bruno@clisp.org>
39854 * lib/hash-pjw.c: Add comment about low quality of this function.
39856 2003-01-13 Bruno Haible <bruno@clisp.org>
39858 * modules/stpcpy: Distribute lib/stpcpy.h.
39859 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
39861 2003-01-13 Bruno Haible <bruno@clisp.org>
39863 * modules/*: Add a description.
39864 * modules/strpbrk: Fix Makefile.am snippet.
39865 * modules/strtoimax: Fix dependencies.
39866 * modules/strtoumax: Likewise.
39868 2003-01-13 Bruno Haible <bruno@clisp.org>
39870 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
39871 * modules/alloca (Makefile.am): All object files depend on alloca.h.
39872 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
39874 2003-01-13 Bruno Haible <bruno@clisp.org>
39876 * gnulib-tool (func_create_testdir): Store config/* files in the main
39878 * config.rpath: Move to ...
39879 * config/config.rpath: ... here.
39880 * modules/gettext: Contains config/config.rpath, not config.rpath.
39881 * modules/iconv: Likewise.
39883 2003-01-12 Paul Eggert <eggert@twinsun.com>
39885 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39886 to avoid collisions with libcurses and libreadline.
39888 * m4/getstr.m4: Remove.
39889 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
39891 2003-01-12 Paul Eggert <eggert@twinsun.com>
39893 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39894 to avoid collisions with libcurses and libreadline.
39896 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
39897 * lib/getstr.h, getstr.c: Remove.
39898 * lib/getline.c: Include "getline.h", to check interface.
39899 Move body of old getstr.c here: this defines MIN_CHUNK and
39900 declares getdelim2, which is renamed from getstr.
39901 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
39903 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
39905 * lib/linebuffer.h: Likewise.
39906 (readline): Remove backward-compatibility macro.
39908 2003-01-12 Paul Eggert <eggert@twinsun.com>
39910 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39911 to avoid collisions with libcurses and libreadline.
39913 * MODULES.html.sh: Remove getstr.
39914 * modules/getline: Depend on unlocked-io, not getstr.
39916 2003-01-12 Jim Meyering <jim@meyering.net>
39918 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
39920 2003-01-10 Bruno Haible <bruno@clisp.org>
39922 * modules/alloca: Change Makefile.am requirements. Simplify Include
39923 requirements. Add lib/alloca_.h to file list.
39925 2003-01-10 Bruno Haible <bruno@clisp.org>
39927 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
39929 2003-01-10 Bruno Haible <bruno@clisp.org>
39931 * lib/alloca_.h: New file.
39932 * lib/getdate.y: Unconditionally include alloca.h.
39933 * lib/makepath.c: Likewise.
39934 * lib/setenv.c: Likewise.
39935 * lib/userspec.c: Likewise.
39937 2003-01-09 Karl Berry <karl@gnu.org>
39939 * MODULES.html.sh: include `dirname $0` in PATH, to find
39942 2003-01-09 Bruno Haible <bruno@clisp.org>
39944 * modules/stdbool: Change configure.ac, Makefile.am requirements.
39945 Simplify Include requirements. Add lib/stdbool.h.in to file list.
39947 2003-01-09 Bruno Haible <bruno@clisp.org>
39949 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
39951 2003-01-09 Bruno Haible <bruno@clisp.org>
39953 * lib/stdbool.h.in: New file.
39955 2003-01-09 Bruno Haible <bruno@clisp.org>
39957 * gnulib-tool (func_all_modules): Ignore files ending in ~.
39958 * MODULES.html.sh: Likewise.
39960 2003-01-08 Jim Meyering <jim@meyering.net>
39962 * lib/full-write.c: Undefine and define-away `const' after inclusion
39963 of errno.h, not before. Suggestion from Bruno Haible.
39965 2003-01-08 Bruno Haible <bruno@clisp.org>
39967 * modules/full-read: Depend on full-write.
39969 2003-01-08 Bruno Haible <bruno@clisp.org>
39971 * lib/safe-read.c: Include specification header first, to ensure its
39973 * lib/full-write.c: Likewise.
39975 2003-01-07 Jim Meyering <jim@meyering.net>
39977 * lib/full-write.c: Rework so that it may serve to define full_read,
39979 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
39981 2003-01-07 Bruno Haible <bruno@clisp.org>
39983 * lib/strtoimax.c: Include <stdint.h> as an alternative to
39985 * lib/xstrtol.h: Likewise.
39986 * lib/xstrtoimax.c: Likewise.
39987 * lib/xstrtoumax.c: Likewise.
39988 * lib/human.h: Likewise.
39990 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39991 on systems that have <inttypes.h> but not <stdint.h>.
39993 2003-01-07 Bruno Haible <bruno@clisp.org>
39995 * MODULES.html.sh: Add copyright notice.
39996 (missed_files): Omit CVS directory entries.
39997 (func_module): Make it work with sed-3.02.
39998 * MODULES.txt: Remove file.
40000 2003-01-06 Jim Meyering <jim@meyering.net>
40002 * lib/version-etc.c: Update year in translatable copyright string.
40004 2003-01-03 Karl Berry <karl@gnu.org>
40006 * config/config.{guess,sub}: update from prep.
40008 2003-01-02 Karl Berry <karl@gnu.org>
40010 * doc/COPYING.DOC: belatedly updated to 1.2.
40012 2003-01-01 Karl Berry <karl@gnu.org>
40014 * gnulib-tool (func_verify_module): report module name $module in
40015 error message, not $1.
40016 * gnulib-tool (create-testdir): don't complain if destdir couldn't
40017 be created, only if it doesn't exist.
40018 * gnulib-tool (last_checkin_date): don't expand the $Date here.
40020 2002-12-31 Paul Eggert <eggert@twinsun.com>
40022 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40024 2002-12-31 Paul Eggert <eggert@twinsun.com>
40026 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40027 memcmp if strcoll doesn't work.
40029 2002-12-31 Bruno Haible <bruno@clisp.org>
40031 * lib/utime.c (utime_null): No need to call ftruncate if the file was
40034 2002-12-31 Bruno Haible <bruno@clisp.org>
40036 * lib/memcoll.c (STRCOLL): New macro.
40039 2002-12-31 Bruno Haible <bruno@clisp.org>
40041 * lib/localcharset.h: New file.
40042 * lib/localcharset.c: Include it.
40043 * lib/unicodeio.c: Likewise.
40045 2002-12-31 Bruno Haible <bruno@clisp.org>
40047 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40048 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40050 2002-12-31 Bruno Haible <bruno@clisp.org>
40052 * lib/getline.h: Include <stddef.h>, for size_t.
40054 * lib/unicodeio.h: Include <stddef.h>, for size_t.
40055 * lib/unicodeio.c: Don't include <stddef.h>.
40057 2002-12-31 Bruno Haible <bruno@clisp.org>
40059 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40062 2002-12-24 Karl Berry <karl@gnu.org>
40064 * config/config.guess: update from prep.
40066 2002-12-24 Bruno Haible <bruno@clisp.org>
40068 General infrasructure.
40069 * m4/README: Rewritten.
40070 * m4/onceonly.m4: New file.
40071 * m4/onceonly_2_57.m4: New file.
40074 * m4/atexit.m4: New file.
40077 * m4/strtod.m4: New file.
40080 * m4/strtol.m4: New file.
40083 * m4/strtoul.m4: New file.
40086 * m4/memchr.m4: New file.
40089 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40090 (jm_FUNC_MEMCMP): Invoke it.
40093 * m4/memcpy.m4: New file.
40096 * m4/memmove.m4: New file.
40099 * m4/memset.m4: New file.
40102 * m4/strcspn.m4: New file.
40105 * m4/strpbrk.m4: New file.
40108 * m4/strstr.m4: New file.
40111 * m4/strerror.m4: New file.
40114 * m4/mktime.m4: Renamed from jm-mktime.m4.
40115 (gl_PREREQ_MKTIME): New macro.
40116 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40119 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40120 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40121 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40124 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40125 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40126 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40129 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40130 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40131 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40133 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40136 * m4/xalloc.m4: New file.
40139 * m4/alloca.m4: New file.
40142 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40143 (jm_FUNC_PUTENV): Invoke it.
40146 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40147 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40148 when invoked twice.
40149 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40153 * m4/memrchr.m4: New file.
40156 * m4/stpcpy.m4: New file.
40159 * m4/strcase.m4: New file.
40162 * m4/strdup.m4: New file.
40165 * m4/strnlen.m4: New file.
40168 * m4/strndup.m4: New file.
40171 * m4/xstrtod.m4: New file.
40174 * m4/xstrtol.m4: New file.
40177 * m4/getdate.m4: New file.
40179 Module unlocked-io.
40180 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40181 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40182 * m4/jm-glibc-io.m4n: Remove file.
40184 Module long-options.
40185 * m4/long-options.m4: New file.
40188 * m4/md5.m4: New file.
40191 * m4/sha.m4: New file.
40194 * m4/getstr.m4: New file.
40197 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40198 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40199 <sys/types.h>, for size_t. Use the function name gnu_getline, not
40200 simply getline. Infoke gl_PREREQ_GETLINE.
40203 * m4/obstack.m4: New file.
40206 * m4/hash.m4: New file.
40209 * m4/readtokens.m4: New file.
40212 * m4/strverscmp.m4: New file.
40215 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40219 * m4/strtoll.m4: New file.
40222 * m4/strtoull.m4: New file.
40225 * m4/strtoimax.m4: New file.
40228 * m4/strtoumax.m4: New file.
40231 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40232 jm_AC_PREREQ_XSTRTOIMAX.
40233 Moved the strtol prerequisites to strtol.m4.
40234 Moved the strtoll prerequisites to strtoll.m4.
40235 Moved the strtoimax prerequisites to strtoimax.m4.
40238 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40239 jm_AC_PREREQ_XSTRTOUMAX.
40240 Moved the strtoul prerequisites to strtoul.m4.
40241 Moved the strtoull prerequisites to strtoull.m4.
40242 Moved the strtoumax prerequisites to strtoumax.m4.
40245 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40246 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40249 * m4/dup2.m4: New file.
40252 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40253 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40256 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40257 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40259 Module gettimeofday.
40260 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40261 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40262 gl_PREREQ_GETTIMEOFDAY.
40265 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40266 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40269 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40270 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40271 jm_AC_TYPE_UINTMAX_T.
40272 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40275 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40276 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40279 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40280 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40283 * m4/timespec.m4 (gl_TIMESPEC): New macro.
40284 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40285 * m4/st_mtim.m4: Indentation.
40288 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40289 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40290 gl_PREREQ_NANOSLEEP.
40293 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40294 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40295 (gl_REGEX): New macro.
40298 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40299 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40302 * m4/rmdir.m4: New file.
40305 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40306 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40307 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40310 * m4/dirname.m4: New file.
40313 * m4/getopt.m4: New file.
40315 Module unistd-safer.
40316 * m4/unistd-safer.m4: New file.
40319 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40321 (gl_PREREQ_FNMATCH_EXTRA): New macro.
40322 (gl_FUNC_FNMATCH_POSIX): New macro.
40323 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40324 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40328 * m4/exclude.m4: New file.
40331 * m4/human.m4: New file.
40337 * m4/backupfile.m4: New file.
40338 * m4/d-ino.m4: Indentation.
40341 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40342 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40343 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40346 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40350 * m4/euidaccess.m4: New file.
40353 * m4/file-type.m4: New file.
40356 * m4/fileblocks.m4: New file.
40359 * m4/filemode.m4: New file.
40362 * m4/isdir.m4: New file.
40365 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40366 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40369 * m4/makepath.m4: New file.
40372 * m4/modechange.m4: New file.
40375 * m4/mountlist.m4: New file.
40376 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40379 Module path-concat.
40380 * m4/path-concat.m4: New file.
40383 * m4/pathmax.m4: New file.
40386 * m4/same.m4: New file.
40389 * m4/save-cwd.m4: New file.
40392 * m4/savedir.m4: New file.
40395 * m4/xgetcwd.m4: New file.
40396 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40399 * m4/xreadlink.m4: New file.
40402 * m4/safe-read.m4: New file.
40405 * m4/safe-write.m4: New file.
40408 * m4/closeout.m4: New file.
40410 Module stdio-safer.
40411 * m4/stdio-safer.m4: New file.
40414 * m4/getpass.m4: New file.
40417 * m4/getugroups.m4: New file.
40419 Module group-member.
40420 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40421 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40424 * m4/idcache.m4: New file.
40427 * m4/userspec.m4: New file.
40430 * m4/clock_time.m4: New file.
40431 * m4/gettime.m4: New file.
40434 * m4/settime.m4: New file.
40437 * m4/posixtm.m4: New file.
40439 Module gethostname.
40440 * m4/gethostname.m4: New file.
40443 * m4/canon-host.m4: New file.
40446 * m4/codeset.m4: New file, from gettext-0.11.5.
40447 * m4/gettext.m4: New file, from gettext-0.11.5.
40448 * m4/glibc21.m4: New file, from gettext-0.11.5.
40449 * m4/iconv.m4: New file, from gettext-0.11.5.
40450 * m4/intdiv0.m4: New file, from gettext-0.11.5.
40451 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40452 * m4/inttypes.m4: New file, from gettext-0.11.5.
40453 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40454 * m4/isc-posix.m4: New file, from gettext-0.11.5.
40455 * m4/lcmessage.m4: New file, from gettext-0.11.5.
40456 * m4/lib-ld.m4: New file, from gettext-0.11.5.
40457 * m4/lib-link.m4: New file, from gettext-0.11.5.
40458 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40459 * m4/progtest.m4: New file, from gettext-0.11.5.
40460 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40461 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40462 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40464 Module localcharset.
40465 * m4/localcharset.m4: New file.
40467 Module hard-locale.
40468 * m4/hard-locale.m4: New file.
40471 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40473 * m4/mbrtowc.m4: Add comment.
40476 * m4/memcasecmp.m4: New file.
40479 * m4/memcoll.m4: New file.
40482 * m4/unicodeio.m4: New file.
40485 * m4/rpmatch.m4: New file.
40488 * m4/yesno.m4: New file.
40491 * m4/exitfail.m4: New file.
40494 * m4/c-stack.m4 (gl_C_STACK): New macro.
40495 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40498 * m4/error.m4 (gl_ERROR): New macro.
40499 (jm_PREREQ_ERROR): Use onceonly macros.
40502 * m4/fatal.m4: New file.
40505 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40506 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40508 Module getpagesize.
40509 * m4/getpagesize.m4: New file.
40511 Module getusershell.
40512 * m4/getusershell.m4: New file.
40515 * m4/physmem.m4: New file.
40518 * m4/posixver.m4: New file.
40521 * m4/quotearg.m4: New file.
40524 * m4/quote.m4: New file.
40527 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40530 * m4/sig2str.m4: New file.
40533 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40535 * m4/intmax_t.m4: New file.
40536 * m4/d-type.m4: Indentation.
40537 * m4/jm-macros.m4: Update.
40538 * m4/prereq.m4 (jm_PREREQ): Update.
40539 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40540 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40541 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40542 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40543 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40544 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40545 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40546 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40547 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40548 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40549 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40550 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40551 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40552 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40553 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40554 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40555 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40556 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40557 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40559 2002-12-24 Bruno Haible <bruno@clisp.org>
40561 * MODULES.txt: Update according to m4/ changes.
40564 * config.rpath: New file, from gettext-0.11.5.
40566 * modules/*: New module descriptions.
40567 * gnulib-tool: New file.
40568 * MODULES.html.sh: New file.
40570 2002-12-21 Karl Berry <karl@gnu.org>
40572 * doc/fdl.texi: update to version 1.2.
40574 2002-12-19 Karl Berry <karl@gnu.org>
40576 * config/config.guess: update from prep.
40578 2002-12-18 Bruno Haible <bruno@clisp.org>
40580 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40581 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40583 2002-12-17 Bruno Haible <bruno@clisp.org>
40585 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40586 stdlib.h, string.h.
40588 2002-12-17 Bruno Haible <bruno@clisp.org>
40590 * lib/canon-host.c (strdup): Remove unused declaration.
40592 * lib/fsusage.c: Include full_read.h.
40593 (get_fs_usage): Use full_read instead of safe_read.
40595 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40597 2002-12-12 Karl Berry <karl@gnu.org>
40599 * config/config.guess: update from prep.
40601 2002-12-11 Bruno Haible <bruno@clisp.org>
40603 * m4/setenv.m4: New file, from gettext-0.11.5.
40605 2002-12-11 Bruno Haible <bruno@clisp.org>
40607 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40609 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40612 2002-12-11 Bruno Haible <bruno@clisp.org>
40614 * setenv.c (alloca): Fall back to malloc.
40615 (freea): New macro.
40616 (setenv): Use freea() to free memory allocated with alloca().
40618 2002-11-13 Bruno Haible <bruno@clisp.org>
40620 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40621 function declarations.
40622 * unsetenv.c (unsetenv): Likewise.
40624 2002-03-04 Bruno Haible <bruno@clisp.org>
40626 Portability to AIX 4.3.3.
40627 * unsetenv.c: New file, extracted from setenv.c.
40628 * setenv.c: Move the unsetenv() function to unsetenv.c.
40630 2001-12-20 Bruno Haible <bruno@clisp.org>
40632 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40633 use malloc instead. For SunOS 4.
40635 2001-12-11 Bruno Haible <bruno@clisp.org>
40637 * setenv.c: Declare alloca.
40638 (compar_fn_t): New typedef.
40639 (KNOWN_VALUE, STORE_VALUE): Use it.
40641 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40644 2002-12-10 Paul Eggert <eggert@twinsun.com>
40646 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40647 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40648 Choose values that are less likely to collide with system fnmatch
40650 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40651 defined (e.g., a pure POSIX system).
40652 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40653 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40655 2002-12-06 Paul Eggert <eggert@twinsun.com>
40657 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40658 a pain in practice to deal with generated m4 files. This change
40659 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40661 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40662 and jm-glibc-io.m4, as they are no longer a special case.
40663 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40664 kludge and the auto-generation stuff. Check only whether the
40665 functions are declared, not whether they exist, since older hosts
40666 that don't declare the functions can't use the optimization anyway.
40668 2002-12-06 Jim Meyering <jim@meyering.net>
40670 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40672 Merge in changes from libc's misc/error.c, in preparation
40673 for the merge of gnulib's changes back into libc.
40675 * lib/error.c (_): Define only if not already defined.
40676 Move definition to follow all #include directives.
40677 Include unlocked-io.h only if !_LIBC.
40678 [_LIBC]: Include <libio/libioP.h>.
40679 [USE_IN_LIBIO]: Include <libio/iolibio.h>
40680 (fflush): Tweak definition to use INTUSE.
40683 2002-12-05 Paul Eggert <eggert@twinsun.com>
40685 * lib/alloca.c [defined emacs]: Include "lisp.h".
40686 (xalloc_die) [defined emacs]: New macro.
40687 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40688 [! defined emacs]: Include <xalloc.h>.
40689 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40690 (pointer): Typedef to POINTER_TYPE *.
40691 (malloc): Remove decl; we now always use xmalloc.
40692 (alloca): Use old-style definition, since Emacs needs this.
40693 Check for arithmetic overflow when computing combined size.
40695 2002-12-04 Paul Eggert <eggert@twinsun.com>
40697 Do not generate unlocked-io.h automatically, since it's easier to
40698 maintain it by hand.
40700 * lib/unlocked-io.h: New file, from GNU diffutils,
40701 but with proper copyright notice and attribution.
40702 * lib/gen-uio: Remove.
40703 * lib/Makefile.am: Add copyright notice.
40704 (libfetish_a_SOURCES): Add unlocked-io.h.
40705 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40706 (DISTCLEANFILES, io_functions): Remove macros.
40707 (EXTRA_DIST): Remove gen_uio.
40708 (unlocked-io.h): Remove rule.
40710 2002-12-04 Jim Meyering <jim@meyering.net>
40712 Reflect the fact that stat.c and lstat.c are no longer generated.
40713 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40714 (DISTCLEANFILES): Likewise.
40715 (EXTRA_DIST): Likewise.
40716 (all_local): Don't depend on stat.c or lstat.c.
40717 (stat.c, lstat.c): Remove rules.
40718 (EXTRA_DIST): Remove xstat.in.
40720 * lib/xstat.in: Remove file. Contents moved into stat.c.
40721 * lib/stat.c: New file. Contents mostly from xstat.in.
40722 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40723 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40725 * lib/safe-read.c: Rework so that it may serve to define safe_write,
40727 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40729 2002-12-03 Jim Meyering <jim@meyering.net>
40731 * lib/safe-read.c, safe-write.c: Change variable names and comments,
40732 but not semantics, to minimize the differences between these two files.
40733 (safe_read): Change comment to mention SAFE_READ_ERROR.
40735 * lib/safe-read.c (IS_EINTR): Define.
40736 (safe_read): Use IS_EINTR in place of in-function cpp directives.
40738 2002-12-02 Jim Meyering <jim@meyering.net>
40740 * lib/safe-read.c (EINTR): Define.
40741 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40742 (INT_MAX): Provide fallback.
40743 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40745 * lib/safe-read.h (SAFE_READ_ERROR): Define.
40747 2002-12-02 Bruno Haible <bruno@clisp.org>
40749 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40750 Define, taken from safe-read.c.
40751 (INT_MAX): Provide fallback.
40752 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
40753 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
40755 * lib/safe-read.c (EINTR): Remove definition.
40756 (safe_read): Don't use EINTR if it is absent.
40758 2002-12-01 Jim Meyering <jim@meyering.net>
40760 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
40762 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
40764 2002-11-27 Paul Eggert <eggert@twinsun.com>
40766 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
40767 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
40768 with `if (! (value < limit)) abort ();', for readability.
40770 2002-11-26 Karl Berry <karl@gnu.org>
40772 * lib/strdup.c: copy from libc again, with jim's ok.
40773 * lib/.cppi-disable: re-add strdup.c
40775 2002-11-25 Karl Berry <karl@gnu.org>
40777 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
40778 instead of "strtol.c".
40780 2002-11-25 Karl Berry <karl@gnu.org>
40782 * config/install-sh: update from automake for variable quoting, $0 in
40785 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
40786 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
40789 2002-11-25 Jim Meyering <jim@meyering.net>
40791 * lib/mktime.c: Sync from libc, now that it has the latest fix.
40793 2002-11-24 Karl Berry <karl@gnu.org>
40795 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
40796 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
40798 2002-11-24 Jim Meyering <jim@meyering.net>
40800 Update from coreutils:
40802 * lib/mktime.c: Merge in changes from libc.
40804 Avoid a link-time failure on some Linux systems.
40805 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
40807 (__mon_yday): Declare with the STATIC attribute.
40808 (__mktime_internal): Likewise.
40809 Based on a report from Greg Schafer.
40811 2002-11-23 Jim Meyering <jim@meyering.net>
40813 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
40814 Use `unsigned', not `int', as type of index.
40816 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
40818 * lib/fsusage.c: Remove unneeded parentheses around operands of
40821 2002-11-22 Paul Eggert <eggert@twinsun.com>
40823 * lib/quotearg.h: Allow multiple inclusion by surrounding with
40824 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
40825 so that we can be included first.
40826 (PARAMS): Remove; we now assume C89 or later. All uses removed.
40827 * lib/quotearg.c: Include quotearg.h immediately after config.h.
40828 No need to include stddef.h or sys/types.h any more.
40829 Surround local include files with "", not "<>".
40830 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
40831 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
40832 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
40833 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
40834 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
40835 (ISPRINT): Remove; no longer needed now that we assume C89.
40837 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
40840 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
40841 quotearg_char): Use SIZE_MAX rather than
40842 (size_t) -1 when we are talking about "infinity".
40844 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
40846 2002-11-22 Paul Eggert <eggert@twinsun.com>
40848 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
40849 hint that one should use `if (! x) abort ();' rather than `assert
40850 (x);', and anyway it's one less thing to worry about configuring.
40851 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
40852 hash_rehash, hash_insert): Use abort rather than assert.
40854 2002-11-22 Bruno Haible <bruno@clisp.org>
40856 * lib/safe-read.h: Assume C89. Add comments.
40857 (safe_read): Change return type to size_t.
40858 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
40859 byte counts > SSIZE_MAX correctly.
40860 * lib/safe-write.h: New file.
40861 * lib/safe-write.c: New file.
40862 * lib/full-read.h: New file.
40863 * lib/full-read.c: New file.
40864 * lib/full-write.h: Assume C89. Add comments.
40865 * lib/full-write.c: Include safe-write.h.
40866 (full_write): Rewritten to use safe_write.
40867 Suggested by Jim Meyering and Paul Eggert.
40869 2002-11-21 Jim Meyering <jim@meyering.net>
40871 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
40873 Merge in changes from the coreutils.
40875 2002-09-25 Paul Eggert <eggert@twinsun.com>
40876 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
40878 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
40879 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
40880 int. Work more efficiently if X is the same width as uintmax_t.
40881 Do not compare X to -1, to avoid bogus compiler warning.
40882 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
40883 Don't assume that f_frsize and f_bsize are the same type.
40885 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
40886 warning on FreeBSD.
40888 * lib/makepath.c (make_path): Restore umask *before* creating the final
40890 (make_path): Minor reformatting.
40892 * lib/xmalloc.c: Adjust to work with new autoconf macros,
40893 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
40894 HAVE_MALLOC/HAVE_REALLOC.
40896 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
40897 dummy ones. At least on GNU/Linux systems, `auto' means something
40899 From Michael Stone.
40901 2002-11-21 Bruno Haible <bruno@clisp.org>
40903 Remove case insensitive option matching.
40904 * lib/argmatch.h (argcasematch): Remove declaration.
40905 (ARGCASEMATCH): Remove macro.
40906 (__xargmatch_internal): Remove case_sensitive argument.
40907 (XARGMATCH): Update.
40908 (XARGCASEMATCH): Remove macro.
40909 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
40910 case_sensitive argument.
40911 (argcasematch): Remove function.
40912 (__xargmatch_internal): Remove case_sensitive argument.
40913 (main): Use XARGMATCH instead of XARGCASEMATCH.
40915 * lib/xmalloc.c: Change compile-time error message. Add comment about
40916 required autoconf version.
40918 2002-11-20 Paul Eggert <eggert@twinsun.com>
40920 Merge argmatch cleanups from Bison. Assume C89.
40922 * lib/argmatch.c: Include config.h here, not in argmatch.h.
40923 Include stdlib.h, for EXIT_FAILURE.
40924 Always include <string.h>, since we assume C89.
40925 (EXIT_FAILURE): Remove pre-C89 bug workaround.
40926 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
40927 Include <stddef.h> instead, since it's all we need for size_t.
40928 (PARAMS): Remove. All uses removed.
40929 (ARRAY_CARDINALITY): Do not bother to #undef.
40930 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
40931 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40932 Remove unnecessary parentheses.
40933 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40934 Insert necessary parentheses.
40935 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
40936 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
40938 2002-11-19 Bruno Haible <bruno@clisp.org>
40940 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
40941 * lib/mbswidth.h: Include <stddef.h>, for size_t.
40943 * lib/mbswidth.h (PARAMS): Remove macro.
40944 (mbswidth, mbsnwidth): Use ANSI C function declarations.
40945 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
40947 * lib/gcd.h (PARAMS): Remove macro.
40948 (gcd): Use ANSI C function declarations.
40949 * lib/gcd.c (gcd): Likewise.
40951 2002-11-15 Bruno Haible <bruno@clisp.org>
40953 * lib/strcspn.c: Include <stddef.h>.
40954 (strcspn): Use ANSI C function declaration. Change return type to
40956 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
40957 (strpbrk): Use NULL.
40958 * lib/strpbrk.h (PARAMS): Remove macro.
40959 (strpbrk): Use ANSI C function declaration.
40960 * lib/strstr.c: Don't include <sys/types.h>.
40961 * lib/strstr.h (PARAMS): Remove macro.
40962 (strstr): Use ANSI C function declarations.
40964 2002-11-14 Karl Berry <karl@gnu.org>
40966 * config/mkinstalldirs: `do' on separate line, instead of
40969 2002-11-06 Bruno Haible <bruno@clisp.org>
40971 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
40972 * lib/gcd.c (gcd): Likewise.
40974 2002-11-05 Bruno Haible <bruno@clisp.org>
40976 * lib/gcd.h: New file, from gettext-0.11.5.
40977 * lib/gcd.c: New file, from gettext-0.11.5.
40979 2002-11-05 Bruno Haible <bruno@clisp.org>
40981 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40982 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40983 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40984 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40986 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
40988 * lib/makepath.c: Include gettext.h instead of <locale.h> and
40991 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40992 * lib/human.c: Include gettext.h instead of <libintl.h>.
40993 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40994 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40995 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40996 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40997 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40998 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40999 (textdomain): Remove definition.
41000 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41002 * lib/long-options.c: Remove include of <libintl.h> and definition of
41004 * lib/same.c: Remove include of <libintl.h> and definition of _.
41006 2002-11-04 Owen Taylor <otaylor@redhat.com>
41008 * lib/config.charset: A few additions for Solaris.
41010 2002-11-04 Bruno Haible <haible@clisp.cons.org>
41012 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41013 * lib/localcharset.c (locale_charset): Declare as extern "C".
41015 2002-11-04 Bruno Haible <haible@clisp.cons.org>
41017 * lib/config.charset: msdos in uk_UA uses CP1125.
41019 2002-11-04 Bruno Haible <bruno@clisp.org>
41021 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41022 * lib/strcase.h: New file, from GNU gettext-0.11.5.
41023 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41024 * lib/strstr.h: New file, from GNU gettext-0.11.5.
41025 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41027 2002-11-04 Bruno Haible <bruno@clisp.org>
41029 * lib/localcharset.c (locale_charset): Don't return an empty string.
41031 2002-11-04 Bruno Haible <bruno@clisp.org>
41033 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41036 2002-11-04 Bruno Haible <bruno@clisp.org>
41038 * lib/config.charset: Update for newest glibc. Add canonical names
41039 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41041 2002-11-04 Bruno Haible <bruno@clisp.org>
41043 * lib/config.charset: Add support for NetBSD.
41045 2002-11-04 Bruno Haible <bruno@clisp.org>
41047 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41049 2002-11-01 Bruno Haible <bruno@clisp.org>
41051 * configure.in: Add AC_CONFIG_AUX_DIR call.
41052 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41054 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41056 2002-09-28 Karl Berry <karl@gnu.org>
41058 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41059 installed automake until the next release, since changes have been
41062 2002-09-25 Karl Berry <karl@gnu.org>
41064 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41065 * lib/getopt*: copy from libc/posix.
41066 * lib/gettext.h: copy from gettext.
41067 * lib/.cppi-disable: add strdup.c, gettext.h.
41069 2002-09-25 Karl Berry <karl@gnu.org>
41071 * config/srclist.txt: enable gettext.h check.
41072 * config/config.{guess,sub}: update from prep.
41073 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41074 from automake 1.6.3.
41077 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
41079 * regex.c (PATFETCH): Remove the translating fetch.
41080 (PATFETCH_RAW): Rename to PATFETCH.
41081 (set_image_of_range): New fun.
41082 (SET_RANGE_TABLE_WORK_AREA): Use it.
41083 (regex_compile): Don't translate the pattern chars so eagerly.
41084 Only do it when inserting an `exactn' bytecode or when handling
41086 (mutually_exclusive_p): Avoid empty statement.
41088 2002-07-06 Jim Meyering <meyering@lucent.com>
41090 * m4/README: Don't mention Makefile.am.in.
41091 Outline how I've tested changes to .m4 files. Yep, it's a pain.
41093 2002-07-01 Jim Meyering <meyering@lucent.com>
41095 * lib/c-stack.c: Include sys/time.h.
41096 From Volker Borchert.
41098 2002-06-26 Paul Eggert <eggert@twinsun.com>
41100 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41102 2002-06-26 Paul Eggert <eggert@twinsun.com>
41104 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41105 New macro. Use it uniformly instead of
41106 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41107 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41108 reported by Vin Shelton.
41110 2002-06-22 Paul Eggert <eggert@twinsun.com>
41112 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41113 Do not assume SA_SIGINFO behavior.
41114 Bug reported by Jim Meyering on NetBSD 1.5.2.
41116 2002-06-22 Jim Meyering <meyering@lucent.com>
41118 * m4/c-stack.m4: New file, from diffutils-2.8.2.
41119 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41121 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41122 now that configure.ac uses AC_GNU_SOURCE.
41123 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41124 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41126 Update to latest tools. Suggestions from Paul Eggert.
41127 * m4/stdbool.m4: New file, from diffutils-2.8.2.
41128 * m4/gnu-source.m4: Update from diffutils-2.8.2.
41129 * m4/fnmatch.m4: Likewise.
41130 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41131 to AC_HEADER_STDBOOL
41133 2002-06-22 Jim Meyering <meyering@lucent.com>
41135 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41136 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41138 2002-06-22 Jim Meyering <meyering@lucent.com>
41140 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41142 * lib/exitfail.c, exitfail.h: Likewise.
41143 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41145 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41147 (EXTRA_DIST): Add fnmatch_loop.c.
41148 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41150 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41151 * lib/fnmatch.c: Update from diffutils-2.8.2.
41152 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
41153 * lib/fnmatch.h: Remove file.
41155 2002-06-21 Jim Meyering <meyering@lucent.com>
41157 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41158 * m4/mbrtowc.m4: Likewise.
41160 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41161 * m4/mbswidth.m4: Reflect name change:
41162 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41163 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41165 * m4/lib-link.m4: Update from gettext-0.11.2.
41166 * m4/gettext.m4: Likewise.
41168 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41169 From Alfred M. Szmidt.
41171 2002-06-18 Paul Eggert <eggert@twinsun.com>
41173 * lib/file-type.h: Report an error if neither S_ISREG nor
41174 S_IFREG is defined, instead of using a test specific to glibc
41175 2.2. This should be safe, since POSIX requires S_ISREG and
41176 Unix Version 7 had S_IFREG. We don't need to check for
41177 <sys/types.h> since we don't use any symbols that it defines.
41179 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
41181 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41182 $@-t, so that each temporary file name is unique and valid in the first
41183 8 characters, for operation under DOS.
41185 2002-06-15 Paul Eggert <eggert@twinsun.com>
41187 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41189 2002-06-15 Jim Meyering <meyering@lucent.com>
41191 Work even with DJGPP 2.03, which lacks support for symlinks.
41193 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41195 * lib/lchown.c (S_ISLNK): Likewise.
41197 2002-06-15 Jim Meyering <meyering@lucent.com>
41199 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41200 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41201 have been included before this file.
41203 2002-06-14 Jim Meyering <meyering@lucent.com>
41205 * lib/file-type.h: Use the version from diffutils-2.8.2.
41206 * lib/file-type.c: Likewise.
41208 2002-06-07 Jim Meyering <meyering@lucent.com>
41210 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41211 They're needed at least for NetBSD 1.5.2.
41212 ($statxfs_includes): Include those same headers.
41213 ($statxfs_includes): Include sys/vfs.h if available.
41214 ($statxfs_includes): Likewise for sys/statvfs.h.
41215 Check for the following members in both structs statfs and statvfs:
41216 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41218 2002-06-01 Jim Meyering <meyering@lucent.com>
41220 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41221 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41223 2002-05-28 Jim Meyering <meyering@lucent.com>
41225 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41226 Reported by Volker Borchert.
41228 2002-05-27 Jim Meyering <meyering@lucent.com>
41230 Fix a problem seen only on nonconforming systems whereby ls.c's
41231 use of localtime, and then of gettimeofday would cause trouble:
41232 the localtime call used to initialize rpl_gettimeofday's save
41233 mechanism would clobber ls's current local time information so
41234 that in any long listing the first file would always be listed
41235 with date 1970-01-01. Analysis by Volker Borchert.
41237 * lib/gettimeofday.c (localtime): Undefine.
41238 (rpl_localtime): New function.
41240 2002-05-27 Jim Meyering <meyering@lucent.com>
41242 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41245 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41246 use the replacement function; it wouldn't resolve at link time.
41247 Reported by Volker Borchert.
41249 2002-05-22 Jim Meyering <meyering@lucent.com>
41251 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41253 * lib/file-type.h: New file.
41254 * lib/file-type.c (file_type): New file/function. Extracted from
41257 2002-04-30 Jim Meyering <meyering@lucent.com>
41259 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41261 2002-04-29 Paul Eggert <eggert@twinsun.com>
41263 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41265 2002-04-29 Paul Eggert <eggert@twinsun.com>
41267 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41268 Do not check for alloca.h (no longer used) or stdbool.h (was never
41269 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
41271 2002-04-29 Paul Eggert <eggert@twinsun.com>
41273 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41275 2002-04-29 Jim Meyering <meyering@lucent.com>
41277 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41278 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41279 Use AC_FUNC_STRNLEN here instead.
41281 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41282 With autoconf-2.53a, it's part of AC_PROG_CC.
41284 2002-04-28 Paul Eggert <eggert@twinsun.com>
41286 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41287 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41289 2002-04-28 Paul Eggert <eggert@twinsun.com>
41291 * lib/sig2str.h, lib/sig2str.c: New files.
41292 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41294 2002-04-28 Paul Eggert <eggert@twinsun.com>
41296 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41297 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
41298 of 127, since 64 is the largest conceivable number for ancient
41300 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41302 2002-04-28 Jim Meyering <meyering@lucent.com>
41304 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41306 2002-04-24 Jim Meyering <meyering@lucent.com>
41308 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41309 (jm_PREREQ): Use it.
41311 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41312 mach/mach.h fcntl.h.
41313 Check for this function: setlocale.
41315 2002-04-24 Jim Meyering <meyering@lucent.com>
41317 * lib/gettext.h: New file, from Gettext.
41318 * lib/Makefile.am (INCLUDES): Remove -I../intl.
41319 (libfetish_a_SOURCES): Add gettext.h.
41321 2002-04-16 Jim Meyering <meyering@lucent.com>
41323 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41324 ut_pid, ut_id, ut_exit.
41326 2002-04-16 Jim Meyering <meyering@lucent.com>
41328 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41329 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41330 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41332 2002-04-12 Jim Meyering <meyering@lucent.com>
41334 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41335 now-bogus check for f_type in sys/mount.h. Instead, just test for the
41336 existence of the getmntinfo function. Needed for Darwin 5.3.
41338 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41339 This is necessary at least on Darwin 5.3.
41341 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41342 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
41343 strnlen.o in the library, and that makes some versions of ranlib
41346 2002-04-12 Jim Meyering <meyering@lucent.com>
41348 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41350 2002-04-09 Jim Meyering <meyering@lucent.com>
41352 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41353 to be more precise. Rather than saying we're checking whether the
41354 function `works', say what we're testing.
41355 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41356 Reported by Bruno Haible.
41358 2002-03-10 Jim Meyering <meyering@lucent.com>
41360 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41361 Suggestion from Santiago Vila.
41363 2002-03-08 Jim Meyering <meyering@lucent.com>
41365 * lib/rename.c: Mention that this wrapper is needed also on
41366 mips-dec-ultrix4.4 systems.
41368 2002-03-02 Jim Meyering <meyering@lucent.com>
41370 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41371 not HAVE_CLOCK_SETTIME.
41373 2002-02-27 Paul Eggert <eggert@twinsun.com>
41375 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41376 Check for clock_settime.
41378 2002-02-27 Paul Eggert <eggert@twinsun.com>
41380 * lib/nanosleep.h: Rename to....
41381 * lib/timespec.h: New name for nanosleep.h. All uses changed.
41383 * lib/gettime.c: New file.
41384 * lib/settime.c: New file.
41385 * lib/stime.c: Remove.
41387 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41388 timespec.h. Remove nanosleep.h.
41390 2002-02-25 Paul Eggert <eggert@twinsun.com>
41392 * m4/acl.m4: New file.
41393 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41394 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41396 2002-02-25 Paul Eggert <eggert@twinsun.com>
41398 * lib/acl.c, lib/acl.h: New files.
41399 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41401 2002-02-24 Jim Meyering <meyering@lucent.com>
41403 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41404 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41405 cause trouble. Reported by Nelson Beebe.
41407 2002-02-23 Paul Eggert <eggert@twinsun.com>
41409 * lib/path-concat.c (xpath_concat): Reorder code to pacify
41410 compilers that don't know that xalloc_die never returns.
41412 2002-02-20 Jim Meyering <meyering@lucent.com>
41414 * lib/getdate.c: Regenerate using bison-1.33.
41416 2002-02-17 Jim Meyering <meyering@lucent.com>
41418 * config/config.guess (main): Don't use `head -1'; it's no longer
41419 portable. Use `sed 1q' instead.
41421 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
41423 * m4/codeset.m4: Upgrade to gettext-0.11.
41424 * m4/gettext.m4: Upgrade to gettext-0.11.
41425 * m4/glibc21.m4: Upgrade to gettext-0.11.
41426 * m4/iconv.m4: Upgrade to gettext-0.11.
41427 * m4/isc-posix.m4: Upgrade to gettext-0.11.
41428 * m4/lcmessage.m4: Upgrade to gettext-0.11.
41429 * m4/lib-ld.m4: New file, from gettext-0.11.
41430 * m4/lib-link.m4: New file, from gettext-0.11.
41431 * m4/lib-prefix.m4: New file, from gettext-0.11.
41432 * m4/progtest.m4: Upgrade to gettext-0.11.
41434 2002-02-15 Paul Eggert <eggert@twinsun.com>
41436 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41437 (jm_PREREQ): Use it.
41439 2002-02-15 Paul Eggert <eggert@twinsun.com>
41441 * lib/posixver.c, lib/posixver.h: New files.
41442 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41444 2002-02-02 Paul Eggert <eggert@twinsun.com>
41445 Bruno Haible <bruno@clisp.org>
41447 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41448 (fwrite_success_callback): New declaration.
41449 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41450 print_unicode_char. Call failure callback instead of error.
41451 (fwrite_success_callback): New function.
41452 (exit_failure_callback): New function.
41453 (fallback_failure_callback): New function.
41454 (print_unicode_char): Call unicode_to_mb.
41456 2002-01-26 Jim Meyering <meyering@lucent.com>
41458 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41459 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41461 2002-01-26 Jim Meyering <meyering@lucent.com>
41463 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41465 2002-01-22 Paul Eggert <eggert@twinsun.com>
41467 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41469 2002-01-22 Jim Meyering <meyering@lucent.com>
41471 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41472 Otherwise, some versions of automake would omit the rule that makes
41473 Makefile from Makefile.in.
41475 2002-01-21 Paul Eggert <eggert@twinsun.com>
41477 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41478 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41479 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41480 (memcoll): Set errno to zero if there is no error.
41482 * lib/quotearg.c (quotearg_buffer_restyled):
41483 Fix bug with quoting buffers containing NUL when backslashing escapes.
41484 This bug was exposed by the other changes in this patch.
41485 (quotearg_n_options): New arg ARGSIZE.
41486 All callers changed.
41487 (quoting_options_from_style): New function.
41488 (quotearg_n_style): Use it.
41489 (quotearg_n_style_mem): New function.
41491 * lib/quotearg.h (quotearg_n_style_mem): New function.
41493 2002-01-19 Jim Meyering <meyering@lucent.com>
41495 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41496 Remove useless quotes: DF_PROG="df".
41497 * m4/strnlen.m4: New file.
41499 2002-01-16 Paul Eggert <eggert@twinsun.com>
41501 * lib/backupfile.c (ISDIGIT): Comment fix.
41502 * lib/getdate.y (ISDIGIT): Likewise.
41503 * lib/posixtm.c (ISDIGIT, year): Likewise.
41504 * lib/strverscmp.c (ISDIGIT): Likewise.
41505 * lib/userspec.c (ISDIGIT): Likewise.
41507 2002-01-16 Jim Meyering <meyering@lucent.com>
41509 * lib/getdate.y: Add three semicolons, each just before a closing
41510 brace. Bison (as of version 1.31) no longer papers over that mistake.
41512 2002-01-05 Jim Meyering <meyering@lucent.com>
41514 * lib/version-etc.c (version_etc_copyright): Update copyright year.
41516 2001-12-19 Paul Eggert <eggert@twinsun.com>
41518 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41519 not silently exit merely because the output buffer happens to
41520 have nothing pending.
41522 2001-12-18 Paul Eggert <eggert@twinsun.com>
41524 See the big note in ../ChangeLog.
41525 * lib/human.c (suffixes): Prefer K to k for 1024.
41526 (generate_suffix_backwards): New function.
41527 (human_readable_inexact): Use it.
41528 * lib/xstrtol.c (__xstrtol): If there is no number but there
41529 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
41530 Accept 'K' as well as 'k'.
41532 2001-12-15 Jim Meyering <meyering@lucent.com>
41534 * lib/regex.h (__restrict_arr): Update from libc.
41536 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41537 as `remote' if the name starts with `//'. Suggested by Michael Stone.
41540 2001-12-14 Jim Meyering <meyering@lucent.com>
41542 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41543 Suggestion from Bruno Haible.
41545 2001-12-10 Jim Meyering <meyering@lucent.com>
41547 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41548 xrealloc, Instead, include "xalloc.h".
41549 (initbuffer): Don't cast xmalloc return value to char*.
41550 (readline): Reword comment.
41551 Don't cast xrealloc return value to char*
41552 Return NULL, not 0.
41554 2001-12-09 Jim Meyering <meyering@lucent.com>
41556 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41557 about `signed and unsigned type in conditional expression'.
41558 * lib/posixtm.c (posix_time_parse): Likewise.
41560 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41562 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41563 to avoid a pedantic warning.
41565 * lib/getstr.c: Don't include assert.h.
41566 (getstr): Remove warning-evoking assertions.
41567 Return -1 if offset parameter is out of bounds.
41568 Change the type of a local from int to size_t.
41570 * lib/strftime.c (my_strftime_localtime_r): Include this function
41571 definition in the `#if ! HAVE_TM_GMTOFF' block.
41573 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41574 Include xalloc.h instead.
41576 2001-12-02 Jim Meyering <meyering@lucent.com>
41578 * lib/tempname.c: Don't declare getenv, thus reverting the change of
41579 2001-11-18. It's no longer necessary, now that stdlib.h is always
41582 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41583 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
41585 2001-11-30 Akim Demaille <akim@epita.fr>
41587 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41588 before being defined.
41590 2001-11-27 Paul Eggert <eggert@twinsun.com>
41592 * lib/quotearg.h (quotearg_n, quotearg_n_style):
41593 First arg is int, not unsigned.
41594 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41595 (SIZE_MAX, UINT_MAX): New macros.
41596 (quotearg_n_options): Abort if N is negative.
41597 Avoid overflow check on hosts where size_t is 64 bits and int
41598 is 32 bits, as overflow is impossible there.
41599 Fix off-by-one typo that caused unnecessary reallocation.
41601 2001-11-27 Jim Meyering <meyering@lucent.com>
41603 * lib/tempname.c: Merge with version from libc.
41604 * lib/regex.c: Likewise.
41606 * lib/tempname.c: Include stdlib.h unconditionally. On some old
41607 systems for which STDC_HEADERS is 0, it was not included, resulting in
41608 a warning about an integer-to-pointer conversion problem with getenv.
41609 Reported by Volker Borchert.
41611 2001-11-26 Jim Meyering <meyering@lucent.com>
41613 * lib/gtod.h: Remove file.
41614 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41615 * lib/gettimeofday.c: Don't include gtod.h.
41616 (GTOD_init): Remove function.
41617 (rpl_gettimeofday): Do its job here instead, rather than aborting.
41618 Suggestion from Volker Borchert.
41620 2001-11-23 Jim Meyering <meyering@lucent.com>
41622 * lib/hash.h (struct hash_table): Don't define here. Merely declare
41624 * lib/hash.c (struct hash_table): Define it here instead.
41626 2001-11-22 Jim Meyering <meyering@lucent.com>
41628 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41630 2001-11-20 Jim Meyering <meyering@lucent.com>
41632 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41633 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41635 2001-11-19 Jim Meyering <meyering@lucent.com>
41637 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41638 directory. Use "conftestXXXXXX" as the template.
41639 Suggestion from Paul Eggert.
41641 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41642 immediately, so the test doesn't mistakenly hit the max-open-files
41645 2001-11-18 Paul Eggert <eggert@twinsun.com>
41647 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41648 (TEMPORARIES): New macro.
41649 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
41650 removes an artificial limitation (e.g. HP-UX 10.20, where
41653 2001-11-18 Jim Meyering <meyering@lucent.com>
41655 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41657 2001-11-18 Jim Meyering <meyering@lucent.com>
41659 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41662 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41663 files will be created before anything else.
41665 2001-11-17 Paul Eggert <eggert@twinsun.com>
41667 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41668 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41670 2001-11-17 Jim Meyering <meyering@lucent.com>
41672 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41673 Prompted by a report from Bob Proulx.
41675 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41676 Instead, require UTILS_FUNC_MKSTEMP.
41678 2001-11-17 Jim Meyering <meyering@lucent.com>
41680 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41681 Now, that's done as part of AC_FUNC_STRTOD.
41683 2001-11-17 Jim Meyering <meyering@lucent.com>
41685 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41686 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41687 rather than group writable. Patch by Juan F. Codagnone.
41689 * lib/readtokens.c: Remove explicit declarations of xmalloc and
41690 xrealloc, Instead, include "xalloc.h".
41692 * lib/mountlist.c: Include unlocked-io.h after all system headers.
41693 Remove explicit declarations of xmalloc, xrealloc,
41694 and xstrdup. Instead, include "xalloc.h".
41696 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41698 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41700 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41702 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41703 Reported by Padraig Brady.
41705 * lib/mkstemp.c: #undef mkstemp.
41707 (rpl_mkstemp): Rename from mkstemp.
41710 2001-11-16 Jim Meyering <meyering@lucent.com>
41712 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41713 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41714 determine the amount of total physical memory, use pstat_getstatic.
41715 HPUX-11 doesn't define _SC_PHYS_PAGES.
41716 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41717 If sysconf couldn't be used to determine the amount of available
41718 physical memory, use both pstat_getstatic and pstat_getdynamic.
41719 Based on a patch from Bob Proulx.
41721 2001-11-10 Jim Meyering <meyering@lucent.com>
41723 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41724 (jm_PREREQ): Use it.
41726 2001-11-09 Jim Meyering <meyering@lucent.com>
41728 * m4/jm-macros.m4: Require autoconf-2.52f.
41729 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41730 Use these AC_-prefixed names, not the AM_-prefixed ones.
41732 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
41734 2001-11-05 Jim Meyering <meyering@lucent.com>
41736 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41738 2001-11-04 Jim Meyering <meyering@lucent.com>
41740 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41743 2001-11-03 Jim Meyering <meyering@lucent.com>
41745 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41748 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41749 know the name of the variable in the macro definition.
41751 2001-11-03 Jim Meyering <meyering@lucent.com>
41753 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
41754 in argmatch_to_argument call.
41756 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
41759 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
41760 e.g., a fault due to an attempt to free a NULL pointer.
41762 2001-11-01 Jim Meyering <meyering@lucent.com>
41764 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
41765 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
41767 2001-11-01 Jim Meyering <meyering@lucent.com>
41769 * lib/dirfd.c, lib/dirfd.h: New files.
41770 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
41772 * lib/hash.c (hash_print) [TESTING]: Clean up.
41774 2001-10-22 Paul Eggert <eggert@twinsun.com>
41776 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
41777 to avoid a warning if -Wall.
41779 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
41782 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
41783 (per RMS's instructions, this is now the canonical source)
41784 * lgpl/, gpl/: New directories.
41786 2001-10-21 Paul Eggert <eggert@twinsun.com>
41788 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
41790 2001-10-21 Jim Meyering <meyering@lucent.com>
41792 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
41793 this code would end up calling gettext even in packages built
41794 with --disable-nls.
41795 * lib/getopt.c (_): Likewise.
41796 * lib/regex.c (_): Likewise.
41798 2001-10-20 Paul Eggert <eggert@twinsun.com>
41800 * m4/error.m4 (jm_PREREQ_ERROR):
41801 Do not invoke AC_CHECK_FUNCS with strerror_r, as
41802 AC_FUNC_STRERROR_R does that.
41803 Check for strerror declaration.
41805 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
41806 are supposed to have them these days.
41807 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
41808 Merge changes from latest Autoconf CVS.
41809 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
41810 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
41811 POSIX decided to standardize on the int flavor of strerror_r.
41813 2001-10-20 Paul Eggert <eggert@twinsun.com>
41815 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
41816 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
41817 Use strerror_r that is only a macro, even if it is not a function.
41818 (strerror): Check for HAVE_DECL_STRERROR before declaring.
41819 (private_strerror): Use prototypes, not old-style function definition.
41820 (print_errno_message): New function.
41821 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
41822 char*-flavored one.
41823 (error_tail, error, error_at_line): Use it.
41825 2001-10-11 Jim Meyering <meyering@lucent.com>
41827 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
41828 and quote_n (1, ... to avoid clobbering a buffer.
41830 2001-10-05 Jim Meyering <meyering@lucent.com>
41832 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
41834 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
41835 * lib/hash-pjw.h: New file.
41837 2001-09-30 Jim Meyering <meyering@lucent.com>
41839 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
41840 `struct fsstat' has the `f_fstypename' member.
41841 Use that to define FS_TYPE, which is now used to make
41842 the getfsstat link test tighter.
41844 2001-09-30 Jim Meyering <meyering@lucent.com>
41846 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
41847 Include <sys/ucred.h>, for Apple Darwin.
41848 Include sys/mount.h and sys/fs_types.h only if available.
41850 (read_filesystem_list): Use FS_TYPE.
41852 2001-09-29 Paul Eggert <eggert@twinsun.com>
41854 * lib/exclude.c (excluded_filename): 0 -> false, since it's
41857 2001-09-29 Jim Meyering <meyering@lucent.com>
41859 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41860 [one-argument getmntent function]): Include stdio.h before mntent.h.
41861 SunOS 4.1.x needs it for the declaration of `FILE'.
41862 Patch by Volker Borchert.
41864 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41865 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
41866 sys/fs_types.h, and make the link-test for getfsstat guard #include
41867 directives with appropriate #if HAVE_*_H tests so that we can
41868 detect getfsstat on Apple Darwin1.3.7 systems.
41869 Reported by Nelson Beebe.
41870 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
41872 2001-09-28 Paul Eggert <eggert@twinsun.com>
41874 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41875 #defines strtoimax. Also treat the other strto* functions
41878 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41879 Check for strtoul and strtoumax,
41880 as those declarations are made even in the signed case.
41881 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
41882 Likewise, for strtol and strtoimax.
41884 2001-09-28 Paul Eggert <eggert@twinsun.com>
41886 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41887 #defines strtoimax. Also treat the other strto* functions
41890 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
41891 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
41892 (strtoimax, strtoumax): Do not declare if already defined as a macro.
41894 2001-09-26 Jim Meyering <meyering@lucent.com>
41896 Most macros in unlocked-io.h had the wrong number of arguments.
41897 * lib/gen-uio: New script.
41898 (USE_UNLOCKED_IO): Define to 1 if not already defined.
41899 * lib/unlocked-io.hin: Remove file.
41900 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
41901 rather than trying to embed it here.
41902 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
41903 Reported by Padraig Brady.
41905 2001-09-25 Volker Borchert <bt@teknon.de>
41907 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
41910 2001-09-24 Jim Meyering <meyering@lucent.com>
41912 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
41914 2001-09-23 Jim Meyering <meyering@lucent.com>
41916 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
41917 instead of the mere test for existence of mntent.h. The latter
41918 would get a false-positive on AIX 3.4 systems.
41919 In the outer getmntent if-block, don't die if neither of the getmntent
41920 tests succeeds. Instead, just fall through and continue with the
41923 2001-09-23 Jim Meyering <meyering@lucent.com>
41925 * lib/mountlist.c: Remove useless parentheses in #if directives.
41926 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
41927 the deprecated MOUNTED symbol is no longer defined in mntent.h.
41929 2001-09-22 Jim Meyering <meyering@lucent.com>
41931 * m4/gettext.m4: New file. From gettext.
41932 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
41933 * m4/progtest.m4: Likewise
41934 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
41935 * m4/glibc21.m4: Likewise.
41937 * m4/libintl.m4: Remove. No longer used.
41939 2001-09-22 Jim Meyering <meyering@lucent.com>
41941 * lib/localcharset.c: Update from latest gettext.
41942 * lib/config.charset: Likewise.
41944 2001-09-20 Jim Meyering <meyering@lucent.com>
41946 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
41948 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
41951 2001-09-20 Jim Meyering <meyering@lucent.com>
41953 * lib/xstrtol.c (strtoimax): Guard declaration with
41954 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
41955 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
41956 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
41957 (strtoumax): Likewise, for completeness (it wasn't necessary).
41959 2001-09-17 Paul Eggert <eggert@twinsun.com>
41961 * lib/strtoimax.c (HAVE_LONG_LONG):
41962 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
41963 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
41964 to work around bug in IBM C compiler.
41966 2001-09-17 Jim Meyering <meyering@lucent.com>
41968 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
41969 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
41970 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
41971 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
41972 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
41973 whenever the right hand side need not be expanded by the shell.
41975 2001-09-16 Paul Eggert <eggert@twinsun.com>
41977 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
41978 library. It's not correct, as some older glibcs are buggy.
41979 fnmatch wasn't fixed until glibc 2.2.
41981 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
41982 special shell magic here.
41984 2001-09-16 Jim Meyering <meyering@lucent.com>
41986 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
41987 * m4/jm-macros.m4: Require it.
41989 2001-09-16 Jim Meyering <meyering@lucent.com>
41991 * lib/mkdir.c: New file.
41993 2001-09-15 Jim Meyering <meyering@lucent.com>
41995 * m4/jm-macros.m4: Check for help2man.
41997 2001-09-11 Jim Meyering <meyering@lucent.com>
41999 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42000 The body, by Paul Eggert, was moved here from configure.in.
42001 * m4/jm-macros.m4: Require UTILS_HOST_OS.
42003 2001-09-04 Paul Eggert <eggert@twinsun.com>
42005 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42006 (jm_PREREQ): Use it.
42008 2001-09-04 Paul Eggert <eggert@twinsun.com>
42010 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
42011 Use ssize_t, not int, to store result of readlink.
42012 Check for ssize_t overflow as well as size_t overflow,
42013 as POSIX says the result of readlink is implementation-defined
42014 when ssize_t overflows.
42015 Remove unnecessary cast to char*.
42016 Use free+malloc instead of realloc, as the storage doesn't need
42017 to be preserved and it's clearer and can be more efficient that way.
42018 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42019 * lib/xreadlink.h (xreadlink): Update prototype.
42021 2001-09-04 Paul Eggert <eggert@twinsun.com>
42023 * lib/xgetcwd.c: Revert some of the previous change; intead,
42024 fix the HAVE_GETCWD_NULL code to behave more like the
42025 !HAVE_GETCWD_NULL code used to.
42027 Include "xalloc.h".
42028 (xgetcwd): Do not return NULL when memory is exhausted; instead,
42031 2001-09-03 Paul Eggert <eggert@twinsun.com>
42033 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42034 sys/param.h, as pathmax.h includes them.
42036 2001-09-03 Paul Eggert <eggert@twinsun.com>
42038 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42039 (jm_PREREQ_XGETCWD): New macro.
42041 * m4/getcwd.m4: New file.
42043 2001-09-03 Paul Eggert <eggert@twinsun.com>
42045 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42046 like the HAVE_GETCWD_NULL code.
42047 Include pathmax.h if not HAVE_GETCWD.
42048 Do not include xalloc.h.
42049 (INITIAL_BUFFER_SIZE): New symbol.
42050 Do not use xmalloc / xrealloc, since the caller is responsible for
42051 handling errors. Preserve errno around `free' during failure.
42052 Do not overrun buffer when using getwd.
42054 2001-09-03 Paul Eggert <eggert@twinsun.com>
42056 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42057 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42060 2001-09-03 Paul Eggert <eggert@twinsun.com>
42062 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42063 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
42064 spotted by Jim Meyering.
42066 2001-09-03 Jim Meyering <meyering@lucent.com>
42068 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42071 2001-09-02 Jim Meyering <meyering@lucent.com>
42073 * lib/error.c: Update from GNU libc.
42075 2001-09-01 Jim Meyering <meyering@lucent.com>
42077 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42080 2001-09-01 Jim Meyering <meyering@lucent.com>
42082 * lib/xreadlink.c: New file.
42083 * lib/xreadlink.h: New file.
42084 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42087 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42088 doesn't conflict with sparc Solaris 7's definition in
42089 /usr/include/sys/int_types.h.
42091 * lib/exclude.c: Use `""', not `<>' to #include non-system header
42093 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42094 and strncasecmp as r-values. Unixware didn't have declarations.
42096 2001-08-31 Paul Eggert <eggert@twinsun.com>
42098 * lib/xstrtol.h: Add copyright notice.
42099 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42100 LONGINT_INVALID_SUFFIX_CHAR.
42102 2001-08-31 Paul Eggert <eggert@twinsun.com>
42104 * lib/xstrtol.c (strtoimax): New decl.
42106 2001-08-31 Paul Eggert <eggert@twinsun.com>
42108 * lib/xgetcwd.c: Don't include pathmax.h.
42109 Include stdlib.h and unistd.h if available.
42111 (xmalloc, xstrdup, free): Remove decls.
42112 (xgetcwd): Don't assume sizes fit in unsigned.
42113 Check for overflow when computing sizes.
42114 Simplify reallocation code.
42116 2001-08-31 Paul Eggert <eggert@twinsun.com>
42118 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42119 a directory's st_size can have an arbitrary value, so the old
42120 usage could waste an arbitrary amount of memory. All uses
42122 * lib/savedir.h: Update prototype.
42124 2001-08-31 Paul Eggert <eggert@twinsun.com>
42126 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42128 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42131 Also, make the following further changes to make this file's
42132 configuration more similar to that of strtol.c:
42133 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
42134 (strtoumax, uintmax_t, strtoull, strtol): Remove.
42135 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42136 (strtoimax): Renamed from strtoumax. All uses of unsigned values
42137 changed to signed values.
42139 And make the following changes as well:
42140 Fix copyright notice, as 1999 was missing.
42141 (verify): New macro.
42142 (strtoimax): Check sizes at compile-time, not run-time.
42143 Prefer strtol to strtoll if both work.
42144 (main): Remove; it was not that useful and was a pain to maintain.
42146 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42148 2001-08-31 Jim Meyering <meyering@lucent.com>
42150 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42151 Use an initial, malloc'd, buffer of length 128 rather than
42152 a statically allocated one of length 1024.
42154 2001-08-30 Paul Eggert <eggert@twinsun.com>
42156 Simplify code, partly by assuming autoconf 2.52 semantics.
42158 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42160 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42161 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42163 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42164 Move AC_REQUIRE to next-to-top level, to avoid confusion.
42165 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42166 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42167 jm_AC_HEADER_INTTYPES_H.
42168 * m4/jm-macros.m4 (jm_MACROS): Likewise.
42170 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42172 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42173 Quote first arg of AC_DEFUN.
42174 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42175 since they are needed to parse the include file even if we need
42176 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
42177 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42178 but with opposite signedness.
42180 2001-08-30 Paul Eggert <eggert@twinsun.com>
42182 Merge 'exclude' changes from tar 1.13.22.
42183 This fixes one or two unlikely storage allocation overflow bugs,
42184 but doesn't change user-visible behavior otherwise.
42186 2001-08-30 Paul Eggert <eggert@twinsun.com>
42188 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42189 (jm_PREREQ_EXCLUDE): New macro.
42191 2001-08-30 Paul Eggert <eggert@twinsun.com>
42193 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42196 2001-08-30 Paul Eggert <eggert@twinsun.com>
42198 * lib/hash.c: Remove '2001' from copyright notice.
42200 2001-08-30 Paul Eggert <eggert@twinsun.com>
42202 * lib/full-write.h: New file.
42203 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42204 * lib/full-write.c: Correct credits, as cccp.c no longer
42205 exists and anyway it was so heavily changed from the old cccp
42206 code as to be unrecognizable. Include full-write.h.
42207 (full_write) Return size_t, with short writes meaning failure.
42208 All callers changed. This fixes a bug with large buffers
42210 * lib/utime.c: Include full-write.h.
42212 2001-08-30 Paul Eggert <eggert@twinsun.com>
42214 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42215 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42216 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42217 Include if available.
42218 (<xalloc.h>): Include
42219 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42220 (verify): New macro. Use it to verify that EXCLUDE macros do not
42221 collide with FNM macros.
42222 (struct patopts): New struct.
42223 (struct exclude): Use it, as exclude patterns now come with options.
42224 (new_exclude): Support above changes.
42225 (new_exclude, add_exclude_file):
42226 Initial size must now be a power of two to simplify overflow checking.
42227 (free_exclude, fnmatch_no_wildcards): New function.
42228 (excluded_filename): No longer requires options arg, as the options
42229 are determined by add_exclude. Now returns bool, not int.
42230 (excluded_filename, add_exclude):
42231 Add support for the fancy new exclusion options.
42232 (add_exclude, add_exclude_file): Now takes int options arg.
42233 Check for arithmetic overflow when computing sizes.
42234 (add_exclude_file): xrealloc might modify errno, so don't
42235 realloc until after errno might be used.
42237 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42239 (free_exclude): New decl.
42240 (add_exclude, add_exclude_file): Now takes int options arg.
42241 (excluded_filename): No longer requires options arg, as the options
42242 are determined by add_exclude. Now returns bool, not int.
42244 2001-08-30 Paul Eggert <eggert@twinsun.com>
42246 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42248 2001-08-27 Jim Meyering <meyering@lucent.com>
42250 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42252 * lib/version-etc.c (N_): Remove definition.
42253 Revert most of last change.
42254 Instead, simply don't mark the `Copyright...' string for translation.
42255 Based on advice from Paul Eggert.
42257 * lib/strtoxmax.c: Tweak comment.
42259 2001-08-26 Jim Meyering <meyering@lucent.com>
42261 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42263 * m4/xstrtoimax.m4: New file.
42264 * m4/xstrtoumax.m4: Add comments explaining why we
42265 AC_REPLACE_FUNCS(strtol).
42267 2001-08-26 Jim Meyering <meyering@lucent.com>
42269 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42270 of copyright with `%s' so translators don't get an untranslated
42272 (COPYRIGHT_YEAR): Define.
42273 (version_etc): Use fprintf rather than fputs.
42274 Suggestion from Ulrich Drepper.
42276 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42278 * lib/strtoll.c: New file, from GNU libc.
42279 * lib/xstrtoimax.c: New file.
42281 * lib/xstrtol.h: Add xstrtoimax.
42282 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
42283 * lib/strtoimax.c: New file. Likewise, but first define
42286 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42288 * lib/strtoxmax.c: ... then renamed to this.
42290 2001-08-18 Paul Eggert <eggert@twinsun.com>
42292 * m4/inttypes.m4: Add AC_PREREQ(2.13).
42293 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42294 (jm_AC_TYPE_INTMAX_T): New macro.
42295 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42297 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42299 * m4/longlong.m4: Renamed from ulonglong.m4.
42300 * m4/inttypes.m4: Renamed from inttypes_h.m4.
42301 * m4/uintmax_t.m4: Removed.
42303 2001-08-13 Paul Eggert <eggert@twinsun.com>
42305 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42306 Port to Solaris 8, where 'sed' requires a space after the 'r'
42307 command, and where sh dislikes "$/". Clean up the spacing a bit.
42308 Redirect output to $tmp just once.
42310 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
42312 * lib/addext.c (<errno.h>): Include.
42313 (errno): Declare if not defined.
42314 (addext): Work correctly when pathconf returns -1 and leaves
42315 errno alone because there is no limit. Also, work even if
42316 pathconf returns a value greater than SIZE_MAX.
42318 2001-08-12 Jim Meyering <meyering@lucent.com>
42320 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42321 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42322 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42323 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42324 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42325 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42326 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42327 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42328 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42329 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42330 utime.m4, utimes.m4, xstrtoumax.m4:
42331 Quote the first argument in each use of AC_DEFUN.
42333 2001-08-12 Jim Meyering <meyering@lucent.com>
42335 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42336 Simply `return getcwd (NULL, 0);'.
42337 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42338 Use 1300 as initial value for length, not PATH_MAX.
42340 * lib/pathmax.h: Clean up cpp syntax.
42342 2001-08-12 Jim Meyering <meyering@lucent.com>
42344 * lib/gettimeofday.c: New file.
42345 * lib/gtod.h: New file.
42346 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42348 2001-08-05 Jim Meyering <meyering@lucent.com>
42350 * m4/jm-macros.m4: Require autoconf-2.52.
42352 2001-08-04 Jim Meyering <meyering@lucent.com>
42354 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42355 stmt, to get in sync with glibc.
42357 2001-08-03 Paul Eggert <eggert@twinsun.com>
42359 The following changes are from gettext 0.10.39 as maintained by
42362 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42363 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42364 with inverted sense. All uses changed.
42366 * lib/mbswidth.c: Don't include <limits.h>.
42367 Include <stdlib.h> and <string.h> unconditionally.
42368 (iswcntrl, mbsinit, ISCNTRL): New macros.
42369 (mbsnwidth): Use K&R style function declarations.
42370 Don't bother checking for MB_LEN_MAX == 1, since the compiler
42371 can optimize it when MB_CUR_MAX == 1.
42372 The width of control characters is zero, not 1.
42374 2001-08-03 Paul Eggert <eggert@twinsun.com>
42376 The following changes are from gettext 0.10.39 as maintained by
42377 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42379 * m4/codeset.m4: Upgrade to serial AM1.
42380 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42381 all uses changed. Quote first arg of AC_DEFUN.
42382 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42384 * m4/iconv.m4: Upgrade to serial AM2.
42385 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42386 Add --with-libconv-prefix.
42387 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
42388 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42389 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42390 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42391 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42393 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42394 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42395 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42396 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42397 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42398 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42399 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42400 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42401 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42403 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42406 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42407 not the default value.
42409 2001-06-25 Bruno Haible <haible@clisp.cons.org>
42410 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42411 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
42412 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42413 Also check for iswcntrl, used for wcwidth fallback.
42414 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42417 2001-08-03 Jim Meyering <meyering@lucent.com>
42419 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42420 as it was in the original. Reported by Paul Eggert.
42422 2001-07-16 Jim Meyering <meyering@lucent.com>
42424 * m4/gettimeofday.m4: New file.
42425 Prompted by a report from Bernhard Baehr.
42427 2001-07-15 Jim Meyering <meyering@lucent.com>
42429 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42430 stuff. Now it's in ../Makefile.cfg.
42432 2001-07-15 Jim Meyering <meyering@lucent.com>
42434 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42435 (BUILT_SOURCES): Add unlocked-io.h.
42436 (io_functions): Define.
42437 (unlocked-io.h): New rule.
42438 (DISTCLEANFILES): Add unlocked-io.h.
42439 (all-local): Depend on unlocked-io.h, to ensure it is created.
42441 * lib/unlocked-io.hin: New file
42443 * lib/regex.c: Update from glibc.
42445 2001-07-05 Jim Meyering <meyering@lucent.com>
42447 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42449 (libfetish_a_SOURCES): Put all .h files here instead.
42450 Remove a thus-exposed (better checks in automake) duplicate and
42451 two unnecessary .h files.
42453 2001-07-04 Jim Meyering <meyering@lucent.com>
42455 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
42456 that generates jm-glibc-io.m4 so that it doesn't trigger any make
42459 2001-07-02 Jim Meyering <meyering@lucent.com>
42461 The following changes were prompted by suggestions from Bruno Haible.
42463 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42465 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42466 definition of EXTRA_DIST.
42467 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42468 ensure that the generated file is created/updated whenever the list
42469 of $(unlocked_functions) is changed.
42470 (jm-glibc-io.m4): New rule.
42471 (unlocked-io.h): New rule -- currently unused.
42473 2001-06-24 Jim Meyering <meyering@lucent.com>
42475 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42476 unmatched right bracket, rather than kludging it with an extra,
42477 falsely-matching quote in a comment. Patch by Akim Demaille.
42479 2001-06-11 Jim Meyering <meyering@lucent.com>
42481 * lib/regex.c: Update from GNU libc.
42483 2001-05-27 Jim Meyering <meyering@lucent.com>
42485 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42486 Check for ut_type in struct utmp.
42488 2001-05-27 Jim Meyering <meyering@lucent.com>
42490 * lib/readutmp.h (UT_TYPE): Define.
42492 2001-05-24 Jim Meyering <meyering@lucent.com>
42494 * lib/argmatch.c: Include "quote.h".
42495 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
42496 quote function. Reported by Göran Uddeborg.
42498 2001-05-22 Jim Meyering <meyering@lucent.com>
42500 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42501 now that we use the package-supplied version unconditionally.
42502 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42504 2001-05-21 Jim Meyering <meyering@lucent.com>
42506 * m4/regex.m4: Change a couple backticks to single quotes to avoid
42507 shell syntax errors.
42509 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42511 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42513 2001-05-20 Paul Eggert <eggert@twinsun.com>
42515 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42516 Don't bother to check library strftime, since
42517 we'll be using our own my_strftime function anyway.
42518 Define my_strftime instead of strftime.
42520 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
42522 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42523 which is not yet declared.
42525 2001-05-15 Jim Meyering <meyering@lucent.com>
42527 * m4/regex.m4: Use proper quoting so brackets appear in the test
42529 Reported by, and with help from, Bruno Haible.
42531 2001-05-13 Jim Meyering <meyering@lucent.com>
42533 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42536 2001-05-11 Paul Eggert <eggert@twinsun.com>
42538 dirname code cleanup. base_name now behaves more compatibly
42539 with POSIX basename when given file names that have trailing
42540 slashes, and similarly for dir_name. Add new primitives
42541 base_len and dir_len. Put the directory-name-related decls
42544 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42545 * lib/backupfile.c (base_name): Likewise.
42546 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42547 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42548 * lib/makepath.c (strip_trailing_slashes): Likewise.
42549 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42550 ISSLASH): Likewise.
42551 * lib/rename.c (strip_trailing_slashes): Likewise.
42552 * lib/same.c (base_name): Likewise.
42553 * lib/stripslash.c (ISSLASH): Likewise.
42555 * lib/addext.c: Include <dirname.h> after size_t is defined.
42556 * lib/backupfile.c: Likewise.
42558 * lib/addext.c (addext): Use base_len to trim redundant
42559 trailing slashes instead of doing it ourselves.
42560 But do not trim the last slash if it is not redundant.
42562 * lib/backupfile.c (find_backup_file_name,
42563 max_backup_version): Use base_len instead of rolling it ourselves.
42564 Handle the case of "" and (on DOS) "C:" correctly.
42566 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42567 needed. Include <string.h>, <dirname.h>.
42568 (base_name): Allow file names ending in slashes, other than names
42569 that are all slashes. In this case, return the basename followed
42570 by the slashes. This is more general, and can be used in places
42571 where the original base_name purposely had an assertion failure.
42572 (base_len): New function.
42574 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42575 Do not include <assert.h>; no longer needed.
42577 (memrchr): Remove decl.
42578 (dir_name_r): Remove.
42579 (dir_len): Renamed from dirlen. All callers changed.
42580 Rewrite in terms of base_name, for simplicity and consistency.
42581 (dir_name): Never return NULL. All callers changed.
42582 Do not include <stdlib.h> in test program; no longer needed.
42583 return 0; is fine for test program.
42585 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42587 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42589 * lib/path-concat.c (path_concat): Use base_len to compute
42590 base length, not strlen; this means we cannot rely on memcpy
42593 * lib/same.c (STREQ): Remove.
42594 (same_name): Handle the case where the basename ends in trailing '/'.
42596 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42597 a slash was stripped. Do not strip the last slash after a
42598 file system prefix.
42600 2001-05-11 Paul Eggert <eggert@twinsun.com>
42602 * lib/Makefile.am (libfetish_a_SOURCES):
42603 Add strftime.c, since we now compile it on all hosts.
42605 * lib/strftime.c (my_strftime):
42606 Define to nstrftime if emacs, but only if my_strftime is not defined.
42607 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42608 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42609 Add one more extra argument: a nanoseconds value.
42612 (my_strftime function): Add %N format.
42613 (emacs_strftimeu): Renamed from emacs_strftime,
42614 with extra ut argument.
42616 2001-05-09 Paul Eggert <eggert@twinsun.com>
42618 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42620 2001-04-21 Jim Meyering <meyering@lucent.com>
42622 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42625 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42627 * m4/ftruncate.m4: Check for chsize.
42628 Link with ftruncate.o unconditionally if ftruncate is missing.
42629 This was required when cross-compiling to i586-mingw32msvc.
42631 2001-04-08 Jim Meyering <meyering@lucent.com>
42633 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42634 recomputed; that's necessary when the offset spans a DST transition.
42635 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
42637 2001-04-02 Jim Meyering <meyering@lucent.com>
42639 * lib/regex.h, regex.c: Update from GNU libc.
42641 2001-03-24 Jim Meyering <meyering@lucent.com>
42643 * m4/jm-macros.m4: Require autoconf-2.49d.
42645 2001-03-20 Bruno Haible <haible@clisp.cons.org>
42647 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42649 2001-03-19 Paul Eggert <eggert@twinsun.com>
42651 * lib/version-etc.c (version_etc_copyright): Update to 2001.
42653 2001-03-17 Jim Meyering <meyering@lucent.com>
42655 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42656 now that the version in autoconf is equivalent.
42657 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42659 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42660 Suggestion from Akim Demaille.
42662 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42663 (jm_PREREQ_TEMPNAME): New function.
42665 2001-03-16 Paul Eggert <eggert@twinsun.com>
42667 * lib/tempname.c (uint64_t): Define to uintmax_t if
42668 not defined, and if UINT64_MAX is not defined.
42669 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42670 Reported by John David Anglin.
42672 2001-03-15 Bruno Haible <haible@clisp.cons.org>
42674 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42675 resolve alias if codeset is empty.
42676 * lib/config.charset (BeOS): Use wildcard syntax.
42678 2001-03-13 Jim Meyering <meyering@lucent.com>
42680 * lib/path-concat.c (path_concat)
42681 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42682 concatenating e.g., `C:' and `foo'.
42685 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42687 * lib/localcharset.c (locale_charset): Don't use
42688 setlocale(LC_CTYPE,NULL). Don't return NULL.
42689 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42691 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42693 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42694 support for DOS/DJGPP.
42696 2001-03-01 Paul Eggert <eggert@twinsun.com>
42698 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42699 lacks mkstemp. Compile our own tempname.c if we compile our own
42700 mkstemp.c, as mkstemp relies on tempname.
42702 2001-03-01 Jim Meyering <meyering@lucent.com>
42704 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42705 AH_VERBATIM really does output its argument verbatim.
42707 2001-02-28 Paul Eggert <eggert@twinsun.com>
42709 * lib/Makefile.am (libfetish_a_SOURCES):
42710 Add dup-safer.c, fopen-safer.c.
42711 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42713 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42714 * lib/unistd-safer.h: New files.
42716 2001-02-25 Paul Eggert <eggert@twinsun.com>
42718 The mkstemp replacement is taken from glibc 2.2.2, with some
42719 portability fixes for use outside glibc, as follows:
42721 * lib/tempname.c (struct_stat64): New macro.
42722 (direxists, __gen_tempname): Use it.
42723 This avoids a portability problem with Solaris 8.
42725 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42726 (<stddef.h>, <stdint.h>, <string.h>):
42727 Include only if STDC_HEADERS || _LIBC.
42728 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42729 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42730 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42731 (__set_errno): Define this macro if <errno.h> doesn't.
42732 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42733 Define these macros if <stdio.h> doesn't.
42734 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42735 Define these macros if <sys/stat.h>
42736 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42737 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42738 __xstat64): Define if not _LIBC.
42739 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42740 (__gen_tempname): Invoke gettimeofday only if
42741 HAVE_GETTIMEOFDAY || _LIBC;
42742 otherwise, fall back on plain "time".
42743 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42745 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42747 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42749 2001-02-18 Paul Eggert <eggert@twinsun.com>
42751 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
42753 2001-02-17 Paul Eggert <eggert@twinsun.com>
42755 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
42756 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
42757 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
42758 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42760 2001-02-17 Paul Eggert <eggert@twinsun.com>
42762 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
42763 Remove workaround macros for hosts that have mbrtowc but not
42764 mbstate_t, as we now insist on proper declarations for both
42765 before using mbrtowc.
42767 2001-02-17 Jim Meyering <meyering@lucent.com>
42769 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
42770 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
42771 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
42774 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
42775 rather than AC_CACHE_VAL.
42777 2001-02-17 Jim Meyering <meyering@lucent.com>
42779 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
42780 around included file name.
42782 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
42784 * lib/strftime.c: Update from GNU libc (the only changes were to
42787 2001-02-17 Jim Meyering <meyering@lucent.com>
42789 * lib/regex.c: Update from libc.
42791 2001-02-17 Bruno Haible <haible@clisp.cons.org>
42793 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
42796 2001-02-16 Paul Eggert <eggert@twinsun.com>
42798 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
42799 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
42800 Reported by Mark Hounschell via Paul Eggert.
42802 2001-02-07 Jim Meyering <meyering@lucent.com>
42804 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
42806 2001-02-05 Jim Meyering <meyering@lucent.com>
42808 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
42809 it includes the patch required for `large file' support with at least
42810 HP-UX's 10.20 /bin/cc.
42812 2001-02-03 Jim Meyering <meyering@lucent.com>
42814 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
42815 AS_IF, now that it works once again (mysteriously).
42816 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42818 2001-01-30 Jim Meyering <meyering@lucent.com>
42820 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
42821 * m4/chown.m4: Rename conftestchown to conftest.chown.
42822 * m4/rename.m4: s/conftestdir/conftest.d1/ and
42823 s/conftestdir2/conftest.d2/.
42824 * m4/utimes.m4: s/conftestdata/conftest.data/
42825 Inspired by Pavel Roskin's change in autoconf.
42827 2001-01-30 Bruno Haible <haible@clisp.cons.org>
42829 * lib/config.charset: Update for FreeBSD 4.2.
42831 2001-01-27 Jim Meyering <meyering@lucent.com>
42833 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
42835 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42837 2001-01-26 Jim Meyering <meyering@lucent.com>
42839 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
42840 quotearg.c includes it.
42842 2001-01-26 Jim Meyering <meyering@lucent.com>
42844 * lib/quotearg.c: Include stddef.h.
42845 * lib/quote.c: Include stddef.h.
42846 Reported by Axel Kittenberger.
42848 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
42849 line in double quotes so that it evokes a better diagnostic.
42850 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
42851 Reported by Axel Kittenberger.
42853 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
42855 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
42856 as if it was a `charset'.
42858 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42860 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
42863 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42865 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
42866 to avoid a warning. Add back 'const' to inptr.
42868 2001-01-20 Jim Meyering <meyering@lucent.com>
42870 Be sure that headers are checked before used in code compiled
42871 for the type checks.
42872 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
42873 In place of that, invoke jm_CHECK_ALL_TYPES.
42874 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
42875 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
42876 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
42877 The check for ssize_t was mistakenly run before the test for unistd.h.
42879 The configure-time check for stdbool.h was missing.
42880 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
42881 (jm_PREREQ_HASH): New function.
42883 2001-01-17 Jim Meyering <meyering@lucent.com>
42885 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
42886 for autoconf-2.49c.
42887 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
42889 2001-01-16 Jim Meyering <meyering@lucent.com>
42891 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
42894 2001-01-14 Jim Meyering <meyering@lucent.com>
42896 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
42897 foo and bar. Create conftestdir/ in the script, not in the C code.
42898 Remove directories in the script, not in the C code.
42899 Remove conftestdir{,2} before trying to create the directory.
42900 Make the entire configure script fail if the mkdir fails.
42902 2001-01-14 Jim Meyering <meyering@lucent.com>
42904 * lib/rename.c: New file. From Volker Borchert.
42905 Include stdlib.h, string.h or strings.h, and xalloc.h.
42906 Use strip_trailing_slashes rather than open-coding it.
42908 2001-01-03 Paul Eggert <eggert@twinsun.com>
42910 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
42912 2001-01-03 Jim Meyering <meyering@lucent.com>
42914 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
42915 of local `inptr' to avoid warning with some system declarations of
42918 2001-01-02 Volker Borchert <bt@teknon.de>
42920 * m4/rename.m4: New file.
42921 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
42923 2001-01-01 Jim Meyering <meyering@lucent.com>
42925 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
42926 even on systems with utmpx.h. It's necessary for the declaration of
42927 utmp's ut_user member. Reported by Andreas Jaeger.
42929 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
42930 available. They are required for the declarations of getgrgid and
42932 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
42933 Reported by Andreas Jaeger.
42935 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
42937 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
42938 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
42939 so `make install' also works in VPATH builds.
42941 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
42943 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
42944 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
42945 can be used in subdirectories.
42947 2000-12-29 Paul Eggert <eggert@twinsun.com>
42949 * lib/modechange.c: Do not assume that mode_t uses the
42950 traditional octal encoding. E.g. "chmod 1 FOO" should set
42951 the other-execute bit of FOO even if S_IXOTH != 1.
42953 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
42954 WOTH, XOTH, ALLM): New macros.
42955 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
42956 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
42958 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
42959 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
42961 No need to use uintmax_t; unsigned long is long enough.
42962 Don't bother to get suffix since we don't use it.
42964 2000-12-26 Jim Meyering <meyering@lucent.com>
42966 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
42967 better with autoheader.
42969 2000-12-24 Jim Meyering <meyering@lucent.com>
42971 * lib/hash.c (is_prime): Return explicit boolean values.
42972 (hash_get_first): Return NULL to appease Irix5.6's 89.
42973 Reported by Nelson Beebe.
42975 2000-12-19 Bruno Haible <haible@clisp.cons.org>
42977 * lib/localcharset.c (locale_charset): Add support for Win32.
42979 2000-12-18 Paul Eggert <eggert@twinsun.com>
42981 * lib/physmem.h, lib/physmem.c: New files.
42983 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
42984 (noinst_HEADERS): Add physmem.h.
42986 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
42987 't' for compatibility with Solaris 8 sort.
42989 2000-12-18 Bruno Haible <haible@clisp.cons.org>
42991 * lib/config.charset: Add support for BeOS.
42993 2000-12-17 Jim Meyering <meyering@lucent.com>
42995 * m4/dos.m4 (jm_AC_DOS): New file and macro.
42996 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42998 2000-12-16 Jim Meyering <meyering@lucent.com>
43000 This bug had a serious impact on chown: `chown N:M FILE' (for integer
43001 N and M) would have treated it like `chown N:N FILE'.
43003 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43005 2000-12-16 Jim Meyering <meyering@lucent.com>
43007 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43008 SHELLS_FILE to a file name that's useful on djgpp systems.
43010 (ADDITIONAL_DEFAULT_SHELLS): Define.
43011 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43012 Based mostly on a patch from Prashant TR.
43014 2000-12-16 Bruno Haible <haible@clisp.cons.org>
43016 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43017 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43018 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43020 2000-12-08 Andreas Schwab <schwab@suse.de>
43022 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43023 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43025 2000-12-07 Jim Meyering <meyering@lucent.com>
43027 * lib/stripslash.c (ISSLASH): Define.
43028 (strip_trailing_slashes): Use ISSLASH rather than comparing against
43032 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43033 (dir_name_r): Declare this function as static.
43034 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43035 manifest itself on a name containing a mix of slashes and
43037 Make this function work with names starting with a DOS-style
43038 drive letter and colon prefix.
43039 (dir_name): Append `.' if necessary.
43040 Based mostly on patches from Prashant TR and Eli Zaretskii.
43042 * lib/dirname.h (dir_name_r): Remove prototype.
43044 2000-12-06 Paul Eggert <eggert@twinsun.com>
43046 * m4/off_t-format.m4: Remove this file.
43047 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43049 2000-12-06 Jim Meyering <meyering@lucent.com>
43051 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43052 replacement strtoull, we may well need the replacement strtoul, too.
43053 Check for declarations of strtoul and strtoull.
43054 Check for strtol. Mainly as a cue to cause automake to include
43055 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43056 Check for limits.h -- strtol.c needs it.
43058 2000-12-05 Jim Meyering <meyering@lucent.com>
43060 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43062 2000-12-04 Jim Meyering <meyering@lucent.com>
43064 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43065 Also include memory.h, stdlib.h, unistd.h if appropriate.
43066 Reported by Andreas Jaeger (conflicting declaration of malloc).
43068 2000-12-02 Jim Meyering <meyering@lucent.com>
43070 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43071 * m4/jm-macros.m4 (jm_MACROS): require it.
43073 2000-12-02 Jim Meyering <meyering@lucent.com>
43075 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43077 2000-12-01 Paul Eggert <eggert@twinsun.com>
43079 * lib/memrchr.c: Include <config.h> before any system include file.
43081 2000-11-30 Jim Meyering <meyering@lucent.com>
43083 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43085 2000-11-30 Jim Meyering <meyering@lucent.com>
43087 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43089 2000-11-29 Paul Eggert <eggert@twinsun.com>
43091 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43093 2000-11-26 Jim Meyering <meyering@lucent.com>
43095 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
43097 2000-11-22 Paul Eggert <eggert@twinsun.com>
43099 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43100 size of (size_t) -1; it's not portable.
43102 2000-11-17 Jim Meyering <meyering@lucent.com>
43104 * lib/strstr.c: Update from GNU libc.
43106 2000-11-17 Akim Demaille <akim@epita.fr>
43108 * lib/obstack.h: Formatting changes.
43109 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43110 prevent type checking.
43111 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43112 cast the value to (void *): assigning a `foo *' to a `void *'
43114 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43116 2000-11-16 Jim Meyering <meyering@lucent.com>
43118 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43120 2000-11-11 Jim Meyering <meyering@lucent.com>
43122 * lib/error.c: Add a couple #includes, merging from GNU libc version.
43124 2000-11-10 Jim Meyering <meyering@lucent.com>
43126 * lib/obstack.h: Update from GNU libc.
43127 * lib/obstack.c: Likewise.
43129 2000-11-08 Bruno Haible <haible@clisp.cons.org>
43131 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43133 2000-11-06 Paul Eggert <eggert@twinsun.com>
43135 * lib/getusershell.c (setusershell): Use rewind rather than
43136 fseek/fseeko, to avoid configuration hassles with fseeko.
43137 Don't bother opening SHELLS_FILE if shellstream is NULL;
43138 it's not necessary.
43140 2000-11-05 Jim Meyering <meyering@lucent.com>
43142 * lib/makepath.h (make_dir): Declare.
43143 * lib/makepath.c (make_dir): Remove `static' attribute.
43146 2000-11-04 Jim Meyering <meyering@lucent.com>
43148 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43150 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
43152 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
43153 last one in a bucket, advance to the next bucket.
43155 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
43157 * lib/fnmatch.c: Do not comment out all the code if we are using
43158 the GNU C library, because in some cases we are replacing buggy
43159 code in the GNU C library itself.
43161 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
43163 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43164 (regex_compile): Catch bogus \(\1\).
43166 2000-10-30 Paul Eggert <eggert@twinsun.com>
43168 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43169 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43170 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43172 2000-10-30 Paul Eggert <eggert@twinsun.com>
43174 * lib/error.h, getline.h, modechange.h:
43175 Remove "2000" from Copyright line, as the file hasn't been
43176 changed this year other than in the copyright notice.
43178 * lib/xalloc.h: Add "2000" to Copyright line, as this file
43179 was changed this year.
43181 2000-10-29 Jim Meyering <meyering@lucent.com>
43183 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43185 * m4/ls-mntd-fs.m4: Likewise
43187 2000-10-29 Jim Meyering <meyering@lucent.com>
43189 * lib/xstat.in: Fix grammar in comment.
43191 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
43193 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43194 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43195 doesn't define __restrict_arr.
43197 2000-10-28 Jim Meyering <meyering@lucent.com>
43199 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43200 (jm_PREREQ_MEMCHR): New function.
43202 2000-10-28 Jim Meyering <meyering@lucent.com>
43204 * lib/memchr.c: Update from libc.
43205 Adjust for portability:
43206 [HAVE_STDLIB_H]: Include stdlib.h.
43207 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43208 Undef __memchr, too.
43209 [!weak_alias]: Define __memchr to memchr.
43211 * lib/regex.c: Update from libc.
43212 * lib/regex.h: Likewise.
43213 * lib/getopt1.c: Likewise.
43214 * lib/memcmp.c: Likewise.
43216 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43217 Avoid using fseek, when possible -- it's broken by design.
43218 Patch by Ulrich Drepper.
43220 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
43222 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43223 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43224 Giving in to popular pressure to shut up the compiler with casts.
43226 2000-10-26 Jim Meyering <meyering@lucent.com>
43228 * lib/strftime.c: Update from libc.
43230 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
43232 * regex.c: More `unsigned char' -> `re_char' changes.
43233 Also change several `int' into `re_wchar_t'.
43234 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43235 (PUSH_FAILURE_POINTER): Don't cast any more.
43236 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43237 We want GCC to complain, since this piece of code makes
43238 re_match non-reentrant, which *should* be fixed.
43239 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43240 (EXTEND_BUFFER): Use RETALLOC.
43241 (SET_LIST_BIT): Don't cast.
43242 (re_wchar_t): New type.
43243 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43244 that those two functions will always properly return.
43245 (IMMEDIATE_QUIT_CHECK): Cast to void.
43246 (analyse_first): Use recursion rather than an explicit stack.
43247 (re_compile_fastmap): Can't fail anymore.
43248 (re_search_2): Don't check re_compile_fastmap for failure.
43249 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43250 Now also sets the new value (passed in a new argument).
43251 (re_match_2_internal): Use it.
43252 Also, use a new var `reg' of type size_t when looping through regs
43253 rather than reuse the inappropriate `mcnt'.
43255 2000-10-25 Jim Meyering <meyering@lucent.com>
43257 * lib/obstack.c: Update from libc.
43259 2000-10-24 Kenichi Handa <handa@etl.go.jp>
43261 * regex.c (regex_compile): Change the way of handling a range from
43262 a char less than 256 to a char not less than 256.
43264 2000-10-24 Andrew Innes <andrewi@gnu.org>
43266 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43268 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43269 so that re_search functions only quit when callers expect them to.
43271 2000-10-23 Jim Meyering <meyering@lucent.com>
43273 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43274 wrong. That set_locale call must not have any side effects.
43277 2000-10-22 Jim Meyering <meyering@lucent.com>
43279 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43280 [CYCLIC]: Remove now-unused definition.
43282 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43283 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43284 Suggestion from Ulrich Drepper.
43286 2000-10-21 Jim Meyering <meyering@lucent.com>
43288 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43289 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43290 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43292 2000-10-21 Jim Meyering <meyering@lucent.com>
43294 * lib/dirname.c (memrchr): Declare if necessary.
43295 (dir_name): Remove the restriction that there be no
43296 trailing slashes. Now, this code skips past them, effectively
43298 [TEST_DIRNAME] (main): New unit tests.
43300 * lib/memrchr.c: New file from GNU libc.
43301 Undef __memrchr, too.
43302 [!weak_alias]: Define __memrchr to memrchr.
43303 Guard weak_alias use with `#ifdef weak_alias'.
43305 2000-10-21 Jim Meyering <meyering@lucent.com>
43307 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43308 (dir_name): Use dir_name_r.
43309 * lib/dirname.h (dir_name_r): Declare it.
43311 2000-10-17 Jim Meyering <meyering@lucent.com>
43313 * lib/quote.h (PARAMS): Define and use.
43314 Reported by Akim Demaille.
43316 * lib/getopt.c: Update from libc.
43318 2000-10-16 Jim Meyering <meyering@lucent.com>
43320 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43324 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
43326 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43328 2000-09-25 Jim Meyering <meyering@lucent.com>
43330 * lib/md5.h (rol): Define (from GnuPG).
43332 * lib/sha.c: Give credit (GnuPG) where due.
43333 (M): Use rol rather than open-coding it.
43334 Add a FIXME comment.
43336 2000-09-21 Jim Meyering <meyering@lucent.com>
43338 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43339 Reported by Michael Stone.
43341 2000-09-20 Jim Meyering <meyering@lucent.com>
43343 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43344 (noinst_HEADERS): Add sha.h.
43345 Based on code from Scott G. Miller and from GnuPG.
43347 2000-09-18 Jim Meyering <meyering@lucent.com>
43349 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43350 LIBS. Otherwise, everyone ends up linking with -lelf for some
43352 Reported by Mike Stone.
43354 2000-09-15 Jim Meyering <meyering@lucent.com>
43356 * lib/regex.c: Update from libc.
43358 2000-09-10 Jim Meyering <meyering@lucent.com>
43360 * lib/getopt.c (_getopt_internal): Update from glibc.
43362 2000-09-09 Jim Meyering <meyering@lucent.com>
43364 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43365 think it should be used as a general replacement for isascii.
43366 * lib/fnmatch.c: Likewise.
43367 * lib/mbswidth.c: Likewise
43368 * lib/regex.c: Likewise.
43371 * lib/userspec.c: Include sys/param.h and limits.h.
43373 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43374 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43375 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43376 UID, GID. Check range.
43378 2000-09-06 Jim Meyering <meyering@lucent.com>
43380 * lib/getopt.c (_getopt_internal): Update from glibc.
43382 2000-08-30 Jim Meyering <meyering@lucent.com>
43384 * lib/strftime.c: Merge in changes from GNU libc.
43386 2000-08-26 Jim Meyering <meyering@lucent.com>
43388 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43389 * m4/fpending.m4: New file.
43391 2000-08-26 Jim Meyering <meyering@lucent.com>
43393 * lib/closeout.c: Include "__fpending.h".
43394 (close_stdout_status): Return right away if there's nothing to flush.
43396 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43397 * lib/__fpending.c: New file.
43398 * lib/__fpending.h: New file.
43400 2000-08-20 Jim Meyering <meyering@lucent.com>
43402 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43403 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
43404 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
43406 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
43408 Improve fileutils installation on systems where running
43409 programs (like install) can't be unlinked.
43410 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43411 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43413 2000-08-07 Paul Eggert <eggert@twinsun.com>
43415 Standardize on "memory exhausted" instead of "Memory exhausted"
43416 or "virtual memory exhausted".
43417 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43418 "virtual memory exhausted".
43419 * lib/same.c (same_name): Invoke xalloc_die instead of printing
43421 * lib/userspec.c (parse_user_spec): Likewise.
43422 * lib/bumpalloc.h: comment fix
43423 * lib/same.c, userspec.c: Include xalloc.h.
43425 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43426 not char *const and pointing to a constant array.
43427 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43428 (xrealloc): Comment fix.
43430 * lib/userspec.c (parse_user_spec):
43431 Don't translate a message until just before returning,
43432 to avoid unnecessary translation.
43434 2000-08-07 Jim Meyering <meyering@lucent.com>
43436 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43437 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43438 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43439 getgroups.c, gethostname.c, getopt.h, group-member.c,
43440 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43441 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43442 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43443 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43444 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43445 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43446 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43447 yesno.c: Back out Copyright date changes for each file with no change
43448 this year. This eases coordination with other programs using the same
43449 source code modules. From Paul Eggert.
43451 2000-08-06 Paul Eggert <eggert@twinsun.com>
43453 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43454 not char, for compatibility with glibc 2.1.3 strftime.c.
43456 2000-08-03 Greg McGary <greg@mcgary.org>
43458 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43459 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43460 (EXTEND_BUFFER): Use them.
43462 2000-08-01 Jim Meyering <meyering@lucent.com>
43464 * lib/dirname.c (ISSLASH): Define.
43465 (BACKSLASH_IS_PATH_SEPARATOR): Define.
43466 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43467 both `\' and `/' may be use as path separators.
43468 Based on a patch from Prashant TR.
43470 2000-07-31 Paul Eggert <eggert@twinsun.com>
43472 * lib/quotearg.c (quotearg_n_options): Don't make the initial
43473 slot vector a constant, since it might get modified.
43475 2000-07-31 Jim Meyering <meyering@lucent.com>
43477 * lib/xmalloc.c: Use `virtual memory exhausted', not
43478 `Memory exhausted'.
43479 * lib/obstack.c (print_and_abort): Likewise.
43481 2000-07-30 Paul Eggert <eggert@twinsun.com>
43483 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43484 buffer, so that the caller can always quote one small
43485 component of a "memory exhausted" message in slot 0.
43486 From a suggestion by Jim Meyering.
43488 2000-07-30 Jim Meyering <meyering@lucent.com>
43490 * lib/makepath.c (make_path): Quote the other instance, too.
43492 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43493 (STATIC_BUF_SIZE): Define.
43494 (quotearg_n_options): Use only statically allocated storage when
43495 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43496 than STATIC_BUF_SIZE.
43498 2000-07-29 Jim Meyering <meyering@lucent.com>
43500 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43501 * lib/dirname.c (dir_name): Likewise.
43503 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43506 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43507 (dir_name): Assert that there are no trailing slashes.
43509 2000-07-29 Bruno Haible <haible@clisp.cons.org>
43511 * lib/mbswidth.h (mbswidth): Add a flags argument.
43512 (mbswidth): New declaration.
43513 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43514 * lib/mbswidth.c (mbswidth): Add a flags argument.
43515 (mbsnwidth): New function.
43517 2000-07-24 Jim Meyering <meyering@lucent.com>
43519 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
43521 2000-07-23 Paul Eggert <eggert@twinsun.com>
43523 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43525 2000-07-23 Paul Eggert <eggert@twinsun.com>
43527 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43528 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43529 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43530 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43531 invoke multibyte primitives.
43533 2000-07-23 Paul Eggert <eggert@twinsun.com>
43536 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43537 so that mbstate_t is always defined.
43539 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43540 be 1 in at least one GCC installation, and this configuration
43541 error is likely to be common. Ignoring MB_LEN_MAX hurts
43542 performance on hosts that have mbrtowc but have only unibyte
43543 locales, but I assume these hosts are rare.
43545 2000-07-23 Paul Eggert <eggert@twinsun.com>
43547 * lib/mbswidth.c (_XOPEN_SOURCE):
43548 Don't define; this causes problems on Solaris 7.
43549 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43551 2000-07-23 Jim Meyering <meyering@lucent.com>
43553 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43554 too: getgrgid, getpwuid, getuid.
43556 2000-07-23 Jim Meyering <meyering@lucent.com>
43558 * lib/basename.c (base_name): Add an assertion.
43560 2000-07-23 Bruno Haible <haible@clisp.cons.org>
43562 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43563 shadow its mbsinit function.
43565 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43567 * lib/mbswidth.h: New file.
43568 * lib/mbswidth.c: New file.
43569 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43570 (noinst_HEADERS): Add mbswidth.h.
43572 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43574 * lib/config.charset: Add support for FreeBSD. Improve support for
43577 2000-07-16 Bruno Haible <haible@clisp.cons.org>
43579 * m4/mbswidth.m4: New file.
43580 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43582 2000-07-15 Jim Meyering <meyering@lucent.com>
43584 * lib/makepath.c: Include quote.h.
43585 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43586 corresponding argument in a `quote (...)' call.
43587 Give better diagnostics.
43589 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43590 (noinst_HEADERS): Add quote.h.
43592 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
43593 from tar's src/misc.c.
43594 * lib/quote.h: New file. Prototypes for same.
43596 2000-07-14 Paul Eggert <eggert@twinsun.com>
43598 From a suggestion by Bruno Haible.
43599 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43600 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43601 to decide whether to define the BeOS workaround macro;
43602 this adjusts to the change to AC_MBSTATE_T.
43604 2000-07-14 Jim Meyering <meyering@lucent.com>
43606 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43607 jm_AC_TYPE_UINTMAX_T.
43609 2000-07-13 Paul Eggert <eggert@twinsun.com>
43611 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43613 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43614 quotearg_buffer_restyled): Add support for
43615 clocale_quoting_style. Undo previous change to
43616 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43617 and "{RIGHT QUOTATION MARK}" msgids.
43619 2000-07-10 Paul Eggert <eggert@twinsun.com>
43621 From a suggestion by Bruno Haible.
43622 * m4/mbstate_t.m4 (AC_MBSTATE_T):
43623 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
43624 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43625 and mbstate_t, to a single-part test that simply defines mbstate_t.
43626 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43627 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43629 2000-07-10 Jim Meyering <meyering@lucent.com>
43631 * m4/strerror_r.m4: Mirror the correction made in autoconf.
43633 * m4/gnu-source.m4: Output to confdefs.h directly.
43634 Suggestion from Akim Demaille.
43636 2000-07-09 Paul Eggert <eggert@twinsun.com>
43638 The old behavior of quoting `like this' doesn't look good with
43639 newer, ISO-style fonts. See:
43640 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43642 Instead, quote "like this" by default. Let the translator
43643 tailor the locale-specific quoting behavior by providing
43644 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43646 * lib/quotearg.c (N_): New macro.
43647 (gettext_default): New function.
43648 (quotearg_buffer_restyled): Use
43649 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43650 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43652 2000-07-09 Jim Meyering <meyering@lucent.com>
43654 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43655 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
43657 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43658 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43660 2000-07-09 Jim Meyering <meyering@lucent.com>
43662 * lib/Most files: Update copyright dates to include 2000.
43664 2000-07-08 Jim Meyering <meyering@lucent.com>
43666 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43668 (xgethostname): Remove now-unnecessary #ifdef.
43669 Move declaration of `err' into loop where it's used.
43671 2000-07-05 Paul Eggert <eggert@twinsun.com>
43672 and Bruno Haible <haible@clisp.cons.org>
43674 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43675 only if the test for an object-type mbstate_t fails. This
43676 prevents us from mistakenly reporting that mbstate_t is a
43677 system object type after we "#define mbstate_t int" to work
43680 2000-07-05 Paul Eggert <eggert@twinsun.com>
43681 and Bruno Haible <haible@clisp.cons.org>
43683 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43685 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43687 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43689 Include <ctype.h> for use of isalpha.
43691 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43693 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43694 by allocating a larger buffer. Test the gethostname return value for
43695 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
43696 returns an error and ENAMETOOLONG isn't defined.
43698 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43700 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43703 2000-07-04 Jim Meyering <meyering@lucent.com>
43705 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43706 of the deprecated AC_CHECKING.
43708 2000-07-04 Jim Meyering <meyering@lucent.com>
43710 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43711 Reported by Bruno Haible.
43713 2000-07-04 Jim Meyering <meyering@lucent.com>
43715 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43716 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
43719 2000-07-03 Paul Eggert <eggert@twinsun.com>
43721 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43722 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43724 2000-07-03 Paul Eggert <eggert@twinsun.com>
43725 and Bruno Haible <haible@clisp.cons.org>
43727 * lib/quotearg.c (mbrtowc):
43728 Assign to *pwc, and return 1 only if result is nonzero.
43729 (iswprint): Use ISPRINT when substituting our own mbrtowc.
43731 2000-07-03 Jim Meyering <meyering@lucent.com>
43733 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43735 2000-07-03 Jim Meyering <meyering@lucent.com>
43737 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43738 This is necessary to get a definition of e.g., UTMP_FILE on
43742 2000-07-02 Jim Meyering <meyering@lucent.com>
43744 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43746 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43747 AC_LIBOBJ(function_name).
43748 * m4/chown.m4: Likewise.
43749 * m4/fnmatch.m4: Likewise.
43750 * m4/ftruncate.m4: Likewise.
43751 * m4/getgroups.m4: Likewise.
43752 * m4/getline.m4: Likewise.
43753 * m4/group-member.m4: Likewise.
43754 * m4/jm-macros.m4: Likewise.
43755 * m4/lstat.m4: Likewise.
43756 * m4/malloc.m4: Likewise.
43757 * m4/memcmp.m4: Likewise.
43758 * m4/nanosleep.m4: Likewise.
43759 * m4/putenv.m4: Likewise.
43760 * m4/realloc.m4: Likewise.
43761 * m4/regex.m4: Likewise.
43762 * m4/stat.m4: Likewise.
43763 * m4/strftime.m4: Likewise.
43765 2000-07-02 Jim Meyering <meyering@lucent.com>
43767 * lib/quotearg.c (mbstate_t): Don't define here.
43769 2000-07-02 Jim Meyering <meyering@lucent.com>
43771 * lib/nanosleep.c (SIGCONT): Define if not already defined.
43773 2000-07-01 Jim Meyering <meyering@lucent.com>
43775 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
43777 2000-07-01 Jim Meyering <meyering@lucent.com>
43779 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
43782 2000-07-01 Bruno Haible <haible@clisp.cons.org>
43784 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
43785 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
43787 2000-07-01 Bruno Haible <haible@clisp.cons.org>
43789 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
43790 per change in ../m4/ls-mntd-fs.m4.
43791 (read_filesystem_list): Ignore symbolic links.
43793 2000-06-29 Jim Meyering <meyering@lucent.com>
43795 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
43796 for declaration of strcmp.
43798 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
43800 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
43801 Avoid warning by casting result to `char *' to remove `const'.
43803 2000-06-28 Jim Meyering <meyering@lucent.com>
43805 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
43806 included by quotearg.c, for which we perform this test. From
43809 2000-06-27 Bruno Haible <haible@clisp.cons.org>
43811 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
43812 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
43813 <utmpx.h> exists, put readutmp.o into LIBOBJS.
43815 2000-06-27 Bruno Haible <haible@clisp.cons.org>
43817 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
43819 2000-06-26 Paul Eggert <eggert@twinsun.com>
43821 savedir now sets errno on failure and invokes xmalloc to get memory.
43822 Fix a couple of other minor bugs while we're at it.
43824 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
43825 (NAMLEN): Remove macro.
43826 (malloc, realloc): Remove decls.
43827 (stpcpy): Likewise.
43828 ("xalloc.h"): Include.
43829 (NAME_SIZE_DEFAULT): New macro.
43830 (savedir): Use xmalloc / xrealloc to allocate memory.
43831 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
43832 Skip "" directory entries.
43833 Use strlen to calculate directory entry length, since the old method
43834 is rarely used these days and isn't worth supporting.
43835 Don't use a pointer after freeing it.
43836 Check for integer overflow when calculating allocation size.
43837 Use memcpy to copy entries, instead of stpcpy.
43838 Set errno properly when returning NULL.
43839 Check for readdir error.
43841 2000-06-26 Jim Meyering <meyering@lucent.com>
43843 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
43845 2000-06-25 Jim Meyering <meyering@lucent.com>
43847 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
43848 Linux header bug when _XOPEN_SOURCE is defined to 500.
43850 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43852 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
43855 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43857 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
43859 Don't include <stdlib.h>. Don't declare malloc, realloc.
43861 2000-06-24 Jim Meyering <meyering@lucent.com>
43863 * m4/strerror_r.m4: Revive this file -- to try out an experimental
43864 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
43865 for which strerror does return char*, but which lacks a conveniently
43866 accessible declaration of the function. If the compile-test says
43867 strerror_r doesn't work, then resort to a `run'-test that works on
43868 BeOS and segfaults on DEC Unix.
43870 2000-06-24 Jim Meyering <meyering@lucent.com>
43872 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
43874 2000-06-23 Paul Eggert <eggert@twinsun.com>
43876 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
43877 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
43879 2000-06-23 Paul Eggert <eggert@twinsun.com>
43881 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
43882 (mbrtowc, mbstate_t): Define substitutes if
43883 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
43884 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
43885 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
43887 2000-06-23 Jim Meyering <meyering@lucent.com>
43889 * m4/afs.m4: Add missing AC_MSG_RESULT.
43890 Reported by Bruno Haible.
43892 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
43893 Suggestion from Bruno Haible.
43895 2000-06-23 Jim Meyering <meyering@lucent.com>
43897 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
43899 2000-06-21 Jim Meyering <meyering@lucent.com>
43901 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
43903 2000-06-21 Jim Meyering <meyering@lucent.com>
43905 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
43906 (noinst_HEADERS): Add getstr.h.
43908 * lib/getline.c (getstr): Move into a separate file.
43909 * lib/getstr.c (getstr): New file, extracted from getline.c, with
43910 the following changes: new parameter, delim2; both delim[12]
43911 parameters have type `int', not `char'. The latter would lose
43912 with 8-bit delimiters.
43913 * lib/getstr.h: New file.
43915 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43917 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
43918 than 1024, return a memory chunk of least possible size, instead
43919 of size PATH_MAX + 2. In the loop, increment the size proportionally.
43920 Use free/xmalloc instead of xrealloc to avoid copying for very long
43923 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43925 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
43928 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43930 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
43931 address, not strdup. Include <stdlib.h> and don't declare free().
43933 2000-06-19 Jim Meyering <meyering@lucent.com>
43935 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
43937 2000-06-18 Jim Meyering <meyering@lucent.com>
43939 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
43941 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
43942 `checking whether...' message to be consistent with that of the
43945 2000-06-18 Jim Meyering <meyering@lucent.com>
43947 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
43948 Besides, these days every porting target provides a mkdir function.
43950 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
43951 needed. (this snippet comes from src/system.h).
43953 2000-06-16 Bruno Haible <haible@clisp.cons.org>
43955 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
43957 2000-06-15 Paul Eggert <eggert@twinsun.com>
43959 * lib/human.c (adjust_value): New function.
43960 (human_readable_inexact): Apply rounding style even when
43961 printing approximate values.
43963 2000-06-14 Paul Eggert <eggert@twinsun.com>
43965 * lib/human.c (human_readable_inexact): Allow an input block
43966 size that is not a multiple of the output block size, and vice versa.
43967 Reported by Piergiorgio Sartor.
43969 2000-06-14 Paul Eggert <eggert@twinsun.com>
43971 * lib/getdate.y (get_date): Apply relative times after time
43972 zone indicator, not before. Reported by Todd A. Jacobs.
43974 2000-06-13 Jim Meyering <meyering@lucent.com>
43976 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
43978 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
43980 2000-06-12 Paul Eggert <eggert@twinsun.com>
43982 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
43984 2000-06-12 Jim Meyering <meyering@lucent.com>
43986 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
43987 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
43989 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
43990 the optional argument, `lib'.
43992 2000-06-08 Jim Meyering <meyering@lucent.com>
43994 * m4/largefile.m4: Remove file (now that it's part of autoconf).
43996 2000-06-04 Paul Eggert <eggert@twinsun.com>
43998 Rewrite largefile configuration so that we don't need to run
43999 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
44000 AC_CANONICAL_HOST in configure.in -- jmm]
44002 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44003 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44004 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44005 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44006 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44008 Instead of inspecting the output of getconf, try to compile the
44009 test program without and with the macro definition.
44010 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44011 for getconf. Instead, check for the needed flags by compiling
44014 2000-06-04 Paul Eggert <eggert@twinsun.com>
44016 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44018 2000-06-04 Jim Meyering <meyering@lucent.com>
44020 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44021 SunOS 4.1.4 for which gid_t is an unsigned type.
44023 2000-06-03 Jim Meyering <meyering@lucent.com>
44025 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44026 now that autoconf requires that.
44028 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44029 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44030 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44032 2000-06-03 Jim Meyering <meyering@lucent.com>
44034 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44036 2000-06-03 Bruno Haible <haible@clisp.cons.org>
44038 * m4/glibc21.m4: New file.
44039 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44041 2000-06-03 Bruno Haible <haible@clisp.cons.org>
44043 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44044 newer, don't install charset.alias.
44045 * lib/config.charset: Change the Linux/glibc rules so they become empty
44046 on glibc-2.1 or newer.
44048 2000-06-02 Jim Meyering <meyering@lucent.com>
44050 * lib/mountlist.c: Back out last change. Instead, do this...
44051 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44052 me_dummy member using the same `ignore'-testing code.
44053 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44057 2000-05-29 Jim Meyering <meyering@lucent.com>
44059 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44060 mounts with the `ignore' attribute. Based on a patch from
44063 2000-05-28 Jim Meyering <meyering@lucent.com>
44065 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44066 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44067 * m4/stat.m4: Likewise.
44068 * m4/lstat.m4: Likewise.
44069 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44071 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44072 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44074 2000-05-26 Jim Meyering <meyering@lucent.com>
44076 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44078 2000-05-24 Jim Meyering <meyering@lucent.com>
44080 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44081 autoconf requires that.
44082 * m4/lib-check.m4: Likewise.
44083 * m4/jm-macros.m4: Likewise.
44084 * m4/strftime.m4: Likewise.
44086 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44087 AC_CHECK_DECLS, now that autoconf requires that.
44089 2000-05-22 Jim Meyering <meyering@lucent.com>
44091 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44092 * m4/lstat.m4: Likewise.
44094 2000-05-22 Jim Meyering <meyering@lucent.com>
44096 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44098 2000-05-20 Jim Meyering <meyering@lucent.com>
44100 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44101 (jm_PREREQ): Use it.
44103 2000-05-18 Jim Meyering <meyering@lucent.com>
44105 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44106 back, too, since it may have been modified by allocate_entry.
44107 (hash_delete): Rewrite to use neither the assignment operator
44108 nor the comma operator in an if-expression.
44110 2000-05-15 Paul Eggert <eggert@twinsun.com>
44113 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44114 Remove; no longer needed.
44115 "quotearg.h": Add include.
44116 (file_name): Do not bother to explicitly initialize to NULL; it's less
44117 efficient on some hosts.
44118 (close_stdout_status): Remove test as to whether stdout was already
44119 closed; it breaks for the case "echo x | sort >&-".
44120 Quote file name colons.
44121 Do not assume that _("write error") lacks format strings.
44123 2000-05-15 Jim Meyering <meyering@lucent.com>
44125 * lib/version-etc.c (version_etc_copyright): Update the copyright
44126 string used in all --version output.
44128 2000-05-14 Jim Meyering <meyering@lucent.com>
44130 * lib/closeout.c (close_stdout_set_file_name): New function.
44131 (close_stdout_status): Use new file-scoped global.
44132 Return right away if fstat says the stdout file descriptor is invalid.
44133 * lib/closeout.h (close_stdout_set_file_name): Declare.
44135 2000-05-10 Jim Meyering <meyering@lucent.com>
44137 * lib/closeout.c [default_exit_status]: New file-scoped variable.
44138 (close_stdout_set_status): New function.
44139 * lib/closeout.h (close_stdout_set_status): Declare.
44141 2000-05-09 Jim Meyering <meyering@lucent.com>
44143 * m4/gettext.m4: Rename this...
44144 * m4/libintl.m4: ...to this.
44146 2000-05-08 Jim Meyering <meyering@lucent.com>
44148 * lib/long-options.c: Don't include closeout.h.
44149 (parse_long_options): Don't call close_stdout for --version.
44151 2000-05-06 Paul Eggert <eggert@twinsun.com>
44153 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44154 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44155 2.1.3 bug. This avoids a clash when files like regex.c define
44158 2000-05-06 Jim Meyering <meyering@lucent.com>
44160 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44161 (AC_REPLACE_FUNCS): Add strnlen.
44163 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44164 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44166 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44167 AC_SEARCH_LIBS call for nanosleep.
44168 (LIB_NANOSLEEP): Set and AC_SUBST.
44170 2000-05-06 Jim Meyering <meyering@lucent.com>
44172 * lib/strnlen.c: Undefine __strnlen and strnlen.
44173 [!weak_alias]: Define __strnlen to strnlen.
44175 * lib/atexit.c: New file, from libiberty.
44177 2000-05-06 Jim Meyering <meyering@lucent.com>
44179 * lib/closeout.c (close_stdout_status): Also check for errors on the
44182 2000-05-05 Jim Meyering <meyering@lucent.com>
44184 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44185 AC_SEARCH_LIBS call for clock_gettime.
44186 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44188 * m4/search-libs.m4: Update from autoconf.
44190 su doesn't work on Solaris 2.6.
44191 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44192 <shadow.h>. Reported by Dragos Harabor.
44194 2000-05-05 Bruno Haible <haible@clisp.cons.org>
44196 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44197 memcpy instead of xmalloc, xrealloc, path_concat.
44198 (locale_charset): Treat empty environment variables as absent.
44199 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44201 2000-05-04 Jim Meyering <meyering@lucent.com>
44203 * lib/getopt.c: Update from glibc.
44204 * lib/obstack.c: Likewise.
44205 * lib/obstack.h: Likewise.
44206 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
44209 * lib/regex.h: Likewise.
44210 * lib/strndup.c: Likewise.
44211 * lib/strnlen.c: New file, from glibc.
44213 2000-05-03 Jim Meyering <meyering@lucent.com>
44215 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44217 2000-05-02 Paul Eggert <eggert@twinsun.com>
44219 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44220 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
44221 compile-time test, rather than inspecting host and OS, to
44222 decide whether to define _LARGEFILE_SOURCE.
44224 2000-05-01 Jim Meyering <meyering@lucent.com>
44226 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44228 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44229 Based on a patch from Bruno Haible.
44231 2000-05-01 Jim Meyering <meyering@lucent.com>
44233 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44235 2000-04-29 Jim Meyering <meyering@lucent.com>
44237 * lib/path-concat.c: Declare strdup only if it's not defined.
44238 * lib/canon-host.c: Likewise.
44240 2000-04-28 Jim Meyering <meyering@lucent.com>
44242 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44243 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
44244 is included first, then limits.h is included by locale.h by libintl.h.
44245 From John David Anglin.
44247 2000-04-25 Jim Meyering <meyering@lucent.com>
44249 * lib/makepath.c (S_IRWXUGO): Define.
44250 (make_path): Always perform explicit chmod if MODE specifies any
44251 of the `special' permission bits. Prompted by a bug report against
44252 install from Mate Wierdl and Joost van Baal.
44254 2000-04-18 Jim Meyering <meyering@lucent.com>
44256 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44257 (jm_PREREQ): Use it.
44259 2000-04-18 Jim Meyering <meyering@lucent.com>
44261 * lib/README: New file.
44263 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44264 getpagesize. For BeOS. Based on a patch from Bruno Haible.
44266 2000-04-17 Jim Meyering <meyering@lucent.com>
44269 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44270 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
44271 Suggestion from Akim Demaille.
44273 2000-04-17 Jim Meyering <meyering@lucent.com>
44275 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44276 the definition of it to rpl_strftime also defined-away the system's
44279 2000-04-15 Jim Meyering <meyering@lucent.com>
44281 Use `C' to denote so-called `contiguous' files, the same way
44283 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44284 (ftypelet): Use S_ISCTG.
44285 From Michael Deutschmann.
44287 2000-04-14 Jim Meyering <meyering@lucent.com>
44289 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44290 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
44293 2000-04-14 Jim Meyering <meyering@lucent.com>
44295 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44297 2000-04-13 Jim Meyering <meyering@lucent.com>
44299 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44300 AH_VERBATIM to insert required #ifndef into config.h.in.
44301 Suggestion from Akim Demaille.
44303 2000-04-12 Jim Meyering <meyering@lucent.com>
44305 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44306 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
44307 Christian Krackowizer.
44309 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44310 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44311 (AC_SYS_LARGEFILE): Require.
44312 (AM_C_PROTOTYPES): Require.
44314 2000-04-08 Jim Meyering <meyering@lucent.com>
44316 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44317 names don't conflict. Reported by Eli Zaretskii.
44319 2000-04-07 Jim Meyering <meyering@lucent.com>
44321 * lib/putenv.c: Move inclusion of errno.h so it follows that of
44322 sys/types.h, to work around system header problems on AIX 3.2.5.
44325 2000-04-07 Bruno Haible <haible@clisp.cons.org>
44327 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44328 bug. Deal with the different error behavior of Irix iconv.
44330 2000-04-05 Paul Eggert <eggert@twinsun.com>
44332 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44333 IRIX if the installer said otherwise.
44335 2000-04-05 Jim Meyering <meyering@lucent.com>
44337 Portability tweaks required for ultrix4.3.
44338 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44339 (jm_CHECK_DECLS): Add getutent to the list of functions.
44340 (_jm_DECL_HEADERS): Add utmpx.h.
44341 From John David Anglin.
44343 * m4/strftime.m4: Back out the 2000-04-02 change.
44344 Instead of that change, simply undefine putenv in the test program.
44346 2000-04-05 Jim Meyering <meyering@lucent.com>
44348 Portability tweaks required for ultrix4.3.
44349 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44351 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44352 * lib/canon-host.c: Declare strdup.
44353 * lib/path-concat.c: Likewise.
44354 From John David Anglin.
44356 2000-04-04 Jim Meyering <meyering@lucent.com>
44358 Be more DOS 8.3-friendly.
44359 * lib/ref-add.sin: Renamed from ref-add.sed.in.
44360 * lib/ref-del.sin: Renamed from ref-del.sed.in.
44361 * lib/Makefile.am: Reflect renaming.
44362 Reported by Eli Zaretskii.
44364 Use a temporary file name that won't clash with `charset.alias'
44365 in the DOS 8.3 name space.
44366 * lib/Makefile.am (charset_tmp): Define.
44367 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44368 (uninstall-local): Likewise.
44369 Reported by Eli Zaretskii.
44371 2000-04-03 Jim Meyering <meyering@lucent.com>
44373 * m4/gettext.m4: Fix typo in comment.
44375 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44376 textutils/configure.in). Suggestion from Paul Eggert.
44377 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
44379 2000-04-02 Paul Eggert <eggert@twinsun.com>
44381 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44382 variable in the shell rather than using putenv, which isn't
44383 portable. This avoids the configure-time inter-test dependency
44384 on the potentially-renamed putenv function.
44386 2000-03-30 Paul Eggert <eggert@twinsun.com>
44388 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44389 before checking struct stat.st_blksize, so that
44390 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44392 2000-03-29 Paul Eggert <eggert@twinsun.com>
44394 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44395 since strftime.c uses HAVE_STRFTIME to decide whether to use
44396 the underlying strftime.
44398 2000-03-29 Paul Eggert <eggert@twinsun.com>
44400 * lib/time/strftime.c (my_strftime): Make sure we call the system
44401 strftime, not ourselves, when invoking the underlying strftime.
44403 2000-03-24 Jim Meyering <meyering@lucent.com>
44405 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44406 (charset_alias): Define.
44407 (install-exec-local): Factor out common code.
44408 (uninstall-local): Split lines longer than 80.
44409 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44410 (SUFFIXES): Define.
44411 (.sed.in.sed): New rule. Don't redirect directly to $@.
44412 (CLEANFILES): Add ref-add.sed and ref-del.sed.
44414 2000-03-19 Bruno Haible <haible@clisp.cons.org>
44416 * lib/config.charset: Output a line containing "Packages using this
44418 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44419 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44420 ref-del.sed): New rules.
44422 2000-03-17 Jim Meyering <meyering@lucent.com>
44424 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44425 Otherwise, include <strings.h>
44427 2000-03-17 Bruno Haible <haible@clisp.cons.org>
44429 * lib/unicodeio.c (utf8_wctomb): New function.
44430 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44431 format instead of in UCS-4 with platform dependent endianness.
44433 2000-03-10 Jim Meyering <meyering@lucent.com>
44435 * m4/lib-check.m4: Look for getspnam in -lgen, too.
44436 From Marco Franzen.
44438 2000-03-07 Paul Eggert <eggert@twinsun.com>
44440 * lib/savedir.c (savedir): Work even if directory size is
44441 negative; this can happen with some screwy NFS configurations.
44443 2000-03-06 Jim Meyering <meyering@lucent.com>
44445 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44446 if it's NULL (because we ran out of memory). From Bruno Haible.
44448 2000-03-05 Jim Meyering <meyering@lucent.com>
44450 * lib/localcharset.c ("path-concat.h"): Include.
44451 (get_charset_aliases): Use path_concat instead of ANSI string
44454 * lib/unicodeio.h (PARAMS): Define.
44455 Use it to guard prototype.
44457 2000-03-04 Jim Meyering <meyering@lucent.com>
44459 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44460 for lib/localcharset.c.
44462 2000-03-04 Jim Meyering <meyering@lucent.com>
44464 * lib/Makefile.am (install-exec-local): Create $(libdir) before
44465 installing into it.
44466 (uninstall-local): Uncomment this rule so `make distcheck' works
44469 * lib/unicodeio.c (<errno.h>): Include it.
44470 (errno): Declare if not defined.
44472 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44474 * lib/config.charset: New version, incorporating remarks from a linux
44475 i18n mailing list. From Bruno Haible.
44477 2000-03-04 Bruno Haible <haible@clisp.cons.org>
44479 * m4/codeset.m4: New file.
44480 * m4/iconv.m4: New file.
44481 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44483 2000-03-03 Jim Meyering <meyering@lucent.com>
44485 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44487 2000-03-02 Jim Meyering <meyering@lucent.com>
44489 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44490 the messages come out on separate lines.
44492 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44493 rather than jm_CHECK_DECLARATIONS.
44494 * m4/decl.m4: Remove now-unused file.
44496 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44499 2000-03-02 Jim Meyering <meyering@lucent.com>
44501 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44503 2000-03-01 Jim Meyering <meyering@lucent.com>
44505 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44506 * lib/unicodeio.c: Likewise.
44508 2000-03-01 Bruno Haible <haible@clisp.cons.org>
44510 * lib/config.charset: New file.
44511 * lib/localcharset.c: New file.
44512 * lib/unicodeio.h, lib/unicodeio.c: New files.
44513 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44514 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44515 (noinst_HEADERS): Add unicodeio.h.
44516 (all-local, install-exec-local, charset.alias): New targets.
44518 2000-02-28 Paul Eggert <eggert@twinsun.com>
44520 * lib/quotearg.c (ALERT_CHAR): New macro.
44521 (quotearg_buffer_restyled): Use it.
44523 2000-02-27 Jim Meyering <meyering@lucent.com>
44525 * m4/check-decl.m4: Add getenv to the list.
44527 2000-02-27 Jim Meyering <meyering@lucent.com>
44529 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44530 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44532 * lib/backupfile.c: Guard inclusion of stdlib.h with
44533 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44534 Declare malloc if needed.
44536 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44537 `#ifndef HAVE_DECL..'
44538 now that autoconf always defines the HAVE_DECL_ symbols.
44539 * lib/human.c: Likewise.
44540 * lib/same.c: Likewise.
44541 * lib/strtoumax.c: Likewise.
44543 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44544 declaration check was not run.
44545 * lib/hash.c: Likewise.
44546 * lib/human.c: Likewise.
44547 * lib/same.c: Likewise.
44548 * lib/strtoumax.c: Likewise.
44550 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44551 `.', then first look up the entire `.'-containing string as a login
44554 2000-02-23 Jim Meyering <meyering@lucent.com>
44556 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44557 in place of my hack.
44559 2000-02-18 Paul Eggert <eggert@twinsun.com>
44561 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44562 (textint): New typedef.
44563 (parser_control): Member year changed from int to textint.
44565 (YYSTYPE): Removed; replaced by %union with int and textint members.
44566 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44567 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44568 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44569 (tSNUMBER, tUNUMBER): Now of type <textintval>.
44570 (date, number, to_year): Use width of number in digits, not its value,
44571 to determine whether it's a 2-digit year, or a 2-digit time.
44572 (yylex): Store number of digits of numeric tokens.
44573 Reported by John Kendall.
44575 (parser_control): Changed from struct parser_control to typedef (for
44576 consistency). All uses changed.
44578 (tID): Removed; not used.
44579 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44581 2000-02-14 Paul Eggert <eggert@twinsun.com>
44583 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44584 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44586 2000-02-12 Jim Meyering <meyering@lucent.com>
44588 * lib/userspec.c (ISDIGIT): Define it.
44589 (isdigit): Remove definition.
44590 (is_number): Use ISDIGIT, not isdigit.
44591 <libintl.h>: Include.
44592 (_ and N_): Define.
44593 (parse_user_spec): Mark translatable strings.
44595 2000-02-10 Jim Meyering <meyering@lucent.com>
44597 With these changes, nanosleep.[ch] are finally enough like the other
44598 lib/* replacement files to compile on a few more losing systems.
44600 * lib/nanosleep.h: Don't include config.h.
44601 Remove prototype from declaration of nanosleep.
44602 (PARAMS): Remove now-unneeded definition.
44603 * lib/nanosleep.c: #undef nanosleep.
44604 (rpl_nanosleep): Rename from nanosleep.
44606 2000-02-10 Jim Meyering <meyering@lucent.com>
44608 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44609 gnu_nanosleep to rpl_nanosleep.
44611 2000-02-09 Jim Meyering <meyering@lucent.com>
44613 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44614 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
44616 2000-02-08 Akim Demaille <akim@epita.fr>
44618 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44619 `[' and `]' and remove uses of `changequote'.
44620 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44621 (AC_SYS_LARGEFILE): Likewise.
44622 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44623 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44625 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44626 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44627 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44628 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44630 2000-02-05 Jim Meyering <meyering@lucent.com>
44632 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44633 Remove explicit use of AC_HEADER_TIME. It is required by
44634 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
44635 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44636 in autoconf whereby the expansion of the latter ended up preceding
44637 the expansion of its prerequisite, AC_HEADER_TIME.
44638 Reported by Volker Borchert.
44640 2000-02-03 Jim Meyering <meyering@lucent.com>
44642 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44644 2000-02-03 Jim Meyering <meyering@lucent.com>
44646 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44647 rather than with `#if HAVE_UTMPNAME'.
44649 2000-02-02 Jim Meyering <meyering@lucent.com>
44651 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44652 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44653 Reported by Eli Zaretskii.
44655 2000-02-01 Jim Meyering <meyering@lucent.com>
44657 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
44659 2000-01-31 Jim Meyering <meyering@lucent.com>
44661 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44662 functions. Add the time.h and sys/time.h headers along with the
44663 AC_REQUIRE'ment of AC_HEADER_TIME.
44665 2000-01-31 Jim Meyering <meyering@lucent.com>
44667 * lib/nanosleep.h (nanosleep): Guard declaration with
44668 `#if ! HAVE_DECL_NANOSLEEP'.
44669 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44670 the declaration in that vendor's sys/timers.h.
44671 Reported by Christian Krackowizer.
44673 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44674 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44675 (ISPRINT): Likewise.
44676 Reported by Tom Tromey.
44678 2000-01-30 Jim Meyering <meyering@lucent.com>
44680 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44682 * m4/prereq.m4 (utmp_includes): Define.
44683 Check for ut_user and ut_name members in both struct utmpx
44686 2000-01-30 Jim Meyering <meyering@lucent.com>
44688 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44689 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
44690 header files where only utmpx.ut_user is declared.
44692 * lib/readutmp.h (UT_USER): Define.
44694 2000-01-29 Jim Meyering <meyering@lucent.com>
44696 * m4/lib-check.m4: New file containing library-related checks from
44697 fileutils and sh-utils (textutils had none).
44699 2000-01-28 Jim Meyering <meyering@lucent.com>
44701 * m4/perl.m4: Change format of warning message to look more like that
44702 from the missing script. Suggestion from François Pinard.
44704 2000-01-25 Jim Meyering <meyering@lucent.com>
44706 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44707 well as time.h in the compile check.
44708 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44709 Fix typo in cross-compiling case: s/yes/no/.
44711 2000-01-23 Jim Meyering <meyering@lucent.com>
44713 * m4/jm-macros.m4: Move df-related tests here from
44714 fileutils/configure.in
44716 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44717 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44719 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
44720 s/space/ac_fsusage_space/.
44721 (jm_FILE_SYSTEM_USAGE): Take two parameters.
44723 * m4/ftruncate.m4: New file (derived from part of
44724 fileutils/configure.in).
44725 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44726 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44728 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44729 AC_SUBST these here, rather than just in sh-util/configure.in, so
44730 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44732 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44733 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44734 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44735 (AC_SUBST(POW_LIBM)): Likewise.
44736 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44738 2000-01-23 Jim Meyering <meyering@lucent.com>
44740 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44743 2000-01-22 Jim Meyering <meyering@lucent.com>
44745 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44747 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44749 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44751 (AC_CHECK_HEADERS): Likewise for sh-utils.
44752 (AC_CHECK_HEADERS): Likewise for textutils.
44753 Merge the three lists of headers.
44755 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
44756 from fileutils' configure.in.
44758 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
44759 code. Moved tests into their own function (_jm_DECL_HEADERS) in
44762 * m4/check-decl.m4: Use #if rather than #ifdef.
44763 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
44764 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
44765 (_jm_DECL_HEADERS): Define new function.
44766 (jm_CHECK_DECLARATIONS): Require it.
44768 2000-01-22 Jim Meyering <meyering@lucent.com>
44770 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
44771 [! HAVE_DECL_STRTOULL]: Declare strtoull.
44772 Required for some AIX systems. Reported by Christian Krackowizer.
44773 [TESTING] (main): New function.
44775 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
44776 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
44779 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
44782 * lib/strverscmp.c (ISDIGIT): Define.
44783 (strverscmp): Use ISDIGIT, not isdigit.
44785 2000-01-19 Jim Meyering <meyering@lucent.com>
44787 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
44788 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
44789 defines `struct timespec' in <sys/time.h>
44791 * m4/c-bs-a.m4: Remove uses of changequote altogether.
44792 Thanks to Akim for explaining.
44794 2000-01-17 Paul Eggert <eggert@twinsun.com>
44796 * lib/nanosleep.c (nanosleep):
44797 Don't use SA_INTERRUPT to decide whether to call sigaction, as
44798 POSIX.1 doesn't require SA_INTERRUPT and some systems
44799 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
44800 it's been part of POSIX.1 since day 1 (in 1988).
44802 2000-01-17 Jim Meyering <meyering@lucent.com>
44804 * lib/interlock: Remove unused file. Reported by François Pinard.
44806 2000-01-16 Paul Eggert <eggert@twinsun.com>
44808 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
44809 alert, backslash, formfeed, and vertical tab unnecessarily in
44810 shell quoting style.
44812 2000-01-16 Jim Meyering <meyering@lucent.com>
44814 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
44815 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
44816 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
44817 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
44819 2000-01-16 Jim Meyering <meyering@lucent.com>
44821 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
44822 because the latter didn't work.
44824 2000-01-15 Jim Meyering <meyering@lucent.com>
44826 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
44827 (AC_REPLACE_FUNCS): Add memcpy and memset.
44828 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
44830 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
44832 2000-01-12 Jim Meyering <meyering@lucent.com>
44834 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
44835 (jm_PREREQ): Use it.
44836 (jm_PREREQ_READUTMP): New macro.
44837 (jm_PREREQ): Use it.
44839 2000-01-11 Paul Eggert <eggert@twinsun.com>
44841 Quote multibyte characters correctly.
44842 * m4/c-bs-a.m4: New file.
44843 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
44844 (jm_PREREQ): Use it.
44846 2000-01-11 Paul Eggert <eggert@twinsun.com>
44848 * m4/uintmax_t.m4: Port to autoconf 2.13.
44850 2000-01-08 Jim Meyering <meyering@ascend.com>
44852 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
44853 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
44855 2000-01-04 Jim Meyering <meyering@ascend.com>
44857 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
44858 jm_STRUCT_DIRENT_D_TYPE.
44859 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
44860 jm_STRUCT_DIRENT_D_INO.
44861 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
44863 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
44865 * m4/utime.m4: Likewise.
44867 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
44868 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
44870 2000-01-03 Paul Eggert <eggert@twinsun.com>
44872 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
44873 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
44875 2000-01-02 Jim Meyering <meyering@ascend.com>
44877 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
44878 remember if this is necessary.
44880 1999-12-26 Jim Meyering <meyering@ascend.com>
44882 * m4/jm-macros.m4: Use it here.
44883 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
44885 1999-12-23 Jim Meyering <meyering@ascend.com>
44887 * m4/jm-macros.m4: Check for clock_gettime (moved from
44888 fileutils/configure.in)
44889 Check for gettimeofday.
44891 1999-12-20 Jim Meyering <meyering@ascend.com>
44893 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
44894 autoconf-2.14a-1999-12-20.
44896 1999-12-19 Jim Meyering <meyering@ascend.com>
44898 * m4/lstat-slash.m4: New file.
44899 * m4/jm-macros.m4: Use the new macro:
44900 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44902 1999-12-07 Jim Meyering <meyering@ascend.com>
44904 * m4/perl.m4: Require that File::Compare be available, too.
44905 Too many systems seem to lack it.
44907 * m4/strftime.m4: Add checks for most of the cpp macros tested in
44908 GNU's strftime.c. Prompted by a patch from Paul Eggert.
44910 1999-11-18 Paul Eggert <eggert@twinsun.com>
44912 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
44913 problem with the QNX 4.25 shell, which doesn't propagate exit
44914 status of failed commands inside shell assignments.
44916 1999-11-17 Jim Meyering <meyering@ascend.com>
44918 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
44920 1999-11-07 Jim Meyering <meyering@ascend.com>
44922 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
44924 1999-11-06 Jim Meyering <meyering@ascend.com>
44926 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
44927 * m4/jm-macros.m4 (jm_MACROS): Use it here.
44929 1999-11-05 Jim Meyering <meyering@ascend.com>
44931 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
44932 configure.in of textutils, fileutils, and sh-utils into this one
44933 (shared between those packages) file.
44934 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
44935 AC_STRUCT_ST_BLKSIZE.
44937 1999-11-03 Jim Meyering <meyering@ascend.com>
44939 * m4/ssize_t.m4: Remove file. No longer needed since the new version
44940 of AC_CHECK_TYPE checks includes unistd.h.
44941 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
44942 Suggestion from Akim Demaille.
44944 1999-10-30 Jim Meyering <meyering@ascend.com>
44946 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
44948 * m4/ls-mntd-fs.m4: Likewise.
44949 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
44950 * m4/jm-winsz1.m4: Likewise.
44952 * m4/const.m4: Remove file, since the fix made it into the experimental
44953 version of autoconf.
44954 * m4/mktime.m4: Likewise.
44956 * m4/check-type.m4: Remove file, now that the latest version of
44957 AC_CHECK_TYPE takes a third arg to specify additional #includes.
44959 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
44960 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
44963 1999-10-04 Jim Meyering <meyering@ascend.com>
44965 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
44967 1999-09-22 Paul Eggert <eggert@twinsun.com>
44969 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
44970 2.95.1 bug with HP-UX 10.20.
44972 1999-09-17 Jim Meyering <meyering@ascend.com>
44974 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
44975 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
44976 due to missing strdup (against sh-utils-2.0).
44978 1999-08-29 Jim Meyering <meyering@ascend.com>
44980 * m4/jm-macros.m4: Require jm_BISON.
44981 * m4/bison.m4: New file.
44983 1999-08-17 Paul Eggert <eggert@twinsun.com>
44985 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
44986 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
44988 1999-08-05 Jim Meyering <meyering@ascend.com>
44990 * m4/getline.m4: Rename test file from conftestdata to conftest.data
44991 to avoid conflicts with `conftest' on 8+3 filesystems.
44992 Suggestion from Eli Zaretskii.
44994 1999-08-04 Jim Meyering <meyering@ascend.com>
44996 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44997 fileutils and sh-utils (textutils's getline test was inadequate).
44998 (AM_FUNC_GETLINE): Run this test.
44999 (AC_CHECK_FUNCS): Check for getdelim.
45000 Reported by Bob Proulx.
45002 1999-08-02 Jim Meyering <meyering@ascend.com>
45004 * m4/jm-macros.m4: Add a comment.
45006 1999-08-01 Paul Eggert <eggert@twinsun.com>
45008 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45009 <inttypes.h> defines strtoumax as a macro (and not as a
45012 1999-08-01 Paul Eggert <eggert@twinsun.com>
45014 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45015 that we can shift, multiply and divide unsigned long long
45016 values; Ultrix cc can't do it.
45018 1999-08-01 Paul Eggert <eggert@twinsun.com>
45020 * m4/mktime.m4: New file, which is a preview of what should appear
45021 in the next public autoconf release.
45023 1999-08-01 Paul Eggert <eggert@twinsun.com>
45025 * m4/lfs.m4: Remove this file.
45026 * m4/largefile.m4: New file. It contains the old contents of
45027 lfs.m4, except that all names with prefix AC_LFS have been
45028 changed to use the prefix AC_SYS_LARGEFILE instead, to be
45029 compatible with future autoconf versions. Also, some minor m4
45030 quoting problems have been fixed.
45032 1999-08-01 Paul Eggert <eggert@twinsun.com>
45034 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45035 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45036 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45037 and simplify the shell code.
45039 1999-08-01 Jim Meyering <meyering@ascend.com>
45041 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45044 1999-07-20 Jim Meyering <meyering@ascend.com>
45046 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45048 1999-07-15 Jim Meyering <meyering@ascend.com>
45050 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45052 1999-05-22 Jim Meyering <meyering@ascend.com>
45054 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45056 1999-05-20 Jim Meyering <meyering@ascend.com>
45058 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45059 Add a colon after each `then' in case $4 is empty.
45061 1999-05-16 Jim Meyering <meyering@ascend.com>
45063 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45065 1999-05-10 Jim Meyering <meyering@ascend.com>
45067 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45069 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45072 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
45074 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45076 1999-05-04 Paul Eggert <eggert@twinsun.com>
45078 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45079 not CPPFLAGS, so that linking works correctly in IRIX.
45081 1999-04-30 Paul Eggert <eggert@twinsun.com>
45083 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45085 1999-04-20 Paul Eggert <eggert@twinsun.com>
45087 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45088 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45089 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45090 jm_AC_TYPE_UNSIGNED_LONG_LONG.
45091 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45093 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
45095 1999-04-20 Jim Meyering <meyering@ascend.com>
45097 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45098 AC_REPLACE xstroull if necessary. From Paul Eggert.
45099 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45101 1999-04-18 Jim Meyering <meyering@ascend.com>
45103 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45104 * m4/jm-macros.m4: Use it.
45106 1999-04-06 Jim Meyering <meyering@ascend.com>
45108 * m4/strftime.m4: Remove test for %f.
45110 1999-03-29 Jim Meyering <meyering@ascend.com>
45112 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45113 superset of the AC_TYPE_* checks in the textutils, fileutils,
45114 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
45117 1999-03-28 Jim Meyering <meyering@ascend.com>
45119 * m4/jm-macros.m4: Define GNU_PACKAGE here.
45120 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45121 replaced e.g., in the *.sh files of the sh-utils.
45123 1999-03-20 Jim Meyering <meyering@ascend.com>
45125 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45126 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45127 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
45129 1999-03-19 Jim Meyering <meyering@ascend.com>
45131 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45133 1999-03-12 Jim Meyering <meyering@ascend.com>
45135 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45137 1999-03-07 Jim Meyering <meyering@ascend.com>
45139 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45142 1999-02-17 Jim Meyering <meyering@ascend.com>
45144 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45145 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
45147 1999-02-07 Jim Meyering <meyering@ascend.com>
45149 * m4/group-member.m4: New file -- extracted from sh-utils'
45152 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
45153 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45155 1999-02-06 Jim Meyering <meyering@ascend.com>
45157 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45158 * m4/fnmatch.m4: Likewise.
45159 * m4/getgroups.m4: Likewise.
45160 * m4/lstat.m4: Likewise.
45161 * m4/malloc.m4: Likewise.
45162 * m4/putenv.m4: Likewise.
45163 * m4/realloc.m4: Likewise.
45164 * m4/regex.m4: Likewise.
45165 * m4/stat.m4: Likewise.
45166 * m4/strftime.m4: Likewise.
45167 Suggestion from Alain Magloire.
45169 * m4/chown.m4: Use `.$ac_objext', not `.o'.
45170 * m4/fnmatch.m4: Likewise.
45171 * m4/getgroups.m4: Likewise.
45172 * m4/getline.m4: Likewise.
45173 * m4/lstat.m4: Likewise.
45174 * m4/malloc.m4: Likewise.
45175 * m4/memcmp.m4: Likewise.
45176 * m4/putenv.m4: Likewise.
45177 * m4/realloc.m4: Likewise.
45178 * m4/regex.m4: Likewise.
45179 * m4/stat.m4: Likewise.
45180 * m4/strftime.m4: Likewise.
45181 Suggestion from Alain Magloire.
45183 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45186 * m4/regex.m4: Add a run-time Test for proper operation of
45187 re_compile_pattern.
45189 1999-01-31 Jim Meyering <meyering@ascend.com>
45191 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45193 1999-01-30 Jim Meyering <meyering@ascend.com>
45195 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45197 * m4/jm-mktime.m4: Make this a wrapper around the official
45198 AM_FUNC_MKTIME rather than my private copy, now that the official one
45200 * m4/mktime.m4: Remove file.
45202 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45203 * m4/uptime.m4: Likewise.
45204 * m4/uintmax_t.m4: Likewise.
45206 1999-01-28 Jim Meyering <meyering@ascend.com>
45208 * m4/jm-macros.m4: Use jm_AFS.
45209 * m4/afs.m4: New file (from fileutils' configure.in).
45211 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45212 * m4/chown.m4: Likewise.
45213 * m4/d-ino.m4: Likewise.
45214 * m4/d-type.m4: Likewise.
45215 * m4/fnmatch.m4: Likewise.
45216 * m4/getgroups.m4: Likewise.
45217 * m4/gettext.m4: Likewise.
45218 * m4/jm-mktime.m4: Likewise.
45219 * m4/jm-winsz2.m4: Likewise.
45220 * m4/lcmessage.m4: Likewise.
45221 * m4/ls-mntd-fs.m4: Likewise.
45222 * m4/malloc.m4: Likewise.
45223 * m4/memcmp.m4: Likewise.
45224 * m4/putenv.m4: Likewise.
45225 * m4/realloc.m4: Likewise.
45226 * m4/st_mtim.m4: Likewise.
45227 * m4/strftime.m4: Likewise.
45229 1999-01-16 Jim Meyering <meyering@ascend.com>
45231 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45232 (ARGMATCH_DIE_DECL): Define.
45234 1999-01-12 Jim Meyering <meyering@ascend.com>
45236 * m4/Makefile.am.in: Rewrite to avoid using fmt.
45237 Reported by Lars Hecking.
45239 1999-01-10 Jim Meyering <meyering@ascend.com>
45241 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45243 * m4/inttypes_h.m4: Likewise.
45244 * m4/lstat.m4: Likewise.
45245 * m4/malloc.m4: Likewise.
45246 * m4/readdir.m4: Likewise.
45247 * m4/realloc.m4: Likewise.
45248 * m4/st_dm_mode.m4: Likewise.
45249 * m4/stat.m4: Likewise.
45250 * m4/utimbuf.m4: Likewise.
45251 * m4/utimes.m4: Likewise.
45253 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45254 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
45255 comments in config.h.in are meaningful.
45257 * m4/jm-macros.m4: Require autoconf-2.13 here.
45259 * m4/regex.m4: By default, don't use the included regex.c on systems
45260 with glibc 2. Suggestion from Uli Drepper.
45262 1999-01-02 Jim Meyering <meyering@ascend.com>
45264 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45266 1998-12-18 Jim Meyering <meyering@ascend.com>
45268 * m4/Makefile.am.in (Makefile.am): Simplify rule.
45269 Based on a suggestion from Lars Hecking.
45271 1998-11-16 Paul Eggert <eggert@twinsun.com>
45273 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45275 1998-11-16 Jim Meyering <meyering@ascend.com>
45277 * m4/lfs.m4: Double-quote the `uname...` expression.
45279 1998-11-14 Jim Meyering <meyering@ascend.com>
45281 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
45282 * m4/stat.m4: Likewise.
45284 1998-11-03 Jim Meyering <meyering@ascend.com>
45286 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45287 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45289 1998-10-18 Jim Meyering <meyering@ascend.com>
45291 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45293 1998-10-17 Jim Meyering <meyering@ascend.com>
45295 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45296 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45297 calls for those previously hard-coded headers. Instead, take a new
45299 (jm_CHECK_DECLARATIONS): Reflect interface change.
45300 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45301 (jm_CHECK_DECL_LOCALTIME_R): New macro.
45303 * m4/mktime.m4: Test for spring-forward gap before long-running test.
45305 1998-10-14 Jim Meyering <meyering@ascend.com>
45307 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45308 instead of "TZ=America/Vancouver". From Paul Eggert.
45310 1998-10-11 Jim Meyering <meyering@ascend.com>
45312 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45313 This adds a test for a recently added compatibility fix for mktime.c.
45314 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45316 1998-09-27 Jim Meyering <meyering@ascend.com>
45318 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45320 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
45321 ../configure.in, including a change from Gordon Matzigkeit to allow
45322 cross-compiling for the Hurd.
45324 * m4/glibc.m4: New file/macro to test for the GNU C Library
45325 versions 1 and 2. From Gordon Matzigkeit.
45328 1998-09-21 Jim Meyering <meyering@ascend.com>
45330 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
45332 1998-08-18 Paul Eggert <eggert@twinsun.com>
45334 Port nanosecond-resolution times to UnixWare 2.1.2 and
45335 pedantic Solaris 2.6.
45337 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45339 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45340 Generate name of ns member, instead of just 1 or undef.
45341 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45343 1998-08-15 Jim Meyering <meyering@ascend.com>
45345 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45346 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
45347 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45348 instead of jm_TYPE_SSIZE_T.
45350 1998-08-12 Jim Meyering <meyering@ascend.com>
45352 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
45354 1998-08-02 Jim Meyering <meyering@ascend.com>
45356 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45357 in acconfig.h manually.
45359 1998-07-31 Paul Eggert <eggert@twinsun.com>
45361 * m4/st_mtim.m4: New file.
45363 1998-07-28 Jim Meyering <meyering@ascend.com>
45365 * m4/utimes.m4: Undef stat.
45367 1998-07-25 Jim Meyering <meyering@ascend.com>
45369 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45370 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45372 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
45374 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45375 uid and gid actually remain unchanged.
45377 1998-07-07 Jim Meyering <meyering@ascend.com>
45379 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45381 1998-07-04 Jim Meyering <meyering@ascend.com>
45383 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
45384 to prove that this macro can be used in packages without regex.c.
45386 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
45388 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45391 1998-07-03 Jim Meyering <meyering@ascend.com>
45393 * m4/gettext.m4: Add -lintl if it's found to be necessary.
45395 * m4/gettext.m4: New file -- from gettext-0.10.35.
45396 * m4/lcmessage.m4: Likewise.
45397 * m4/progtest.m4: Likewise.
45399 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45400 * m4/jm-macros.m4: Require the new macro.
45402 1998-06-29 Jim Meyering <meyering@ascend.com>
45404 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
45405 for the definition of NGROUPS (used in a system header included
45408 1998-06-28 Jim Meyering <meyering@ascend.com>
45410 * m4/ls-mntd-fs.m4: New file.
45411 * m4/fstypename.m4: New file.
45413 * m4/jm-macros.m4: Require the new macro.
45414 * m4/jm-glibc-io.m4: New file.
45416 1998-05-19 Jim Meyering <meyering@ascend.com>
45418 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45419 * m4/lchown.m4: New file.
45421 * m4/Makefile.am.in: New file.
45422 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45424 1998-05-14 Jim Meyering <meyering@ascend.com>
45426 * m4/Makefile.am (EXTRA_DIST): Add them.
45427 * m4/jm-macros.m4: New file.
45428 * m4/utimbuf.m4: New file.
45430 1998-05-12 Jim Meyering <meyering@ascend.com>
45432 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45434 1998-05-11 Jim Meyering <meyering@ascend.com>
45436 * m4/isc-posix.m4: New file.
45438 1998-05-10 Jim Meyering <meyering@ascend.com>
45440 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45442 1998-05-09 Jim Meyering <meyering@ascend.com>
45444 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45445 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45448 * m4/ssize_t.m4: New file.
45449 * m4/mktime.m4: Remove file -- the new automake has this now.
45451 1998-04-26 Jim Meyering <meyering@ascend.com>
45453 * m4/assert.m4: New file.
45454 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45456 1998-04-05 Jim Meyering <meyering@ascend.com>
45458 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45459 (jm_PREREQ): Use it here.
45461 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
45463 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45466 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
45468 * m4/prereq.m4: New file.
45469 * m4/error.m4: New file.
45470 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45472 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
45474 * m4/getline.m4: Don't set am_cv_func_working_getline before the
45475 cache-check for the same variable -- that defeated the purpose of
45476 the test; the test program was never run. This was a problem only
45477 on systems with losing getline functions -- HP-UX 10.20 is one.
45478 Reported by Bjorn Helgaas.
45480 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
45482 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45484 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
45486 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45488 * m4/const.m4: New file. Use an initializer in this declaration
45489 typedef int charset[2]; const charset x;
45490 Reported by Bob Glickstein.
45492 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
45494 * m4/chown.m4: Fix reversed types on -1 args to chown.
45497 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
45499 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45500 Add lseek and memchr.
45502 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45503 T.E.Dickey <dickey@clark.net> said that some older preprocessors
45504 have a 20-character limit on names.
45506 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
45508 * m4/inttypes_h.m4: New file.
45509 * m4/uintmax_t.m4: New file.
45510 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45519 Copyright (C) 1997-2008 Free Software Foundation, Inc.
45521 Copying and distribution of this file, with or without
45522 modification, are permitted provided the copyright notice
45523 and this notice are preserved.